@gobodo/gobodo-api 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/README.md +742 -0
  2. package/dist/ApiClient.js +781 -0
  3. package/dist/api/ActionTypesApi.js +97 -0
  4. package/dist/api/AdCampaignsApi.js +392 -0
  5. package/dist/api/AdManagementApi.js +563 -0
  6. package/dist/api/AdminDataManagementApi.js +97 -0
  7. package/dist/api/AdsApi.js +301 -0
  8. package/dist/api/AttachmentsApi.js +361 -0
  9. package/dist/api/AuthenticationApi.js +292 -0
  10. package/dist/api/CategoriesApi.js +353 -0
  11. package/dist/api/CommentsApi.js +408 -0
  12. package/dist/api/ContentManagementApi.js +1171 -0
  13. package/dist/api/ConversationsApi.js +434 -0
  14. package/dist/api/DataSheetImportsApi.js +828 -0
  15. package/dist/api/DefaultApi.js +548 -0
  16. package/dist/api/DocumentsApi.js +635 -0
  17. package/dist/api/EntryPartsApi.js +670 -0
  18. package/dist/api/FacebookApi.js +80 -0
  19. package/dist/api/FieldsApi.js +199 -0
  20. package/dist/api/FilesApi.js +95 -0
  21. package/dist/api/FormsApi.js +885 -0
  22. package/dist/api/FunctionsApi.js +96 -0
  23. package/dist/api/GeocodeApi.js +277 -0
  24. package/dist/api/GoogleApi.js +80 -0
  25. package/dist/api/GraphActionsApi.js +523 -0
  26. package/dist/api/GraphObjectTypesApi.js +413 -0
  27. package/dist/api/GraphObjectsApi.js +3077 -0
  28. package/dist/api/GraphRelationshipTypesApi.js +831 -0
  29. package/dist/api/GraphRelationshipsApi.js +1500 -0
  30. package/dist/api/GraphSchemasApi.js +365 -0
  31. package/dist/api/GraphTraversalApi.js +291 -0
  32. package/dist/api/GraphsApi.js +571 -0
  33. package/dist/api/GroupsApi.js +568 -0
  34. package/dist/api/IAMApi.js +211 -0
  35. package/dist/api/ImagesApi.js +414 -0
  36. package/dist/api/InvitesApi.js +268 -0
  37. package/dist/api/LikesApi.js +601 -0
  38. package/dist/api/LinkedINApi.js +80 -0
  39. package/dist/api/LiveMeetingsApi.js +145 -0
  40. package/dist/api/MeetingEventsApi.js +286 -0
  41. package/dist/api/PagesApi.js +475 -0
  42. package/dist/api/PostsApi.js +262 -0
  43. package/dist/api/PrivateMessagesApi.js +752 -0
  44. package/dist/api/PublicationsApi.js +86 -0
  45. package/dist/api/ScreensApi.js +183 -0
  46. package/dist/api/SocialIntegrationApi.js +188 -0
  47. package/dist/api/StripeAccountsApi.js +461 -0
  48. package/dist/api/TagsApi.js +96 -0
  49. package/dist/api/TemplatesApi.js +183 -0
  50. package/dist/api/ThemeMappingsApi.js +178 -0
  51. package/dist/api/TransactionsApi.js +147 -0
  52. package/dist/api/TwitterApi.js +80 -0
  53. package/dist/api/UserTagsApi.js +467 -0
  54. package/dist/api/UsersApi.js +466 -0
  55. package/dist/api/UtilsApi.js +75 -0
  56. package/dist/api/VideosApi.js +564 -0
  57. package/dist/index.js +1295 -0
  58. package/dist/model/APIClient.js +180 -0
  59. package/dist/model/Account.js +315 -0
  60. package/dist/model/AchCreditTransfer.js +122 -0
  61. package/dist/model/AchDebit.js +140 -0
  62. package/dist/model/AcssDebit.js +106 -0
  63. package/dist/model/AddInvoiceItem.js +126 -0
  64. package/dist/model/Address.js +140 -0
  65. package/dist/model/Affirm.js +104 -0
  66. package/dist/model/AfterpayClearpay.js +113 -0
  67. package/dist/model/Alipay.js +95 -0
  68. package/dist/model/AlternateStatementDescriptors.js +104 -0
  69. package/dist/model/Alternative.js +104 -0
  70. package/dist/model/AmexExpressCheckout.js +86 -0
  71. package/dist/model/AmountDetails.js +97 -0
  72. package/dist/model/ApplePay.js +86 -0
  73. package/dist/model/Application.js +122 -0
  74. package/dist/model/ApplicationFee.js +267 -0
  75. package/dist/model/AppliesTo.js +95 -0
  76. package/dist/model/Article.js +272 -0
  77. package/dist/model/AuBecsDebit.js +95 -0
  78. package/dist/model/Authorization.js +93 -0
  79. package/dist/model/AutomaticPaymentMethodsPaymentIntent.js +95 -0
  80. package/dist/model/AutomaticTax.js +95 -0
  81. package/dist/model/BacsDebit.js +95 -0
  82. package/dist/model/BacsDebitPayments.js +95 -0
  83. package/dist/model/BalanceSettings.js +95 -0
  84. package/dist/model/BalanceTransaction.js +234 -0
  85. package/dist/model/BalanceTransactionSource.js +84 -0
  86. package/dist/model/Bancontact.js +180 -0
  87. package/dist/model/BankTransfer.js +106 -0
  88. package/dist/model/BillingDetails.js +124 -0
  89. package/dist/model/BillingThresholds.js +95 -0
  90. package/dist/model/Blik.js +86 -0
  91. package/dist/model/BlikMandateOptions.js +115 -0
  92. package/dist/model/BlikMandateOptionsOffSessionDetails.js +122 -0
  93. package/dist/model/Boleto.js +95 -0
  94. package/dist/model/Breakdown.js +108 -0
  95. package/dist/model/BusinessProfile.js +160 -0
  96. package/dist/model/Capabilities.js +383 -0
  97. package/dist/model/Card.js +247 -0
  98. package/dist/model/CardPresent.js +268 -0
  99. package/dist/model/CashBalance.js +135 -0
  100. package/dist/model/Charge.js +706 -0
  101. package/dist/model/ChargeCollection.js +146 -0
  102. package/dist/model/Checks.js +113 -0
  103. package/dist/model/Comment.js +210 -0
  104. package/dist/model/Company.js +238 -0
  105. package/dist/model/Computed.js +108 -0
  106. package/dist/model/Controller.js +104 -0
  107. package/dist/model/Coordinates.js +84 -0
  108. package/dist/model/Coupon.js +256 -0
  109. package/dist/model/CreateAccountResponse.js +95 -0
  110. package/dist/model/CreateAccountResponseFailureException.js +117 -0
  111. package/dist/model/CreateAccountResponseFailureExceptionCause.js +106 -0
  112. package/dist/model/CreateAccountResponseFailureExceptionCauseStackTrace.js +138 -0
  113. package/dist/model/CreateAccountResponseFailureExceptionCauseSuppressed.js +95 -0
  114. package/dist/model/CreateCustomerResponse.js +95 -0
  115. package/dist/model/CreateStripeAccountInput.js +129 -0
  116. package/dist/model/CreateStripeCustomerInput.js +95 -0
  117. package/dist/model/CreditedItems.js +104 -0
  118. package/dist/model/CurrencyOption.js +135 -0
  119. package/dist/model/CurrentPhase.js +104 -0
  120. package/dist/model/CustomField.js +104 -0
  121. package/dist/model/CustomUnitAmount.js +113 -0
  122. package/dist/model/Customer.js +400 -0
  123. package/dist/model/CustomerAcceptance.js +126 -0
  124. package/dist/model/CustomerBalance.js +86 -0
  125. package/dist/model/CustomerNotification.js +104 -0
  126. package/dist/model/CustomerTaxId.js +104 -0
  127. package/dist/model/DataObject.js +84 -0
  128. package/dist/model/DataSheetImport.js +320 -0
  129. package/dist/model/DataSheetImportPrivacySettings.js +93 -0
  130. package/dist/model/DataSheetImportSummary.js +120 -0
  131. package/dist/model/DateOfBirth.js +113 -0
  132. package/dist/model/DeclineChargeOn.js +104 -0
  133. package/dist/model/DefaultSettings.js +177 -0
  134. package/dist/model/Discount.js +104 -0
  135. package/dist/model/DiscountAmount.js +115 -0
  136. package/dist/model/Dispute.js +260 -0
  137. package/dist/model/Document.js +292 -0
  138. package/dist/model/DocumentPart.js +243 -0
  139. package/dist/model/DocumentPartType.js +160 -0
  140. package/dist/model/DocumentType.js +196 -0
  141. package/dist/model/EmailSent.js +104 -0
  142. package/dist/model/Eps.js +104 -0
  143. package/dist/model/Errors.js +113 -0
  144. package/dist/model/EuBankTransfer.js +95 -0
  145. package/dist/model/Evidence.js +410 -0
  146. package/dist/model/EvidenceDetails.js +122 -0
  147. package/dist/model/ExternalAccount.js +84 -0
  148. package/dist/model/ExternalAccountCollection.js +146 -0
  149. package/dist/model/Familymart.js +104 -0
  150. package/dist/model/Fee.js +131 -0
  151. package/dist/model/FeeRefund.js +182 -0
  152. package/dist/model/FeeRefundCollection.js +146 -0
  153. package/dist/model/FieldMapping.js +139 -0
  154. package/dist/model/Fields.js +462 -0
  155. package/dist/model/File.js +156 -0
  156. package/dist/model/FileAttachmentUpload.js +88 -0
  157. package/dist/model/FileAttachmentUploadObject.js +165 -0
  158. package/dist/model/FileLink.js +178 -0
  159. package/dist/model/FileLinkCollection.js +146 -0
  160. package/dist/model/Filter.js +84 -0
  161. package/dist/model/FilterManager.js +86 -0
  162. package/dist/model/FinancialAddress.js +148 -0
  163. package/dist/model/FinancialConnections.js +95 -0
  164. package/dist/model/Form.js +174 -0
  165. package/dist/model/FormSection.js +131 -0
  166. package/dist/model/FormSubmission.js +134 -0
  167. package/dist/model/Fpx.js +113 -0
  168. package/dist/model/FraudDetails.js +104 -0
  169. package/dist/model/FromQuote.js +115 -0
  170. package/dist/model/FutureRequirements.js +144 -0
  171. package/dist/model/GeneratedFrom.js +126 -0
  172. package/dist/model/Geocode.js +106 -0
  173. package/dist/model/GeocodePayload.js +88 -0
  174. package/dist/model/GeolocationInput.js +132 -0
  175. package/dist/model/Giropay.js +122 -0
  176. package/dist/model/GooglePay.js +86 -0
  177. package/dist/model/Grabpay.js +95 -0
  178. package/dist/model/Graph.js +213 -0
  179. package/dist/model/GraphAction.js +140 -0
  180. package/dist/model/GraphDatabaseService.js +129 -0
  181. package/dist/model/GraphGeocode.js +136 -0
  182. package/dist/model/GraphIteratorEntryPart.js +77 -0
  183. package/dist/model/GraphIteratorEntryPartStackTrace.js +138 -0
  184. package/dist/model/GraphObject.js +192 -0
  185. package/dist/model/GraphObjectDescriptorSchema.js +179 -0
  186. package/dist/model/GraphObjectPayload.js +151 -0
  187. package/dist/model/GraphObjectSchema.js +223 -0
  188. package/dist/model/GraphObjectType.js +254 -0
  189. package/dist/model/GraphObjectTypeSchema.js +254 -0
  190. package/dist/model/GraphOwner.js +93 -0
  191. package/dist/model/GraphRelation.js +133 -0
  192. package/dist/model/GraphRelationObjectObject.js +133 -0
  193. package/dist/model/GraphRelationship.js +143 -0
  194. package/dist/model/GraphRelationshipPayload.js +104 -0
  195. package/dist/model/GraphRelationshipType.js +309 -0
  196. package/dist/model/GraphSchema.js +262 -0
  197. package/dist/model/GraphTraversalInput.js +255 -0
  198. package/dist/model/Iban.js +122 -0
  199. package/dist/model/Ideal.js +162 -0
  200. package/dist/model/Image.js +192 -0
  201. package/dist/model/ImageUpload.js +88 -0
  202. package/dist/model/ImageUploadObject.js +192 -0
  203. package/dist/model/InlineObject.js +124 -0
  204. package/dist/model/InlineObject1.js +124 -0
  205. package/dist/model/InlineObject2.js +124 -0
  206. package/dist/model/InlineObject3.js +124 -0
  207. package/dist/model/InlineObject4.js +124 -0
  208. package/dist/model/InlineObject5.js +124 -0
  209. package/dist/model/InlineResponseDefault.js +124 -0
  210. package/dist/model/InputPart.js +106 -0
  211. package/dist/model/InputPartMediaType.js +113 -0
  212. package/dist/model/Installments.js +97 -0
  213. package/dist/model/InteracPresent.js +241 -0
  214. package/dist/model/Invoice.js +925 -0
  215. package/dist/model/InvoiceLineItem.js +329 -0
  216. package/dist/model/InvoiceLineItemCollection.js +146 -0
  217. package/dist/model/InvoiceLineItemPeriod.js +104 -0
  218. package/dist/model/InvoiceSettings.js +95 -0
  219. package/dist/model/JapanAddress.js +149 -0
  220. package/dist/model/JsonArray.js +252 -0
  221. package/dist/model/JsonNull.js +252 -0
  222. package/dist/model/JsonObject.js +252 -0
  223. package/dist/model/JsonPrimitive.js +288 -0
  224. package/dist/model/Klarna.js +104 -0
  225. package/dist/model/Konbini.js +97 -0
  226. package/dist/model/Lawson.js +104 -0
  227. package/dist/model/Level3.js +142 -0
  228. package/dist/model/LineItem.js +220 -0
  229. package/dist/model/LineItemCollection.js +146 -0
  230. package/dist/model/Link.js +140 -0
  231. package/dist/model/LiveStreamInfo.js +94 -0
  232. package/dist/model/Location.js +113 -0
  233. package/dist/model/Mandate.js +195 -0
  234. package/dist/model/MandateOptions.js +95 -0
  235. package/dist/model/Masterpass.js +124 -0
  236. package/dist/model/MeetingEvent.js +251 -0
  237. package/dist/model/MeetingEventTimezone.js +102 -0
  238. package/dist/model/MeetingInfo.js +126 -0
  239. package/dist/model/Member.js +212 -0
  240. package/dist/model/MemberGroupCategory.js +120 -0
  241. package/dist/model/MemberList.js +101 -0
  242. package/dist/model/MessageGroup.js +95 -0
  243. package/dist/model/Ministop.js +104 -0
  244. package/dist/model/MultiUse.js +86 -0
  245. package/dist/model/Multibanco.js +104 -0
  246. package/dist/model/MultipartBody.js +84 -0
  247. package/dist/model/MultipartFormDataInput.js +108 -0
  248. package/dist/model/Networks.js +104 -0
  249. package/dist/model/NextAction.js +249 -0
  250. package/dist/model/NextActionAlipayHandleRedirect.js +122 -0
  251. package/dist/model/NextActionCardAwaitNotification.js +104 -0
  252. package/dist/model/NextActionDisplayBankTransferInstructions.js +142 -0
  253. package/dist/model/NextActionDisplayBoletoDetails.js +122 -0
  254. package/dist/model/NextActionDisplayDetails.js +106 -0
  255. package/dist/model/NextActionKonbiniDisplayDetails.js +115 -0
  256. package/dist/model/NextActionOxxoDisplayDetails.js +113 -0
  257. package/dist/model/NextActionRedirectToUrl.js +104 -0
  258. package/dist/model/Objecttype.js +244 -0
  259. package/dist/model/Offline.js +86 -0
  260. package/dist/model/Online.js +104 -0
  261. package/dist/model/Outcome.js +160 -0
  262. package/dist/model/OwnershipDeclaration.js +113 -0
  263. package/dist/model/Oxxo.js +95 -0
  264. package/dist/model/P24.js +113 -0
  265. package/dist/model/PackageDimensions.js +122 -0
  266. package/dist/model/Page.js +169 -0
  267. package/dist/model/PageSchema.js +229 -0
  268. package/dist/model/Pageable.js +122 -0
  269. package/dist/model/Path.js +77 -0
  270. package/dist/model/PauseCollection.js +104 -0
  271. package/dist/model/PaymentIntent.js +534 -0
  272. package/dist/model/PaymentIntentInput.js +102 -0
  273. package/dist/model/PaymentIntentResponse.js +84 -0
  274. package/dist/model/PaymentMethod.js +120 -0
  275. package/dist/model/PaymentMethodDetails.js +480 -0
  276. package/dist/model/PaymentMethodOptions.js +152 -0
  277. package/dist/model/PaymentSettings.js +115 -0
  278. package/dist/model/PaymentSource.js +84 -0
  279. package/dist/model/PaymentSourceCollection.js +146 -0
  280. package/dist/model/Paynow.js +95 -0
  281. package/dist/model/PaynowDisplayQrCode.js +113 -0
  282. package/dist/model/PayoutSchedule.js +122 -0
  283. package/dist/model/PendingInvoiceItemInterval.js +104 -0
  284. package/dist/model/PendingUpdate.js +133 -0
  285. package/dist/model/Person.js +381 -0
  286. package/dist/model/Phase.js +286 -0
  287. package/dist/model/PhaseItem.js +157 -0
  288. package/dist/model/Plan.js +292 -0
  289. package/dist/model/Post.js +167 -0
  290. package/dist/model/Price.js +309 -0
  291. package/dist/model/PrivateMessage.js +222 -0
  292. package/dist/model/PrivateMessageConversation.js +222 -0
  293. package/dist/model/PrivateMessageConversationSchema.js +125 -0
  294. package/dist/model/Processing.js +106 -0
  295. package/dist/model/Product.js +310 -0
  296. package/dist/model/Profile.js +106 -0
  297. package/dist/model/Profiletype.js +106 -0
  298. package/dist/model/PromotionCode.js +220 -0
  299. package/dist/model/Promptpay.js +95 -0
  300. package/dist/model/PromptpayDisplayQrCode.js +122 -0
  301. package/dist/model/PropertyContainer.js +97 -0
  302. package/dist/model/ProrationDetails.js +97 -0
  303. package/dist/model/Quote.js +520 -0
  304. package/dist/model/RadarOptions.js +95 -0
  305. package/dist/model/Receipt.js +167 -0
  306. package/dist/model/Recurring.js +133 -0
  307. package/dist/model/Refund.js +332 -0
  308. package/dist/model/RefundCollection.js +146 -0
  309. package/dist/model/Relationship.js +140 -0
  310. package/dist/model/RelationshipMapping.js +159 -0
  311. package/dist/model/RenderingOptions.js +95 -0
  312. package/dist/model/RequestOptions.js +167 -0
  313. package/dist/model/RequestOptionsProxyCredential.js +84 -0
  314. package/dist/model/Requirements.js +162 -0
  315. package/dist/model/Restrictions.js +126 -0
  316. package/dist/model/Review.js +238 -0
  317. package/dist/model/Rule.js +113 -0
  318. package/dist/model/SamsungPay.js +86 -0
  319. package/dist/model/ScreenSchema.js +299 -0
  320. package/dist/model/Seicomart.js +104 -0
  321. package/dist/model/SepaCreditTransfer.js +113 -0
  322. package/dist/model/SepaDebit.js +142 -0
  323. package/dist/model/SepaDebitMandateOptions.js +86 -0
  324. package/dist/model/SepaDebitPayments.js +95 -0
  325. package/dist/model/Session.js +122 -0
  326. package/dist/model/Settings.js +185 -0
  327. package/dist/model/SettingsBranding.js +140 -0
  328. package/dist/model/SettingsCardIssuing.js +97 -0
  329. package/dist/model/SettingsCardPayments.js +124 -0
  330. package/dist/model/SettingsDashboard.js +104 -0
  331. package/dist/model/SettingsPayments.js +131 -0
  332. package/dist/model/SettingsPayouts.js +115 -0
  333. package/dist/model/SettingsTreasury.js +97 -0
  334. package/dist/model/SetupAttempt.js +280 -0
  335. package/dist/model/SetupIntent.js +376 -0
  336. package/dist/model/ShippingDetails.js +133 -0
  337. package/dist/model/SimulcastInfo.js +96 -0
  338. package/dist/model/SingleUse.js +104 -0
  339. package/dist/model/SkinField.js +462 -0
  340. package/dist/model/SocialGroup.js +273 -0
  341. package/dist/model/SocialGroupType.js +149 -0
  342. package/dist/model/Sofort.js +189 -0
  343. package/dist/model/Sort.js +93 -0
  344. package/dist/model/SortCode.js +113 -0
  345. package/dist/model/Spei.js +113 -0
  346. package/dist/model/StatusTransitions.js +113 -0
  347. package/dist/model/StatusUpdate.js +147 -0
  348. package/dist/model/Store.js +95 -0
  349. package/dist/model/Stores.js +130 -0
  350. package/dist/model/StreetAddress.js +111 -0
  351. package/dist/model/StripeAccount.js +111 -0
  352. package/dist/model/StripeCustomerAccount.js +111 -0
  353. package/dist/model/StripeError.js +202 -0
  354. package/dist/model/Subscription.js +556 -0
  355. package/dist/model/SubscriptionCollection.js +146 -0
  356. package/dist/model/SubscriptionData.js +104 -0
  357. package/dist/model/SubscriptionItem.js +195 -0
  358. package/dist/model/SubscriptionItemCollection.js +146 -0
  359. package/dist/model/SubscriptionSchedule.js +300 -0
  360. package/dist/model/Tax.js +115 -0
  361. package/dist/model/TaxAmount.js +124 -0
  362. package/dist/model/TaxCode.js +122 -0
  363. package/dist/model/TaxId.js +189 -0
  364. package/dist/model/TaxIdCollection.js +146 -0
  365. package/dist/model/TaxRate.js +214 -0
  366. package/dist/model/Template.js +131 -0
  367. package/dist/model/TemplateSchema.js +144 -0
  368. package/dist/model/TestClock.js +167 -0
  369. package/dist/model/ThemeMapping.js +124 -0
  370. package/dist/model/ThemeMappingPayload.js +122 -0
  371. package/dist/model/ThreeDSecure.js +122 -0
  372. package/dist/model/ThreeDSecureUsage.js +95 -0
  373. package/dist/model/ThresholdItemReason.js +104 -0
  374. package/dist/model/ThresholdReason.js +106 -0
  375. package/dist/model/Tier.js +131 -0
  376. package/dist/model/Tip.js +95 -0
  377. package/dist/model/TosAcceptance.js +122 -0
  378. package/dist/model/TotalDetails.js +124 -0
  379. package/dist/model/Transaction.js +84 -0
  380. package/dist/model/Transfer.js +285 -0
  381. package/dist/model/TransferData.js +124 -0
  382. package/dist/model/TransferReversal.js +220 -0
  383. package/dist/model/TransferReversalCollection.js +146 -0
  384. package/dist/model/TransformQuantity.js +104 -0
  385. package/dist/model/TransformUsage.js +104 -0
  386. package/dist/model/TraversalQuery.js +209 -0
  387. package/dist/model/TraversalQueryStartobjecttypes.js +179 -0
  388. package/dist/model/USBankAccount.js +140 -0
  389. package/dist/model/Upfront.js +126 -0
  390. package/dist/model/User.js +212 -0
  391. package/dist/model/UserDataPayload.js +212 -0
  392. package/dist/model/UserDomain.js +102 -0
  393. package/dist/model/UserInvite.js +191 -0
  394. package/dist/model/UserInviteInput.js +120 -0
  395. package/dist/model/UserSchema.js +212 -0
  396. package/dist/model/UserTag.js +124 -0
  397. package/dist/model/Verification.js +113 -0
  398. package/dist/model/VerificationDocument.js +140 -0
  399. package/dist/model/VerifyWithMicrodeposits.js +113 -0
  400. package/dist/model/Video.js +255 -0
  401. package/dist/model/VideoLiveUrl.js +84 -0
  402. package/dist/model/VideoSchema.js +284 -0
  403. package/dist/model/VideoUpload.js +88 -0
  404. package/dist/model/VideoUploadObject.js +228 -0
  405. package/dist/model/VisaCheckout.js +124 -0
  406. package/dist/model/Wallet.js +170 -0
  407. package/dist/model/Wechat.js +86 -0
  408. package/dist/model/WechatPay.js +104 -0
  409. package/dist/model/WechatPayDisplayQrCode.js +122 -0
  410. package/dist/model/WechatPayRedirectToAndroidApp.js +158 -0
  411. package/dist/model/WechatPayRedirectToIosApp.js +95 -0
  412. package/dist/model/Zengin.js +149 -0
  413. package/dist/model/ZeusPortalCategory.js +185 -0
  414. package/package.json +46 -0
