@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
package/dist/api.js ADDED
@@ -0,0 +1,38 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./apis/default-api"), exports);
31
+ __exportStar(require("./apis/info-api"), exports);
32
+ __exportStar(require("./apis/manifest-api"), exports);
33
+ __exportStar(require("./apis/my-profile-api"), exports);
34
+ __exportStar(require("./apis/orgs-api"), exports);
35
+ __exportStar(require("./apis/profile-api"), exports);
36
+ __exportStar(require("./apis/site-api"), exports);
37
+ __exportStar(require("./apis/sites-api"), exports);
38
+ __exportStar(require("./apis/sync-api"), exports);
@@ -0,0 +1,170 @@
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 { PatchedRcrainfoProfile } from '../models';
16
+ import type { RcrainfoProfile } from '../models';
17
+ /**
18
+ * DefaultApi - axios parameter creator
19
+ */
20
+ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
23
+ * @param {string} username
24
+ * @param {PatchedRcrainfoProfile} [patchedRcrainfoProfile]
25
+ * @param {*} [options] Override http request option.
26
+ * @throws {RequiredError}
27
+ */
28
+ rootPartialUpdate: (username: string, patchedRcrainfoProfile?: PatchedRcrainfoProfile, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29
+ /**
30
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
31
+ * @param {string} username
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ rootRetrieve: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
36
+ /**
37
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
38
+ * @param {string} username
39
+ * @param {RcrainfoProfile} [rcrainfoProfile]
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ rootUpdate: (username: string, rcrainfoProfile?: RcrainfoProfile, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
44
+ };
45
+ /**
46
+ * DefaultApi - functional programming interface
47
+ */
48
+ export declare const DefaultApiFp: (configuration?: Configuration) => {
49
+ /**
50
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
51
+ * @param {string} username
52
+ * @param {PatchedRcrainfoProfile} [patchedRcrainfoProfile]
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ rootPartialUpdate(username: string, patchedRcrainfoProfile?: PatchedRcrainfoProfile, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RcrainfoProfile>>;
57
+ /**
58
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
59
+ * @param {string} username
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ rootRetrieve(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RcrainfoProfile>>;
64
+ /**
65
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
66
+ * @param {string} username
67
+ * @param {RcrainfoProfile} [rcrainfoProfile]
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ rootUpdate(username: string, rcrainfoProfile?: RcrainfoProfile, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RcrainfoProfile>>;
72
+ };
73
+ /**
74
+ * DefaultApi - factory interface
75
+ */
76
+ export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
77
+ /**
78
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
79
+ * @param {DefaultApiRootPartialUpdateRequest} requestParameters Request parameters.
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ rootPartialUpdate(requestParameters: DefaultApiRootPartialUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile>;
84
+ /**
85
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
86
+ * @param {DefaultApiRootRetrieveRequest} requestParameters Request parameters.
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ rootRetrieve(requestParameters: DefaultApiRootRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile>;
91
+ /**
92
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
93
+ * @param {DefaultApiRootUpdateRequest} requestParameters Request parameters.
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ rootUpdate(requestParameters: DefaultApiRootUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile>;
98
+ };
99
+ /**
100
+ * DefaultApi - interface
101
+ */
102
+ export interface DefaultApiInterface {
103
+ /**
104
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
105
+ * @param {DefaultApiRootPartialUpdateRequest} requestParameters Request parameters.
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ rootPartialUpdate(requestParameters: DefaultApiRootPartialUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile>;
110
+ /**
111
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
112
+ * @param {DefaultApiRootRetrieveRequest} requestParameters Request parameters.
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ rootRetrieve(requestParameters: DefaultApiRootRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile>;
117
+ /**
118
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
119
+ * @param {DefaultApiRootUpdateRequest} requestParameters Request parameters.
120
+ * @param {*} [options] Override http request option.
121
+ * @throws {RequiredError}
122
+ */
123
+ rootUpdate(requestParameters: DefaultApiRootUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile>;
124
+ }
125
+ /**
126
+ * Request parameters for rootPartialUpdate operation in DefaultApi.
127
+ */
128
+ export interface DefaultApiRootPartialUpdateRequest {
129
+ readonly username: string;
130
+ readonly patchedRcrainfoProfile?: PatchedRcrainfoProfile;
131
+ }
132
+ /**
133
+ * Request parameters for rootRetrieve operation in DefaultApi.
134
+ */
135
+ export interface DefaultApiRootRetrieveRequest {
136
+ readonly username: string;
137
+ }
138
+ /**
139
+ * Request parameters for rootUpdate operation in DefaultApi.
140
+ */
141
+ export interface DefaultApiRootUpdateRequest {
142
+ readonly username: string;
143
+ readonly rcrainfoProfile?: RcrainfoProfile;
144
+ }
145
+ /**
146
+ * DefaultApi - object-oriented interface
147
+ */
148
+ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
149
+ /**
150
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
151
+ * @param {DefaultApiRootPartialUpdateRequest} requestParameters Request parameters.
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ rootPartialUpdate(requestParameters: DefaultApiRootPartialUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RcrainfoProfile, any, {}>>;
156
+ /**
157
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
158
+ * @param {DefaultApiRootRetrieveRequest} requestParameters Request parameters.
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ rootRetrieve(requestParameters: DefaultApiRootRetrieveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RcrainfoProfile, any, {}>>;
163
+ /**
164
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
165
+ * @param {DefaultApiRootUpdateRequest} requestParameters Request parameters.
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ rootUpdate(requestParameters: DefaultApiRootUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RcrainfoProfile, any, {}>>;
170
+ }
@@ -0,0 +1,266 @@
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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = 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
+ * DefaultApi - axios parameter creator
34
+ */
35
+ const DefaultApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
39
+ * @param {string} username
40
+ * @param {PatchedRcrainfoProfile} [patchedRcrainfoProfile]
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ rootPartialUpdate: (username_1, patchedRcrainfoProfile_1, ...args_1) => __awaiter(this, [username_1, patchedRcrainfoProfile_1, ...args_1], void 0, function* (username, patchedRcrainfoProfile, options = {}) {
45
+ // verify required parameter 'username' is not null or undefined
46
+ (0, common_1.assertParamExists)('rootPartialUpdate', 'username', username);
47
+ const localVarPath = `/api/v1/{username}`
48
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
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: 'PATCH' }, baseOptions), options);
56
+ const localVarHeaderParameter = {};
57
+ const localVarQueryParameter = {};
58
+ // authentication cookieAuth required
59
+ // authentication ApiKeyAuth required
60
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
61
+ localVarHeaderParameter['Content-Type'] = 'application/json';
62
+ localVarHeaderParameter['Accept'] = 'application/json';
63
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
64
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
66
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchedRcrainfoProfile, localVarRequestOptions, configuration);
67
+ return {
68
+ url: (0, common_1.toPathString)(localVarUrlObj),
69
+ options: localVarRequestOptions,
70
+ };
71
+ }),
72
+ /**
73
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
74
+ * @param {string} username
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ rootRetrieve: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
79
+ // verify required parameter 'username' is not null or undefined
80
+ (0, common_1.assertParamExists)('rootRetrieve', 'username', username);
81
+ const localVarPath = `/api/v1/{username}`
82
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
83
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
85
+ let baseOptions;
86
+ if (configuration) {
87
+ baseOptions = configuration.baseOptions;
88
+ }
89
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
90
+ const localVarHeaderParameter = {};
91
+ const localVarQueryParameter = {};
92
+ // authentication cookieAuth required
93
+ // authentication ApiKeyAuth required
94
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
95
+ localVarHeaderParameter['Accept'] = 'application/json';
96
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
97
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
99
+ return {
100
+ url: (0, common_1.toPathString)(localVarUrlObj),
101
+ options: localVarRequestOptions,
102
+ };
103
+ }),
104
+ /**
105
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
106
+ * @param {string} username
107
+ * @param {RcrainfoProfile} [rcrainfoProfile]
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ rootUpdate: (username_1, rcrainfoProfile_1, ...args_1) => __awaiter(this, [username_1, rcrainfoProfile_1, ...args_1], void 0, function* (username, rcrainfoProfile, options = {}) {
112
+ // verify required parameter 'username' is not null or undefined
113
+ (0, common_1.assertParamExists)('rootUpdate', 'username', username);
114
+ const localVarPath = `/api/v1/{username}`
115
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ let baseOptions;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ }
122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
123
+ const localVarHeaderParameter = {};
124
+ const localVarQueryParameter = {};
125
+ // authentication cookieAuth required
126
+ // authentication ApiKeyAuth required
127
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
128
+ localVarHeaderParameter['Content-Type'] = 'application/json';
129
+ localVarHeaderParameter['Accept'] = 'application/json';
130
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
131
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
132
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
133
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rcrainfoProfile, localVarRequestOptions, configuration);
134
+ return {
135
+ url: (0, common_1.toPathString)(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ }),
139
+ };
140
+ };
141
+ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
142
+ /**
143
+ * DefaultApi - functional programming interface
144
+ */
145
+ const DefaultApiFp = function (configuration) {
146
+ const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
147
+ return {
148
+ /**
149
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
150
+ * @param {string} username
151
+ * @param {PatchedRcrainfoProfile} [patchedRcrainfoProfile]
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ rootPartialUpdate(username, patchedRcrainfoProfile, options) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ var _a, _b, _c;
158
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rootPartialUpdate(username, patchedRcrainfoProfile, options);
159
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
160
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.rootPartialUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
161
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
162
+ });
163
+ },
164
+ /**
165
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
166
+ * @param {string} username
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ */
170
+ rootRetrieve(username, options) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ var _a, _b, _c;
173
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rootRetrieve(username, options);
174
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
175
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.rootRetrieve']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
176
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
177
+ });
178
+ },
179
+ /**
180
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
181
+ * @param {string} username
182
+ * @param {RcrainfoProfile} [rcrainfoProfile]
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ rootUpdate(username, rcrainfoProfile, options) {
187
+ return __awaiter(this, void 0, void 0, function* () {
188
+ var _a, _b, _c;
189
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rootUpdate(username, rcrainfoProfile, options);
190
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
191
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.rootUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
192
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
193
+ });
194
+ },
195
+ };
196
+ };
197
+ exports.DefaultApiFp = DefaultApiFp;
198
+ /**
199
+ * DefaultApi - factory interface
200
+ */
201
+ const DefaultApiFactory = function (configuration, basePath, axios) {
202
+ const localVarFp = (0, exports.DefaultApiFp)(configuration);
203
+ return {
204
+ /**
205
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
206
+ * @param {DefaultApiRootPartialUpdateRequest} requestParameters Request parameters.
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ rootPartialUpdate(requestParameters, options) {
211
+ return localVarFp.rootPartialUpdate(requestParameters.username, requestParameters.patchedRcrainfoProfile, options).then((request) => request(axios, basePath));
212
+ },
213
+ /**
214
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
215
+ * @param {DefaultApiRootRetrieveRequest} requestParameters Request parameters.
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ rootRetrieve(requestParameters, options) {
220
+ return localVarFp.rootRetrieve(requestParameters.username, options).then((request) => request(axios, basePath));
221
+ },
222
+ /**
223
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
224
+ * @param {DefaultApiRootUpdateRequest} requestParameters Request parameters.
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ rootUpdate(requestParameters, options) {
229
+ return localVarFp.rootUpdate(requestParameters.username, requestParameters.rcrainfoProfile, options).then((request) => request(axios, basePath));
230
+ },
231
+ };
232
+ };
233
+ exports.DefaultApiFactory = DefaultApiFactory;
234
+ /**
235
+ * DefaultApi - object-oriented interface
236
+ */
237
+ class DefaultApi extends base_1.BaseAPI {
238
+ /**
239
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
240
+ * @param {DefaultApiRootPartialUpdateRequest} requestParameters Request parameters.
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ rootPartialUpdate(requestParameters, options) {
245
+ return (0, exports.DefaultApiFp)(this.configuration).rootPartialUpdate(requestParameters.username, requestParameters.patchedRcrainfoProfile, options).then((request) => request(this.axios, this.basePath));
246
+ }
247
+ /**
248
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
249
+ * @param {DefaultApiRootRetrieveRequest} requestParameters Request parameters.
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ rootRetrieve(requestParameters, options) {
254
+ return (0, exports.DefaultApiFp)(this.configuration).rootRetrieve(requestParameters.username, options).then((request) => request(this.axios, this.basePath));
255
+ }
256
+ /**
257
+ * Responsible for Create/Update operations related to the user RcrainfoProfile. Maintains a user\'s RCRAInfo profile data. This info is necessary for actions that interface with RCRAInfo.
258
+ * @param {DefaultApiRootUpdateRequest} requestParameters Request parameters.
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ rootUpdate(requestParameters, options) {
263
+ return (0, exports.DefaultApiFp)(this.configuration).rootUpdate(requestParameters.username, requestParameters.rcrainfoProfile, options).then((request) => request(this.axios, this.basePath));
264
+ }
265
+ }
266
+ exports.DefaultApi = DefaultApi;
@@ -0,0 +1,82 @@
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 { HandlerSearch } from '../models';
16
+ import type { RcraSite } from '../models';
17
+ /**
18
+ * InfoApi - axios parameter creator
19
+ */
20
+ export declare const InfoApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Search for handlers by siteId and site.
23
+ * @param {HandlerSearch} handlerSearch
24
+ * @param {*} [options] Override http request option.
25
+ * @throws {RequiredError}
26
+ */
27
+ infoRcrasiteSearchCreate: (handlerSearch: HandlerSearch, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28
+ };
29
+ /**
30
+ * InfoApi - functional programming interface
31
+ */
32
+ export declare const InfoApiFp: (configuration?: Configuration) => {
33
+ /**
34
+ * Search for handlers by siteId and site.
35
+ * @param {HandlerSearch} handlerSearch
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ infoRcrasiteSearchCreate(handlerSearch: HandlerSearch, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RcraSite>>>;
40
+ };
41
+ /**
42
+ * InfoApi - factory interface
43
+ */
44
+ export declare const InfoApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
+ /**
46
+ * Search for handlers by siteId and site.
47
+ * @param {InfoApiInfoRcrasiteSearchCreateRequest} requestParameters Request parameters.
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ infoRcrasiteSearchCreate(requestParameters: InfoApiInfoRcrasiteSearchCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RcraSite>>;
52
+ };
53
+ /**
54
+ * InfoApi - interface
55
+ */
56
+ export interface InfoApiInterface {
57
+ /**
58
+ * Search for handlers by siteId and site.
59
+ * @param {InfoApiInfoRcrasiteSearchCreateRequest} requestParameters Request parameters.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ infoRcrasiteSearchCreate(requestParameters: InfoApiInfoRcrasiteSearchCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RcraSite>>;
64
+ }
65
+ /**
66
+ * Request parameters for infoRcrasiteSearchCreate operation in InfoApi.
67
+ */
68
+ export interface InfoApiInfoRcrasiteSearchCreateRequest {
69
+ readonly handlerSearch: HandlerSearch;
70
+ }
71
+ /**
72
+ * InfoApi - object-oriented interface
73
+ */
74
+ export declare class InfoApi extends BaseAPI implements InfoApiInterface {
75
+ /**
76
+ * Search for handlers by siteId and site.
77
+ * @param {InfoApiInfoRcrasiteSearchCreateRequest} requestParameters Request parameters.
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ infoRcrasiteSearchCreate(requestParameters: InfoApiInfoRcrasiteSearchCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RcraSite[], any, {}>>;
82
+ }