@coscine/api-client 3.3.1 → 3.3.2-package.0

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 (243) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +5 -2
  3. package/dist/index.js +6939 -9541
  4. package/dist/types/Coscine.Api/@coscine/api/admin-api.d.ts +393 -0
  5. package/dist/types/Coscine.Api/@coscine/api/application-profile-api.d.ts +315 -0
  6. package/dist/types/Coscine.Api/@coscine/api/blob-api.d.ts +358 -0
  7. package/dist/types/Coscine.Api/@coscine/api/discipline-api.d.ts +179 -0
  8. package/dist/types/Coscine.Api/@coscine/api/language-api.d.ts +179 -0
  9. package/dist/types/Coscine.Api/@coscine/api/license-api.d.ts +179 -0
  10. package/dist/types/Coscine.Api/@coscine/api/maintenance-api.d.ts +99 -0
  11. package/dist/types/Coscine.Api/@coscine/api/organization-api.d.ts +187 -0
  12. package/dist/types/Coscine.Api/@coscine/api/pid-api.d.ts +187 -0
  13. package/dist/types/Coscine.Api/@coscine/api/project-api.d.ts +343 -0
  14. package/dist/types/Coscine.Api/@coscine/api/project-invitation-api.d.ts +321 -0
  15. package/dist/types/Coscine.Api/@coscine/api/project-member-api.d.ts +384 -0
  16. package/dist/types/Coscine.Api/@coscine/api/project-quota-api.d.ts +275 -0
  17. package/dist/types/Coscine.Api/@coscine/api/project-resource-api.d.ts +384 -0
  18. package/dist/types/Coscine.Api/@coscine/api/project-resource-quota-api.d.ts +149 -0
  19. package/dist/types/Coscine.Api/@coscine/api/project-resource-type-api.d.ts +133 -0
  20. package/dist/types/Coscine.Api/@coscine/api/resource-api.d.ts +116 -0
  21. package/dist/types/Coscine.Api/@coscine/api/resource-type-api.d.ts +327 -0
  22. package/dist/types/Coscine.Api/@coscine/api/role-api.d.ts +179 -0
  23. package/dist/types/Coscine.Api/@coscine/api/search-api.d.ts +165 -0
  24. package/dist/types/Coscine.Api/@coscine/api/self-api-token-api.d.ts +272 -0
  25. package/dist/types/Coscine.Api/@coscine/api/self-api.d.ts +334 -0
  26. package/dist/types/Coscine.Api/@coscine/api/title-api.d.ts +179 -0
  27. package/dist/types/Coscine.Api/@coscine/api/tos-api.d.ts +99 -0
  28. package/dist/types/Coscine.Api/@coscine/api/tree-api.d.ts +404 -0
  29. package/dist/types/Coscine.Api/@coscine/api/user-api.d.ts +124 -0
  30. package/dist/types/Coscine.Api/@coscine/api/visibility-api.d.ts +179 -0
  31. package/dist/types/Coscine.Api/@coscine/api/vocabulary-api.d.ts +291 -0
  32. package/dist/types/Coscine.Api/@coscine/model/accepted-language.d.ts +21 -0
  33. package/dist/types/Coscine.Api/@coscine/model/api-token-dto-paged-response.d.ts +50 -0
  34. package/dist/types/Coscine.Api/@coscine/model/api-token-dto-response.d.ts +43 -0
  35. package/dist/types/Coscine.Api/@coscine/model/api-token-dto.d.ts +55 -0
  36. package/dist/types/Coscine.Api/@coscine/model/api-token-for-creation-dto.d.ts +30 -0
  37. package/dist/types/Coscine.Api/@coscine/model/application-profile-dto-paged-response.d.ts +50 -0
  38. package/dist/types/Coscine.Api/@coscine/model/application-profile-dto-response.d.ts +43 -0
  39. package/dist/types/Coscine.Api/@coscine/model/application-profile-dto.d.ts +43 -0
  40. package/dist/types/Coscine.Api/@coscine/model/application-profile-for-creation-dto-response.d.ts +43 -0
  41. package/dist/types/Coscine.Api/@coscine/model/application-profile-for-creation-dto.d.ts +37 -0
  42. package/dist/types/Coscine.Api/@coscine/model/application-profile-for-resource-creation-dto.d.ts +24 -0
  43. package/dist/types/Coscine.Api/@coscine/model/application-profile-minimal-dto.d.ts +24 -0
  44. package/dist/types/Coscine.Api/@coscine/model/discipline-dto-paged-response.d.ts +50 -0
  45. package/dist/types/Coscine.Api/@coscine/model/discipline-dto-response.d.ts +43 -0
  46. package/dist/types/Coscine.Api/@coscine/model/discipline-dto.d.ts +42 -0
  47. package/dist/types/Coscine.Api/@coscine/model/discipline-for-project-manipulation-dto.d.ts +24 -0
  48. package/dist/types/Coscine.Api/@coscine/model/discipline-for-resource-manipulation-dto.d.ts +24 -0
  49. package/dist/types/Coscine.Api/@coscine/model/discipline-for-user-manipulation-dto.d.ts +24 -0
  50. package/dist/types/Coscine.Api/@coscine/model/file-action-dto.d.ts +31 -0
  51. package/dist/types/Coscine.Api/@coscine/model/file-action-http-method.d.ts +23 -0
  52. package/dist/types/Coscine.Api/@coscine/model/file-actions-dto.d.ts +25 -0
  53. package/dist/types/Coscine.Api/@coscine/model/file-tree-dto-paged-response.d.ts +50 -0
  54. package/dist/types/Coscine.Api/@coscine/model/file-tree-dto.d.ts +74 -0
  55. package/dist/types/Coscine.Api/@coscine/model/fixed-value-for-resource-manipulation-dto.d.ts +42 -0
  56. package/dist/types/Coscine.Api/@coscine/model/git-lab-options-dto.d.ts +42 -0
  57. package/dist/types/Coscine.Api/@coscine/model/gitlab-branch-dto-ienumerable-response.d.ts +43 -0
  58. package/dist/types/Coscine.Api/@coscine/model/gitlab-branch-dto.d.ts +60 -0
  59. package/dist/types/Coscine.Api/@coscine/model/gitlab-project-dto-ienumerable-response.d.ts +43 -0
  60. package/dist/types/Coscine.Api/@coscine/model/gitlab-project-dto-response.d.ts +43 -0
  61. package/dist/types/Coscine.Api/@coscine/model/gitlab-project-dto.d.ts +96 -0
  62. package/dist/types/Coscine.Api/@coscine/model/gitlab-resource-type-options-for-creation-dto.d.ts +48 -0
  63. package/dist/types/Coscine.Api/@coscine/model/gitlab-resource-type-options-for-update-dto.d.ts +30 -0
  64. package/dist/types/Coscine.Api/@coscine/model/identity-provider-dto.d.ts +30 -0
  65. package/dist/types/Coscine.Api/@coscine/model/identity-providers.d.ts +21 -0
  66. package/dist/types/Coscine.Api/@coscine/model/index.d.ts +158 -0
  67. package/dist/types/Coscine.Api/@coscine/model/language-dto-ienumerable-response.d.ts +43 -0
  68. package/dist/types/Coscine.Api/@coscine/model/language-dto-paged-response.d.ts +50 -0
  69. package/dist/types/Coscine.Api/@coscine/model/language-dto-response.d.ts +43 -0
  70. package/dist/types/Coscine.Api/@coscine/model/language-dto.d.ts +36 -0
  71. package/dist/types/Coscine.Api/@coscine/model/language-for-user-manipulation-dto.d.ts +24 -0
  72. package/dist/types/Coscine.Api/@coscine/model/license-dto-paged-response.d.ts +50 -0
  73. package/dist/types/Coscine.Api/@coscine/model/license-dto-response.d.ts +43 -0
  74. package/dist/types/Coscine.Api/@coscine/model/license-dto.d.ts +30 -0
  75. package/dist/types/Coscine.Api/@coscine/model/license-for-resource-manipulation-dto.d.ts +24 -0
  76. package/dist/types/Coscine.Api/@coscine/model/maintenance-dto-paged-response.d.ts +50 -0
  77. package/dist/types/Coscine.Api/@coscine/model/maintenance-dto.d.ts +54 -0
  78. package/dist/types/Coscine.Api/@coscine/model/metadata-tree-dto-paged-response.d.ts +50 -0
  79. package/dist/types/Coscine.Api/@coscine/model/metadata-tree-dto-response.d.ts +43 -0
  80. package/dist/types/Coscine.Api/@coscine/model/metadata-tree-dto.d.ts +50 -0
  81. package/dist/types/Coscine.Api/@coscine/model/metadata-tree-for-creation-dto.d.ts +31 -0
  82. package/dist/types/Coscine.Api/@coscine/model/metadata-tree-for-update-dto.d.ts +31 -0
  83. package/dist/types/Coscine.Api/@coscine/model/metadata-update-admin-parameters.d.ts +31 -0
  84. package/dist/types/Coscine.Api/@coscine/model/organization-dto-paged-response.d.ts +50 -0
  85. package/dist/types/Coscine.Api/@coscine/model/organization-dto-response.d.ts +43 -0
  86. package/dist/types/Coscine.Api/@coscine/model/organization-dto.d.ts +36 -0
  87. package/dist/types/Coscine.Api/@coscine/model/organization-for-project-manipulation-dto.d.ts +24 -0
  88. package/dist/types/Coscine.Api/@coscine/model/pagination.d.ts +54 -0
  89. package/dist/types/Coscine.Api/@coscine/model/pid-request-dto.d.ts +42 -0
  90. package/dist/types/Coscine.Api/@coscine/model/pid-type.d.ts +21 -0
  91. package/dist/types/Coscine.Api/@coscine/model/pid-validation-dto-response.d.ts +43 -0
  92. package/dist/types/Coscine.Api/@coscine/model/pid-validation-dto.d.ts +31 -0
  93. package/dist/types/Coscine.Api/@coscine/model/project-admin-dto-ienumerable-paged-response.d.ts +50 -0
  94. package/dist/types/Coscine.Api/@coscine/model/project-admin-dto.d.ts +152 -0
  95. package/dist/types/Coscine.Api/@coscine/model/project-dto-paged-response.d.ts +50 -0
  96. package/dist/types/Coscine.Api/@coscine/model/project-dto-response.d.ts +43 -0
  97. package/dist/types/Coscine.Api/@coscine/model/project-dto.d.ts +131 -0
  98. package/dist/types/Coscine.Api/@coscine/model/project-for-creation-dto.d.ts +93 -0
  99. package/dist/types/Coscine.Api/@coscine/model/project-for-update-dto.d.ts +93 -0
  100. package/dist/types/Coscine.Api/@coscine/model/project-invitation-dto-paged-response.d.ts +50 -0
  101. package/dist/types/Coscine.Api/@coscine/model/project-invitation-dto-response.d.ts +43 -0
  102. package/dist/types/Coscine.Api/@coscine/model/project-invitation-dto.d.ts +57 -0
  103. package/dist/types/Coscine.Api/@coscine/model/project-invitation-for-project-manipulation-dto.d.ts +30 -0
  104. package/dist/types/Coscine.Api/@coscine/model/project-invitation-resolve-dto.d.ts +24 -0
  105. package/dist/types/Coscine.Api/@coscine/model/project-minimal-dto.d.ts +24 -0
  106. package/dist/types/Coscine.Api/@coscine/model/project-quota-dto-paged-response.d.ts +50 -0
  107. package/dist/types/Coscine.Api/@coscine/model/project-quota-dto-response.d.ts +43 -0
  108. package/dist/types/Coscine.Api/@coscine/model/project-quota-dto.d.ts +63 -0
  109. package/dist/types/Coscine.Api/@coscine/model/project-quota-for-update-dto.d.ts +31 -0
  110. package/dist/types/Coscine.Api/@coscine/model/project-resource-minimal-dto.d.ts +30 -0
  111. package/dist/types/Coscine.Api/@coscine/model/project-role-dto-paged-response.d.ts +50 -0
  112. package/dist/types/Coscine.Api/@coscine/model/project-role-dto-response.d.ts +43 -0
  113. package/dist/types/Coscine.Api/@coscine/model/project-role-dto.d.ts +45 -0
  114. package/dist/types/Coscine.Api/@coscine/model/project-role-for-project-creation-dto.d.ts +30 -0
  115. package/dist/types/Coscine.Api/@coscine/model/project-role-for-project-manipulation-dto.d.ts +24 -0
  116. package/dist/types/Coscine.Api/@coscine/model/project-role-minimal-dto.d.ts +36 -0
  117. package/dist/types/Coscine.Api/@coscine/model/public-user-dto-ienumerable-response.d.ts +43 -0
  118. package/dist/types/Coscine.Api/@coscine/model/public-user-dto.d.ts +55 -0
  119. package/dist/types/Coscine.Api/@coscine/model/quota-dto.d.ts +31 -0
  120. package/dist/types/Coscine.Api/@coscine/model/quota-for-manipulation-dto.d.ts +31 -0
  121. package/dist/types/Coscine.Api/@coscine/model/quota-unit.d.ts +25 -0
  122. package/dist/types/Coscine.Api/@coscine/model/rdf-definition-dto-response.d.ts +43 -0
  123. package/dist/types/Coscine.Api/@coscine/model/rdf-definition-dto.d.ts +30 -0
  124. package/dist/types/Coscine.Api/@coscine/model/rdf-definition-for-manipulation-dto.d.ts +31 -0
  125. package/dist/types/Coscine.Api/@coscine/model/rdf-format.d.ts +21 -0
  126. package/dist/types/Coscine.Api/@coscine/model/rds-options-dto.d.ts +31 -0
  127. package/dist/types/Coscine.Api/@coscine/model/rds-resource-type-options-for-manipulation-dto.d.ts +25 -0
  128. package/dist/types/Coscine.Api/@coscine/model/rds-s3-options-dto.d.ts +61 -0
  129. package/dist/types/Coscine.Api/@coscine/model/rds-s3-resource-type-options-for-manipulation-dto.d.ts +25 -0
  130. package/dist/types/Coscine.Api/@coscine/model/rds-s3-worm-options-dto.d.ts +61 -0
  131. package/dist/types/Coscine.Api/@coscine/model/rds-s3-worm-resource-type-options-for-manipulation-dto.d.ts +25 -0
  132. package/dist/types/Coscine.Api/@coscine/model/resource-admin-dto-ienumerable-paged-response.d.ts +50 -0
  133. package/dist/types/Coscine.Api/@coscine/model/resource-admin-dto.d.ts +137 -0
  134. package/dist/types/Coscine.Api/@coscine/model/resource-content-page-columns-dto.d.ts +24 -0
  135. package/dist/types/Coscine.Api/@coscine/model/resource-content-page-dto.d.ts +38 -0
  136. package/dist/types/Coscine.Api/@coscine/model/resource-content-page-entries-view-dto.d.ts +25 -0
  137. package/dist/types/Coscine.Api/@coscine/model/resource-content-page-metadata-view-dto.d.ts +30 -0
  138. package/dist/types/Coscine.Api/@coscine/model/resource-creation-page-dto.d.ts +24 -0
  139. package/dist/types/Coscine.Api/@coscine/model/resource-dto-paged-response.d.ts +50 -0
  140. package/dist/types/Coscine.Api/@coscine/model/resource-dto-response.d.ts +43 -0
  141. package/dist/types/Coscine.Api/@coscine/model/resource-dto.d.ts +124 -0
  142. package/dist/types/Coscine.Api/@coscine/model/resource-for-creation-dto.d.ts +100 -0
  143. package/dist/types/Coscine.Api/@coscine/model/resource-for-update-dto.d.ts +93 -0
  144. package/dist/types/Coscine.Api/@coscine/model/resource-minimal-dto.d.ts +24 -0
  145. package/dist/types/Coscine.Api/@coscine/model/resource-quota-dto-response.d.ts +43 -0
  146. package/dist/types/Coscine.Api/@coscine/model/resource-quota-dto.d.ts +44 -0
  147. package/dist/types/Coscine.Api/@coscine/model/resource-type-dto.d.ts +43 -0
  148. package/dist/types/Coscine.Api/@coscine/model/resource-type-information-dto-ienumerable-response.d.ts +43 -0
  149. package/dist/types/Coscine.Api/@coscine/model/resource-type-information-dto-response.d.ts +43 -0
  150. package/dist/types/Coscine.Api/@coscine/model/resource-type-information-dto.d.ts +135 -0
  151. package/dist/types/Coscine.Api/@coscine/model/resource-type-minimal-dto.d.ts +30 -0
  152. package/dist/types/Coscine.Api/@coscine/model/resource-type-options-dto.d.ts +52 -0
  153. package/dist/types/Coscine.Api/@coscine/model/resource-type-options-for-creation-dto.d.ts +52 -0
  154. package/dist/types/Coscine.Api/@coscine/model/resource-type-options-for-update-dto.d.ts +52 -0
  155. package/dist/types/Coscine.Api/@coscine/model/resource-type-status.d.ts +21 -0
  156. package/dist/types/Coscine.Api/@coscine/model/role-dto-paged-response.d.ts +50 -0
  157. package/dist/types/Coscine.Api/@coscine/model/role-dto-response.d.ts +43 -0
  158. package/dist/types/Coscine.Api/@coscine/model/role-dto.d.ts +36 -0
  159. package/dist/types/Coscine.Api/@coscine/model/role-minimal-dto.d.ts +24 -0
  160. package/dist/types/Coscine.Api/@coscine/model/search-category-type.d.ts +23 -0
  161. package/dist/types/Coscine.Api/@coscine/model/search-category.d.ts +30 -0
  162. package/dist/types/Coscine.Api/@coscine/model/search-result-dto-paged-search-response.d.ts +57 -0
  163. package/dist/types/Coscine.Api/@coscine/model/search-result-dto.d.ts +37 -0
  164. package/dist/types/Coscine.Api/@coscine/model/terms-of-service-dto-response.d.ts +43 -0
  165. package/dist/types/Coscine.Api/@coscine/model/terms-of-service-dto.d.ts +30 -0
  166. package/dist/types/Coscine.Api/@coscine/model/title-dto-ienumerable-response.d.ts +43 -0
  167. package/dist/types/Coscine.Api/@coscine/model/title-dto-paged-response.d.ts +50 -0
  168. package/dist/types/Coscine.Api/@coscine/model/title-dto-response.d.ts +43 -0
  169. package/dist/types/Coscine.Api/@coscine/model/title-dto.d.ts +30 -0
  170. package/dist/types/Coscine.Api/@coscine/model/title-for-user-manipulation-dto.d.ts +24 -0
  171. package/dist/types/Coscine.Api/@coscine/model/tree-data-type.d.ts +21 -0
  172. package/dist/types/Coscine.Api/@coscine/model/user-dto-ienumerable-paged-response.d.ts +50 -0
  173. package/dist/types/Coscine.Api/@coscine/model/user-dto-response.d.ts +43 -0
  174. package/dist/types/Coscine.Api/@coscine/model/user-dto.d.ts +97 -0
  175. package/dist/types/Coscine.Api/@coscine/model/user-email-dto.d.ts +36 -0
  176. package/dist/types/Coscine.Api/@coscine/model/user-for-update-dto.d.ts +69 -0
  177. package/dist/types/Coscine.Api/@coscine/model/user-institute-dto.d.ts +42 -0
  178. package/dist/types/Coscine.Api/@coscine/model/user-merge-dto-response.d.ts +43 -0
  179. package/dist/types/Coscine.Api/@coscine/model/user-merge-dto.d.ts +24 -0
  180. package/dist/types/Coscine.Api/@coscine/model/user-minimal-dto.d.ts +24 -0
  181. package/dist/types/Coscine.Api/@coscine/model/user-organization-dto.d.ts +42 -0
  182. package/dist/types/Coscine.Api/@coscine/model/user-terms-of-service-accept-dto.d.ts +24 -0
  183. package/dist/types/Coscine.Api/@coscine/model/visibility-dto-paged-response.d.ts +50 -0
  184. package/dist/types/Coscine.Api/@coscine/model/visibility-dto-response.d.ts +43 -0
  185. package/dist/types/Coscine.Api/@coscine/model/visibility-dto.d.ts +30 -0
  186. package/dist/types/Coscine.Api/@coscine/model/visibility-for-project-manipulation-dto.d.ts +24 -0
  187. package/dist/types/Coscine.Api/@coscine/model/visibility-for-resource-manipulation-dto.d.ts +24 -0
  188. package/dist/types/Coscine.Api/@coscine/model/vocabulary-dto-paged-response.d.ts +50 -0
  189. package/dist/types/Coscine.Api/@coscine/model/vocabulary-dto.d.ts +42 -0
  190. package/dist/types/Coscine.Api/@coscine/model/vocabulary-instance-dto-paged-response.d.ts +50 -0
  191. package/dist/types/Coscine.Api/@coscine/model/vocabulary-instance-dto-response.d.ts +43 -0
  192. package/dist/types/Coscine.Api/@coscine/model/vocabulary-instance-dto.d.ts +54 -0
  193. package/dist/types/Coscine.Api/api.d.ts +39 -9704
  194. package/dist/types/Coscine.Api/base.d.ts +66 -55
  195. package/dist/types/Coscine.Api/common.d.ts +65 -65
  196. package/dist/types/Coscine.Api/configuration.d.ts +91 -83
  197. package/dist/types/Coscine.Api/index.d.ts +14 -13
  198. package/dist/types/Coscine.Api.STS/@coscine/api/account-api.d.ts +99 -0
  199. package/dist/types/Coscine.Api.STS/@coscine/api/home-api.d.ts +69 -0
  200. package/dist/types/Coscine.Api.STS/@coscine/api/merge-api.d.ts +124 -0
  201. package/dist/types/Coscine.Api.STS/@coscine/api/orci-dapi.d.ts +140 -0
  202. package/dist/types/Coscine.Api.STS/@coscine/api/shibboleth-api.d.ts +148 -0
  203. package/dist/types/Coscine.Api.STS/@coscine/model/entity-id.d.ts +24 -0
  204. package/dist/types/Coscine.Api.STS/@coscine/model/index.d.ts +2 -0
  205. package/dist/types/Coscine.Api.STS/@coscine/model/login-urls.d.ts +31 -0
  206. package/dist/types/Coscine.Api.STS/api.d.ts +16 -465
  207. package/dist/types/Coscine.Api.STS/base.d.ts +66 -55
  208. package/dist/types/Coscine.Api.STS/common.d.ts +65 -65
  209. package/dist/types/Coscine.Api.STS/configuration.d.ts +91 -83
  210. package/dist/types/Coscine.Api.STS/index.d.ts +14 -13
  211. package/dist/types/apis.d.ts +187 -179
  212. package/dist/types/axios-basic.d.ts +2 -2
  213. package/dist/types/index.d.ts +369 -353
  214. package/package.json +33 -93
  215. package/dist/index.js.map +0 -1
  216. package/dist/index.umd.js +0 -9688
  217. package/dist/index.umd.js.map +0 -1
  218. package/dist/lib/Coscine.Api/api.js +0 -8916
  219. package/dist/lib/Coscine.Api/api.js.map +0 -1
  220. package/dist/lib/Coscine.Api/base.js +0 -65
  221. package/dist/lib/Coscine.Api/base.js.map +0 -1
  222. package/dist/lib/Coscine.Api/common.js +0 -153
  223. package/dist/lib/Coscine.Api/common.js.map +0 -1
  224. package/dist/lib/Coscine.Api/configuration.js +0 -43
  225. package/dist/lib/Coscine.Api/configuration.js.map +0 -1
  226. package/dist/lib/Coscine.Api/index.js +0 -32
  227. package/dist/lib/Coscine.Api/index.js.map +0 -1
  228. package/dist/lib/Coscine.Api.STS/api.js +0 -802
  229. package/dist/lib/Coscine.Api.STS/api.js.map +0 -1
  230. package/dist/lib/Coscine.Api.STS/base.js +0 -65
  231. package/dist/lib/Coscine.Api.STS/base.js.map +0 -1
  232. package/dist/lib/Coscine.Api.STS/common.js +0 -153
  233. package/dist/lib/Coscine.Api.STS/common.js.map +0 -1
  234. package/dist/lib/Coscine.Api.STS/configuration.js +0 -43
  235. package/dist/lib/Coscine.Api.STS/configuration.js.map +0 -1
  236. package/dist/lib/Coscine.Api.STS/index.js +0 -32
  237. package/dist/lib/Coscine.Api.STS/index.js.map +0 -1
  238. package/dist/lib/apis.js +0 -95
  239. package/dist/lib/apis.js.map +0 -1
  240. package/dist/lib/axios-basic.js +0 -46
  241. package/dist/lib/axios-basic.js.map +0 -1
  242. package/dist/lib/index.js +0 -43
  243. package/dist/lib/index.js.map +0 -1
