@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,120 @@
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.SyncApi = exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = 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
+ * SyncApi - axios parameter creator
34
+ */
35
+ const SyncApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Create a job to sync the user\'s RCRAInfo profile.
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ syncCreate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
43
+ const localVarPath = `/api/v1/sync`;
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
51
+ const localVarHeaderParameter = {};
52
+ const localVarQueryParameter = {};
53
+ // authentication cookieAuth required
54
+ // authentication ApiKeyAuth required
55
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
56
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
57
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
59
+ return {
60
+ url: (0, common_1.toPathString)(localVarUrlObj),
61
+ options: localVarRequestOptions,
62
+ };
63
+ }),
64
+ };
65
+ };
66
+ exports.SyncApiAxiosParamCreator = SyncApiAxiosParamCreator;
67
+ /**
68
+ * SyncApi - functional programming interface
69
+ */
70
+ const SyncApiFp = function (configuration) {
71
+ const localVarAxiosParamCreator = (0, exports.SyncApiAxiosParamCreator)(configuration);
72
+ return {
73
+ /**
74
+ * Create a job to sync the user\'s RCRAInfo profile.
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ syncCreate(options) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ var _a, _b, _c;
81
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.syncCreate(options);
82
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
83
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SyncApi.syncCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
84
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
85
+ });
86
+ },
87
+ };
88
+ };
89
+ exports.SyncApiFp = SyncApiFp;
90
+ /**
91
+ * SyncApi - factory interface
92
+ */
93
+ const SyncApiFactory = function (configuration, basePath, axios) {
94
+ const localVarFp = (0, exports.SyncApiFp)(configuration);
95
+ return {
96
+ /**
97
+ * Create a job to sync the user\'s RCRAInfo profile.
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ syncCreate(options) {
102
+ return localVarFp.syncCreate(options).then((request) => request(axios, basePath));
103
+ },
104
+ };
105
+ };
106
+ exports.SyncApiFactory = SyncApiFactory;
107
+ /**
108
+ * SyncApi - object-oriented interface
109
+ */
110
+ class SyncApi extends base_1.BaseAPI {
111
+ /**
112
+ * Create a job to sync the user\'s RCRAInfo profile.
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ syncCreate(options) {
117
+ return (0, exports.SyncApiFp)(this.configuration).syncCreate(options).then((request) => request(this.axios, this.basePath));
118
+ }
119
+ }
120
+ exports.SyncApi = SyncApi;
package/dist/base.d.ts ADDED
@@ -0,0 +1,42 @@
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 { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ export declare const COLLECTION_FORMATS: {
16
+ csv: string;
17
+ ssv: string;
18
+ tsv: string;
19
+ pipes: string;
20
+ };
21
+ export interface RequestArgs {
22
+ url: string;
23
+ options: RawAxiosRequestConfig;
24
+ }
25
+ export declare class BaseAPI {
26
+ protected basePath: string;
27
+ protected axios: AxiosInstance;
28
+ protected configuration: Configuration | undefined;
29
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
30
+ }
31
+ export declare class RequiredError extends Error {
32
+ field: string;
33
+ constructor(field: string, msg?: string);
34
+ }
35
+ interface ServerMap {
36
+ [key: string]: {
37
+ url: string;
38
+ description: string;
39
+ }[];
40
+ }
41
+ export declare const operationServerMap: ServerMap;
42
+ export {};
package/dist/base.js ADDED
@@ -0,0 +1,46 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
17
+ const axios_1 = require("axios");
18
+ exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
19
+ exports.COLLECTION_FORMATS = {
20
+ csv: ",",
21
+ ssv: " ",
22
+ tsv: "\t",
23
+ pipes: "|",
24
+ };
25
+ class BaseAPI {
26
+ constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
27
+ var _a;
28
+ this.basePath = basePath;
29
+ this.axios = axios;
30
+ if (configuration) {
31
+ this.configuration = configuration;
32
+ this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
33
+ }
34
+ }
35
+ }
36
+ exports.BaseAPI = BaseAPI;
37
+ ;
38
+ class RequiredError extends Error {
39
+ constructor(field, msg) {
40
+ super(msg);
41
+ this.field = field;
42
+ this.name = "RequiredError";
43
+ }
44
+ }
45
+ exports.RequiredError = RequiredError;
46
+ exports.operationServerMap = {};
@@ -0,0 +1,34 @@
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 { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from 'axios';
15
+ export declare const DUMMY_BASE_URL = "https://example.com";
16
+ /**
17
+ *
18
+ * @throws {RequiredError}
19
+ */
20
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
21
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
22
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
23
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
24
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
25
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
26
+ /**
27
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
28
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
+ */
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
32
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
33
+ export declare const toPathString: (url: URL) => string;
34
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/dist/common.js ADDED
@@ -0,0 +1,139 @@
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.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
26
+ const base_1 = require("./base");
27
+ exports.DUMMY_BASE_URL = 'https://example.com';
28
+ /**
29
+ *
30
+ * @throws {RequiredError}
31
+ */
32
+ const assertParamExists = function (functionName, paramName, paramValue) {
33
+ if (paramValue === null || paramValue === undefined) {
34
+ throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
35
+ }
36
+ };
37
+ exports.assertParamExists = assertParamExists;
38
+ const setApiKeyToObject = function (object, keyParamName, configuration) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ if (configuration && configuration.apiKey) {
41
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
42
+ ? yield configuration.apiKey(keyParamName)
43
+ : yield configuration.apiKey;
44
+ object[keyParamName] = localVarApiKeyValue;
45
+ }
46
+ });
47
+ };
48
+ exports.setApiKeyToObject = setApiKeyToObject;
49
+ const setBasicAuthToObject = function (object, configuration) {
50
+ if (configuration && (configuration.username || configuration.password)) {
51
+ object["auth"] = { username: configuration.username, password: configuration.password };
52
+ }
53
+ };
54
+ exports.setBasicAuthToObject = setBasicAuthToObject;
55
+ const setBearerAuthToObject = function (object, configuration) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ if (configuration && configuration.accessToken) {
58
+ const accessToken = typeof configuration.accessToken === 'function'
59
+ ? yield configuration.accessToken()
60
+ : yield configuration.accessToken;
61
+ object["Authorization"] = "Bearer " + accessToken;
62
+ }
63
+ });
64
+ };
65
+ exports.setBearerAuthToObject = setBearerAuthToObject;
66
+ const setOAuthToObject = function (object, name, scopes, configuration) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ if (configuration && configuration.accessToken) {
69
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
70
+ ? yield configuration.accessToken(name, scopes)
71
+ : yield configuration.accessToken;
72
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
73
+ }
74
+ });
75
+ };
76
+ exports.setOAuthToObject = setOAuthToObject;
77
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
78
+ if (parameter == null)
79
+ return;
80
+ if (typeof parameter === "object") {
81
+ if (Array.isArray(parameter) || parameter instanceof Set) {
82
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
83
+ }
84
+ else {
85
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
86
+ }
87
+ }
88
+ else {
89
+ if (urlSearchParams.has(key)) {
90
+ urlSearchParams.append(key, parameter);
91
+ }
92
+ else {
93
+ urlSearchParams.set(key, parameter);
94
+ }
95
+ }
96
+ }
97
+ const setSearchParams = function (url, ...objects) {
98
+ const searchParams = new URLSearchParams(url.search);
99
+ setFlattenedQueryParams(searchParams, objects);
100
+ url.search = searchParams.toString();
101
+ };
102
+ exports.setSearchParams = setSearchParams;
103
+ /**
104
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
105
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
106
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
107
+ */
108
+ // @ts-ignore
109
+ const replaceWithSerializableTypeIfNeeded = function (key, value) {
110
+ if (value instanceof Set) {
111
+ return Array.from(value);
112
+ }
113
+ else {
114
+ return value;
115
+ }
116
+ };
117
+ exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
118
+ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
119
+ const nonString = typeof value !== 'string';
120
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
121
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
122
+ : nonString;
123
+ return needsSerialization
124
+ ? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
125
+ : (value || "");
126
+ };
127
+ exports.serializeDataIfNeeded = serializeDataIfNeeded;
128
+ const toPathString = function (url) {
129
+ return url.pathname + url.search + url.hash;
130
+ };
131
+ exports.toPathString = toPathString;
132
+ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
133
+ return (axios = globalAxios, basePath = BASE_PATH) => {
134
+ var _a;
135
+ const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
136
+ return axios.request(axiosRequestArgs);
137
+ };
138
+ };
139
+ exports.createRequestFunction = createRequestFunction;
@@ -0,0 +1,98 @@
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
+ interface AWSv4Configuration {
13
+ options?: {
14
+ region?: string;
15
+ service?: string;
16
+ };
17
+ credentials?: {
18
+ accessKeyId?: string;
19
+ secretAccessKey?: string;
20
+ sessionToken?: string;
21
+ };
22
+ }
23
+ export interface ConfigurationParameters {
24
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
25
+ username?: string;
26
+ password?: string;
27
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
28
+ awsv4?: AWSv4Configuration;
29
+ basePath?: string;
30
+ serverIndex?: number;
31
+ baseOptions?: any;
32
+ formDataCtor?: new () => any;
33
+ }
34
+ export declare class Configuration {
35
+ /**
36
+ * parameter for apiKey security
37
+ * @param name security name
38
+ */
39
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
40
+ /**
41
+ * parameter for basic security
42
+ */
43
+ username?: string;
44
+ /**
45
+ * parameter for basic security
46
+ */
47
+ password?: string;
48
+ /**
49
+ * parameter for oauth2 security
50
+ * @param name security name
51
+ * @param scopes oauth2 scope
52
+ */
53
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
54
+ /**
55
+ * parameter for aws4 signature security
56
+ * @param {Object} AWS4Signature - AWS4 Signature security
57
+ * @param {string} options.region - aws region
58
+ * @param {string} options.service - name of the service.
59
+ * @param {string} credentials.accessKeyId - aws access key id
60
+ * @param {string} credentials.secretAccessKey - aws access key
61
+ * @param {string} credentials.sessionToken - aws session token
62
+ * @memberof Configuration
63
+ */
64
+ awsv4?: AWSv4Configuration;
65
+ /**
66
+ * override base path
67
+ */
68
+ basePath?: string;
69
+ /**
70
+ * override server index
71
+ */
72
+ serverIndex?: number;
73
+ /**
74
+ * base options for axios calls
75
+ */
76
+ baseOptions?: any;
77
+ /**
78
+ * The FormData constructor that will be used to create multipart form data
79
+ * requests. You can inject this here so that execution environments that
80
+ * do not support the FormData class can still run the generated client.
81
+ *
82
+ * @type {new () => FormData}
83
+ */
84
+ formDataCtor?: new () => any;
85
+ constructor(param?: ConfigurationParameters);
86
+ /**
87
+ * Check if the given MIME is a JSON MIME.
88
+ * JSON MIME examples:
89
+ * application/json
90
+ * application/json; charset=UTF8
91
+ * APPLICATION/JSON
92
+ * application/vnd.company+json
93
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
94
+ * @return True if the given MIME is JSON, false otherwise.
95
+ */
96
+ isJsonMime(mime: string): boolean;
97
+ }
98
+ export {};
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /**
4
+ * trak
5
+ * Hazardous waste tracking application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Configuration = void 0;
16
+ class Configuration {
17
+ constructor(param = {}) {
18
+ var _a;
19
+ this.apiKey = param.apiKey;
20
+ this.username = param.username;
21
+ this.password = param.password;
22
+ this.accessToken = param.accessToken;
23
+ this.awsv4 = param.awsv4;
24
+ this.basePath = param.basePath;
25
+ this.serverIndex = param.serverIndex;
26
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
27
+ this.formDataCtor = param.formDataCtor;
28
+ }
29
+ /**
30
+ * Check if the given MIME is a JSON MIME.
31
+ * JSON MIME examples:
32
+ * application/json
33
+ * application/json; charset=UTF8
34
+ * APPLICATION/JSON
35
+ * application/vnd.company+json
36
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
37
+ * @return True if the given MIME is JSON, false otherwise.
38
+ */
39
+ isJsonMime(mime) {
40
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
41
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
42
+ }
43
+ }
44
+ exports.Configuration = Configuration;
@@ -0,0 +1,20 @@
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
+ export * from './apis/default-api';
13
+ export * from './apis/info-api';
14
+ export * from './apis/manifest-api';
15
+ export * from './apis/my-profile-api';
16
+ export * from './apis/orgs-api';
17
+ export * from './apis/profile-api';
18
+ export * from './apis/site-api';
19
+ export * from './apis/sites-api';
20
+ export * from './apis/sync-api';
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * trak
5
+ * Hazardous waste tracking application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export * from './apis/default-api';
15
+ export * from './apis/info-api';
16
+ export * from './apis/manifest-api';
17
+ export * from './apis/my-profile-api';
18
+ export * from './apis/orgs-api';
19
+ export * from './apis/profile-api';
20
+ export * from './apis/site-api';
21
+ export * from './apis/sites-api';
22
+ export * from './apis/sync-api';