@@ -0,0 +1,1171 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
+
10
+ var _Document = _interopRequireDefault(require("../model/Document"));
11
+
12
+ var _DocumentPart = _interopRequireDefault(require("../model/DocumentPart"));
13
+
14
+ var _InlineObject = _interopRequireDefault(require("../model/InlineObject4"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+
20
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
+
22
+ 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, descriptor.key, descriptor); } }
23
+
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
25
+
26
+ /**
27
+ * ContentManagement service.
28
+ * @module api/ContentManagementApi
29
+ * @version 0.1.2
30
+ */
31
+ var ContentManagementApi = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new ContentManagementApi.
34
+ * @alias module:api/ContentManagementApi
35
+ * @class
36
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
37
+ * default to {@link module:ApiClient#instance} if unspecified.
38
+ */
39
+ function ContentManagementApi(apiClient) {
40
+ _classCallCheck(this, ContentManagementApi);
41
+
42
+ this.apiClient = apiClient || _ApiClient["default"].instance;
43
+ }
44
+ /**
45
+ * Callback function to receive the result of the addDocumentPart operation.
46
+ * @callback module:api/ContentManagementApi~addDocumentPartCallback
47
+ * @param {String} error Error message, if any.
48
+ * @param {Array.<module:model/DocumentPart>} data The data returned by the service call.
49
+ * @param {String} response The complete HTTP response.
50
+ */
51
+
52
+ /**
53
+ * Create a new document
54
+ * @param {Number} docid
55
+ * @param {Array.<module:model/DocumentPart>} documentPart Document part or array of document parts to create
56
+ * @param {Object} opts Optional parameters
57
+ * @param {String} opts.authorization The authorization token of the logged in user
58
+ * @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
59
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
60
+ * @param {module:api/ContentManagementApi~addDocumentPartCallback} callback The callback function, accepting three arguments: error, data, response
61
+ * data is of type: {@link Array.<module:model/DocumentPart>}
62
+ */
63
+
64
+
65
+ _createClass(ContentManagementApi, [{
66
+ key: "addDocumentPart",
67
+ value: function addDocumentPart(docid, documentPart, opts, callback) {
68
+ opts = opts || {};
69
+ var postBody = documentPart; // verify the required parameter 'docid' is set
70
+
71
+ if (docid === undefined || docid === null) {
72
+ throw new Error("Missing the required parameter 'docid' when calling addDocumentPart");
73
+ } // verify the required parameter 'documentPart' is set
74
+
75
+
76
+ if (documentPart === undefined || documentPart === null) {
77
+ throw new Error("Missing the required parameter 'documentPart' when calling addDocumentPart");
78
+ }
79
+
80
+ var pathParams = {
81
+ 'docid': docid
82
+ };
83
+ var queryParams = {};
84
+ var headerParams = {
85
+ 'Authorization': opts['authorization'],
86
+ 'zeusportal-postas': opts['zeusportalPostas'],
87
+ 'transactionid': opts['transactionid']
88
+ };
89
+ var formParams = {};
90
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
91
+ var contentTypes = [];
92
+ var accepts = ['*/*'];
93
+ var returnType = [_DocumentPart["default"]];
94
+ return this.apiClient.callApi('/graph/data/articles/{docid}/entryparts', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
95
+ }
96
+ /**
97
+ * Callback function to receive the result of the changeDocPartType operation.
98
+ * @callback module:api/ContentManagementApi~changeDocPartTypeCallback
99
+ * @param {String} error Error message, if any.
100
+ * @param data This operation does not return a value.
101
+ * @param {String} response The complete HTTP response.
102
+ */
103
+
104
+ /**
105
+ * Changes the document part's type
106
+ * @param {Number} docpartid
107
+ * @param {Number} typeid
108
+ * @param {Object} opts Optional parameters
109
+ * @param {String} opts.authorization The authorization token of the logged in user
110
+ * @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
111
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
112
+ * @param {module:api/ContentManagementApi~changeDocPartTypeCallback} callback The callback function, accepting three arguments: error, data, response
113
+ */
114
+
115
+ }, {
116
+ key: "changeDocPartType",
117
+ value: function changeDocPartType(docpartid, typeid, opts, callback) {
118
+ opts = opts || {};
119
+ var postBody = null; // verify the required parameter 'docpartid' is set
120
+
121
+ if (docpartid === undefined || docpartid === null) {
122
+ throw new Error("Missing the required parameter 'docpartid' when calling changeDocPartType");
123
+ } // verify the required parameter 'typeid' is set
124
+
125
+
126
+ if (typeid === undefined || typeid === null) {
127
+ throw new Error("Missing the required parameter 'typeid' when calling changeDocPartType");
128
+ }
129
+
130
+ var pathParams = {
131
+ 'docpartid': docpartid,
132
+ 'typeid': typeid
133
+ };
134
+ var queryParams = {};
135
+ var headerParams = {
136
+ 'Authorization': opts['authorization'],
137
+ 'zeusportal-postas': opts['zeusportalPostas'],
138
+ 'transactionid': opts['transactionid']
139
+ };
140
+ var formParams = {};
141
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
142
+ var contentTypes = [];
143
+ var accepts = ['*/*'];
144
+ var returnType = null;
145
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}/changetype/{typeid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
146
+ }
147
+ /**
148
+ * Callback function to receive the result of the changeStatus operation.
149
+ * @callback module:api/ContentManagementApi~changeStatusCallback
150
+ * @param {String} error Error message, if any.
151
+ * @param data This operation does not return a value.
152
+ * @param {String} response The complete HTTP response.
153
+ */
154
+
155
+ /**
156
+ * @param {Number} id
157
+ * @param {Object} opts Optional parameters
158
+ * @param {String} opts.authorization The authorization token of the logged in user
159
+ * @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
160
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
161
+ * @param {Object.<String, {String: Object}>} opts.requestBody
162
+ * @param {module:api/ContentManagementApi~changeStatusCallback} callback The callback function, accepting three arguments: error, data, response
163
+ */
164
+
165
+ }, {
166
+ key: "changeStatus",
167
+ value: function changeStatus(id, opts, callback) {
168
+ opts = opts || {};
169
+ var postBody = opts['requestBody']; // verify the required parameter 'id' is set
170
+
171
+ if (id === undefined || id === null) {
172
+ throw new Error("Missing the required parameter 'id' when calling changeStatus");
173
+ }
174
+
175
+ var pathParams = {
176
+ 'id': id
177
+ };
178
+ var queryParams = {};
179
+ var headerParams = {
180
+ 'Authorization': opts['authorization'],
181
+ 'zeusportal-postas': opts['zeusportalPostas'],
182
+ 'transactionid': opts['transactionid']
183
+ };
184
+ var formParams = {};
185
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
186
+ var contentTypes = ['application/json'];
187
+ var accepts = ['*/*'];
188
+ var returnType = null;
189
+ return this.apiClient.callApi('/graph/data/articles/{id}/status', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
190
+ }
191
+ /**
192
+ * Callback function to receive the result of the copyDocument operation.
193
+ * @callback module:api/ContentManagementApi~copyDocumentCallback
194
+ * @param {String} error Error message, if any.
195
+ * @param {module:model/Document} data The data returned by the service call.
196
+ * @param {String} response The complete HTTP response.
197
+ */
198
+
199
+ /**
200
+ * Copies the specified document
201
+ * @param {Number} docid
202
+ * @param {Object} opts Optional parameters
203
+ * @param {String} opts.authorization The authorization token of the logged in user
204
+ * @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
205
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
206
+ * @param {module:api/ContentManagementApi~copyDocumentCallback} callback The callback function, accepting three arguments: error, data, response
207
+ * data is of type: {@link module:model/Document}
208
+ */
209
+
210
+ }, {
211
+ key: "copyDocument",
212
+ value: function copyDocument(docid, opts, callback) {
213
+ opts = opts || {};
214
+ var postBody = null; // verify the required parameter 'docid' is set
215
+
216
+ if (docid === undefined || docid === null) {
217
+ throw new Error("Missing the required parameter 'docid' when calling copyDocument");
218
+ }
219
+
220
+ var pathParams = {
221
+ 'docid': docid
222
+ };
223
+ var queryParams = {};
224
+ var headerParams = {
225
+ 'Authorization': opts['authorization'],
226
+ 'zeusportal-postas': opts['zeusportalPostas'],
227
+ 'transactionid': opts['transactionid']
228
+ };
229
+ var formParams = {};
230
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
231
+ var contentTypes = [];
232
+ var accepts = ['application/json'];
233
+ var returnType = _Document["default"];
234
+ return this.apiClient.callApi('/graph/data/articles/{docid}/copy', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
235
+ }
236
+ /**
237
+ * Callback function to receive the result of the copyDocumentPart operation.
238
+ * @callback module:api/ContentManagementApi~copyDocumentPartCallback
239
+ * @param {String} error Error message, if any.
240
+ * @param {module:model/InlineObject4} data The data returned by the service call.
241
+ * @param {String} response The complete HTTP response.
242
+ */
243
+
244
+ /**
245
+ * Create a copy of the document part attached to the same parent document part or Article as the original
246
+ * @param {Number} docpartid
247
+ * @param {Object} opts Optional parameters
248
+ * @param {String} opts.authorization The authorization token of the logged in user
249
+ * @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
250
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
251
+ * @param {module:api/ContentManagementApi~copyDocumentPartCallback} callback The callback function, accepting three arguments: error, data, response
252
+ * data is of type: {@link module:model/InlineObject4}
253
+ */
254
+
255
+ }, {
256
+ key: "copyDocumentPart",
257
+ value: function copyDocumentPart(docpartid, opts, callback) {
258
+ opts = opts || {};
259
+ var postBody = null; // verify the required parameter 'docpartid' is set
260
+
261
+ if (docpartid === undefined || docpartid === null) {
262
+ throw new Error("Missing the required parameter 'docpartid' when calling copyDocumentPart");
263
+ }
264
+
265
+ var pathParams = {
266
+ 'docpartid': docpartid
267
+ };
268
+ var queryParams = {};
269
+ var headerParams = {
270
+ 'Authorization': opts['authorization'],
271
+ 'zeusportal-postas': opts['zeusportalPostas'],
272
+ 'transactionid': opts['transactionid']
273
+ };
274
+ var formParams = {};
275
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
276
+ var contentTypes = [];
277
+ var accepts = ['*/*'];
278
+ var returnType = _InlineObject["default"];
279
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}/copy', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
280
+ }
281
+ /**
282
+ * Callback function to receive the result of the createChildDocumentPart operation.
283
+ * @callback module:api/ContentManagementApi~createChildDocumentPartCallback
284
+ * @param {String} error Error message, if any.
285
+ * @param {Array.<module:model/DocumentPart>} data The data returned by the service call.
286
+ * @param {String} response The complete HTTP response.
287
+ */
288
+
289
+ /**
290
+ * Create child document part(s)
291
+ * @param {Number} docpartid
292
+ * @param {Array.<module:model/DocumentPart>} documentPart Document part or array of document parts to create
293
+ * @param {Object} opts Optional parameters
294
+ * @param {String} opts.authorization The authorization token of the logged in user
295
+ * @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
296
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
297
+ * @param {module:api/ContentManagementApi~createChildDocumentPartCallback} callback The callback function, accepting three arguments: error, data, response
298
+ * data is of type: {@link Array.<module:model/DocumentPart>}
299
+ */
300
+
301
+ }, {
302
+ key: "createChildDocumentPart",
303
+ value: function createChildDocumentPart(docpartid, documentPart, opts, callback) {
304
+ opts = opts || {};
305
+ var postBody = documentPart; // verify the required parameter 'docpartid' is set
306
+
307
+ if (docpartid === undefined || docpartid === null) {
308
+ throw new Error("Missing the required parameter 'docpartid' when calling createChildDocumentPart");
309
+ } // verify the required parameter 'documentPart' is set
310
+
311
+
312
+ if (documentPart === undefined || documentPart === null) {
313
+ throw new Error("Missing the required parameter 'documentPart' when calling createChildDocumentPart");
314
+ }
315
+
316
+ var pathParams = {
317
+ 'docpartid': docpartid
318
+ };
319
+ var queryParams = {};
320
+ var headerParams = {
321
+ 'Authorization': opts['authorization'],
322
+ 'zeusportal-postas': opts['zeusportalPostas'],
323
+ 'transactionid': opts['transactionid']
324
+ };
325
+ var formParams = {};
326
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
327
+ var contentTypes = [];
328
+ var accepts = ['*/*'];
329
+ var returnType = [_DocumentPart["default"]];
330
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}/entryparts', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
331
+ }
332
+ /**
333
+ * Callback function to receive the result of the createDocument operation.
334
+ * @callback module:api/ContentManagementApi~createDocumentCallback
335
+ * @param {String} error Error message, if any.
336
+ * @param {Array.<module:model/Document>} data The data returned by the service call.
337
+ * @param {String} response The complete HTTP response.
338
+ */
339
+
340
+ /**
341
+ * Create a new document
342
+ * @param {Array.<module:model/Document>} document Document or array of documents to create
343
+ * @param {Object} opts Optional parameters
344
+ * @param {String} opts.authorization The authorization token of the logged in user
345
+ * @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
346
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
347
+ * @param {module:api/ContentManagementApi~createDocumentCallback} callback The callback function, accepting three arguments: error, data, response
348
+ * data is of type: {@link Array.<module:model/Document>}
349
+ */
350
+
351
+ }, {
352
+ key: "createDocument",
353
+ value: function createDocument(document, opts, callback) {
354
+ opts = opts || {};
355
+ var postBody = document; // verify the required parameter 'document' is set
356
+
357
+ if (document === undefined || document === null) {
358
+ throw new Error("Missing the required parameter 'document' when calling createDocument");
359
+ }
360
+
361
+ var pathParams = {};
362
+ var queryParams = {};
363
+ var headerParams = {
364
+ 'Authorization': opts['authorization'],
365
+ 'zeusportal-postas': opts['zeusportalPostas'],
366
+ 'transactionid': opts['transactionid']
367
+ };
368
+ var formParams = {};
369
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
370
+ var contentTypes = ['application/json'];
371
+ var accepts = ['application/json'];
372
+ var returnType = [_Document["default"]];
373
+ return this.apiClient.callApi('/graph/data/articles', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
374
+ }
375
+ /**
376
+ * Callback function to receive the result of the createDocumentPart operation.
377
+ * @callback module:api/ContentManagementApi~createDocumentPartCallback
378
+ * @param {String} error Error message, if any.
379
+ * @param {module:model/InlineObject4} data The data returned by the service call.
380
+ * @param {String} response The complete HTTP response.
381
+ */
382
+
383
+ /**
384
+ * Create a new document part
385
+ * @param {Array.<module:model/DocumentPart>} documentPart Document part or array of document parts to create
386
+ * @param {Object} opts Optional parameters
387
+ * @param {String} opts.authorization The authorization token of the logged in user
388
+ * @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
389
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
390
+ * @param {module:api/ContentManagementApi~createDocumentPartCallback} callback The callback function, accepting three arguments: error, data, response
391
+ * data is of type: {@link module:model/InlineObject4}
392
+ */
393
+
394
+ }, {
395
+ key: "createDocumentPart",
396
+ value: function createDocumentPart(documentPart, opts, callback) {
397
+ opts = opts || {};
398
+ var postBody = documentPart; // verify the required parameter 'documentPart' is set
399
+
400
+ if (documentPart === undefined || documentPart === null) {
401
+ throw new Error("Missing the required parameter 'documentPart' when calling createDocumentPart");
402
+ }
403
+
404
+ var pathParams = {};
405
+ var queryParams = {};
406
+ var headerParams = {
407
+ 'Authorization': opts['authorization'],
408
+ 'zeusportal-postas': opts['zeusportalPostas'],
409
+ 'transactionid': opts['transactionid']
410
+ };
411
+ var formParams = {};
412
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
413
+ var contentTypes = [];
414
+ var accepts = ['*/*'];
415
+ var returnType = _InlineObject["default"];
416
+ return this.apiClient.callApi('/graph/data/entryparts', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
417
+ }
418
+ /**
419
+ * Callback function to receive the result of the deleteDocPart operation.
420
+ * @callback module:api/ContentManagementApi~deleteDocPartCallback
421
+ * @param {String} error Error message, if any.
422
+ * @param data This operation does not return a value.
423
+ * @param {String} response The complete HTTP response.
424
+ */
425
+
426
+ /**
427
+ * Delete Document Part
428
+ * Delete an individual entry part
429
+ * @param {Number} docpartid
430
+ * @param {Object} opts Optional parameters
431
+ * @param {String} opts.authorization The authorization token of the logged in user
432
+ * @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
433
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
434
+ * @param {module:api/ContentManagementApi~deleteDocPartCallback} callback The callback function, accepting three arguments: error, data, response
435
+ */
436
+
437
+ }, {
438
+ key: "deleteDocPart",
439
+ value: function deleteDocPart(docpartid, opts, callback) {
440
+ opts = opts || {};
441
+ var postBody = null; // verify the required parameter 'docpartid' is set
442
+
443
+ if (docpartid === undefined || docpartid === null) {
444
+ throw new Error("Missing the required parameter 'docpartid' when calling deleteDocPart");
445
+ }
446
+
447
+ var pathParams = {
448
+ 'docpartid': docpartid
449
+ };
450
+ var queryParams = {};
451
+ var headerParams = {
452
+ 'Authorization': opts['authorization'],
453
+ 'zeusportal-postas': opts['zeusportalPostas'],
454
+ 'transactionid': opts['transactionid']
455
+ };
456
+ var formParams = {};
457
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
458
+ var contentTypes = [];
459
+ var accepts = ['application/json'];
460
+ var returnType = null;
461
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
462
+ }
463
+ /**
464
+ * Callback function to receive the result of the deleteDocument operation.
465
+ * @callback module:api/ContentManagementApi~deleteDocumentCallback
466
+ * @param {String} error Error message, if any.
467
+ * @param data This operation does not return a value.
468
+ * @param {String} response The complete HTTP response.
469
+ */
470
+
471
+ /**
472
+ * Delete Document Part
473
+ * Delete an individual document
474
+ * @param {Number} docid
475
+ * @param {Object} opts Optional parameters
476
+ * @param {String} opts.authorization The authorization token of the logged in user
477
+ * @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
478
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
479
+ * @param {module:api/ContentManagementApi~deleteDocumentCallback} callback The callback function, accepting three arguments: error, data, response
480
+ */
481
+
482
+ }, {
483
+ key: "deleteDocument",
484
+ value: function deleteDocument(docid, opts, callback) {
485
+ opts = opts || {};
486
+ var postBody = null; // verify the required parameter 'docid' is set
487
+
488
+ if (docid === undefined || docid === null) {
489
+ throw new Error("Missing the required parameter 'docid' when calling deleteDocument");
490
+ }
491
+
492
+ var pathParams = {
493
+ 'docid': docid
494
+ };
495
+ var queryParams = {};
496
+ var headerParams = {
497
+ 'Authorization': opts['authorization'],
498
+ 'zeusportal-postas': opts['zeusportalPostas'],
499
+ 'transactionid': opts['transactionid']
500
+ };
501
+ var formParams = {};
502
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
503
+ var contentTypes = [];
504
+ var accepts = ['application/json'];
505
+ var returnType = null;
506
+ return this.apiClient.callApi('/graph/data/articles/{docid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
507
+ }
508
+ /**
509
+ * Callback function to receive the result of the editDocument operation.
510
+ * @callback module:api/ContentManagementApi~editDocumentCallback
511
+ * @param {String} error Error message, if any.
512
+ * @param {module:model/Document} data The data returned by the service call.
513
+ * @param {String} response The complete HTTP response.
514
+ */
515
+
516
+ /**
517
+ * Updates to the document
518
+ * @param {Number} docid
519
+ * @param {module:model/Document} document The document to update
520
+ * @param {Object} opts Optional parameters
521
+ * @param {String} opts.authorization The authorization token of the logged in user
522
+ * @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
523
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
524
+ * @param {module:api/ContentManagementApi~editDocumentCallback} callback The callback function, accepting three arguments: error, data, response
525
+ * data is of type: {@link module:model/Document}
526
+ */
527
+
528
+ }, {
529
+ key: "editDocument",
530
+ value: function editDocument(docid, document, opts, callback) {
531
+ opts = opts || {};
532
+ var postBody = document; // verify the required parameter 'docid' is set
533
+
534
+ if (docid === undefined || docid === null) {
535
+ throw new Error("Missing the required parameter 'docid' when calling editDocument");
536
+ } // verify the required parameter 'document' is set
537
+
538
+
539
+ if (document === undefined || document === null) {
540
+ throw new Error("Missing the required parameter 'document' when calling editDocument");
541
+ }
542
+
543
+ var pathParams = {
544
+ 'docid': docid
545
+ };
546
+ var queryParams = {};
547
+ var headerParams = {
548
+ 'Authorization': opts['authorization'],
549
+ 'zeusportal-postas': opts['zeusportalPostas'],
550
+ 'transactionid': opts['transactionid']
551
+ };
552
+ var formParams = {};
553
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
554
+ var contentTypes = ['application/json'];
555
+ var accepts = ['application/json'];
556
+ var returnType = _Document["default"];
557
+ return this.apiClient.callApi('/graph/data/articles/{docid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
558
+ }
559
+ /**
560
+ * Callback function to receive the result of the get26 operation.
561
+ * @callback module:api/ContentManagementApi~get26Callback
562
+ * @param {String} error Error message, if any.
563
+ * @param data This operation does not return a value.
564
+ * @param {String} response The complete HTTP response.
565
+ */
566
+
567
+ /**
568
+ * Root for the API
569
+ * @param {Object} opts Optional parameters
570
+ * @param {String} opts.authorization The authorization token of the logged in user
571
+ * @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
572
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
573
+ * @param {module:api/ContentManagementApi~get26Callback} callback The callback function, accepting three arguments: error, data, response
574
+ */
575
+
576
+ }, {
577
+ key: "get26",
578
+ value: function get26(opts, callback) {
579
+ opts = opts || {};
580
+ var postBody = null;
581
+ var pathParams = {};
582
+ var queryParams = {};
583
+ var headerParams = {
584
+ 'Authorization': opts['authorization'],
585
+ 'zeusportal-postas': opts['zeusportalPostas'],
586
+ 'transactionid': opts['transactionid']
587
+ };
588
+ var formParams = {};
589
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
590
+ var contentTypes = [];
591
+ var accepts = ['*/*'];
592
+ var returnType = null;
593
+ return this.apiClient.callApi('/graph/data/articles', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
594
+ }
595
+ /**
596
+ * Callback function to receive the result of the get27 operation.
597
+ * @callback module:api/ContentManagementApi~get27Callback
598
+ * @param {String} error Error message, if any.
599
+ * @param data This operation does not return a value.
600
+ * @param {String} response The complete HTTP response.
601
+ */
602
+
603
+ /**
604
+ * Root for the API
605
+ * @param {Object} opts Optional parameters
606
+ * @param {String} opts.authorization The authorization token of the logged in user
607
+ * @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
608
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
609
+ * @param {module:api/ContentManagementApi~get27Callback} callback The callback function, accepting three arguments: error, data, response
610
+ */
611
+
612
+ }, {
613
+ key: "get27",
614
+ value: function get27(opts, callback) {
615
+ opts = opts || {};
616
+ var postBody = null;
617
+ var pathParams = {};
618
+ var queryParams = {};
619
+ var headerParams = {
620
+ 'Authorization': opts['authorization'],
621
+ 'zeusportal-postas': opts['zeusportalPostas'],
622
+ 'transactionid': opts['transactionid']
623
+ };
624
+ var formParams = {};
625
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
626
+ var contentTypes = [];
627
+ var accepts = ['*/*'];
628
+ var returnType = null;
629
+ return this.apiClient.callApi('/graph/data/entryparts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
630
+ }
631
+ /**
632
+ * Callback function to receive the result of the getAllDocuments operation.
633
+ * @callback module:api/ContentManagementApi~getAllDocumentsCallback
634
+ * @param {String} error Error message, if any.
635
+ * @param {Array.<module:model/Document>} data The data returned by the service call.
636
+ * @param {String} response The complete HTTP response.
637
+ */
638
+
639
+ /**
640
+ * Returns all documents
641
+ * @param {Object} opts Optional parameters
642
+ * @param {String} opts.authorization The authorization token of the logged in user
643
+ * @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
644
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
645
+ * @param {module:api/ContentManagementApi~getAllDocumentsCallback} callback The callback function, accepting three arguments: error, data, response
646
+ * data is of type: {@link Array.<module:model/Document>}
647
+ */
648
+
649
+ }, {
650
+ key: "getAllDocuments",
651
+ value: function getAllDocuments(opts, callback) {
652
+ opts = opts || {};
653
+ var postBody = null;
654
+ var pathParams = {};
655
+ var queryParams = {};
656
+ var headerParams = {
657
+ 'Authorization': opts['authorization'],
658
+ 'zeusportal-postas': opts['zeusportalPostas'],
659
+ 'transactionid': opts['transactionid']
660
+ };
661
+ var formParams = {};
662
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
663
+ var contentTypes = [];
664
+ var accepts = ['*/*'];
665
+ var returnType = [_Document["default"]];
666
+ return this.apiClient.callApi('/graph/data/articles/all', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
667
+ }
668
+ /**
669
+ * Callback function to receive the result of the getChildDocPartByPageNum operation.
670
+ * @callback module:api/ContentManagementApi~getChildDocPartByPageNumCallback
671
+ * @param {String} error Error message, if any.
672
+ * @param {module:model/DocumentPart} data The data returned by the service call.
673
+ * @param {String} response The complete HTTP response.
674
+ */
675
+
676
+ /**
677
+ * Returns the child document part with the given page number
678
+ * @param {Number} id
679
+ * @param {Number} pagenum
680
+ * @param {Object} opts Optional parameters
681
+ * @param {String} opts.authorization The authorization token of the logged in user
682
+ * @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
683
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
684
+ * @param {module:api/ContentManagementApi~getChildDocPartByPageNumCallback} callback The callback function, accepting three arguments: error, data, response
685
+ * data is of type: {@link module:model/DocumentPart}
686
+ */
687
+
688
+ }, {
689
+ key: "getChildDocPartByPageNum",
690
+ value: function getChildDocPartByPageNum(id, pagenum, opts, callback) {
691
+ opts = opts || {};
692
+ var postBody = null; // verify the required parameter 'id' is set
693
+
694
+ if (id === undefined || id === null) {
695
+ throw new Error("Missing the required parameter 'id' when calling getChildDocPartByPageNum");
696
+ } // verify the required parameter 'pagenum' is set
697
+
698
+
699
+ if (pagenum === undefined || pagenum === null) {
700
+ throw new Error("Missing the required parameter 'pagenum' when calling getChildDocPartByPageNum");
701
+ }
702
+
703
+ var pathParams = {
704
+ 'id': id,
705
+ 'pagenum': pagenum
706
+ };
707
+ var queryParams = {};
708
+ var headerParams = {
709
+ 'Authorization': opts['authorization'],
710
+ 'zeusportal-postas': opts['zeusportalPostas'],
711
+ 'transactionid': opts['transactionid']
712
+ };
713
+ var formParams = {};
714
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
715
+ var contentTypes = [];
716
+ var accepts = ['*/*'];
717
+ var returnType = _DocumentPart["default"];
718
+ return this.apiClient.callApi('/graph/data/entryparts/{id}/entryparts/{pagenum}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
719
+ }
720
+ /**
721
+ * Callback function to receive the result of the getDocumentById operation.
722
+ * @callback module:api/ContentManagementApi~getDocumentByIdCallback
723
+ * @param {String} error Error message, if any.
724
+ * @param {module:model/Document} data The data returned by the service call.
725
+ * @param {String} response The complete HTTP response.
726
+ */
727
+
728
+ /**
729
+ * Returns all documents
730
+ * @param {Number} id
731
+ * @param {Object} opts Optional parameters
732
+ * @param {String} opts.authorization The authorization token of the logged in user
733
+ * @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
734
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
735
+ * @param {module:api/ContentManagementApi~getDocumentByIdCallback} callback The callback function, accepting three arguments: error, data, response
736
+ * data is of type: {@link module:model/Document}
737
+ */
738
+
739
+ }, {
740
+ key: "getDocumentById",
741
+ value: function getDocumentById(id, opts, callback) {
742
+ opts = opts || {};
743
+ var postBody = null; // verify the required parameter 'id' is set
744
+
745
+ if (id === undefined || id === null) {
746
+ throw new Error("Missing the required parameter 'id' when calling getDocumentById");
747
+ }
748
+
749
+ var pathParams = {
750
+ 'id': id
751
+ };
752
+ var queryParams = {};
753
+ var headerParams = {
754
+ 'Authorization': opts['authorization'],
755
+ 'zeusportal-postas': opts['zeusportalPostas'],
756
+ 'transactionid': opts['transactionid']
757
+ };
758
+ var formParams = {};
759
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
760
+ var contentTypes = [];
761
+ var accepts = ['application/json'];
762
+ var returnType = _Document["default"];
763
+ return this.apiClient.callApi('/graph/data/articles/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
764
+ }
765
+ /**
766
+ * Callback function to receive the result of the getDocumentPartById operation.
767
+ * @callback module:api/ContentManagementApi~getDocumentPartByIdCallback
768
+ * @param {String} error Error message, if any.
769
+ * @param {module:model/DocumentPart} data The data returned by the service call.
770
+ * @param {String} response The complete HTTP response.
771
+ */
772
+
773
+ /**
774
+ * Returns the entrypart with the given id
775
+ * @param {Number} id
776
+ * @param {Object} opts Optional parameters
777
+ * @param {String} opts.authorization The authorization token of the logged in user
778
+ * @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
779
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
780
+ * @param {module:api/ContentManagementApi~getDocumentPartByIdCallback} callback The callback function, accepting three arguments: error, data, response
781
+ * data is of type: {@link module:model/DocumentPart}
782
+ */
783
+
784
+ }, {
785
+ key: "getDocumentPartById",
786
+ value: function getDocumentPartById(id, opts, callback) {
787
+ opts = opts || {};
788
+ var postBody = null; // verify the required parameter 'id' is set
789
+
790
+ if (id === undefined || id === null) {
791
+ throw new Error("Missing the required parameter 'id' when calling getDocumentPartById");
792
+ }
793
+
794
+ var pathParams = {
795
+ 'id': id
796
+ };
797
+ var queryParams = {};
798
+ var headerParams = {
799
+ 'Authorization': opts['authorization'],
800
+ 'zeusportal-postas': opts['zeusportalPostas'],
801
+ 'transactionid': opts['transactionid']
802
+ };
803
+ var formParams = {};
804
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
805
+ var contentTypes = [];
806
+ var accepts = ['application/json'];
807
+ var returnType = _DocumentPart["default"];
808
+ return this.apiClient.callApi('/graph/data/entryparts/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
809
+ }
810
+ /**
811
+ * Callback function to receive the result of the getDocumentPartById1 operation.
812
+ * @callback module:api/ContentManagementApi~getDocumentPartById1Callback
813
+ * @param {String} error Error message, if any.
814
+ * @param {Array.<module:model/DocumentPart>} data The data returned by the service call.
815
+ * @param {String} response The complete HTTP response.
816
+ */
817
+
818
+ /**
819
+ * Returns the entrypart with the given id
820
+ * @param {Number} id
821
+ * @param {Object} opts Optional parameters
822
+ * @param {String} opts.authorization The authorization token of the logged in user
823
+ * @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
824
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
825
+ * @param {module:api/ContentManagementApi~getDocumentPartById1Callback} callback The callback function, accepting three arguments: error, data, response
826
+ * data is of type: {@link Array.<module:model/DocumentPart>}
827
+ */
828
+
829
+ }, {
830
+ key: "getDocumentPartById1",
831
+ value: function getDocumentPartById1(id, opts, callback) {
832
+ opts = opts || {};
833
+ var postBody = null; // verify the required parameter 'id' is set
834
+
835
+ if (id === undefined || id === null) {
836
+ throw new Error("Missing the required parameter 'id' when calling getDocumentPartById1");
837
+ }
838
+
839
+ var pathParams = {
840
+ 'id': id
841
+ };
842
+ var queryParams = {};
843
+ var headerParams = {
844
+ 'Authorization': opts['authorization'],
845
+ 'zeusportal-postas': opts['zeusportalPostas'],
846
+ 'transactionid': opts['transactionid']
847
+ };
848
+ var formParams = {};
849
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
850
+ var contentTypes = [];
851
+ var accepts = ['*/*'];
852
+ var returnType = [_DocumentPart["default"]];
853
+ return this.apiClient.callApi('/graph/data/entryparts/{id}/entryparts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
854
+ }
855
+ /**
856
+ * Callback function to receive the result of the getDocumentPartByPageNumber operation.
857
+ * @callback module:api/ContentManagementApi~getDocumentPartByPageNumberCallback
858
+ * @param {String} error Error message, if any.
859
+ * @param {Object.<String, module:model/{String: InlineObject4}>} data The data returned by the service call.
860
+ * @param {String} response The complete HTTP response.
861
+ */
862
+
863
+ /**
864
+ * Gets the document part attached to the document with the given page number
865
+ * @param {Number} id
866
+ * @param {Number} id2
867
+ * @param {Object} opts Optional parameters
868
+ * @param {String} opts.authorization The authorization token of the logged in user
869
+ * @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
870
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
871
+ * @param {module:api/ContentManagementApi~getDocumentPartByPageNumberCallback} callback The callback function, accepting three arguments: error, data, response
872
+ * data is of type: {@link Object.<String, module:model/{String: InlineObject4}>}
873
+ */
874
+
875
+ }, {
876
+ key: "getDocumentPartByPageNumber",
877
+ value: function getDocumentPartByPageNumber(id, id2, opts, callback) {
878
+ opts = opts || {};
879
+ var postBody = null; // verify the required parameter 'id' is set
880
+
881
+ if (id === undefined || id === null) {
882
+ throw new Error("Missing the required parameter 'id' when calling getDocumentPartByPageNumber");
883
+ } // verify the required parameter 'id2' is set
884
+
885
+
886
+ if (id2 === undefined || id2 === null) {
887
+ throw new Error("Missing the required parameter 'id2' when calling getDocumentPartByPageNumber");
888
+ }
889
+
890
+ var pathParams = _defineProperty({
891
+ 'id': id
892
+ }, "id", id2);
893
+
894
+ var queryParams = {};
895
+ var headerParams = {
896
+ 'Authorization': opts['authorization'],
897
+ 'zeusportal-postas': opts['zeusportalPostas'],
898
+ 'transactionid': opts['transactionid']
899
+ };
900
+ var formParams = {};
901
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
902
+ var contentTypes = [];
903
+ var accepts = ['*/*'];
904
+ var returnType = {
905
+ 'String': _InlineObject["default"]
906
+ };
907
+ return this.apiClient.callApi('/graph/data/articles/{id}/entryparts/{pagenum}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
908
+ }
909
+ /**
910
+ * Callback function to receive the result of the getDocumentParts operation.
911
+ * @callback module:api/ContentManagementApi~getDocumentPartsCallback
912
+ * @param {String} error Error message, if any.
913
+ * @param {Array.<module:model/DocumentPart>} data The data returned by the service call.
914
+ * @param {String} response The complete HTTP response.
915
+ */
916
+
917
+ /**
918
+ * Gets the document parts attached to the document
919
+ * @param {Number} id
920
+ * @param {Object} opts Optional parameters
921
+ * @param {String} opts.authorization The authorization token of the logged in user
922
+ * @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
923
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
924
+ * @param {module:api/ContentManagementApi~getDocumentPartsCallback} callback The callback function, accepting three arguments: error, data, response
925
+ * data is of type: {@link Array.<module:model/DocumentPart>}
926
+ */
927
+
928
+ }, {
929
+ key: "getDocumentParts",
930
+ value: function getDocumentParts(id, opts, callback) {
931
+ opts = opts || {};
932
+ var postBody = null; // verify the required parameter 'id' is set
933
+
934
+ if (id === undefined || id === null) {
935
+ throw new Error("Missing the required parameter 'id' when calling getDocumentParts");
936
+ }
937
+
938
+ var pathParams = {
939
+ 'id': id
940
+ };
941
+ var queryParams = {};
942
+ var headerParams = {
943
+ 'Authorization': opts['authorization'],
944
+ 'zeusportal-postas': opts['zeusportalPostas'],
945
+ 'transactionid': opts['transactionid']
946
+ };
947
+ var formParams = {};
948
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
949
+ var contentTypes = [];
950
+ var accepts = ['*/*'];
951
+ var returnType = [_DocumentPart["default"]];
952
+ return this.apiClient.callApi('/graph/data/articles/{id}/entryparts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
953
+ }
954
+ /**
955
+ * Callback function to receive the result of the getDocumentsByType operation.
956
+ * @callback module:api/ContentManagementApi~getDocumentsByTypeCallback
957
+ * @param {String} error Error message, if any.
958
+ * @param {Array.<module:model/Document>} data The data returned by the service call.
959
+ * @param {String} response The complete HTTP response.
960
+ */
961
+
962
+ /**
963
+ * Returns the documents of the given type
964
+ * @param {Number} typeid
965
+ * @param {Object} opts Optional parameters
966
+ * @param {String} opts.authorization The authorization token of the logged in user
967
+ * @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
968
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
969
+ * @param {module:api/ContentManagementApi~getDocumentsByTypeCallback} callback The callback function, accepting three arguments: error, data, response
970
+ * data is of type: {@link Array.<module:model/Document>}
971
+ */
972
+
973
+ }, {
974
+ key: "getDocumentsByType",
975
+ value: function getDocumentsByType(typeid, opts, callback) {
976
+ opts = opts || {};
977
+ var postBody = null; // verify the required parameter 'typeid' is set
978
+
979
+ if (typeid === undefined || typeid === null) {
980
+ throw new Error("Missing the required parameter 'typeid' when calling getDocumentsByType");
981
+ }
982
+
983
+ var pathParams = {
984
+ 'typeid': typeid
985
+ };
986
+ var queryParams = {};
987
+ var headerParams = {
988
+ 'Authorization': opts['authorization'],
989
+ 'zeusportal-postas': opts['zeusportalPostas'],
990
+ 'transactionid': opts['transactionid']
991
+ };
992
+ var formParams = {};
993
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
994
+ var contentTypes = [];
995
+ var accepts = ['*/*'];
996
+ var returnType = [_Document["default"]];
997
+ return this.apiClient.callApi('/graph/data/articles/entrytype/{typeid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
998
+ }
999
+ /**
1000
+ * Callback function to receive the result of the moveChildPart operation.
1001
+ * @callback module:api/ContentManagementApi~moveChildPartCallback
1002
+ * @param {String} error Error message, if any.
1003
+ * @param data This operation does not return a value.
1004
+ * @param {String} response The complete HTTP response.
1005
+ */
1006
+
1007
+ /**
1008
+ * Moves a document part to a new position in it's parent doc part or to a new parent
1009
+ * @param {Number} docpartid
1010
+ * @param {Number} newdocpartid
1011
+ * @param {Number} partindex
1012
+ * @param {Object} opts Optional parameters
1013
+ * @param {String} opts.authorization The authorization token of the logged in user
1014
+ * @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
1015
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1016
+ * @param {module:api/ContentManagementApi~moveChildPartCallback} callback The callback function, accepting three arguments: error, data, response
1017
+ */
1018
+
1019
+ }, {
1020
+ key: "moveChildPart",
1021
+ value: function moveChildPart(docpartid, newdocpartid, partindex, opts, callback) {
1022
+ opts = opts || {};
1023
+ var postBody = null; // verify the required parameter 'docpartid' is set
1024
+
1025
+ if (docpartid === undefined || docpartid === null) {
1026
+ throw new Error("Missing the required parameter 'docpartid' when calling moveChildPart");
1027
+ } // verify the required parameter 'newdocpartid' is set
1028
+
1029
+
1030
+ if (newdocpartid === undefined || newdocpartid === null) {
1031
+ throw new Error("Missing the required parameter 'newdocpartid' when calling moveChildPart");
1032
+ } // verify the required parameter 'partindex' is set
1033
+
1034
+
1035
+ if (partindex === undefined || partindex === null) {
1036
+ throw new Error("Missing the required parameter 'partindex' when calling moveChildPart");
1037
+ }
1038
+
1039
+ var pathParams = {
1040
+ 'docpartid': docpartid,
1041
+ 'newdocpartid': newdocpartid,
1042
+ 'partindex': partindex
1043
+ };
1044
+ var queryParams = {};
1045
+ var headerParams = {
1046
+ 'Authorization': opts['authorization'],
1047
+ 'zeusportal-postas': opts['zeusportalPostas'],
1048
+ 'transactionid': opts['transactionid']
1049
+ };
1050
+ var formParams = {};
1051
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1052
+ var contentTypes = [];
1053
+ var accepts = ['*/*'];
1054
+ var returnType = null;
1055
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}/moveto/entrypart/{newdocpartid}/{partindex}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1056
+ }
1057
+ /**
1058
+ * Callback function to receive the result of the moveDocPart operation.
1059
+ * @callback module:api/ContentManagementApi~moveDocPartCallback
1060
+ * @param {String} error Error message, if any.
1061
+ * @param data This operation does not return a value.
1062
+ * @param {String} response The complete HTTP response.
1063
+ */
1064
+
1065
+ /**
1066
+ * Moves a document part to a new position in it's document
1067
+ * @param {Number} docpartid
1068
+ * @param {Number} articleid
1069
+ * @param {Number} partindex
1070
+ * @param {Object} opts Optional parameters
1071
+ * @param {String} opts.authorization The authorization token of the logged in user
1072
+ * @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
1073
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1074
+ * @param {module:api/ContentManagementApi~moveDocPartCallback} callback The callback function, accepting three arguments: error, data, response
1075
+ */
1076
+
1077
+ }, {
1078
+ key: "moveDocPart",
1079
+ value: function moveDocPart(docpartid, articleid, partindex, opts, callback) {
1080
+ opts = opts || {};
1081
+ var postBody = null; // verify the required parameter 'docpartid' is set
1082
+
1083
+ if (docpartid === undefined || docpartid === null) {
1084
+ throw new Error("Missing the required parameter 'docpartid' when calling moveDocPart");
1085
+ } // verify the required parameter 'articleid' is set
1086
+
1087
+
1088
+ if (articleid === undefined || articleid === null) {
1089
+ throw new Error("Missing the required parameter 'articleid' when calling moveDocPart");
1090
+ } // verify the required parameter 'partindex' is set
1091
+
1092
+
1093
+ if (partindex === undefined || partindex === null) {
1094
+ throw new Error("Missing the required parameter 'partindex' when calling moveDocPart");
1095
+ }
1096
+
1097
+ var pathParams = {
1098
+ 'docpartid': docpartid,
1099
+ 'articleid': articleid,
1100
+ 'partindex': partindex
1101
+ };
1102
+ var queryParams = {};
1103
+ var headerParams = {
1104
+ 'Authorization': opts['authorization'],
1105
+ 'zeusportal-postas': opts['zeusportalPostas'],
1106
+ 'transactionid': opts['transactionid']
1107
+ };
1108
+ var formParams = {};
1109
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1110
+ var contentTypes = [];
1111
+ var accepts = ['*/*'];
1112
+ var returnType = null;
1113
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}/moveto/article/{articleid}/{partindex}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1114
+ }
1115
+ /**
1116
+ * Callback function to receive the result of the updateDocumentPart operation.
1117
+ * @callback module:api/ContentManagementApi~updateDocumentPartCallback
1118
+ * @param {String} error Error message, if any.
1119
+ * @param {module:model/DocumentPart} data The data returned by the service call.
1120
+ * @param {String} response The complete HTTP response.
1121
+ */
1122
+
1123
+ /**
1124
+ * Updates the document part
1125
+ * @param {Number} docpartid
1126
+ * @param {module:model/DocumentPart} documentPart Document part or array of document parts to create
1127
+ * @param {Object} opts Optional parameters
1128
+ * @param {String} opts.authorization The authorization token of the logged in user
1129
+ * @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
1130
+ * @param {String} opts.transactionid The id of the transaction this operation is being run in
1131
+ * @param {module:api/ContentManagementApi~updateDocumentPartCallback} callback The callback function, accepting three arguments: error, data, response
1132
+ * data is of type: {@link module:model/DocumentPart}
1133
+ */
1134
+
1135
+ }, {
1136
+ key: "updateDocumentPart",
1137
+ value: function updateDocumentPart(docpartid, documentPart, opts, callback) {
1138
+ opts = opts || {};
1139
+ var postBody = documentPart; // verify the required parameter 'docpartid' is set
1140
+
1141
+ if (docpartid === undefined || docpartid === null) {
1142
+ throw new Error("Missing the required parameter 'docpartid' when calling updateDocumentPart");
1143
+ } // verify the required parameter 'documentPart' is set
1144
+
1145
+
1146
+ if (documentPart === undefined || documentPart === null) {
1147
+ throw new Error("Missing the required parameter 'documentPart' when calling updateDocumentPart");
1148
+ }
1149
+
1150
+ var pathParams = {
1151
+ 'docpartid': docpartid
1152
+ };
1153
+ var queryParams = {};
1154
+ var headerParams = {
1155
+ 'Authorization': opts['authorization'],
1156
+ 'zeusportal-postas': opts['zeusportalPostas'],
1157
+ 'transactionid': opts['transactionid']
1158
+ };
1159
+ var formParams = {};
1160
+ var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
1161
+ var contentTypes = ['application/json'];
1162
+ var accepts = ['application/json'];
1163
+ var returnType = _DocumentPart["default"];
1164
+ return this.apiClient.callApi('/graph/data/entryparts/{docpartid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1165
+ }
1166
+ }]);
1167
+
1168
+ return ContentManagementApi;
1169
+ }();
1170
+
1171
+ exports["default"] = ContentManagementApi;