@@ -1,802 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Coscine.Api.STS
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: 0.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- var __importDefault = (this && this.__importDefault) || function (mod) {
25
- return (mod && mod.__esModule) ? mod : { "default": mod };
26
- };
27
- Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.ShibbolethApi = exports.ShibbolethApiFactory = exports.ShibbolethApiFp = exports.ShibbolethApiAxiosParamCreator = exports.ORCiDApi = exports.ORCiDApiFactory = exports.ORCiDApiFp = exports.ORCiDApiAxiosParamCreator = exports.MergeApi = exports.MergeApiFactory = exports.MergeApiFp = exports.MergeApiAxiosParamCreator = exports.HomeApi = exports.HomeApiFactory = exports.HomeApiFp = exports.HomeApiAxiosParamCreator = exports.AccountApi = exports.AccountApiFactory = exports.AccountApiFp = exports.AccountApiAxiosParamCreator = void 0;
29
- const axios_1 = __importDefault(require("axios"));
30
- // Some imports not used depending on template conditions
31
- // @ts-ignore
32
- const common_1 = require("./common");
33
- // @ts-ignore
34
- const base_1 = require("./base");
35
- /**
36
- * AccountApi - axios parameter creator
37
- * @export
38
- */
39
- const AccountApiAxiosParamCreator = function (configuration) {
40
- return {
41
- /**
42
- *
43
- * @summary Return relevant URLs for logging the user in
44
- * @param {*} [options] Override http request option.
45
- * @throws {RequiredError}
46
- */
47
- accountGetLoginUrls: (options = {}) => __awaiter(this, void 0, void 0, function* () {
48
- const localVarPath = `/Account/urls/login`;
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
- let baseOptions;
52
- if (configuration) {
53
- baseOptions = configuration.baseOptions;
54
- }
55
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
56
- const localVarHeaderParameter = {};
57
- const localVarQueryParameter = {};
58
- // authentication JWT token required
59
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
60
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
61
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
63
- return {
64
- url: (0, common_1.toPathString)(localVarUrlObj),
65
- options: localVarRequestOptions,
66
- };
67
- }),
68
- /**
69
- *
70
- * @summary Route for logging the user out of Coscine
71
- * @param {*} [options] Override http request option.
72
- * @throws {RequiredError}
73
- */
74
- accountLogout: (options = {}) => __awaiter(this, void 0, void 0, function* () {
75
- const localVarPath = `/Account/logout`;
76
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
78
- let baseOptions;
79
- if (configuration) {
80
- baseOptions = configuration.baseOptions;
81
- }
82
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
83
- const localVarHeaderParameter = {};
84
- const localVarQueryParameter = {};
85
- // authentication JWT token required
86
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
87
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
88
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
89
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
90
- return {
91
- url: (0, common_1.toPathString)(localVarUrlObj),
92
- options: localVarRequestOptions,
93
- };
94
- }),
95
- };
96
- };
97
- exports.AccountApiAxiosParamCreator = AccountApiAxiosParamCreator;
98
- /**
99
- * AccountApi - functional programming interface
100
- * @export
101
- */
102
- const AccountApiFp = function (configuration) {
103
- const localVarAxiosParamCreator = (0, exports.AccountApiAxiosParamCreator)(configuration);
104
- return {
105
- /**
106
- *
107
- * @summary Return relevant URLs for logging the user in
108
- * @param {*} [options] Override http request option.
109
- * @throws {RequiredError}
110
- */
111
- accountGetLoginUrls(options) {
112
- return __awaiter(this, void 0, void 0, function* () {
113
- const localVarAxiosArgs = yield localVarAxiosParamCreator.accountGetLoginUrls(options);
114
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
115
- });
116
- },
117
- /**
118
- *
119
- * @summary Route for logging the user out of Coscine
120
- * @param {*} [options] Override http request option.
121
- * @throws {RequiredError}
122
- */
123
- accountLogout(options) {
124
- return __awaiter(this, void 0, void 0, function* () {
125
- const localVarAxiosArgs = yield localVarAxiosParamCreator.accountLogout(options);
126
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
127
- });
128
- },
129
- };
130
- };
131
- exports.AccountApiFp = AccountApiFp;
132
- /**
133
- * AccountApi - factory interface
134
- * @export
135
- */
136
- const AccountApiFactory = function (configuration, basePath, axios) {
137
- const localVarFp = (0, exports.AccountApiFp)(configuration);
138
- return {
139
- /**
140
- *
141
- * @summary Return relevant URLs for logging the user in
142
- * @param {*} [options] Override http request option.
143
- * @throws {RequiredError}
144
- */
145
- accountGetLoginUrls(options) {
146
- return localVarFp.accountGetLoginUrls(options).then((request) => request(axios, basePath));
147
- },
148
- /**
149
- *
150
- * @summary Route for logging the user out of Coscine
151
- * @param {*} [options] Override http request option.
152
- * @throws {RequiredError}
153
- */
154
- accountLogout(options) {
155
- return localVarFp.accountLogout(options).then((request) => request(axios, basePath));
156
- },
157
- };
158
- };
159
- exports.AccountApiFactory = AccountApiFactory;
160
- /**
161
- * AccountApi - object-oriented interface
162
- * @export
163
- * @class AccountApi
164
- * @extends {BaseAPI}
165
- */
166
- class AccountApi extends base_1.BaseAPI {
167
- /**
168
- *
169
- * @summary Return relevant URLs for logging the user in
170
- * @param {*} [options] Override http request option.
171
- * @throws {RequiredError}
172
- * @memberof AccountApi
173
- */
174
- accountGetLoginUrls(options) {
175
- return (0, exports.AccountApiFp)(this.configuration).accountGetLoginUrls(options).then((request) => request(this.axios, this.basePath));
176
- }
177
- /**
178
- *
179
- * @summary Route for logging the user out of Coscine
180
- * @param {*} [options] Override http request option.
181
- * @throws {RequiredError}
182
- * @memberof AccountApi
183
- */
184
- accountLogout(options) {
185
- return (0, exports.AccountApiFp)(this.configuration).accountLogout(options).then((request) => request(this.axios, this.basePath));
186
- }
187
- }
188
- exports.AccountApi = AccountApi;
189
- /**
190
- * HomeApi - axios parameter creator
191
- * @export
192
- */
193
- const HomeApiAxiosParamCreator = function (configuration) {
194
- return {
195
- /**
196
- *
197
- * @summary The controller that the user is automatically entering when accesing the route .../coscine/api/Coscine.STS/
198
- * @param {*} [options] Override http request option.
199
- * @throws {RequiredError}
200
- */
201
- homeIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
202
- const localVarPath = `/`;
203
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
205
- let baseOptions;
206
- if (configuration) {
207
- baseOptions = configuration.baseOptions;
208
- }
209
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
210
- const localVarHeaderParameter = {};
211
- const localVarQueryParameter = {};
212
- // authentication JWT token required
213
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
214
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
215
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
217
- return {
218
- url: (0, common_1.toPathString)(localVarUrlObj),
219
- options: localVarRequestOptions,
220
- };
221
- }),
222
- };
223
- };
224
- exports.HomeApiAxiosParamCreator = HomeApiAxiosParamCreator;
225
- /**
226
- * HomeApi - functional programming interface
227
- * @export
228
- */
229
- const HomeApiFp = function (configuration) {
230
- const localVarAxiosParamCreator = (0, exports.HomeApiAxiosParamCreator)(configuration);
231
- return {
232
- /**
233
- *
234
- * @summary The controller that the user is automatically entering when accesing the route .../coscine/api/Coscine.STS/
235
- * @param {*} [options] Override http request option.
236
- * @throws {RequiredError}
237
- */
238
- homeIndex(options) {
239
- return __awaiter(this, void 0, void 0, function* () {
240
- const localVarAxiosArgs = yield localVarAxiosParamCreator.homeIndex(options);
241
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
242
- });
243
- },
244
- };
245
- };
246
- exports.HomeApiFp = HomeApiFp;
247
- /**
248
- * HomeApi - factory interface
249
- * @export
250
- */
251
- const HomeApiFactory = function (configuration, basePath, axios) {
252
- const localVarFp = (0, exports.HomeApiFp)(configuration);
253
- return {
254
- /**
255
- *
256
- * @summary The controller that the user is automatically entering when accesing the route .../coscine/api/Coscine.STS/
257
- * @param {*} [options] Override http request option.
258
- * @throws {RequiredError}
259
- */
260
- homeIndex(options) {
261
- return localVarFp.homeIndex(options).then((request) => request(axios, basePath));
262
- },
263
- };
264
- };
265
- exports.HomeApiFactory = HomeApiFactory;
266
- /**
267
- * HomeApi - object-oriented interface
268
- * @export
269
- * @class HomeApi
270
- * @extends {BaseAPI}
271
- */
272
- class HomeApi extends base_1.BaseAPI {
273
- /**
274
- *
275
- * @summary The controller that the user is automatically entering when accesing the route .../coscine/api/Coscine.STS/
276
- * @param {*} [options] Override http request option.
277
- * @throws {RequiredError}
278
- * @memberof HomeApi
279
- */
280
- homeIndex(options) {
281
- return (0, exports.HomeApiFp)(this.configuration).homeIndex(options).then((request) => request(this.axios, this.basePath));
282
- }
283
- }
284
- exports.HomeApi = HomeApi;
285
- /**
286
- * MergeApi - axios parameter creator
287
- * @export
288
- */
289
- const MergeApiAxiosParamCreator = function (configuration) {
290
- return {
291
- /**
292
- *
293
- * @param {string} [returnUrl]
294
- * @param {*} [options] Override http request option.
295
- * @throws {RequiredError}
296
- */
297
- mergeCallback: (returnUrl, options = {}) => __awaiter(this, void 0, void 0, function* () {
298
- const localVarPath = `/Merge/callback`;
299
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
300
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
301
- let baseOptions;
302
- if (configuration) {
303
- baseOptions = configuration.baseOptions;
304
- }
305
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
306
- const localVarHeaderParameter = {};
307
- const localVarQueryParameter = {};
308
- // authentication JWT token required
309
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
310
- if (returnUrl !== undefined) {
311
- localVarQueryParameter['returnUrl'] = returnUrl;
312
- }
313
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
314
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
316
- return {
317
- url: (0, common_1.toPathString)(localVarUrlObj),
318
- options: localVarRequestOptions,
319
- };
320
- }),
321
- /**
322
- *
323
- * @param {string} [returnUrl]
324
- * @param {*} [options] Override http request option.
325
- * @throws {RequiredError}
326
- */
327
- mergeLogin: (returnUrl, options = {}) => __awaiter(this, void 0, void 0, function* () {
328
- const localVarPath = `/Merge/login`;
329
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
330
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
331
- let baseOptions;
332
- if (configuration) {
333
- baseOptions = configuration.baseOptions;
334
- }
335
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
336
- const localVarHeaderParameter = {};
337
- const localVarQueryParameter = {};
338
- // authentication JWT token required
339
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
340
- if (returnUrl !== undefined) {
341
- localVarQueryParameter['returnUrl'] = returnUrl;
342
- }
343
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
344
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
345
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
346
- return {
347
- url: (0, common_1.toPathString)(localVarUrlObj),
348
- options: localVarRequestOptions,
349
- };
350
- }),
351
- };
352
- };
353
- exports.MergeApiAxiosParamCreator = MergeApiAxiosParamCreator;
354
- /**
355
- * MergeApi - functional programming interface
356
- * @export
357
- */
358
- const MergeApiFp = function (configuration) {
359
- const localVarAxiosParamCreator = (0, exports.MergeApiAxiosParamCreator)(configuration);
360
- return {
361
- /**
362
- *
363
- * @param {string} [returnUrl]
364
- * @param {*} [options] Override http request option.
365
- * @throws {RequiredError}
366
- */
367
- mergeCallback(returnUrl, options) {
368
- return __awaiter(this, void 0, void 0, function* () {
369
- const localVarAxiosArgs = yield localVarAxiosParamCreator.mergeCallback(returnUrl, options);
370
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
371
- });
372
- },
373
- /**
374
- *
375
- * @param {string} [returnUrl]
376
- * @param {*} [options] Override http request option.
377
- * @throws {RequiredError}
378
- */
379
- mergeLogin(returnUrl, options) {
380
- return __awaiter(this, void 0, void 0, function* () {
381
- const localVarAxiosArgs = yield localVarAxiosParamCreator.mergeLogin(returnUrl, options);
382
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
383
- });
384
- },
385
- };
386
- };
387
- exports.MergeApiFp = MergeApiFp;
388
- /**
389
- * MergeApi - factory interface
390
- * @export
391
- */
392
- const MergeApiFactory = function (configuration, basePath, axios) {
393
- const localVarFp = (0, exports.MergeApiFp)(configuration);
394
- return {
395
- /**
396
- *
397
- * @param {string} [returnUrl]
398
- * @param {*} [options] Override http request option.
399
- * @throws {RequiredError}
400
- */
401
- mergeCallback(returnUrl, options) {
402
- return localVarFp.mergeCallback(returnUrl, options).then((request) => request(axios, basePath));
403
- },
404
- /**
405
- *
406
- * @param {string} [returnUrl]
407
- * @param {*} [options] Override http request option.
408
- * @throws {RequiredError}
409
- */
410
- mergeLogin(returnUrl, options) {
411
- return localVarFp.mergeLogin(returnUrl, options).then((request) => request(axios, basePath));
412
- },
413
- };
414
- };
415
- exports.MergeApiFactory = MergeApiFactory;
416
- /**
417
- * MergeApi - object-oriented interface
418
- * @export
419
- * @class MergeApi
420
- * @extends {BaseAPI}
421
- */
422
- class MergeApi extends base_1.BaseAPI {
423
- /**
424
- *
425
- * @param {string} [returnUrl]
426
- * @param {*} [options] Override http request option.
427
- * @throws {RequiredError}
428
- * @memberof MergeApi
429
- */
430
- mergeCallback(returnUrl, options) {
431
- return (0, exports.MergeApiFp)(this.configuration).mergeCallback(returnUrl, options).then((request) => request(this.axios, this.basePath));
432
- }
433
- /**
434
- *
435
- * @param {string} [returnUrl]
436
- * @param {*} [options] Override http request option.
437
- * @throws {RequiredError}
438
- * @memberof MergeApi
439
- */
440
- mergeLogin(returnUrl, options) {
441
- return (0, exports.MergeApiFp)(this.configuration).mergeLogin(returnUrl, options).then((request) => request(this.axios, this.basePath));
442
- }
443
- }
444
- exports.MergeApi = MergeApi;
445
- /**
446
- * ORCiDApi - axios parameter creator
447
- * @export
448
- */
449
- const ORCiDApiAxiosParamCreator = function (configuration) {
450
- return {
451
- /**
452
- *
453
- * @summary ORCiD Login Route
454
- * @param {string} [returnUrl] URL to be redirected to
455
- * @param {*} [options] Override http request option.
456
- * @throws {RequiredError}
457
- */
458
- oRCiDLoginGET: (returnUrl, options = {}) => __awaiter(this, void 0, void 0, function* () {
459
- const localVarPath = `/ORCiD/login`;
460
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
461
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
462
- let baseOptions;
463
- if (configuration) {
464
- baseOptions = configuration.baseOptions;
465
- }
466
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
467
- const localVarHeaderParameter = {};
468
- const localVarQueryParameter = {};
469
- // authentication JWT token required
470
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
471
- if (returnUrl !== undefined) {
472
- localVarQueryParameter['returnUrl'] = returnUrl;
473
- }
474
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
475
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
476
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
477
- return {
478
- url: (0, common_1.toPathString)(localVarUrlObj),
479
- options: localVarRequestOptions,
480
- };
481
- }),
482
- /**
483
- *
484
- * @summary Execute ORCiD validation and login
485
- * @param {string} [oRCiDJWT]
486
- * @param {string} [returnUrl] URL to be redirected to
487
- * @param {*} [options] Override http request option.
488
- * @throws {RequiredError}
489
- */
490
- oRCiDLoginPOST: (oRCiDJWT, returnUrl, options = {}) => __awaiter(this, void 0, void 0, function* () {
491
- const localVarPath = `/ORCiD/login`;
492
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
493
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
494
- let baseOptions;
495
- if (configuration) {
496
- baseOptions = configuration.baseOptions;
497
- }
498
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
499
- const localVarHeaderParameter = {};
500
- const localVarQueryParameter = {};
501
- // authentication JWT token required
502
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
503
- if (oRCiDJWT !== undefined) {
504
- localVarQueryParameter['ORCiD_JWT'] = oRCiDJWT;
505
- }
506
- if (returnUrl !== undefined) {
507
- localVarQueryParameter['returnUrl'] = returnUrl;
508
- }
509
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
510
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
511
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
512
- return {
513
- url: (0, common_1.toPathString)(localVarUrlObj),
514
- options: localVarRequestOptions,
515
- };
516
- }),
517
- };
518
- };
519
- exports.ORCiDApiAxiosParamCreator = ORCiDApiAxiosParamCreator;
520
- /**
521
- * ORCiDApi - functional programming interface
522
- * @export
523
- */
524
- const ORCiDApiFp = function (configuration) {
525
- const localVarAxiosParamCreator = (0, exports.ORCiDApiAxiosParamCreator)(configuration);
526
- return {
527
- /**
528
- *
529
- * @summary ORCiD Login Route
530
- * @param {string} [returnUrl] URL to be redirected to
531
- * @param {*} [options] Override http request option.
532
- * @throws {RequiredError}
533
- */
534
- oRCiDLoginGET(returnUrl, options) {
535
- return __awaiter(this, void 0, void 0, function* () {
536
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oRCiDLoginGET(returnUrl, options);
537
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
538
- });
539
- },
540
- /**
541
- *
542
- * @summary Execute ORCiD validation and login
543
- * @param {string} [oRCiDJWT]
544
- * @param {string} [returnUrl] URL to be redirected to
545
- * @param {*} [options] Override http request option.
546
- * @throws {RequiredError}
547
- */
548
- oRCiDLoginPOST(oRCiDJWT, returnUrl, options) {
549
- return __awaiter(this, void 0, void 0, function* () {
550
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oRCiDLoginPOST(oRCiDJWT, returnUrl, options);
551
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
552
- });
553
- },
554
- };
555
- };
556
- exports.ORCiDApiFp = ORCiDApiFp;
557
- /**
558
- * ORCiDApi - factory interface
559
- * @export
560
- */
561
- const ORCiDApiFactory = function (configuration, basePath, axios) {
562
- const localVarFp = (0, exports.ORCiDApiFp)(configuration);
563
- return {
564
- /**
565
- *
566
- * @summary ORCiD Login Route
567
- * @param {string} [returnUrl] URL to be redirected to
568
- * @param {*} [options] Override http request option.
569
- * @throws {RequiredError}
570
- */
571
- oRCiDLoginGET(returnUrl, options) {
572
- return localVarFp.oRCiDLoginGET(returnUrl, options).then((request) => request(axios, basePath));
573
- },
574
- /**
575
- *
576
- * @summary Execute ORCiD validation and login
577
- * @param {string} [oRCiDJWT]
578
- * @param {string} [returnUrl] URL to be redirected to
579
- * @param {*} [options] Override http request option.
580
- * @throws {RequiredError}
581
- */
582
- oRCiDLoginPOST(oRCiDJWT, returnUrl, options) {
583
- return localVarFp.oRCiDLoginPOST(oRCiDJWT, returnUrl, options).then((request) => request(axios, basePath));
584
- },
585
- };
586
- };
587
- exports.ORCiDApiFactory = ORCiDApiFactory;
588
- /**
589
- * ORCiDApi - object-oriented interface
590
- * @export
591
- * @class ORCiDApi
592
- * @extends {BaseAPI}
593
- */
594
- class ORCiDApi extends base_1.BaseAPI {
595
- /**
596
- *
597
- * @summary ORCiD Login Route
598
- * @param {string} [returnUrl] URL to be redirected to
599
- * @param {*} [options] Override http request option.
600
- * @throws {RequiredError}
601
- * @memberof ORCiDApi
602
- */
603
- oRCiDLoginGET(returnUrl, options) {
604
- return (0, exports.ORCiDApiFp)(this.configuration).oRCiDLoginGET(returnUrl, options).then((request) => request(this.axios, this.basePath));
605
- }
606
- /**
607
- *
608
- * @summary Execute ORCiD validation and login
609
- * @param {string} [oRCiDJWT]
610
- * @param {string} [returnUrl] URL to be redirected to
611
- * @param {*} [options] Override http request option.
612
- * @throws {RequiredError}
613
- * @memberof ORCiDApi
614
- */
615
- oRCiDLoginPOST(oRCiDJWT, returnUrl, options) {
616
- return (0, exports.ORCiDApiFp)(this.configuration).oRCiDLoginPOST(oRCiDJWT, returnUrl, options).then((request) => request(this.axios, this.basePath));
617
- }
618
- }
619
- exports.ORCiDApi = ORCiDApi;
620
- /**
621
- * ShibbolethApi - axios parameter creator
622
- * @export
623
- */
624
- const ShibbolethApiAxiosParamCreator = function (configuration) {
625
- return {
626
- /**
627
- *
628
- * @summary Callback method to catch the login
629
- * @param {string} [returnUrl] URL to be redirected to
630
- * @param {string} [remoteError] Erros on remote login
631
- * @param {*} [options] Override http request option.
632
- * @throws {RequiredError}
633
- */
634
- shibbolethCallback: (returnUrl, remoteError, options = {}) => __awaiter(this, void 0, void 0, function* () {
635
- const localVarPath = `/Shibboleth/callback`;
636
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
637
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
638
- let baseOptions;
639
- if (configuration) {
640
- baseOptions = configuration.baseOptions;
641
- }
642
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
643
- const localVarHeaderParameter = {};
644
- const localVarQueryParameter = {};
645
- // authentication JWT token required
646
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
647
- if (returnUrl !== undefined) {
648
- localVarQueryParameter['returnUrl'] = returnUrl;
649
- }
650
- if (remoteError !== undefined) {
651
- localVarQueryParameter['remoteError'] = remoteError;
652
- }
653
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
654
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
655
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
656
- return {
657
- url: (0, common_1.toPathString)(localVarUrlObj),
658
- options: localVarRequestOptions,
659
- };
660
- }),
661
- /**
662
- *
663
- * @summary This method is the central route for logging into an identity provider. On default, the user is redirected to the WAFY of the DFN-AAI. Setting the \"entityId\" parameter allows the application to redirect to a specific identity provider defined by DFN-AAI.
664
- * @param {string} [returnUrl] URL to be redirected to
665
- * @param {string} [entityId] Specific Identitiy Provider to be redirect to
666
- * @param {*} [options] Override http request option.
667
- * @throws {RequiredError}
668
- */
669
- shibbolethLogin: (returnUrl, entityId, options = {}) => __awaiter(this, void 0, void 0, function* () {
670
- const localVarPath = `/Shibboleth/login`;
671
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
672
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
673
- let baseOptions;
674
- if (configuration) {
675
- baseOptions = configuration.baseOptions;
676
- }
677
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
678
- const localVarHeaderParameter = {};
679
- const localVarQueryParameter = {};
680
- // authentication JWT token required
681
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
682
- if (returnUrl !== undefined) {
683
- localVarQueryParameter['returnUrl'] = returnUrl;
684
- }
685
- if (entityId !== undefined) {
686
- localVarQueryParameter['entityId'] = entityId;
687
- }
688
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
689
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
690
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
691
- return {
692
- url: (0, common_1.toPathString)(localVarUrlObj),
693
- options: localVarRequestOptions,
694
- };
695
- }),
696
- };
697
- };
698
- exports.ShibbolethApiAxiosParamCreator = ShibbolethApiAxiosParamCreator;
699
- /**
700
- * ShibbolethApi - functional programming interface
701
- * @export
702
- */
703
- const ShibbolethApiFp = function (configuration) {
704
- const localVarAxiosParamCreator = (0, exports.ShibbolethApiAxiosParamCreator)(configuration);
705
- return {
706
- /**
707
- *
708
- * @summary Callback method to catch the login
709
- * @param {string} [returnUrl] URL to be redirected to
710
- * @param {string} [remoteError] Erros on remote login
711
- * @param {*} [options] Override http request option.
712
- * @throws {RequiredError}
713
- */
714
- shibbolethCallback(returnUrl, remoteError, options) {
715
- return __awaiter(this, void 0, void 0, function* () {
716
- const localVarAxiosArgs = yield localVarAxiosParamCreator.shibbolethCallback(returnUrl, remoteError, options);
717
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
718
- });
719
- },
720
- /**
721
- *
722
- * @summary This method is the central route for logging into an identity provider. On default, the user is redirected to the WAFY of the DFN-AAI. Setting the \"entityId\" parameter allows the application to redirect to a specific identity provider defined by DFN-AAI.
723
- * @param {string} [returnUrl] URL to be redirected to
724
- * @param {string} [entityId] Specific Identitiy Provider to be redirect to
725
- * @param {*} [options] Override http request option.
726
- * @throws {RequiredError}
727
- */
728
- shibbolethLogin(returnUrl, entityId, options) {
729
- return __awaiter(this, void 0, void 0, function* () {
730
- const localVarAxiosArgs = yield localVarAxiosParamCreator.shibbolethLogin(returnUrl, entityId, options);
731
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
732
- });
733
- },
734
- };
735
- };
736
- exports.ShibbolethApiFp = ShibbolethApiFp;
737
- /**
738
- * ShibbolethApi - factory interface
739
- * @export
740
- */
741
- const ShibbolethApiFactory = function (configuration, basePath, axios) {
742
- const localVarFp = (0, exports.ShibbolethApiFp)(configuration);
743
- return {
744
- /**
745
- *
746
- * @summary Callback method to catch the login
747
- * @param {string} [returnUrl] URL to be redirected to
748
- * @param {string} [remoteError] Erros on remote login
749
- * @param {*} [options] Override http request option.
750
- * @throws {RequiredError}
751
- */
752
- shibbolethCallback(returnUrl, remoteError, options) {
753
- return localVarFp.shibbolethCallback(returnUrl, remoteError, options).then((request) => request(axios, basePath));
754
- },
755
- /**
756
- *
757
- * @summary This method is the central route for logging into an identity provider. On default, the user is redirected to the WAFY of the DFN-AAI. Setting the \"entityId\" parameter allows the application to redirect to a specific identity provider defined by DFN-AAI.
758
- * @param {string} [returnUrl] URL to be redirected to
759
- * @param {string} [entityId] Specific Identitiy Provider to be redirect to
760
- * @param {*} [options] Override http request option.
761
- * @throws {RequiredError}
762
- */
763
- shibbolethLogin(returnUrl, entityId, options) {
764
- return localVarFp.shibbolethLogin(returnUrl, entityId, options).then((request) => request(axios, basePath));
765
- },
766
- };
767
- };
768
- exports.ShibbolethApiFactory = ShibbolethApiFactory;
769
- /**
770
- * ShibbolethApi - object-oriented interface
771
- * @export
772
- * @class ShibbolethApi
773
- * @extends {BaseAPI}
774
- */
775
- class ShibbolethApi extends base_1.BaseAPI {
776
- /**
777
- *
778
- * @summary Callback method to catch the login
779
- * @param {string} [returnUrl] URL to be redirected to
780
- * @param {string} [remoteError] Erros on remote login
781
- * @param {*} [options] Override http request option.
782
- * @throws {RequiredError}
783
- * @memberof ShibbolethApi
784
- */
785
- shibbolethCallback(returnUrl, remoteError, options) {
786
- return (0, exports.ShibbolethApiFp)(this.configuration).shibbolethCallback(returnUrl, remoteError, options).then((request) => request(this.axios, this.basePath));
787
- }
788
- /**
789
- *
790
- * @summary This method is the central route for logging into an identity provider. On default, the user is redirected to the WAFY of the DFN-AAI. Setting the \"entityId\" parameter allows the application to redirect to a specific identity provider defined by DFN-AAI.
791
- * @param {string} [returnUrl] URL to be redirected to
792
- * @param {string} [entityId] Specific Identitiy Provider to be redirect to
793
- * @param {*} [options] Override http request option.
794
- * @throws {RequiredError}
795
- * @memberof ShibbolethApi
796
- */
797
- shibbolethLogin(returnUrl, entityId, options) {
798
- return (0, exports.ShibbolethApiFp)(this.configuration).shibbolethLogin(returnUrl, entityId, options).then((request) => request(this.axios, this.basePath));
799
- }
800
- }
801
- exports.ShibbolethApi = ShibbolethApi;
802
- //# sourceMappingURL=api.js.map