@wastesentry/trak-client 0.1.0 → 0.1.1

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 (377) hide show
  1. package/.openapi-generator/FILES +55 -118
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +140 -0
  4. package/api.ts +26 -0
  5. package/apis/default-api.ts +328 -0
  6. package/apis/info-api.ts +149 -0
  7. package/apis/manifest-api.ts +1135 -0
  8. package/apis/my-profile-api.ts +131 -0
  9. package/apis/orgs-api.ts +333 -0
  10. package/apis/profile-api.ts +383 -0
  11. package/apis/site-api.ts +215 -0
  12. package/apis/sites-api.ts +236 -0
  13. package/apis/sync-api.ts +128 -0
  14. package/base.ts +62 -0
  15. package/common.ts +127 -0
  16. package/configuration.ts +121 -0
  17. package/dist/api.d.ts +20 -0
  18. package/dist/api.js +38 -0
  19. package/dist/apis/default-api.d.ts +170 -0
  20. package/dist/apis/default-api.js +266 -0
  21. package/dist/apis/info-api.d.ts +82 -0
  22. package/dist/apis/info-api.js +129 -0
  23. package/dist/apis/manifest-api.d.ts +566 -0
  24. package/dist/apis/manifest-api.js +868 -0
  25. package/dist/apis/my-profile-api.d.ts +70 -0
  26. package/dist/apis/my-profile-api.js +121 -0
  27. package/dist/apis/orgs-api.d.ts +174 -0
  28. package/dist/apis/orgs-api.js +263 -0
  29. package/dist/apis/profile-api.d.ts +191 -0
  30. package/dist/apis/profile-api.js +298 -0
  31. package/dist/apis/site-api.d.ts +111 -0
  32. package/dist/apis/site-api.js +186 -0
  33. package/dist/apis/sites-api.d.ts +126 -0
  34. package/dist/apis/sites-api.js +193 -0
  35. package/dist/apis/sync-api.d.ts +69 -0
  36. package/dist/apis/sync-api.js +120 -0
  37. package/dist/base.d.ts +42 -0
  38. package/dist/base.js +46 -0
  39. package/dist/common.d.ts +34 -0
  40. package/dist/common.js +139 -0
  41. package/dist/configuration.d.ts +98 -0
  42. package/dist/configuration.js +44 -0
  43. package/dist/esm/api.d.ts +20 -0
  44. package/dist/esm/api.js +22 -0
  45. package/dist/esm/apis/default-api.d.ts +170 -0
  46. package/dist/esm/apis/default-api.js +259 -0
  47. package/dist/esm/apis/info-api.d.ts +82 -0
  48. package/dist/esm/apis/info-api.js +122 -0
  49. package/dist/esm/apis/manifest-api.d.ts +566 -0
  50. package/dist/esm/apis/manifest-api.js +861 -0
  51. package/dist/esm/apis/my-profile-api.d.ts +70 -0
  52. package/dist/esm/apis/my-profile-api.js +114 -0
  53. package/dist/esm/apis/orgs-api.d.ts +174 -0
  54. package/dist/esm/apis/orgs-api.js +256 -0
  55. package/dist/esm/apis/profile-api.d.ts +191 -0
  56. package/dist/esm/apis/profile-api.js +291 -0
  57. package/dist/esm/apis/site-api.d.ts +111 -0
  58. package/dist/esm/apis/site-api.js +179 -0
  59. package/dist/esm/apis/sites-api.d.ts +126 -0
  60. package/dist/esm/apis/sites-api.js +186 -0
  61. package/dist/esm/apis/sync-api.d.ts +69 -0
  62. package/dist/esm/apis/sync-api.js +113 -0
  63. package/dist/esm/base.d.ts +42 -0
  64. package/dist/esm/base.js +41 -0
  65. package/dist/esm/common.d.ts +34 -0
  66. package/dist/esm/common.js +126 -0
  67. package/dist/esm/configuration.d.ts +98 -0
  68. package/dist/esm/configuration.js +40 -0
  69. package/dist/esm/index.d.ts +14 -0
  70. package/dist/esm/index.js +16 -0
  71. package/dist/esm/models/additional-info.d.ts +21 -0
  72. package/dist/esm/models/additional-info.js +14 -0
  73. package/dist/esm/models/esignature.d.ts +23 -0
  74. package/dist/esm/models/esignature.js +14 -0
  75. package/dist/esm/models/handler-search-site-type-enum.d.ts +21 -0
  76. package/dist/esm/models/handler-search-site-type-enum.js +22 -0
  77. package/dist/esm/models/handler-search.d.ts +16 -0
  78. package/dist/esm/models/handler-search.js +14 -0
  79. package/dist/esm/models/handler.d.ts +28 -0
  80. package/dist/esm/models/handler.js +14 -0
  81. package/dist/esm/models/index.d.ts +34 -0
  82. package/dist/esm/models/index.js +34 -0
  83. package/dist/esm/models/lock-reason-enum.d.ts +20 -0
  84. package/dist/esm/models/lock-reason-enum.js +21 -0
  85. package/dist/esm/models/manifest-phone.d.ts +18 -0
  86. package/dist/esm/models/manifest-phone.js +14 -0
  87. package/dist/esm/models/manifest.d.ts +53 -0
  88. package/dist/esm/models/manifest.js +14 -0
  89. package/dist/esm/models/mtn.d.ts +21 -0
  90. package/dist/esm/models/mtn.js +14 -0
  91. package/dist/esm/models/null-enum.d.ts +13 -0
  92. package/dist/esm/models/null-enum.js +14 -0
  93. package/dist/esm/models/org.d.ts +20 -0
  94. package/dist/esm/models/org.js +14 -0
  95. package/dist/esm/models/paginated-mtn-list.d.ts +18 -0
  96. package/dist/esm/models/paginated-mtn-list.js +14 -0
  97. package/dist/esm/models/paginated-org-list.d.ts +18 -0
  98. package/dist/esm/models/paginated-org-list.js +14 -0
  99. package/dist/esm/models/paginated-site-list.d.ts +18 -0
  100. package/dist/esm/models/paginated-site-list.js +14 -0
  101. package/dist/esm/models/paper-signature.d.ts +18 -0
  102. package/dist/esm/models/paper-signature.js +14 -0
  103. package/dist/esm/models/patched-profile.d.ts +20 -0
  104. package/dist/esm/models/patched-profile.js +14 -0
  105. package/dist/esm/models/patched-rcrainfo-profile.d.ts +24 -0
  106. package/dist/esm/models/patched-rcrainfo-profile.js +14 -0
  107. package/dist/esm/models/profile.d.ts +20 -0
  108. package/dist/esm/models/profile.js +14 -0
  109. package/dist/esm/models/quicker-sign.d.ts +22 -0
  110. package/dist/esm/models/quicker-sign.js +14 -0
  111. package/dist/esm/models/rcra-address.d.ts +27 -0
  112. package/dist/esm/models/rcra-address.js +14 -0
  113. package/dist/esm/models/rcra-contact.d.ts +23 -0
  114. package/dist/esm/models/rcra-contact.js +14 -0
  115. package/dist/esm/models/rcra-phone.d.ts +18 -0
  116. package/dist/esm/models/rcra-phone.js +14 -0
  117. package/dist/esm/models/rcra-site-permission.d.ts +23 -0
  118. package/dist/esm/models/rcra-site-permission.js +14 -0
  119. package/dist/esm/models/rcra-site.d.ts +39 -0
  120. package/dist/esm/models/rcra-site.js +19 -0
  121. package/dist/esm/models/rcrainfo-profile.d.ts +24 -0
  122. package/dist/esm/models/rcrainfo-profile.js +14 -0
  123. package/dist/esm/models/signer.d.ts +26 -0
  124. package/dist/esm/models/signer.js +14 -0
  125. package/dist/esm/models/site-manifest-sync-request.d.ts +14 -0
  126. package/dist/esm/models/site-manifest-sync-request.js +14 -0
  127. package/dist/esm/models/site-manifest-sync-response.d.ts +14 -0
  128. package/dist/esm/models/site-manifest-sync-response.js +14 -0
  129. package/dist/esm/models/site-type-enum.d.ts +21 -0
  130. package/dist/esm/models/site-type-enum.js +22 -0
  131. package/dist/esm/models/site.d.ts +19 -0
  132. package/dist/esm/models/site.js +14 -0
  133. package/dist/esm/models/status-enum.d.ts +26 -0
  134. package/dist/esm/models/status-enum.js +27 -0
  135. package/dist/esm/models/trak-user.d.ts +20 -0
  136. package/dist/esm/models/trak-user.js +14 -0
  137. package/dist/esm/models/transporter.d.ts +27 -0
  138. package/dist/esm/models/transporter.js +14 -0
  139. package/dist/esm/models/waste-line.d.ts +28 -0
  140. package/dist/esm/models/waste-line.js +14 -0
  141. package/dist/index.d.ts +14 -0
  142. package/dist/index.js +32 -0
  143. package/dist/models/additional-info.d.ts +21 -0
  144. package/dist/models/additional-info.js +15 -0
  145. package/dist/models/esignature.d.ts +23 -0
  146. package/dist/models/esignature.js +15 -0
  147. package/dist/models/handler-search-site-type-enum.d.ts +21 -0
  148. package/dist/models/handler-search-site-type-enum.js +25 -0
  149. package/dist/models/handler-search.d.ts +16 -0
  150. package/dist/models/handler-search.js +15 -0
  151. package/dist/models/handler.d.ts +28 -0
  152. package/dist/models/handler.js +15 -0
  153. package/dist/models/index.d.ts +34 -0
  154. package/dist/models/index.js +50 -0
  155. package/dist/models/lock-reason-enum.d.ts +20 -0
  156. package/dist/models/lock-reason-enum.js +24 -0
  157. package/dist/models/manifest-phone.d.ts +18 -0
  158. package/dist/models/manifest-phone.js +15 -0
  159. package/dist/models/manifest.d.ts +53 -0
  160. package/dist/models/manifest.js +15 -0
  161. package/dist/models/mtn.d.ts +21 -0
  162. package/dist/models/mtn.js +15 -0
  163. package/dist/models/null-enum.d.ts +13 -0
  164. package/dist/models/null-enum.js +17 -0
  165. package/dist/models/org.d.ts +20 -0
  166. package/dist/models/org.js +15 -0
  167. package/dist/models/paginated-mtn-list.d.ts +18 -0
  168. package/dist/models/paginated-mtn-list.js +15 -0
  169. package/dist/models/paginated-org-list.d.ts +18 -0
  170. package/dist/models/paginated-org-list.js +15 -0
  171. package/dist/models/paginated-site-list.d.ts +18 -0
  172. package/dist/models/paginated-site-list.js +15 -0
  173. package/dist/models/paper-signature.d.ts +18 -0
  174. package/dist/models/paper-signature.js +15 -0
  175. package/dist/models/patched-profile.d.ts +20 -0
  176. package/dist/models/patched-profile.js +15 -0
  177. package/dist/models/patched-rcrainfo-profile.d.ts +24 -0
  178. package/dist/models/patched-rcrainfo-profile.js +15 -0
  179. package/dist/models/profile.d.ts +20 -0
  180. package/dist/models/profile.js +15 -0
  181. package/dist/models/quicker-sign.d.ts +22 -0
  182. package/dist/models/quicker-sign.js +15 -0
  183. package/dist/models/rcra-address.d.ts +27 -0
  184. package/dist/models/rcra-address.js +15 -0
  185. package/dist/models/rcra-contact.d.ts +23 -0
  186. package/dist/models/rcra-contact.js +15 -0
  187. package/dist/models/rcra-phone.d.ts +18 -0
  188. package/dist/models/rcra-phone.js +15 -0
  189. package/dist/models/rcra-site-permission.d.ts +23 -0
  190. package/dist/models/rcra-site-permission.js +15 -0
  191. package/dist/models/rcra-site.d.ts +39 -0
  192. package/dist/models/rcra-site.js +22 -0
  193. package/dist/models/rcrainfo-profile.d.ts +24 -0
  194. package/dist/models/rcrainfo-profile.js +15 -0
  195. package/dist/models/signer.d.ts +26 -0
  196. package/dist/models/signer.js +15 -0
  197. package/dist/models/site-manifest-sync-request.d.ts +14 -0
  198. package/dist/models/site-manifest-sync-request.js +15 -0
  199. package/dist/models/site-manifest-sync-response.d.ts +14 -0
  200. package/dist/models/site-manifest-sync-response.js +15 -0
  201. package/dist/models/site-type-enum.d.ts +21 -0
  202. package/dist/models/site-type-enum.js +25 -0
  203. package/dist/models/site.d.ts +19 -0
  204. package/dist/models/site.js +15 -0
  205. package/dist/models/status-enum.d.ts +26 -0
  206. package/dist/models/status-enum.js +30 -0
  207. package/dist/models/trak-user.d.ts +20 -0
  208. package/dist/models/trak-user.js +15 -0
  209. package/dist/models/transporter.d.ts +27 -0
  210. package/dist/models/transporter.js +15 -0
  211. package/dist/models/waste-line.d.ts +28 -0
  212. package/dist/models/waste-line.js +15 -0
  213. package/git_push.sh +57 -0
  214. package/index.ts +16 -3
  215. package/models/additional-info.ts +27 -0
  216. package/models/esignature.ts +31 -0
  217. package/models/handler-search-site-type-enum.ts +31 -0
  218. package/models/handler-search.ts +26 -0
  219. package/models/handler.ts +42 -0
  220. package/models/index.ts +34 -50
  221. package/models/lock-reason-enum.ts +30 -0
  222. package/models/manifest-phone.ts +24 -0
  223. package/models/manifest.ts +73 -0
  224. package/models/mtn.ts +31 -0
  225. package/models/null-enum.ts +24 -0
  226. package/models/org.ts +26 -0
  227. package/models/paginated-mtn-list.ts +26 -0
  228. package/models/paginated-org-list.ts +26 -0
  229. package/models/paginated-site-list.ts +26 -0
  230. package/models/paper-signature.ts +24 -0
  231. package/models/patched-profile.ts +28 -0
  232. package/models/patched-rcrainfo-profile.ts +32 -0
  233. package/models/profile.ts +28 -0
  234. package/models/quicker-sign.ts +28 -0
  235. package/models/rcra-address.ts +29 -0
  236. package/models/rcra-contact.ts +31 -0
  237. package/models/rcra-phone.ts +24 -0
  238. package/models/rcra-site-permission.ts +29 -0
  239. package/models/rcra-site.ts +54 -0
  240. package/models/rcrainfo-profile.ts +32 -0
  241. package/models/signer.ts +34 -0
  242. package/models/site-manifest-sync-request.ts +20 -0
  243. package/models/site-manifest-sync-response.ts +20 -0
  244. package/models/site-type-enum.ts +31 -0
  245. package/models/site.ts +27 -0
  246. package/models/status-enum.ts +36 -0
  247. package/models/trak-user.ts +26 -0
  248. package/models/transporter.ts +39 -0
  249. package/models/waste-line.ts +34 -0
  250. package/package.json +26 -10
  251. package/tsconfig.esm.json +7 -0
  252. package/tsconfig.json +18 -0
  253. package/apis/DefaultApi.ts +0 -176
  254. package/apis/InfoApi.ts +0 -80
  255. package/apis/ManifestApi.ts +0 -604
  256. package/apis/MyProfileApi.ts +0 -63
  257. package/apis/OrgsApi.ts +0 -172
  258. package/apis/PegasusApi.ts +0 -336
  259. package/apis/ProfileApi.ts +0 -229
  260. package/apis/SiteApi.ts +0 -108
  261. package/apis/SitesApi.ts +0 -119
  262. package/apis/SyncApi.ts +0 -55
  263. package/apis/TeamsApi.ts +0 -673
  264. package/apis/index.ts +0 -12
  265. package/docs/AdditionalInfo.md +0 -41
  266. package/docs/DefaultApi.md +0 -235
  267. package/docs/ESignature.md +0 -43
  268. package/docs/Handler.md +0 -41
  269. package/docs/HandlerSearch.md +0 -34
  270. package/docs/HandlerSearchSiteTypeEnum.md +0 -31
  271. package/docs/InfoApi.md +0 -81
  272. package/docs/Invitation.md +0 -42
  273. package/docs/LockReasonEnum.md +0 -31
  274. package/docs/Manifest.md +0 -93
  275. package/docs/ManifestApi.md +0 -907
  276. package/docs/ManifestPhone.md +0 -35
  277. package/docs/Membership.md +0 -42
  278. package/docs/Mtn.md +0 -39
  279. package/docs/MyProfileApi.md +0 -73
  280. package/docs/NullEnum.md +0 -30
  281. package/docs/OpenInvitation.md +0 -38
  282. package/docs/Org.md +0 -39
  283. package/docs/OrgsApi.md +0 -232
  284. package/docs/PaginatedInvitationList.md +0 -38
  285. package/docs/PaginatedMtnList.md +0 -38
  286. package/docs/PaginatedOrgList.md +0 -38
  287. package/docs/PaginatedSiteList.md +0 -38
  288. package/docs/PaginatedTeamList.md +0 -38
  289. package/docs/PaperSignature.md +0 -35
  290. package/docs/PatchedInvitation.md +0 -42
  291. package/docs/PatchedProfile.md +0 -35
  292. package/docs/PatchedRcrainfoProfile.md +0 -45
  293. package/docs/PatchedTeam.md +0 -48
  294. package/docs/Price.md +0 -42
  295. package/docs/Profile.md +0 -35
  296. package/docs/ProfileApi.md +0 -241
  297. package/docs/QuickerSign.md +0 -43
  298. package/docs/RcraAddress.md +0 -45
  299. package/docs/RcraContact.md +0 -43
  300. package/docs/RcraPhone.md +0 -35
  301. package/docs/RcraSite.md +0 -57
  302. package/docs/RcraSitePermission.md +0 -45
  303. package/docs/RcraSiteSiteTypeEnum.md +0 -31
  304. package/docs/RcrainfoProfile.md +0 -45
  305. package/docs/RoleEnum.md +0 -31
  306. package/docs/Signer.md +0 -49
  307. package/docs/Site.md +0 -35
  308. package/docs/SiteApi.md +0 -147
  309. package/docs/SiteManifestSyncRequest.md +0 -32
  310. package/docs/SiteManifestSyncResponse.md +0 -32
  311. package/docs/SitesApi.md +0 -155
  312. package/docs/StatusC23Enum.md +0 -31
  313. package/docs/Subscription.md +0 -51
  314. package/docs/SubscriptionItem.md +0 -36
  315. package/docs/SubscriptionStatusEnum.md +0 -31
  316. package/docs/SyncApi.md +0 -73
  317. package/docs/Team.md +0 -48
  318. package/docs/TeamsApi.md +0 -965
  319. package/docs/TrakUser.md +0 -43
  320. package/docs/Transporter.md +0 -41
  321. package/docs/UserInvitationsResponse.md +0 -32
  322. package/docs/WasteLine.md +0 -55
  323. package/models/AdditionalInfo.ts +0 -96
  324. package/models/AggregateEmployeeData.ts +0 -83
  325. package/models/DepartmentEnum.ts +0 -59
  326. package/models/ESignature.ts +0 -112
  327. package/models/Employee.ts +0 -125
  328. package/models/Handler.ts +0 -126
  329. package/models/HandlerSearch.ts +0 -84
  330. package/models/HandlerSearchSiteTypeEnum.ts +0 -57
  331. package/models/Invitation.ts +0 -116
  332. package/models/LockReasonEnum.ts +0 -55
  333. package/models/Manifest.ts +0 -353
  334. package/models/ManifestPhone.ts +0 -73
  335. package/models/Membership.ts +0 -115
  336. package/models/Mtn.ts +0 -98
  337. package/models/NullEnum.ts +0 -50
  338. package/models/OpenInvitation.ts +0 -88
  339. package/models/Org.ts +0 -88
  340. package/models/PaginatedEmployeeList.ts +0 -98
  341. package/models/PaginatedInvitationList.ts +0 -98
  342. package/models/PaginatedMtnList.ts +0 -98
  343. package/models/PaginatedOrgList.ts +0 -98
  344. package/models/PaginatedSiteList.ts +0 -98
  345. package/models/PaginatedTeamList.ts +0 -98
  346. package/models/PaperSignature.ts +0 -74
  347. package/models/PatchedEmployee.ts +0 -118
  348. package/models/PatchedInvitation.ts +0 -112
  349. package/models/PatchedProfile.ts +0 -79
  350. package/models/PatchedRcrainfoProfile.ts +0 -119
  351. package/models/PatchedTeam.ts +0 -143
  352. package/models/Price.ts +0 -106
  353. package/models/Profile.ts +0 -80
  354. package/models/QuickerSign.ts +0 -108
  355. package/models/RcraAddress.ts +0 -113
  356. package/models/RcraContact.ts +0 -112
  357. package/models/RcraPhone.ts +0 -73
  358. package/models/RcraSite.ts +0 -200
  359. package/models/RcraSitePermission.ts +0 -121
  360. package/models/RcraSiteSiteTypeEnum.ts +0 -57
  361. package/models/RcrainfoProfile.ts +0 -120
  362. package/models/RoleEnum.ts +0 -53
  363. package/models/Signer.ts +0 -136
  364. package/models/Site.ts +0 -81
  365. package/models/SiteManifestSyncRequest.ts +0 -65
  366. package/models/SiteManifestSyncResponse.ts +0 -65
  367. package/models/StatusC23Enum.ts +0 -67
  368. package/models/StatusEnum.ts +0 -63
  369. package/models/Subscription.ts +0 -168
  370. package/models/SubscriptionItem.ts +0 -90
  371. package/models/SubscriptionStatusEnum.ts +0 -63
  372. package/models/Team.ts +0 -151
  373. package/models/TrakUser.ts +0 -106
  374. package/models/Transporter.ts +0 -120
  375. package/models/UserInvitationsResponse.ts +0 -73
  376. package/models/WasteLine.ts +0 -157
  377. package/runtime.ts +0 -432
