@gobodo/gobodo-api-promise 0.1.65 → 0.1.67
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 +23 -2
- package/dist/ApiClient.js +3 -3
- package/dist/api/ActionTypesApi.js +2 -2
- package/dist/api/AdCampaignsApi.js +2 -2
- package/dist/api/AdManagementApi.js +2 -2
- package/dist/api/AdminDataManagementApi.js +2 -2
- package/dist/api/AdsApi.js +2 -2
- package/dist/api/AttachmentsApi.js +2 -2
- package/dist/api/AuthenticationApi.js +2 -2
- package/dist/api/CategoriesApi.js +2 -2
- package/dist/api/CommentsApi.js +2 -2
- package/dist/api/ContentManagementApi.js +2 -2
- package/dist/api/ConversationsApi.js +2 -2
- package/dist/api/DataSheetImportsApi.js +2 -2
- package/dist/api/DefaultApi.js +2 -2
- package/dist/api/DocumentsApi.js +2 -2
- package/dist/api/EmailsApi.js +2 -2
- package/dist/api/EntryPartsApi.js +2 -2
- package/dist/api/FacebookApi.js +2 -2
- package/dist/api/FieldsApi.js +2 -2
- package/dist/api/FilesApi.js +2 -2
- package/dist/api/FormsApi.js +2 -2
- package/dist/api/FunctionsApi.js +2 -2
- package/dist/api/GeocodeApi.js +2 -2
- package/dist/api/GoogleApi.js +2 -2
- package/dist/api/GraphActionTypesApi.js +2 -2
- package/dist/api/GraphActionsApi.js +2 -2
- package/dist/api/GraphObjectTypesApi.js +2 -2
- package/dist/api/GraphObjectsApi.js +2 -2
- package/dist/api/GraphRelationshipTypesApi.js +2 -2
- package/dist/api/GraphRelationshipsApi.js +2 -2
- package/dist/api/GraphSchemasApi.js +2 -2
- package/dist/api/GraphTraversalApi.js +2 -2
- package/dist/api/GraphsApi.js +2 -2
- package/dist/api/GroupsApi.js +2 -2
- package/dist/api/IAMApi.js +2 -2
- package/dist/api/ImagesApi.js +2 -2
- package/dist/api/InvitesApi.js +2 -2
- package/dist/api/LikesApi.js +2 -2
- package/dist/api/LinkedINApi.js +2 -2
- package/dist/api/LiveMeetingsApi.js +2 -2
- package/dist/api/MeetingEventsApi.js +2 -2
- package/dist/api/NotificationsApi.js +2 -2
- package/dist/api/PagesApi.js +2 -2
- package/dist/api/PhoneNumbersApi.js +2 -2
- package/dist/api/PostsApi.js +2 -2
- package/dist/api/PrivateMessagesApi.js +2 -2
- package/dist/api/PublicationsApi.js +2 -2
- package/dist/api/RestApplicationsApi.js +407 -0
- package/dist/api/ScreensApi.js +2 -2
- package/dist/api/SitesApi.js +767 -0
- package/dist/api/SocialIntegrationApi.js +2 -2
- package/dist/api/StripeAccountsApi.js +2 -2
- package/dist/api/TagsApi.js +2 -2
- package/dist/api/TemplatesApi.js +2 -2
- package/dist/api/ThemeMappingsApi.js +2 -2
- package/dist/api/TopicsApi.js +2 -2
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/api/TwitterApi.js +2 -2
- package/dist/api/UserTagsApi.js +2 -2
- package/dist/api/UsersApi.js +2 -2
- package/dist/api/UtilsApi.js +2 -2
- package/dist/api/VideosApi.js +2 -2
- package/dist/index.js +56 -0
- package/dist/model/APIClient.js +2 -2
- 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 -2
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionStackTraceInner.js +2 -2
- package/dist/model/Article.js +75 -75
- package/dist/model/AuthResponse.js +2 -2
- package/dist/model/AwsSettings.js +2 -2
- 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 +2 -2
- package/dist/model/Coordinates.js +2 -2
- package/dist/model/CreateAccountResponse.js +2 -2
- package/dist/model/CreateFunctionInput.js +2 -2
- package/dist/model/CreateStripeAccountInput.js +2 -2
- package/dist/model/CreateStripeCustomerInput.js +2 -2
- package/dist/model/CreateTopicInput.js +2 -2
- package/dist/model/CreateTopicListenerInput.js +2 -2
- package/dist/model/CurrencySettings.js +2 -2
- package/dist/model/CustomerResponse.js +2 -2
- package/dist/model/DataObject.js +2 -2
- package/dist/model/DataSheetImport.js +2 -2
- package/dist/model/DataSheetImportPrivacySettings.js +2 -2
- package/dist/model/DataSheetImportSummary.js +2 -2
- package/dist/model/DeviceRegistrationRequest.js +2 -2
- package/dist/model/Document.js +75 -75
- package/dist/model/DocumentPart.js +2 -2
- package/dist/model/DocumentPartType.js +27 -27
- package/dist/model/DocumentType.js +39 -39
- package/dist/model/EmailAddress.js +2 -2
- package/dist/model/FieldMapping.js +2 -2
- package/dist/model/Fields.js +25 -25
- package/dist/model/File.js +31 -31
- package/dist/model/FileAttachmentUploadObject.js +31 -31
- package/dist/model/Filter.js +2 -2
- package/dist/model/FilterManager.js +2 -2
- package/dist/model/Form.js +29 -29
- package/dist/model/FormSection.js +2 -2
- package/dist/model/FormSubmission.js +30 -30
- package/dist/model/FunctionConfigInput.js +2 -2
- package/dist/model/FunctionEnvironmentConfig.js +2 -2
- package/dist/model/FunctionInput.js +2 -2
- package/dist/model/FunctionOutput.js +2 -2
- 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 +2 -2
- package/dist/model/GetFunctionEnvironmentConfig.js +2 -2
- package/dist/model/GetFunctionResponse.js +2 -2
- package/dist/model/GoogleCloudSettings.js +2 -2
- package/dist/model/Graph.js +25 -25
- package/dist/model/GraphAction.js +2 -2
- 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 +2 -2
- package/dist/model/GraphObjectPayload.js +2 -2
- package/dist/model/GraphObjectSchema.js +2 -2
- package/dist/model/GraphObjectType.js +2 -2
- package/dist/model/GraphObjectTypeResponse.js +8 -6
- package/dist/model/GraphObjectTypeSchema.js +2 -2
- package/dist/model/GraphOwner.js +2 -2
- package/dist/model/GraphRelationship.js +2 -2
- package/dist/model/GraphRelationshipPayload.js +2 -2
- package/dist/model/GraphRelationshipType.js +2 -2
- package/dist/model/GraphRelationshipTypeResponse.js +2 -2
- package/dist/model/GraphSchema.js +2 -2
- package/dist/model/GraphTraversalInput.js +2 -2
- package/dist/model/Image.js +31 -31
- package/dist/model/ImageUploadObject.js +31 -31
- package/dist/model/InputPart.js +29 -29
- package/dist/model/InputPartMediaType.js +2 -2
- package/dist/model/KafkaSettings.js +2 -2
- package/dist/model/Link.js +2 -2
- package/dist/model/LiveStreamInfo.js +2 -2
- package/dist/model/MeetingEvent.js +79 -79
- package/dist/model/MeetingEventTimezone.js +2 -2
- package/dist/model/MeetingInfo.js +2 -2
- package/dist/model/Member.js +25 -25
- package/dist/model/MemberGroupCategory.js +2 -2
- package/dist/model/MemberList.js +2 -2
- package/dist/model/MessageGroup.js +2 -2
- package/dist/model/MultipartBody.js +2 -2
- package/dist/model/NotificationInput.js +2 -2
- package/dist/model/NotificationResponse.js +2 -2
- package/dist/model/NumberSettings.js +2 -2
- package/dist/model/ObjectSettings.js +2 -2
- package/dist/model/Objecttype.js +2 -2
- package/dist/model/OutParameter.js +2 -2
- package/dist/model/Page.js +2 -2
- package/dist/model/PageSchema.js +29 -29
- package/dist/model/Pageable.js +2 -2
- package/dist/model/Parameter.js +2 -2
- package/dist/model/Path.js +2 -2
- package/dist/model/PaymentAccountObject.js +2 -2
- package/dist/model/PaymentIntentInput.js +2 -2
- package/dist/model/PaymentIntentResponse.js +2 -2
- package/dist/model/PaymentMethod.js +2 -2
- 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 +27 -27
- package/dist/model/Post.js +2 -2
- package/dist/model/PrivateMessage.js +2 -2
- package/dist/model/PrivateMessageConversation.js +2 -2
- 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 +2 -2
- package/dist/model/PurgeDataDefaultResponseValue.js +2 -2
- package/dist/model/RelationshipMapping.js +2 -2
- package/dist/model/RestApplicationInput.js +247 -0
- package/dist/model/RestApplicationResponse.js +278 -0
- package/dist/model/ScreenSchema.js +2 -2
- package/dist/model/SimulcastInfo.js +2 -2
- package/dist/model/SiteInput.js +243 -0
- package/dist/model/SiteResponse.js +311 -0
- package/dist/model/SiteTypeInput.js +216 -0
- package/dist/model/SiteTypeResponse.js +216 -0
- package/dist/model/SkinField.js +25 -25
- package/dist/model/SkinFieldResponse.js +2 -2
- package/dist/model/SocialGroup.js +2 -2
- package/dist/model/SocialGroupType.js +2 -2
- 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 +2 -2
- package/dist/model/TemplateResponse.js +2 -2
- package/dist/model/TemplateSchema.js +2 -2
- package/dist/model/ThemeMapping.js +2 -2
- package/dist/model/ThemeMappingPayload.js +2 -2
- package/dist/model/TopicInfoResponse.js +2 -2
- package/dist/model/TopicMessageInput.js +2 -2
- package/dist/model/TopicSubscriptionResponse.js +2 -2
- package/dist/model/Transaction.js +2 -2
- package/dist/model/Transfer.js +29 -29
- package/dist/model/TransferInput.js +2 -2
- package/dist/model/TransferResponse.js +2 -2
- package/dist/model/TransferResponsePaymentMethodDetails.js +29 -29
- package/dist/model/TraversalRelationResponse.js +2 -2
- package/dist/model/User.js +25 -25
- package/dist/model/UserDataPayload.js +25 -25
- package/dist/model/UserDomain.js +2 -2
- package/dist/model/UserInvite.js +31 -31
- package/dist/model/UserInviteInput.js +2 -2
- package/dist/model/UserSchema.js +25 -25
- package/dist/model/UserTag.js +2 -2
- package/dist/model/Userid.js +2 -2
- package/dist/model/Video.js +88 -88
- package/dist/model/VideoLiveUrl.js +27 -27
- package/dist/model/VideoSchema.js +115 -115
- package/dist/model/VideoUploadObject.js +88 -88
- package/dist/model/ZeusPortalCategory.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,767 @@
|
|
|
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 _SiteResponse = _interopRequireDefault(require("../model/SiteResponse"));
|
|
9
|
+
var _SiteTypeInput = _interopRequireDefault(require("../model/SiteTypeInput"));
|
|
10
|
+
var _SiteTypeResponse = _interopRequireDefault(require("../model/SiteTypeResponse"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
+
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); } }
|
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
|
+
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); } /**
|
|
18
|
+
* gobodo-api
|
|
19
|
+
* REST Interface for Gobodo API
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 0.1.67
|
|
22
|
+
* Contact: info@gobodo.io
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Sites service.
|
|
31
|
+
* @module api/SitesApi
|
|
32
|
+
* @version 0.1.67
|
|
33
|
+
*/
|
|
34
|
+
var SitesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new SitesApi.
|
|
37
|
+
* @alias module:api/SitesApi
|
|
38
|
+
* @class
|
|
39
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
40
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
41
|
+
*/
|
|
42
|
+
function SitesApi(apiClient) {
|
|
43
|
+
_classCallCheck(this, SitesApi);
|
|
44
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Create a site
|
|
49
|
+
* @param {Object} opts Optional parameters
|
|
50
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
51
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
52
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
53
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
54
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
55
|
+
* @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)
|
|
56
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
57
|
+
* @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
|
|
58
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
59
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
60
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SiteResponse} and HTTP response
|
|
61
|
+
*/
|
|
62
|
+
_createClass(SitesApi, [{
|
|
63
|
+
key: "createSiteWithHttpInfo",
|
|
64
|
+
value: function createSiteWithHttpInfo(opts) {
|
|
65
|
+
opts = opts || {};
|
|
66
|
+
var postBody = null;
|
|
67
|
+
var pathParams = {};
|
|
68
|
+
var queryParams = {};
|
|
69
|
+
var headerParams = {
|
|
70
|
+
'Authorization': opts['authorization'],
|
|
71
|
+
'cacheduration': opts['cacheduration'],
|
|
72
|
+
'cachegroup': opts['cachegroup'],
|
|
73
|
+
'cachekey': opts['cachekey'],
|
|
74
|
+
'cachescope': opts['cachescope'],
|
|
75
|
+
'cacheuser': opts['cacheuser'],
|
|
76
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
77
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
78
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
79
|
+
'transactionid': opts['transactionid']
|
|
80
|
+
};
|
|
81
|
+
var formParams = {};
|
|
82
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
83
|
+
var contentTypes = [];
|
|
84
|
+
var accepts = ['application/json'];
|
|
85
|
+
var returnType = _SiteResponse["default"];
|
|
86
|
+
return this.apiClient.callApi('/graph/data/sites', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Create a site
|
|
91
|
+
* @param {Object} opts Optional parameters
|
|
92
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
93
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
94
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
95
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
96
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
97
|
+
* @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)
|
|
98
|
+
* @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
|
|
99
|
+
* @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
|
|
100
|
+
* @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
|
|
101
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
102
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SiteResponse}
|
|
103
|
+
*/
|
|
104
|
+
}, {
|
|
105
|
+
key: "createSite",
|
|
106
|
+
value: function createSite(opts) {
|
|
107
|
+
return this.createSiteWithHttpInfo(opts).then(function (response_and_data) {
|
|
108
|
+
return response_and_data.data;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Create a site type
|
|
114
|
+
* @param {Object} opts Optional parameters
|
|
115
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
116
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
117
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
118
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
119
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
120
|
+
* @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)
|
|
121
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
122
|
+
* @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
|
|
123
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
124
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
125
|
+
* @param {module:model/SiteTypeInput} [siteTypeInput]
|
|
126
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SiteTypeResponse} and HTTP response
|
|
127
|
+
*/
|
|
128
|
+
}, {
|
|
129
|
+
key: "createSiteTypeWithHttpInfo",
|
|
130
|
+
value: function createSiteTypeWithHttpInfo(opts) {
|
|
131
|
+
opts = opts || {};
|
|
132
|
+
var postBody = opts['siteTypeInput'];
|
|
133
|
+
var pathParams = {};
|
|
134
|
+
var queryParams = {};
|
|
135
|
+
var headerParams = {
|
|
136
|
+
'Authorization': opts['authorization'],
|
|
137
|
+
'cacheduration': opts['cacheduration'],
|
|
138
|
+
'cachegroup': opts['cachegroup'],
|
|
139
|
+
'cachekey': opts['cachekey'],
|
|
140
|
+
'cachescope': opts['cachescope'],
|
|
141
|
+
'cacheuser': opts['cacheuser'],
|
|
142
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
143
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
144
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
145
|
+
'transactionid': opts['transactionid']
|
|
146
|
+
};
|
|
147
|
+
var formParams = {};
|
|
148
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
149
|
+
var contentTypes = [];
|
|
150
|
+
var accepts = ['application/json'];
|
|
151
|
+
var returnType = _SiteTypeResponse["default"];
|
|
152
|
+
return this.apiClient.callApi('/graph/data/sites/sitetypes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Create a site type
|
|
157
|
+
* @param {Object} opts Optional parameters
|
|
158
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
159
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
160
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
161
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
162
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
163
|
+
* @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)
|
|
164
|
+
* @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
|
|
165
|
+
* @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
|
|
166
|
+
* @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
|
|
167
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
168
|
+
* @param {module:model/SiteTypeInput} opts.siteTypeInput
|
|
169
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SiteTypeResponse}
|
|
170
|
+
*/
|
|
171
|
+
}, {
|
|
172
|
+
key: "createSiteType",
|
|
173
|
+
value: function createSiteType(opts) {
|
|
174
|
+
return this.createSiteTypeWithHttpInfo(opts).then(function (response_and_data) {
|
|
175
|
+
return response_and_data.data;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Delete a site
|
|
181
|
+
* @param {Number} id
|
|
182
|
+
* @param {Object} opts Optional parameters
|
|
183
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
184
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
185
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
186
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
187
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
188
|
+
* @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)
|
|
189
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
190
|
+
* @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
|
|
191
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
192
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
193
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
194
|
+
*/
|
|
195
|
+
}, {
|
|
196
|
+
key: "deleteSiteWithHttpInfo",
|
|
197
|
+
value: function deleteSiteWithHttpInfo(id, opts) {
|
|
198
|
+
opts = opts || {};
|
|
199
|
+
var postBody = null;
|
|
200
|
+
// verify the required parameter 'id' is set
|
|
201
|
+
if (id === undefined || id === null) {
|
|
202
|
+
throw new Error("Missing the required parameter 'id' when calling deleteSite");
|
|
203
|
+
}
|
|
204
|
+
var pathParams = {
|
|
205
|
+
'id': id
|
|
206
|
+
};
|
|
207
|
+
var queryParams = {};
|
|
208
|
+
var headerParams = {
|
|
209
|
+
'Authorization': opts['authorization'],
|
|
210
|
+
'cacheduration': opts['cacheduration'],
|
|
211
|
+
'cachegroup': opts['cachegroup'],
|
|
212
|
+
'cachekey': opts['cachekey'],
|
|
213
|
+
'cachescope': opts['cachescope'],
|
|
214
|
+
'cacheuser': opts['cacheuser'],
|
|
215
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
216
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
217
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
218
|
+
'transactionid': opts['transactionid']
|
|
219
|
+
};
|
|
220
|
+
var formParams = {};
|
|
221
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
222
|
+
var contentTypes = [];
|
|
223
|
+
var accepts = [];
|
|
224
|
+
var returnType = null;
|
|
225
|
+
return this.apiClient.callApi('/graph/data/sites/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Delete a site
|
|
230
|
+
* @param {Number} id
|
|
231
|
+
* @param {Object} opts Optional parameters
|
|
232
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
233
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
234
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
235
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
236
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
237
|
+
* @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)
|
|
238
|
+
* @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
|
|
239
|
+
* @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
|
|
240
|
+
* @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
|
|
241
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
242
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
243
|
+
*/
|
|
244
|
+
}, {
|
|
245
|
+
key: "deleteSite",
|
|
246
|
+
value: function deleteSite(id, opts) {
|
|
247
|
+
return this.deleteSiteWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
248
|
+
return response_and_data.data;
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Delete a site type
|
|
254
|
+
* @param {Number} id
|
|
255
|
+
* @param {Object} opts Optional parameters
|
|
256
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
257
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
258
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
259
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
260
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
261
|
+
* @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)
|
|
262
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
263
|
+
* @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
|
|
264
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
265
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
266
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
267
|
+
*/
|
|
268
|
+
}, {
|
|
269
|
+
key: "deleteSiteTypeWithHttpInfo",
|
|
270
|
+
value: function deleteSiteTypeWithHttpInfo(id, opts) {
|
|
271
|
+
opts = opts || {};
|
|
272
|
+
var postBody = null;
|
|
273
|
+
// verify the required parameter 'id' is set
|
|
274
|
+
if (id === undefined || id === null) {
|
|
275
|
+
throw new Error("Missing the required parameter 'id' when calling deleteSiteType");
|
|
276
|
+
}
|
|
277
|
+
var pathParams = {
|
|
278
|
+
'id': id
|
|
279
|
+
};
|
|
280
|
+
var queryParams = {};
|
|
281
|
+
var headerParams = {
|
|
282
|
+
'Authorization': opts['authorization'],
|
|
283
|
+
'cacheduration': opts['cacheduration'],
|
|
284
|
+
'cachegroup': opts['cachegroup'],
|
|
285
|
+
'cachekey': opts['cachekey'],
|
|
286
|
+
'cachescope': opts['cachescope'],
|
|
287
|
+
'cacheuser': opts['cacheuser'],
|
|
288
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
289
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
290
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
291
|
+
'transactionid': opts['transactionid']
|
|
292
|
+
};
|
|
293
|
+
var formParams = {};
|
|
294
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
295
|
+
var contentTypes = [];
|
|
296
|
+
var accepts = [];
|
|
297
|
+
var returnType = null;
|
|
298
|
+
return this.apiClient.callApi('/graph/data/sites/sitetypes/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Delete a site type
|
|
303
|
+
* @param {Number} id
|
|
304
|
+
* @param {Object} opts Optional parameters
|
|
305
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
306
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
307
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
308
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
309
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
310
|
+
* @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)
|
|
311
|
+
* @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
|
|
312
|
+
* @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
|
|
313
|
+
* @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
|
|
314
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
315
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
316
|
+
*/
|
|
317
|
+
}, {
|
|
318
|
+
key: "deleteSiteType",
|
|
319
|
+
value: function deleteSiteType(id, opts) {
|
|
320
|
+
return this.deleteSiteTypeWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
321
|
+
return response_and_data.data;
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Get a site by id
|
|
327
|
+
* @param {Number} id
|
|
328
|
+
* @param {Object} opts Optional parameters
|
|
329
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
330
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
331
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
332
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
333
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
334
|
+
* @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)
|
|
335
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
336
|
+
* @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
|
|
337
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
338
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
339
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SiteResponse} and HTTP response
|
|
340
|
+
*/
|
|
341
|
+
}, {
|
|
342
|
+
key: "getSiteByIdWithHttpInfo",
|
|
343
|
+
value: function getSiteByIdWithHttpInfo(id, opts) {
|
|
344
|
+
opts = opts || {};
|
|
345
|
+
var postBody = null;
|
|
346
|
+
// verify the required parameter 'id' is set
|
|
347
|
+
if (id === undefined || id === null) {
|
|
348
|
+
throw new Error("Missing the required parameter 'id' when calling getSiteById");
|
|
349
|
+
}
|
|
350
|
+
var pathParams = {
|
|
351
|
+
'id': id
|
|
352
|
+
};
|
|
353
|
+
var queryParams = {};
|
|
354
|
+
var headerParams = {
|
|
355
|
+
'Authorization': opts['authorization'],
|
|
356
|
+
'cacheduration': opts['cacheduration'],
|
|
357
|
+
'cachegroup': opts['cachegroup'],
|
|
358
|
+
'cachekey': opts['cachekey'],
|
|
359
|
+
'cachescope': opts['cachescope'],
|
|
360
|
+
'cacheuser': opts['cacheuser'],
|
|
361
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
362
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
363
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
364
|
+
'transactionid': opts['transactionid']
|
|
365
|
+
};
|
|
366
|
+
var formParams = {};
|
|
367
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
368
|
+
var contentTypes = [];
|
|
369
|
+
var accepts = ['application/json'];
|
|
370
|
+
var returnType = _SiteResponse["default"];
|
|
371
|
+
return this.apiClient.callApi('/graph/data/sites/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Get a site by id
|
|
376
|
+
* @param {Number} id
|
|
377
|
+
* @param {Object} opts Optional parameters
|
|
378
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
379
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
380
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
381
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
382
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
383
|
+
* @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)
|
|
384
|
+
* @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
|
|
385
|
+
* @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
|
|
386
|
+
* @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
|
|
387
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
388
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SiteResponse}
|
|
389
|
+
*/
|
|
390
|
+
}, {
|
|
391
|
+
key: "getSiteById",
|
|
392
|
+
value: function getSiteById(id, opts) {
|
|
393
|
+
return this.getSiteByIdWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
394
|
+
return response_and_data.data;
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Get a site type by id
|
|
400
|
+
* @param {Number} id
|
|
401
|
+
* @param {Object} opts Optional parameters
|
|
402
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
403
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
404
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
405
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
406
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
407
|
+
* @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)
|
|
408
|
+
* @param {Number} [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} [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} [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} [transactionid] The id of the transaction this operation is being run in
|
|
412
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SiteTypeResponse} and HTTP response
|
|
413
|
+
*/
|
|
414
|
+
}, {
|
|
415
|
+
key: "getSiteTypeByIdWithHttpInfo",
|
|
416
|
+
value: function getSiteTypeByIdWithHttpInfo(id, opts) {
|
|
417
|
+
opts = opts || {};
|
|
418
|
+
var postBody = null;
|
|
419
|
+
// verify the required parameter 'id' is set
|
|
420
|
+
if (id === undefined || id === null) {
|
|
421
|
+
throw new Error("Missing the required parameter 'id' when calling getSiteTypeById");
|
|
422
|
+
}
|
|
423
|
+
var pathParams = {
|
|
424
|
+
'id': id
|
|
425
|
+
};
|
|
426
|
+
var queryParams = {};
|
|
427
|
+
var headerParams = {
|
|
428
|
+
'Authorization': opts['authorization'],
|
|
429
|
+
'cacheduration': opts['cacheduration'],
|
|
430
|
+
'cachegroup': opts['cachegroup'],
|
|
431
|
+
'cachekey': opts['cachekey'],
|
|
432
|
+
'cachescope': opts['cachescope'],
|
|
433
|
+
'cacheuser': opts['cacheuser'],
|
|
434
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
435
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
436
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
437
|
+
'transactionid': opts['transactionid']
|
|
438
|
+
};
|
|
439
|
+
var formParams = {};
|
|
440
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
441
|
+
var contentTypes = [];
|
|
442
|
+
var accepts = ['application/json'];
|
|
443
|
+
var returnType = _SiteTypeResponse["default"];
|
|
444
|
+
return this.apiClient.callApi('/graph/data/sites/sitetypes/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Get a site type by id
|
|
449
|
+
* @param {Number} id
|
|
450
|
+
* @param {Object} opts Optional parameters
|
|
451
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
452
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
453
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
454
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
455
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
456
|
+
* @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)
|
|
457
|
+
* @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
|
|
458
|
+
* @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
|
|
459
|
+
* @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
|
|
460
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
461
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SiteTypeResponse}
|
|
462
|
+
*/
|
|
463
|
+
}, {
|
|
464
|
+
key: "getSiteTypeById",
|
|
465
|
+
value: function getSiteTypeById(id, opts) {
|
|
466
|
+
return this.getSiteTypeByIdWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
467
|
+
return response_and_data.data;
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Get all site types
|
|
473
|
+
* @param {Object} opts Optional parameters
|
|
474
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
475
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
476
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
477
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
478
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
479
|
+
* @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)
|
|
480
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
481
|
+
* @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
|
|
482
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
483
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
484
|
+
* @param {Number} [startindex]
|
|
485
|
+
* @param {Number} [count]
|
|
486
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/SiteTypeResponse>} and HTTP response
|
|
487
|
+
*/
|
|
488
|
+
}, {
|
|
489
|
+
key: "getSiteTypesWithHttpInfo",
|
|
490
|
+
value: function getSiteTypesWithHttpInfo(opts) {
|
|
491
|
+
opts = opts || {};
|
|
492
|
+
var postBody = null;
|
|
493
|
+
var pathParams = {};
|
|
494
|
+
var queryParams = {
|
|
495
|
+
'startindex': opts['startindex'],
|
|
496
|
+
'count': opts['count']
|
|
497
|
+
};
|
|
498
|
+
var headerParams = {
|
|
499
|
+
'Authorization': opts['authorization'],
|
|
500
|
+
'cacheduration': opts['cacheduration'],
|
|
501
|
+
'cachegroup': opts['cachegroup'],
|
|
502
|
+
'cachekey': opts['cachekey'],
|
|
503
|
+
'cachescope': opts['cachescope'],
|
|
504
|
+
'cacheuser': opts['cacheuser'],
|
|
505
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
506
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
507
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
508
|
+
'transactionid': opts['transactionid']
|
|
509
|
+
};
|
|
510
|
+
var formParams = {};
|
|
511
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
512
|
+
var contentTypes = [];
|
|
513
|
+
var accepts = ['application/json'];
|
|
514
|
+
var returnType = [_SiteTypeResponse["default"]];
|
|
515
|
+
return this.apiClient.callApi('/graph/data/sites/sitetypes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Get all site types
|
|
520
|
+
* @param {Object} opts Optional parameters
|
|
521
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
522
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
523
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
524
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
525
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
526
|
+
* @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)
|
|
527
|
+
* @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
|
|
528
|
+
* @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
|
|
529
|
+
* @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
|
|
530
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
531
|
+
* @param {Number} opts.startindex
|
|
532
|
+
* @param {Number} opts.count
|
|
533
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/SiteTypeResponse>}
|
|
534
|
+
*/
|
|
535
|
+
}, {
|
|
536
|
+
key: "getSiteTypes",
|
|
537
|
+
value: function getSiteTypes(opts) {
|
|
538
|
+
return this.getSiteTypesWithHttpInfo(opts).then(function (response_and_data) {
|
|
539
|
+
return response_and_data.data;
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Get all sites
|
|
545
|
+
* @param {Object} opts Optional parameters
|
|
546
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
547
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
548
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
549
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
550
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
551
|
+
* @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)
|
|
552
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
553
|
+
* @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
|
|
554
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
555
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
556
|
+
* @param {Number} [sitetypeid]
|
|
557
|
+
* @param {Number} [startindex]
|
|
558
|
+
* @param {Number} [count]
|
|
559
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/SiteResponse>} and HTTP response
|
|
560
|
+
*/
|
|
561
|
+
}, {
|
|
562
|
+
key: "getSitesWithHttpInfo",
|
|
563
|
+
value: function getSitesWithHttpInfo(opts) {
|
|
564
|
+
opts = opts || {};
|
|
565
|
+
var postBody = null;
|
|
566
|
+
var pathParams = {};
|
|
567
|
+
var queryParams = {
|
|
568
|
+
'sitetypeid': opts['sitetypeid'],
|
|
569
|
+
'startindex': opts['startindex'],
|
|
570
|
+
'count': opts['count']
|
|
571
|
+
};
|
|
572
|
+
var headerParams = {
|
|
573
|
+
'Authorization': opts['authorization'],
|
|
574
|
+
'cacheduration': opts['cacheduration'],
|
|
575
|
+
'cachegroup': opts['cachegroup'],
|
|
576
|
+
'cachekey': opts['cachekey'],
|
|
577
|
+
'cachescope': opts['cachescope'],
|
|
578
|
+
'cacheuser': opts['cacheuser'],
|
|
579
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
580
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
581
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
582
|
+
'transactionid': opts['transactionid']
|
|
583
|
+
};
|
|
584
|
+
var formParams = {};
|
|
585
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
586
|
+
var contentTypes = [];
|
|
587
|
+
var accepts = ['application/json'];
|
|
588
|
+
var returnType = [_SiteResponse["default"]];
|
|
589
|
+
return this.apiClient.callApi('/graph/data/sites', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Get all sites
|
|
594
|
+
* @param {Object} opts Optional parameters
|
|
595
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
596
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
597
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
598
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
599
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
600
|
+
* @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)
|
|
601
|
+
* @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
|
|
602
|
+
* @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
|
|
603
|
+
* @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
|
|
604
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
605
|
+
* @param {Number} opts.sitetypeid
|
|
606
|
+
* @param {Number} opts.startindex
|
|
607
|
+
* @param {Number} opts.count
|
|
608
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/SiteResponse>}
|
|
609
|
+
*/
|
|
610
|
+
}, {
|
|
611
|
+
key: "getSites",
|
|
612
|
+
value: function getSites(opts) {
|
|
613
|
+
return this.getSitesWithHttpInfo(opts).then(function (response_and_data) {
|
|
614
|
+
return response_and_data.data;
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Update a site
|
|
620
|
+
* @param {Number} id
|
|
621
|
+
* @param {Object} opts Optional parameters
|
|
622
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
623
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
624
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
625
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
626
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
627
|
+
* @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)
|
|
628
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
629
|
+
* @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
|
|
630
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
631
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
632
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SiteResponse} and HTTP response
|
|
633
|
+
*/
|
|
634
|
+
}, {
|
|
635
|
+
key: "updateSiteWithHttpInfo",
|
|
636
|
+
value: function updateSiteWithHttpInfo(id, opts) {
|
|
637
|
+
opts = opts || {};
|
|
638
|
+
var postBody = null;
|
|
639
|
+
// verify the required parameter 'id' is set
|
|
640
|
+
if (id === undefined || id === null) {
|
|
641
|
+
throw new Error("Missing the required parameter 'id' when calling updateSite");
|
|
642
|
+
}
|
|
643
|
+
var pathParams = {
|
|
644
|
+
'id': id
|
|
645
|
+
};
|
|
646
|
+
var queryParams = {};
|
|
647
|
+
var headerParams = {
|
|
648
|
+
'Authorization': opts['authorization'],
|
|
649
|
+
'cacheduration': opts['cacheduration'],
|
|
650
|
+
'cachegroup': opts['cachegroup'],
|
|
651
|
+
'cachekey': opts['cachekey'],
|
|
652
|
+
'cachescope': opts['cachescope'],
|
|
653
|
+
'cacheuser': opts['cacheuser'],
|
|
654
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
655
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
656
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
657
|
+
'transactionid': opts['transactionid']
|
|
658
|
+
};
|
|
659
|
+
var formParams = {};
|
|
660
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
661
|
+
var contentTypes = [];
|
|
662
|
+
var accepts = ['application/json'];
|
|
663
|
+
var returnType = _SiteResponse["default"];
|
|
664
|
+
return this.apiClient.callApi('/graph/data/sites/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Update a site
|
|
669
|
+
* @param {Number} id
|
|
670
|
+
* @param {Object} opts Optional parameters
|
|
671
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
672
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
673
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
674
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
675
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
676
|
+
* @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)
|
|
677
|
+
* @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
|
|
678
|
+
* @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
|
|
679
|
+
* @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
|
|
680
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
681
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SiteResponse}
|
|
682
|
+
*/
|
|
683
|
+
}, {
|
|
684
|
+
key: "updateSite",
|
|
685
|
+
value: function updateSite(id, opts) {
|
|
686
|
+
return this.updateSiteWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
687
|
+
return response_and_data.data;
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Update a site type
|
|
693
|
+
* @param {Number} id
|
|
694
|
+
* @param {Object} opts Optional parameters
|
|
695
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
696
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
697
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
698
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
699
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
700
|
+
* @param {Array.<String>} [cacheuser] The users the cachekey should be applied to (this is only valid for clearing cache elements previously set for that user)
|
|
701
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
702
|
+
* @param {Number} [zeusportalPostas] The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
703
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
704
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
705
|
+
* @param {module:model/SiteTypeInput} [siteTypeInput]
|
|
706
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SiteTypeResponse} and HTTP response
|
|
707
|
+
*/
|
|
708
|
+
}, {
|
|
709
|
+
key: "updateSiteTypeWithHttpInfo",
|
|
710
|
+
value: function updateSiteTypeWithHttpInfo(id, opts) {
|
|
711
|
+
opts = opts || {};
|
|
712
|
+
var postBody = opts['siteTypeInput'];
|
|
713
|
+
// verify the required parameter 'id' is set
|
|
714
|
+
if (id === undefined || id === null) {
|
|
715
|
+
throw new Error("Missing the required parameter 'id' when calling updateSiteType");
|
|
716
|
+
}
|
|
717
|
+
var pathParams = {
|
|
718
|
+
'id': id
|
|
719
|
+
};
|
|
720
|
+
var queryParams = {};
|
|
721
|
+
var headerParams = {
|
|
722
|
+
'Authorization': opts['authorization'],
|
|
723
|
+
'cacheduration': opts['cacheduration'],
|
|
724
|
+
'cachegroup': opts['cachegroup'],
|
|
725
|
+
'cachekey': opts['cachekey'],
|
|
726
|
+
'cachescope': opts['cachescope'],
|
|
727
|
+
'cacheuser': opts['cacheuser'],
|
|
728
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
729
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
730
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
731
|
+
'transactionid': opts['transactionid']
|
|
732
|
+
};
|
|
733
|
+
var formParams = {};
|
|
734
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
735
|
+
var contentTypes = [];
|
|
736
|
+
var accepts = ['application/json'];
|
|
737
|
+
var returnType = _SiteTypeResponse["default"];
|
|
738
|
+
return this.apiClient.callApi('/graph/data/sites/sitetypes/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Update a site type
|
|
743
|
+
* @param {Number} id
|
|
744
|
+
* @param {Object} opts Optional parameters
|
|
745
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
746
|
+
* @param {Number} opts.cacheduration The how long the cache entry should persist
|
|
747
|
+
* @param {Array.<String>} opts.cachegroup The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
748
|
+
* @param {Array.<String>} opts.cachekey The key to cache the response or the key to remove if a post, put, or delete operation
|
|
749
|
+
* @param {module:model/String} opts.cachescope The scope of storage of the cache item
|
|
750
|
+
* @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)
|
|
751
|
+
* @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
|
|
752
|
+
* @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
|
|
753
|
+
* @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
|
|
754
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
755
|
+
* @param {module:model/SiteTypeInput} opts.siteTypeInput
|
|
756
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SiteTypeResponse}
|
|
757
|
+
*/
|
|
758
|
+
}, {
|
|
759
|
+
key: "updateSiteType",
|
|
760
|
+
value: function updateSiteType(id, opts) {
|
|
761
|
+
return this.updateSiteTypeWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
762
|
+
return response_and_data.data;
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
}]);
|
|
766
|
+
return SitesApi;
|
|
767
|
+
}();
|