@gobodo/gobodo-api 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 +328 -0
- package/dist/api/ScreensApi.js +2 -2
- package/dist/api/SitesApi.js +611 -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 +25 -25
- package/dist/model/AuthResponse.js +2 -2
- package/dist/model/AwsSettings.js +2 -2
- package/dist/model/Balance.js +19 -19
- 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 +25 -25
- package/dist/model/DocumentPart.js +2 -2
- package/dist/model/DocumentPartType.js +10 -10
- package/dist/model/DocumentType.js +14 -14
- package/dist/model/EmailAddress.js +2 -2
- package/dist/model/FieldMapping.js +2 -2
- package/dist/model/Fields.js +9 -9
- package/dist/model/File.js +14 -14
- package/dist/model/FileAttachmentUploadObject.js +14 -14
- package/dist/model/Filter.js +2 -2
- package/dist/model/FilterManager.js +2 -2
- package/dist/model/Form.js +13 -13
- package/dist/model/FormSection.js +2 -2
- package/dist/model/FormSubmission.js +14 -14
- 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 +9 -9
- 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 +14 -14
- package/dist/model/ImageUploadObject.js +14 -14
- package/dist/model/InputPart.js +12 -12
- 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 +29 -29
- package/dist/model/MeetingEventTimezone.js +2 -2
- package/dist/model/MeetingInfo.js +2 -2
- package/dist/model/Member.js +9 -9
- 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 +13 -13
- 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 +13 -13
- package/dist/model/PayoutInput.js +2 -2
- package/dist/model/PayoutResponse.js +2 -2
- package/dist/model/PhoneNumber.js +13 -13
- 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 +160 -0
- package/dist/model/RestApplicationResponse.js +174 -0
- package/dist/model/ScreenSchema.js +2 -2
- package/dist/model/SimulcastInfo.js +2 -2
- package/dist/model/SiteInput.js +156 -0
- package/dist/model/SiteResponse.js +190 -0
- package/dist/model/SiteTypeInput.js +146 -0
- package/dist/model/SiteTypeResponse.js +146 -0
- package/dist/model/SkinField.js +9 -9
- 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 +12 -12
- package/dist/model/TransferInput.js +2 -2
- package/dist/model/TransferResponse.js +2 -2
- package/dist/model/TransferResponsePaymentMethodDetails.js +12 -12
- package/dist/model/TraversalRelationResponse.js +2 -2
- package/dist/model/User.js +9 -9
- package/dist/model/UserDataPayload.js +9 -9
- package/dist/model/UserDomain.js +2 -2
- package/dist/model/UserInvite.js +14 -14
- package/dist/model/UserInviteInput.js +2 -2
- package/dist/model/UserSchema.js +9 -9
- package/dist/model/UserTag.js +2 -2
- package/dist/model/Userid.js +2 -2
- package/dist/model/Video.js +33 -33
- package/dist/model/VideoLiveUrl.js +13 -13
- package/dist/model/VideoSchema.js +41 -41
- package/dist/model/VideoUploadObject.js +33 -33
- package/dist/model/ZeusPortalCategory.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,611 @@
|
|
|
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(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : 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
|
+
* Callback function to receive the result of the createSite operation.
|
|
49
|
+
* @callback module:api/SitesApi~createSiteCallback
|
|
50
|
+
* @param {String} error Error message, if any.
|
|
51
|
+
* @param {module:model/SiteResponse} data The data returned by the service call.
|
|
52
|
+
* @param {String} response The complete HTTP response.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Create a site
|
|
57
|
+
* @param {Object} opts Optional parameters
|
|
58
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
59
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
60
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
61
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
62
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
63
|
+
* @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)
|
|
64
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
65
|
+
* @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
|
|
66
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
67
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
68
|
+
* @param {module:api/SitesApi~createSiteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
69
|
+
* data is of type: {@link module:model/SiteResponse}
|
|
70
|
+
*/
|
|
71
|
+
return _createClass(SitesApi, [{
|
|
72
|
+
key: "createSite",
|
|
73
|
+
value: function createSite(opts, callback) {
|
|
74
|
+
opts = opts || {};
|
|
75
|
+
var postBody = null;
|
|
76
|
+
var pathParams = {};
|
|
77
|
+
var queryParams = {};
|
|
78
|
+
var headerParams = {
|
|
79
|
+
'Authorization': opts['authorization'],
|
|
80
|
+
'cacheduration': opts['cacheduration'],
|
|
81
|
+
'cachegroup': opts['cachegroup'],
|
|
82
|
+
'cachekey': opts['cachekey'],
|
|
83
|
+
'cachescope': opts['cachescope'],
|
|
84
|
+
'cacheuser': opts['cacheuser'],
|
|
85
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
86
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
87
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
88
|
+
'transactionid': opts['transactionid']
|
|
89
|
+
};
|
|
90
|
+
var formParams = {};
|
|
91
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
92
|
+
var contentTypes = [];
|
|
93
|
+
var accepts = ['application/json'];
|
|
94
|
+
var returnType = _SiteResponse["default"];
|
|
95
|
+
return this.apiClient.callApi('/graph/data/sites', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Callback function to receive the result of the createSiteType operation.
|
|
100
|
+
* @callback module:api/SitesApi~createSiteTypeCallback
|
|
101
|
+
* @param {String} error Error message, if any.
|
|
102
|
+
* @param {module:model/SiteTypeResponse} data The data returned by the service call.
|
|
103
|
+
* @param {String} response The complete HTTP response.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Create a site type
|
|
108
|
+
* @param {Object} opts Optional parameters
|
|
109
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
110
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
111
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
112
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
113
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
114
|
+
* @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)
|
|
115
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
116
|
+
* @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
|
|
117
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
118
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
119
|
+
* @param {module:model/SiteTypeInput} [siteTypeInput]
|
|
120
|
+
* @param {module:api/SitesApi~createSiteTypeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
121
|
+
* data is of type: {@link module:model/SiteTypeResponse}
|
|
122
|
+
*/
|
|
123
|
+
}, {
|
|
124
|
+
key: "createSiteType",
|
|
125
|
+
value: function createSiteType(opts, callback) {
|
|
126
|
+
opts = opts || {};
|
|
127
|
+
var postBody = opts['siteTypeInput'];
|
|
128
|
+
var pathParams = {};
|
|
129
|
+
var queryParams = {};
|
|
130
|
+
var headerParams = {
|
|
131
|
+
'Authorization': opts['authorization'],
|
|
132
|
+
'cacheduration': opts['cacheduration'],
|
|
133
|
+
'cachegroup': opts['cachegroup'],
|
|
134
|
+
'cachekey': opts['cachekey'],
|
|
135
|
+
'cachescope': opts['cachescope'],
|
|
136
|
+
'cacheuser': opts['cacheuser'],
|
|
137
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
138
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
139
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
140
|
+
'transactionid': opts['transactionid']
|
|
141
|
+
};
|
|
142
|
+
var formParams = {};
|
|
143
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
144
|
+
var contentTypes = [];
|
|
145
|
+
var accepts = ['application/json'];
|
|
146
|
+
var returnType = _SiteTypeResponse["default"];
|
|
147
|
+
return this.apiClient.callApi('/graph/data/sites/sitetypes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Callback function to receive the result of the deleteSite operation.
|
|
152
|
+
* @callback module:api/SitesApi~deleteSiteCallback
|
|
153
|
+
* @param {String} error Error message, if any.
|
|
154
|
+
* @param data This operation does not return a value.
|
|
155
|
+
* @param {String} response The complete HTTP response.
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Delete a site
|
|
160
|
+
* @param {Number} id
|
|
161
|
+
* @param {Object} opts Optional parameters
|
|
162
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
163
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
164
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
165
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
166
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
167
|
+
* @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)
|
|
168
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
169
|
+
* @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
|
|
170
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
171
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
172
|
+
* @param {module:api/SitesApi~deleteSiteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
173
|
+
*/
|
|
174
|
+
}, {
|
|
175
|
+
key: "deleteSite",
|
|
176
|
+
value: function deleteSite(id, opts, callback) {
|
|
177
|
+
opts = opts || {};
|
|
178
|
+
var postBody = null;
|
|
179
|
+
// verify the required parameter 'id' is set
|
|
180
|
+
if (id === undefined || id === null) {
|
|
181
|
+
throw new Error("Missing the required parameter 'id' when calling deleteSite");
|
|
182
|
+
}
|
|
183
|
+
var pathParams = {
|
|
184
|
+
'id': id
|
|
185
|
+
};
|
|
186
|
+
var queryParams = {};
|
|
187
|
+
var headerParams = {
|
|
188
|
+
'Authorization': opts['authorization'],
|
|
189
|
+
'cacheduration': opts['cacheduration'],
|
|
190
|
+
'cachegroup': opts['cachegroup'],
|
|
191
|
+
'cachekey': opts['cachekey'],
|
|
192
|
+
'cachescope': opts['cachescope'],
|
|
193
|
+
'cacheuser': opts['cacheuser'],
|
|
194
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
195
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
196
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
197
|
+
'transactionid': opts['transactionid']
|
|
198
|
+
};
|
|
199
|
+
var formParams = {};
|
|
200
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
201
|
+
var contentTypes = [];
|
|
202
|
+
var accepts = [];
|
|
203
|
+
var returnType = null;
|
|
204
|
+
return this.apiClient.callApi('/graph/data/sites/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Callback function to receive the result of the deleteSiteType operation.
|
|
209
|
+
* @callback module:api/SitesApi~deleteSiteTypeCallback
|
|
210
|
+
* @param {String} error Error message, if any.
|
|
211
|
+
* @param data This operation does not return a value.
|
|
212
|
+
* @param {String} response The complete HTTP response.
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Delete a site type
|
|
217
|
+
* @param {Number} id
|
|
218
|
+
* @param {Object} opts Optional parameters
|
|
219
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
220
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
221
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
222
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
223
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
224
|
+
* @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)
|
|
225
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
226
|
+
* @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
|
|
227
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
228
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
229
|
+
* @param {module:api/SitesApi~deleteSiteTypeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
230
|
+
*/
|
|
231
|
+
}, {
|
|
232
|
+
key: "deleteSiteType",
|
|
233
|
+
value: function deleteSiteType(id, opts, callback) {
|
|
234
|
+
opts = opts || {};
|
|
235
|
+
var postBody = null;
|
|
236
|
+
// verify the required parameter 'id' is set
|
|
237
|
+
if (id === undefined || id === null) {
|
|
238
|
+
throw new Error("Missing the required parameter 'id' when calling deleteSiteType");
|
|
239
|
+
}
|
|
240
|
+
var pathParams = {
|
|
241
|
+
'id': id
|
|
242
|
+
};
|
|
243
|
+
var queryParams = {};
|
|
244
|
+
var headerParams = {
|
|
245
|
+
'Authorization': opts['authorization'],
|
|
246
|
+
'cacheduration': opts['cacheduration'],
|
|
247
|
+
'cachegroup': opts['cachegroup'],
|
|
248
|
+
'cachekey': opts['cachekey'],
|
|
249
|
+
'cachescope': opts['cachescope'],
|
|
250
|
+
'cacheuser': opts['cacheuser'],
|
|
251
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
252
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
253
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
254
|
+
'transactionid': opts['transactionid']
|
|
255
|
+
};
|
|
256
|
+
var formParams = {};
|
|
257
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
258
|
+
var contentTypes = [];
|
|
259
|
+
var accepts = [];
|
|
260
|
+
var returnType = null;
|
|
261
|
+
return this.apiClient.callApi('/graph/data/sites/sitetypes/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Callback function to receive the result of the getSiteById operation.
|
|
266
|
+
* @callback module:api/SitesApi~getSiteByIdCallback
|
|
267
|
+
* @param {String} error Error message, if any.
|
|
268
|
+
* @param {module:model/SiteResponse} data The data returned by the service call.
|
|
269
|
+
* @param {String} response The complete HTTP response.
|
|
270
|
+
*/
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Get a site by id
|
|
274
|
+
* @param {Number} id
|
|
275
|
+
* @param {Object} opts Optional parameters
|
|
276
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
277
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
278
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
279
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
280
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
281
|
+
* @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)
|
|
282
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
283
|
+
* @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
|
|
284
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
285
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
286
|
+
* @param {module:api/SitesApi~getSiteByIdCallback} callback The callback function, accepting three arguments: error, data, response
|
|
287
|
+
* data is of type: {@link module:model/SiteResponse}
|
|
288
|
+
*/
|
|
289
|
+
}, {
|
|
290
|
+
key: "getSiteById",
|
|
291
|
+
value: function getSiteById(id, opts, callback) {
|
|
292
|
+
opts = opts || {};
|
|
293
|
+
var postBody = null;
|
|
294
|
+
// verify the required parameter 'id' is set
|
|
295
|
+
if (id === undefined || id === null) {
|
|
296
|
+
throw new Error("Missing the required parameter 'id' when calling getSiteById");
|
|
297
|
+
}
|
|
298
|
+
var pathParams = {
|
|
299
|
+
'id': id
|
|
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 = _SiteResponse["default"];
|
|
319
|
+
return this.apiClient.callApi('/graph/data/sites/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Callback function to receive the result of the getSiteTypeById operation.
|
|
324
|
+
* @callback module:api/SitesApi~getSiteTypeByIdCallback
|
|
325
|
+
* @param {String} error Error message, if any.
|
|
326
|
+
* @param {module:model/SiteTypeResponse} data The data returned by the service call.
|
|
327
|
+
* @param {String} response The complete HTTP response.
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Get a site type by id
|
|
332
|
+
* @param {Number} id
|
|
333
|
+
* @param {Object} opts Optional parameters
|
|
334
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
335
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
336
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
337
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
338
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
339
|
+
* @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)
|
|
340
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
341
|
+
* @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
|
|
342
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
343
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
344
|
+
* @param {module:api/SitesApi~getSiteTypeByIdCallback} callback The callback function, accepting three arguments: error, data, response
|
|
345
|
+
* data is of type: {@link module:model/SiteTypeResponse}
|
|
346
|
+
*/
|
|
347
|
+
}, {
|
|
348
|
+
key: "getSiteTypeById",
|
|
349
|
+
value: function getSiteTypeById(id, opts, callback) {
|
|
350
|
+
opts = opts || {};
|
|
351
|
+
var postBody = null;
|
|
352
|
+
// verify the required parameter 'id' is set
|
|
353
|
+
if (id === undefined || id === null) {
|
|
354
|
+
throw new Error("Missing the required parameter 'id' when calling getSiteTypeById");
|
|
355
|
+
}
|
|
356
|
+
var pathParams = {
|
|
357
|
+
'id': id
|
|
358
|
+
};
|
|
359
|
+
var queryParams = {};
|
|
360
|
+
var headerParams = {
|
|
361
|
+
'Authorization': opts['authorization'],
|
|
362
|
+
'cacheduration': opts['cacheduration'],
|
|
363
|
+
'cachegroup': opts['cachegroup'],
|
|
364
|
+
'cachekey': opts['cachekey'],
|
|
365
|
+
'cachescope': opts['cachescope'],
|
|
366
|
+
'cacheuser': opts['cacheuser'],
|
|
367
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
368
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
369
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
370
|
+
'transactionid': opts['transactionid']
|
|
371
|
+
};
|
|
372
|
+
var formParams = {};
|
|
373
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
374
|
+
var contentTypes = [];
|
|
375
|
+
var accepts = ['application/json'];
|
|
376
|
+
var returnType = _SiteTypeResponse["default"];
|
|
377
|
+
return this.apiClient.callApi('/graph/data/sites/sitetypes/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Callback function to receive the result of the getSiteTypes operation.
|
|
382
|
+
* @callback module:api/SitesApi~getSiteTypesCallback
|
|
383
|
+
* @param {String} error Error message, if any.
|
|
384
|
+
* @param {Array.<module:model/SiteTypeResponse>} data The data returned by the service call.
|
|
385
|
+
* @param {String} response The complete HTTP response.
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Get all site types
|
|
390
|
+
* @param {Object} opts Optional parameters
|
|
391
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
392
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
393
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
394
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
395
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
396
|
+
* @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)
|
|
397
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
398
|
+
* @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
|
|
399
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
400
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
401
|
+
* @param {Number} [startindex]
|
|
402
|
+
* @param {Number} [count]
|
|
403
|
+
* @param {module:api/SitesApi~getSiteTypesCallback} callback The callback function, accepting three arguments: error, data, response
|
|
404
|
+
* data is of type: {@link Array.<module:model/SiteTypeResponse>}
|
|
405
|
+
*/
|
|
406
|
+
}, {
|
|
407
|
+
key: "getSiteTypes",
|
|
408
|
+
value: function getSiteTypes(opts, callback) {
|
|
409
|
+
opts = opts || {};
|
|
410
|
+
var postBody = null;
|
|
411
|
+
var pathParams = {};
|
|
412
|
+
var queryParams = {
|
|
413
|
+
'startindex': opts['startindex'],
|
|
414
|
+
'count': opts['count']
|
|
415
|
+
};
|
|
416
|
+
var headerParams = {
|
|
417
|
+
'Authorization': opts['authorization'],
|
|
418
|
+
'cacheduration': opts['cacheduration'],
|
|
419
|
+
'cachegroup': opts['cachegroup'],
|
|
420
|
+
'cachekey': opts['cachekey'],
|
|
421
|
+
'cachescope': opts['cachescope'],
|
|
422
|
+
'cacheuser': opts['cacheuser'],
|
|
423
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
424
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
425
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
426
|
+
'transactionid': opts['transactionid']
|
|
427
|
+
};
|
|
428
|
+
var formParams = {};
|
|
429
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
430
|
+
var contentTypes = [];
|
|
431
|
+
var accepts = ['application/json'];
|
|
432
|
+
var returnType = [_SiteTypeResponse["default"]];
|
|
433
|
+
return this.apiClient.callApi('/graph/data/sites/sitetypes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Callback function to receive the result of the getSites operation.
|
|
438
|
+
* @callback module:api/SitesApi~getSitesCallback
|
|
439
|
+
* @param {String} error Error message, if any.
|
|
440
|
+
* @param {Array.<module:model/SiteResponse>} data The data returned by the service call.
|
|
441
|
+
* @param {String} response The complete HTTP response.
|
|
442
|
+
*/
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Get all sites
|
|
446
|
+
* @param {Object} opts Optional parameters
|
|
447
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
448
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
449
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
450
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
451
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
452
|
+
* @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)
|
|
453
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
454
|
+
* @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
|
|
455
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
456
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
457
|
+
* @param {Number} [sitetypeid]
|
|
458
|
+
* @param {Number} [startindex]
|
|
459
|
+
* @param {Number} [count]
|
|
460
|
+
* @param {module:api/SitesApi~getSitesCallback} callback The callback function, accepting three arguments: error, data, response
|
|
461
|
+
* data is of type: {@link Array.<module:model/SiteResponse>}
|
|
462
|
+
*/
|
|
463
|
+
}, {
|
|
464
|
+
key: "getSites",
|
|
465
|
+
value: function getSites(opts, callback) {
|
|
466
|
+
opts = opts || {};
|
|
467
|
+
var postBody = null;
|
|
468
|
+
var pathParams = {};
|
|
469
|
+
var queryParams = {
|
|
470
|
+
'sitetypeid': opts['sitetypeid'],
|
|
471
|
+
'startindex': opts['startindex'],
|
|
472
|
+
'count': opts['count']
|
|
473
|
+
};
|
|
474
|
+
var headerParams = {
|
|
475
|
+
'Authorization': opts['authorization'],
|
|
476
|
+
'cacheduration': opts['cacheduration'],
|
|
477
|
+
'cachegroup': opts['cachegroup'],
|
|
478
|
+
'cachekey': opts['cachekey'],
|
|
479
|
+
'cachescope': opts['cachescope'],
|
|
480
|
+
'cacheuser': opts['cacheuser'],
|
|
481
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
482
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
483
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
484
|
+
'transactionid': opts['transactionid']
|
|
485
|
+
};
|
|
486
|
+
var formParams = {};
|
|
487
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
488
|
+
var contentTypes = [];
|
|
489
|
+
var accepts = ['application/json'];
|
|
490
|
+
var returnType = [_SiteResponse["default"]];
|
|
491
|
+
return this.apiClient.callApi('/graph/data/sites', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Callback function to receive the result of the updateSite operation.
|
|
496
|
+
* @callback module:api/SitesApi~updateSiteCallback
|
|
497
|
+
* @param {String} error Error message, if any.
|
|
498
|
+
* @param {module:model/SiteResponse} data The data returned by the service call.
|
|
499
|
+
* @param {String} response The complete HTTP response.
|
|
500
|
+
*/
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Update a site
|
|
504
|
+
* @param {Number} id
|
|
505
|
+
* @param {Object} opts Optional parameters
|
|
506
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
507
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
508
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
509
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
510
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
511
|
+
* @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)
|
|
512
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
513
|
+
* @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
|
|
514
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
515
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
516
|
+
* @param {module:api/SitesApi~updateSiteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
517
|
+
* data is of type: {@link module:model/SiteResponse}
|
|
518
|
+
*/
|
|
519
|
+
}, {
|
|
520
|
+
key: "updateSite",
|
|
521
|
+
value: function updateSite(id, opts, callback) {
|
|
522
|
+
opts = opts || {};
|
|
523
|
+
var postBody = null;
|
|
524
|
+
// verify the required parameter 'id' is set
|
|
525
|
+
if (id === undefined || id === null) {
|
|
526
|
+
throw new Error("Missing the required parameter 'id' when calling updateSite");
|
|
527
|
+
}
|
|
528
|
+
var pathParams = {
|
|
529
|
+
'id': id
|
|
530
|
+
};
|
|
531
|
+
var queryParams = {};
|
|
532
|
+
var headerParams = {
|
|
533
|
+
'Authorization': opts['authorization'],
|
|
534
|
+
'cacheduration': opts['cacheduration'],
|
|
535
|
+
'cachegroup': opts['cachegroup'],
|
|
536
|
+
'cachekey': opts['cachekey'],
|
|
537
|
+
'cachescope': opts['cachescope'],
|
|
538
|
+
'cacheuser': opts['cacheuser'],
|
|
539
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
540
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
541
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
542
|
+
'transactionid': opts['transactionid']
|
|
543
|
+
};
|
|
544
|
+
var formParams = {};
|
|
545
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
546
|
+
var contentTypes = [];
|
|
547
|
+
var accepts = ['application/json'];
|
|
548
|
+
var returnType = _SiteResponse["default"];
|
|
549
|
+
return this.apiClient.callApi('/graph/data/sites/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Callback function to receive the result of the updateSiteType operation.
|
|
554
|
+
* @callback module:api/SitesApi~updateSiteTypeCallback
|
|
555
|
+
* @param {String} error Error message, if any.
|
|
556
|
+
* @param {module:model/SiteTypeResponse} data The data returned by the service call.
|
|
557
|
+
* @param {String} response The complete HTTP response.
|
|
558
|
+
*/
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Update a site type
|
|
562
|
+
* @param {Number} id
|
|
563
|
+
* @param {Object} opts Optional parameters
|
|
564
|
+
* @param {String} [authorization] The authorization token of the logged in user
|
|
565
|
+
* @param {Number} [cacheduration] The how long the cache entry should persist
|
|
566
|
+
* @param {Array.<String>} [cachegroup] The cache group(s) the cache entry specified by the cachekey should be grouped to
|
|
567
|
+
* @param {Array.<String>} [cachekey] The key to cache the response or the key to remove if a post, put, or delete operation
|
|
568
|
+
* @param {module:model/String} [cachescope] The scope of storage of the cache item
|
|
569
|
+
* @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)
|
|
570
|
+
* @param {Number} [zeusportalPostasApp] The id of the application this operation is being performed as if the caller chooses to post as an organization page
|
|
571
|
+
* @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
|
|
572
|
+
* @param {Number} [zeusportalPostasSite] The id of the site this operation is being performed as if the caller chooses to post as an organization page
|
|
573
|
+
* @param {String} [transactionid] The id of the transaction this operation is being run in
|
|
574
|
+
* @param {module:model/SiteTypeInput} [siteTypeInput]
|
|
575
|
+
* @param {module:api/SitesApi~updateSiteTypeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
576
|
+
* data is of type: {@link module:model/SiteTypeResponse}
|
|
577
|
+
*/
|
|
578
|
+
}, {
|
|
579
|
+
key: "updateSiteType",
|
|
580
|
+
value: function updateSiteType(id, opts, callback) {
|
|
581
|
+
opts = opts || {};
|
|
582
|
+
var postBody = opts['siteTypeInput'];
|
|
583
|
+
// verify the required parameter 'id' is set
|
|
584
|
+
if (id === undefined || id === null) {
|
|
585
|
+
throw new Error("Missing the required parameter 'id' when calling updateSiteType");
|
|
586
|
+
}
|
|
587
|
+
var pathParams = {
|
|
588
|
+
'id': id
|
|
589
|
+
};
|
|
590
|
+
var queryParams = {};
|
|
591
|
+
var headerParams = {
|
|
592
|
+
'Authorization': opts['authorization'],
|
|
593
|
+
'cacheduration': opts['cacheduration'],
|
|
594
|
+
'cachegroup': opts['cachegroup'],
|
|
595
|
+
'cachekey': opts['cachekey'],
|
|
596
|
+
'cachescope': opts['cachescope'],
|
|
597
|
+
'cacheuser': opts['cacheuser'],
|
|
598
|
+
'zeusportal-postas-app': opts['zeusportalPostasApp'],
|
|
599
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
600
|
+
'zeusportal-postas-site': opts['zeusportalPostasSite'],
|
|
601
|
+
'transactionid': opts['transactionid']
|
|
602
|
+
};
|
|
603
|
+
var formParams = {};
|
|
604
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
605
|
+
var contentTypes = [];
|
|
606
|
+
var accepts = ['application/json'];
|
|
607
|
+
var returnType = _SiteTypeResponse["default"];
|
|
608
|
+
return this.apiClient.callApi('/graph/data/sites/sitetypes/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
609
|
+
}
|
|
610
|
+
}]);
|
|
611
|
+
}();
|
|
@@ -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.67
|
|
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
|
* SocialIntegration service.
|
|
29
29
|
* @module api/SocialIntegrationApi
|
|
30
|
-
* @version 0.1.
|
|
30
|
+
* @version 0.1.67
|
|
31
31
|
*/
|
|
32
32
|
var SocialIntegrationApi = exports["default"] = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
* gobodo-api
|
|
34
34
|
* REST Interface for Gobodo API
|
|
35
35
|
*
|
|
36
|
-
* The version of the OpenAPI document: 0.1.
|
|
36
|
+
* The version of the OpenAPI document: 0.1.67
|
|
37
37
|
* Contact: info@gobodo.io
|
|
38
38
|
*
|
|
39
39
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -44,7 +44,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
44
44
|
/**
|
|
45
45
|
* StripeAccounts service.
|
|
46
46
|
* @module api/StripeAccountsApi
|
|
47
|
-
* @version 0.1.
|
|
47
|
+
* @version 0.1.67
|
|
48
48
|
*/
|
|
49
49
|
var StripeAccountsApi = exports["default"] = /*#__PURE__*/function () {
|
|
50
50
|
/**
|