@@ -0,0 +1,191 @@
1
+ /**
2
+ * trak
3
+ * Hazardous waste tracking application
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { Profile } from '../models';
16
+ import type { TrakUser } from '../models';
17
+ /**
18
+ * ProfileApi - axios parameter creator
19
+ */
20
+ export declare const ProfileApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * ViewSet for the Profile model.
23
+ * @param {string} userId A UUID string identifying this profile.
24
+ * @param {TrakUser} [user]
25
+ * @param {string | null} [avatar]
26
+ * @param {string} [phoneNumber]
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ profilePartialUpdate: (userId: string, user?: TrakUser, avatar?: string | null, phoneNumber?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ * ViewSet for the Profile model.
33
+ * @param {string} userId A UUID string identifying this profile.
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ profileRetrieve: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
+ /**
39
+ * ViewSet for the Profile model.
40
+ * @param {string} userId A UUID string identifying this profile.
41
+ * @param {TrakUser} user
42
+ * @param {string} phoneNumber
43
+ * @param {string | null} [avatar]
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ profileUpdate: (userId: string, user: TrakUser, phoneNumber: string, avatar?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
+ };
49
+ /**
50
+ * ProfileApi - functional programming interface
51
+ */
52
+ export declare const ProfileApiFp: (configuration?: Configuration) => {
53
+ /**
54
+ * ViewSet for the Profile model.
55
+ * @param {string} userId A UUID string identifying this profile.
56
+ * @param {TrakUser} [user]
57
+ * @param {string | null} [avatar]
58
+ * @param {string} [phoneNumber]
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ profilePartialUpdate(userId: string, user?: TrakUser, avatar?: string | null, phoneNumber?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>>;
63
+ /**
64
+ * ViewSet for the Profile model.
65
+ * @param {string} userId A UUID string identifying this profile.
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ */
69
+ profileRetrieve(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>>;
70
+ /**
71
+ * ViewSet for the Profile model.
72
+ * @param {string} userId A UUID string identifying this profile.
73
+ * @param {TrakUser} user
74
+ * @param {string} phoneNumber
75
+ * @param {string | null} [avatar]
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ profileUpdate(userId: string, user: TrakUser, phoneNumber: string, avatar?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>>;
80
+ };
81
+ /**
82
+ * ProfileApi - factory interface
83
+ */
84
+ export declare const ProfileApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
85
+ /**
86
+ * ViewSet for the Profile model.
87
+ * @param {ProfileApiProfilePartialUpdateRequest} requestParameters Request parameters.
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ profilePartialUpdate(requestParameters: ProfileApiProfilePartialUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
92
+ /**
93
+ * ViewSet for the Profile model.
94
+ * @param {ProfileApiProfileRetrieveRequest} requestParameters Request parameters.
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ profileRetrieve(requestParameters: ProfileApiProfileRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
99
+ /**
100
+ * ViewSet for the Profile model.
101
+ * @param {ProfileApiProfileUpdateRequest} requestParameters Request parameters.
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ profileUpdate(requestParameters: ProfileApiProfileUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
106
+ };
107
+ /**
108
+ * ProfileApi - interface
109
+ */
110
+ export interface ProfileApiInterface {
111
+ /**
112
+ * ViewSet for the Profile model.
113
+ * @param {ProfileApiProfilePartialUpdateRequest} requestParameters Request parameters.
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ profilePartialUpdate(requestParameters: ProfileApiProfilePartialUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
118
+ /**
119
+ * ViewSet for the Profile model.
120
+ * @param {ProfileApiProfileRetrieveRequest} requestParameters Request parameters.
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ profileRetrieve(requestParameters: ProfileApiProfileRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
125
+ /**
126
+ * ViewSet for the Profile model.
127
+ * @param {ProfileApiProfileUpdateRequest} requestParameters Request parameters.
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ profileUpdate(requestParameters: ProfileApiProfileUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
132
+ }
133
+ /**
134
+ * Request parameters for profilePartialUpdate operation in ProfileApi.
135
+ */
136
+ export interface ProfileApiProfilePartialUpdateRequest {
137
+ /**
138
+ * A UUID string identifying this profile.
139
+ */
140
+ readonly userId: string;
141
+ readonly user?: TrakUser;
142
+ readonly avatar?: string | null;
143
+ readonly phoneNumber?: string;
144
+ }
145
+ /**
146
+ * Request parameters for profileRetrieve operation in ProfileApi.
147
+ */
148
+ export interface ProfileApiProfileRetrieveRequest {
149
+ /**
150
+ * A UUID string identifying this profile.
151
+ */
152
+ readonly userId: string;
153
+ }
154
+ /**
155
+ * Request parameters for profileUpdate operation in ProfileApi.
156
+ */
157
+ export interface ProfileApiProfileUpdateRequest {
158
+ /**
159
+ * A UUID string identifying this profile.
160
+ */
161
+ readonly userId: string;
162
+ readonly user: TrakUser;
163
+ readonly phoneNumber: string;
164
+ readonly avatar?: string | null;
165
+ }
166
+ /**
167
+ * ProfileApi - object-oriented interface
168
+ */
169
+ export declare class ProfileApi extends BaseAPI implements ProfileApiInterface {
170
+ /**
171
+ * ViewSet for the Profile model.
172
+ * @param {ProfileApiProfilePartialUpdateRequest} requestParameters Request parameters.
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ profilePartialUpdate(requestParameters: ProfileApiProfilePartialUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Profile, any, {}>>;
177
+ /**
178
+ * ViewSet for the Profile model.
179
+ * @param {ProfileApiProfileRetrieveRequest} requestParameters Request parameters.
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ profileRetrieve(requestParameters: ProfileApiProfileRetrieveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Profile, any, {}>>;
184
+ /**
185
+ * ViewSet for the Profile model.
186
+ * @param {ProfileApiProfileUpdateRequest} requestParameters Request parameters.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ profileUpdate(requestParameters: ProfileApiProfileUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Profile, any, {}>>;
191
+ }
@@ -0,0 +1,298 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * trak
6
+ * Hazardous waste tracking application
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
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
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ProfileApi = exports.ProfileApiFactory = exports.ProfileApiFp = exports.ProfileApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * ProfileApi - axios parameter creator
34
+ */
35
+ const ProfileApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * ViewSet for the Profile model.
39
+ * @param {string} userId A UUID string identifying this profile.
40
+ * @param {TrakUser} [user]
41
+ * @param {string | null} [avatar]
42
+ * @param {string} [phoneNumber]
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ profilePartialUpdate: (userId_1, user_1, avatar_1, phoneNumber_1, ...args_1) => __awaiter(this, [userId_1, user_1, avatar_1, phoneNumber_1, ...args_1], void 0, function* (userId, user, avatar, phoneNumber, options = {}) {
47
+ // verify required parameter 'userId' is not null or undefined
48
+ (0, common_1.assertParamExists)('profilePartialUpdate', 'userId', userId);
49
+ const localVarPath = `/api/v1/profile/{user_id}`
50
+ .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ }
57
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
58
+ const localVarHeaderParameter = {};
59
+ const localVarQueryParameter = {};
60
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
61
+ // authentication cookieAuth required
62
+ // authentication ApiKeyAuth required
63
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
64
+ if (user !== undefined) {
65
+ localVarFormParams.append('user', new Blob([JSON.stringify(user, common_1.replaceWithSerializableTypeIfNeeded)], { type: "application/json", }));
66
+ }
67
+ if (avatar !== undefined) {
68
+ localVarFormParams.append('avatar', avatar);
69
+ }
70
+ if (phoneNumber !== undefined) {
71
+ localVarFormParams.append('phoneNumber', phoneNumber);
72
+ }
73
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
74
+ localVarHeaderParameter['Accept'] = 'application/json';
75
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
76
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
77
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
78
+ localVarRequestOptions.data = localVarFormParams;
79
+ return {
80
+ url: (0, common_1.toPathString)(localVarUrlObj),
81
+ options: localVarRequestOptions,
82
+ };
83
+ }),
84
+ /**
85
+ * ViewSet for the Profile model.
86
+ * @param {string} userId A UUID string identifying this profile.
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ profileRetrieve: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
91
+ // verify required parameter 'userId' is not null or undefined
92
+ (0, common_1.assertParamExists)('profileRetrieve', 'userId', userId);
93
+ const localVarPath = `/api/v1/profile/{user_id}`
94
+ .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
95
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
97
+ let baseOptions;
98
+ if (configuration) {
99
+ baseOptions = configuration.baseOptions;
100
+ }
101
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
102
+ const localVarHeaderParameter = {};
103
+ const localVarQueryParameter = {};
104
+ // authentication cookieAuth required
105
+ // authentication ApiKeyAuth required
106
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
107
+ localVarHeaderParameter['Accept'] = 'application/json';
108
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
111
+ return {
112
+ url: (0, common_1.toPathString)(localVarUrlObj),
113
+ options: localVarRequestOptions,
114
+ };
115
+ }),
116
+ /**
117
+ * ViewSet for the Profile model.
118
+ * @param {string} userId A UUID string identifying this profile.
119
+ * @param {TrakUser} user
120
+ * @param {string} phoneNumber
121
+ * @param {string | null} [avatar]
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ profileUpdate: (userId_1, user_1, phoneNumber_1, avatar_1, ...args_1) => __awaiter(this, [userId_1, user_1, phoneNumber_1, avatar_1, ...args_1], void 0, function* (userId, user, phoneNumber, avatar, options = {}) {
126
+ // verify required parameter 'userId' is not null or undefined
127
+ (0, common_1.assertParamExists)('profileUpdate', 'userId', userId);
128
+ // verify required parameter 'user' is not null or undefined
129
+ (0, common_1.assertParamExists)('profileUpdate', 'user', user);
130
+ // verify required parameter 'phoneNumber' is not null or undefined
131
+ (0, common_1.assertParamExists)('profileUpdate', 'phoneNumber', phoneNumber);
132
+ const localVarPath = `/api/v1/profile/{user_id}`
133
+ .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
135
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
136
+ let baseOptions;
137
+ if (configuration) {
138
+ baseOptions = configuration.baseOptions;
139
+ }
140
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
141
+ const localVarHeaderParameter = {};
142
+ const localVarQueryParameter = {};
143
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
144
+ // authentication cookieAuth required
145
+ // authentication ApiKeyAuth required
146
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
147
+ if (user !== undefined) {
148
+ localVarFormParams.append('user', new Blob([JSON.stringify(user, common_1.replaceWithSerializableTypeIfNeeded)], { type: "application/json", }));
149
+ }
150
+ if (avatar !== undefined) {
151
+ localVarFormParams.append('avatar', avatar);
152
+ }
153
+ if (phoneNumber !== undefined) {
154
+ localVarFormParams.append('phoneNumber', phoneNumber);
155
+ }
156
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
157
+ localVarHeaderParameter['Accept'] = 'application/json';
158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
161
+ localVarRequestOptions.data = localVarFormParams;
162
+ return {
163
+ url: (0, common_1.toPathString)(localVarUrlObj),
164
+ options: localVarRequestOptions,
165
+ };
166
+ }),
167
+ };
168
+ };
169
+ exports.ProfileApiAxiosParamCreator = ProfileApiAxiosParamCreator;
170
+ /**
171
+ * ProfileApi - functional programming interface
172
+ */
173
+ const ProfileApiFp = function (configuration) {
174
+ const localVarAxiosParamCreator = (0, exports.ProfileApiAxiosParamCreator)(configuration);
175
+ return {
176
+ /**
177
+ * ViewSet for the Profile model.
178
+ * @param {string} userId A UUID string identifying this profile.
179
+ * @param {TrakUser} [user]
180
+ * @param {string | null} [avatar]
181
+ * @param {string} [phoneNumber]
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ profilePartialUpdate(userId, user, avatar, phoneNumber, options) {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ var _a, _b, _c;
188
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.profilePartialUpdate(userId, user, avatar, phoneNumber, options);
189
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
190
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfileApi.profilePartialUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
191
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
192
+ });
193
+ },
194
+ /**
195
+ * ViewSet for the Profile model.
196
+ * @param {string} userId A UUID string identifying this profile.
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ profileRetrieve(userId, options) {
201
+ return __awaiter(this, void 0, void 0, function* () {
202
+ var _a, _b, _c;
203
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.profileRetrieve(userId, options);
204
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
205
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfileApi.profileRetrieve']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
206
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
207
+ });
208
+ },
209
+ /**
210
+ * ViewSet for the Profile model.
211
+ * @param {string} userId A UUID string identifying this profile.
212
+ * @param {TrakUser} user
213
+ * @param {string} phoneNumber
214
+ * @param {string | null} [avatar]
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ profileUpdate(userId, user, phoneNumber, avatar, options) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ var _a, _b, _c;
221
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.profileUpdate(userId, user, phoneNumber, avatar, options);
222
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
223
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfileApi.profileUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
224
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
225
+ });
226
+ },
227
+ };
228
+ };
229
+ exports.ProfileApiFp = ProfileApiFp;
230
+ /**
231
+ * ProfileApi - factory interface
232
+ */
233
+ const ProfileApiFactory = function (configuration, basePath, axios) {
234
+ const localVarFp = (0, exports.ProfileApiFp)(configuration);
235
+ return {
236
+ /**
237
+ * ViewSet for the Profile model.
238
+ * @param {ProfileApiProfilePartialUpdateRequest} requestParameters Request parameters.
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ profilePartialUpdate(requestParameters, options) {
243
+ return localVarFp.profilePartialUpdate(requestParameters.userId, requestParameters.user, requestParameters.avatar, requestParameters.phoneNumber, options).then((request) => request(axios, basePath));
244
+ },
245
+ /**
246
+ * ViewSet for the Profile model.
247
+ * @param {ProfileApiProfileRetrieveRequest} requestParameters Request parameters.
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ profileRetrieve(requestParameters, options) {
252
+ return localVarFp.profileRetrieve(requestParameters.userId, options).then((request) => request(axios, basePath));
253
+ },
254
+ /**
255
+ * ViewSet for the Profile model.
256
+ * @param {ProfileApiProfileUpdateRequest} requestParameters Request parameters.
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ profileUpdate(requestParameters, options) {
261
+ return localVarFp.profileUpdate(requestParameters.userId, requestParameters.user, requestParameters.phoneNumber, requestParameters.avatar, options).then((request) => request(axios, basePath));
262
+ },
263
+ };
264
+ };
265
+ exports.ProfileApiFactory = ProfileApiFactory;
266
+ /**
267
+ * ProfileApi - object-oriented interface
268
+ */
269
+ class ProfileApi extends base_1.BaseAPI {
270
+ /**
271
+ * ViewSet for the Profile model.
272
+ * @param {ProfileApiProfilePartialUpdateRequest} requestParameters Request parameters.
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ profilePartialUpdate(requestParameters, options) {
277
+ return (0, exports.ProfileApiFp)(this.configuration).profilePartialUpdate(requestParameters.userId, requestParameters.user, requestParameters.avatar, requestParameters.phoneNumber, options).then((request) => request(this.axios, this.basePath));
278
+ }
279
+ /**
280
+ * ViewSet for the Profile model.
281
+ * @param {ProfileApiProfileRetrieveRequest} requestParameters Request parameters.
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ profileRetrieve(requestParameters, options) {
286
+ return (0, exports.ProfileApiFp)(this.configuration).profileRetrieve(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
287
+ }
288
+ /**
289
+ * ViewSet for the Profile model.
290
+ * @param {ProfileApiProfileUpdateRequest} requestParameters Request parameters.
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ profileUpdate(requestParameters, options) {
295
+ return (0, exports.ProfileApiFp)(this.configuration).profileUpdate(requestParameters.userId, requestParameters.user, requestParameters.phoneNumber, requestParameters.avatar, options).then((request) => request(this.axios, this.basePath));
296
+ }
297
+ }
298
+ exports.ProfileApi = ProfileApi;
@@ -0,0 +1,111 @@
1
+ /**
2
+ * trak
3
+ * Hazardous waste tracking application
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { RcraSite } from '../models';
16
+ /**
17
+ * SiteApi - axios parameter creator
18
+ */
19
+ export declare const SiteApiAxiosParamCreator: (configuration?: Configuration) => {
20
+ /**
21
+ * Retrieve details on a rcra_site stored in the database
22
+ * @param {string} epaId
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ siteRetrieve: (epaId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27
+ /**
28
+ * Search for hazardous waste sites.
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ siteSearchList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33
+ };
34
+ /**
35
+ * SiteApi - functional programming interface
36
+ */
37
+ export declare const SiteApiFp: (configuration?: Configuration) => {
38
+ /**
39
+ * Retrieve details on a rcra_site stored in the database
40
+ * @param {string} epaId
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ siteRetrieve(epaId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RcraSite>>;
45
+ /**
46
+ * Search for hazardous waste sites.
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ siteSearchList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RcraSite>>>;
51
+ };
52
+ /**
53
+ * SiteApi - factory interface
54
+ */
55
+ export declare const SiteApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
56
+ /**
57
+ * Retrieve details on a rcra_site stored in the database
58
+ * @param {SiteApiSiteRetrieveRequest} requestParameters Request parameters.
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ siteRetrieve(requestParameters: SiteApiSiteRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcraSite>;
63
+ /**
64
+ * Search for hazardous waste sites.
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ siteSearchList(options?: RawAxiosRequestConfig): AxiosPromise<Array<RcraSite>>;
69
+ };
70
+ /**
71
+ * SiteApi - interface
72
+ */
73
+ export interface SiteApiInterface {
74
+ /**
75
+ * Retrieve details on a rcra_site stored in the database
76
+ * @param {SiteApiSiteRetrieveRequest} requestParameters Request parameters.
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ siteRetrieve(requestParameters: SiteApiSiteRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcraSite>;
81
+ /**
82
+ * Search for hazardous waste sites.
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ siteSearchList(options?: RawAxiosRequestConfig): AxiosPromise<Array<RcraSite>>;
87
+ }
88
+ /**
89
+ * Request parameters for siteRetrieve operation in SiteApi.
90
+ */
91
+ export interface SiteApiSiteRetrieveRequest {
92
+ readonly epaId: string;
93
+ }
94
+ /**
95
+ * SiteApi - object-oriented interface
96
+ */
97
+ export declare class SiteApi extends BaseAPI implements SiteApiInterface {
98
+ /**
99
+ * Retrieve details on a rcra_site stored in the database
100
+ * @param {SiteApiSiteRetrieveRequest} requestParameters Request parameters.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ siteRetrieve(requestParameters: SiteApiSiteRetrieveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RcraSite, any, {}>>;
105
+ /**
106
+ * Search for hazardous waste sites.
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ siteSearchList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RcraSite[], any, {}>>;
111
+ }