@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.
- package/.openapi-generator/FILES +55 -118
- package/.openapi-generator/VERSION +1 -1
- package/README.md +140 -0
- package/api.ts +26 -0
- package/apis/default-api.ts +328 -0
- package/apis/info-api.ts +149 -0
- package/apis/manifest-api.ts +1135 -0
- package/apis/my-profile-api.ts +131 -0
- package/apis/orgs-api.ts +333 -0
- package/apis/profile-api.ts +383 -0
- package/apis/site-api.ts +215 -0
- package/apis/sites-api.ts +236 -0
- package/apis/sync-api.ts +128 -0
- package/base.ts +62 -0
- package/common.ts +127 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +38 -0
- package/dist/apis/default-api.d.ts +170 -0
- package/dist/apis/default-api.js +266 -0
- package/dist/apis/info-api.d.ts +82 -0
- package/dist/apis/info-api.js +129 -0
- package/dist/apis/manifest-api.d.ts +566 -0
- package/dist/apis/manifest-api.js +868 -0
- package/dist/apis/my-profile-api.d.ts +70 -0
- package/dist/apis/my-profile-api.js +121 -0
- package/dist/apis/orgs-api.d.ts +174 -0
- package/dist/apis/orgs-api.js +263 -0
- package/dist/apis/profile-api.d.ts +191 -0
- package/dist/apis/profile-api.js +298 -0
- package/dist/apis/site-api.d.ts +111 -0
- package/dist/apis/site-api.js +186 -0
- package/dist/apis/sites-api.d.ts +126 -0
- package/dist/apis/sites-api.js +193 -0
- package/dist/apis/sync-api.d.ts +69 -0
- package/dist/apis/sync-api.js +120 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +139 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +20 -0
- package/dist/esm/api.js +22 -0
- package/dist/esm/apis/default-api.d.ts +170 -0
- package/dist/esm/apis/default-api.js +259 -0
- package/dist/esm/apis/info-api.d.ts +82 -0
- package/dist/esm/apis/info-api.js +122 -0
- package/dist/esm/apis/manifest-api.d.ts +566 -0
- package/dist/esm/apis/manifest-api.js +861 -0
- package/dist/esm/apis/my-profile-api.d.ts +70 -0
- package/dist/esm/apis/my-profile-api.js +114 -0
- package/dist/esm/apis/orgs-api.d.ts +174 -0
- package/dist/esm/apis/orgs-api.js +256 -0
- package/dist/esm/apis/profile-api.d.ts +191 -0
- package/dist/esm/apis/profile-api.js +291 -0
- package/dist/esm/apis/site-api.d.ts +111 -0
- package/dist/esm/apis/site-api.js +179 -0
- package/dist/esm/apis/sites-api.d.ts +126 -0
- package/dist/esm/apis/sites-api.js +186 -0
- package/dist/esm/apis/sync-api.d.ts +69 -0
- package/dist/esm/apis/sync-api.js +113 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +34 -0
- package/dist/esm/common.js +126 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/additional-info.d.ts +21 -0
- package/dist/esm/models/additional-info.js +14 -0
- package/dist/esm/models/esignature.d.ts +23 -0
- package/dist/esm/models/esignature.js +14 -0
- package/dist/esm/models/handler-search-site-type-enum.d.ts +21 -0
- package/dist/esm/models/handler-search-site-type-enum.js +22 -0
- package/dist/esm/models/handler-search.d.ts +16 -0
- package/dist/esm/models/handler-search.js +14 -0
- package/dist/esm/models/handler.d.ts +28 -0
- package/dist/esm/models/handler.js +14 -0
- package/dist/esm/models/index.d.ts +34 -0
- package/dist/esm/models/index.js +34 -0
- package/dist/esm/models/lock-reason-enum.d.ts +20 -0
- package/dist/esm/models/lock-reason-enum.js +21 -0
- package/dist/esm/models/manifest-phone.d.ts +18 -0
- package/dist/esm/models/manifest-phone.js +14 -0
- package/dist/esm/models/manifest.d.ts +53 -0
- package/dist/esm/models/manifest.js +14 -0
- package/dist/esm/models/mtn.d.ts +21 -0
- package/dist/esm/models/mtn.js +14 -0
- package/dist/esm/models/null-enum.d.ts +13 -0
- package/dist/esm/models/null-enum.js +14 -0
- package/dist/esm/models/org.d.ts +20 -0
- package/dist/esm/models/org.js +14 -0
- package/dist/esm/models/paginated-mtn-list.d.ts +18 -0
- package/dist/esm/models/paginated-mtn-list.js +14 -0
- package/dist/esm/models/paginated-org-list.d.ts +18 -0
- package/dist/esm/models/paginated-org-list.js +14 -0
- package/dist/esm/models/paginated-site-list.d.ts +18 -0
- package/dist/esm/models/paginated-site-list.js +14 -0
- package/dist/esm/models/paper-signature.d.ts +18 -0
- package/dist/esm/models/paper-signature.js +14 -0
- package/dist/esm/models/patched-profile.d.ts +20 -0
- package/dist/esm/models/patched-profile.js +14 -0
- package/dist/esm/models/patched-rcrainfo-profile.d.ts +24 -0
- package/dist/esm/models/patched-rcrainfo-profile.js +14 -0
- package/dist/esm/models/profile.d.ts +20 -0
- package/dist/esm/models/profile.js +14 -0
- package/dist/esm/models/quicker-sign.d.ts +22 -0
- package/dist/esm/models/quicker-sign.js +14 -0
- package/dist/esm/models/rcra-address.d.ts +27 -0
- package/dist/esm/models/rcra-address.js +14 -0
- package/dist/esm/models/rcra-contact.d.ts +23 -0
- package/dist/esm/models/rcra-contact.js +14 -0
- package/dist/esm/models/rcra-phone.d.ts +18 -0
- package/dist/esm/models/rcra-phone.js +14 -0
- package/dist/esm/models/rcra-site-permission.d.ts +23 -0
- package/dist/esm/models/rcra-site-permission.js +14 -0
- package/dist/esm/models/rcra-site.d.ts +39 -0
- package/dist/esm/models/rcra-site.js +19 -0
- package/dist/esm/models/rcrainfo-profile.d.ts +24 -0
- package/dist/esm/models/rcrainfo-profile.js +14 -0
- package/dist/esm/models/signer.d.ts +26 -0
- package/dist/esm/models/signer.js +14 -0
- package/dist/esm/models/site-manifest-sync-request.d.ts +14 -0
- package/dist/esm/models/site-manifest-sync-request.js +14 -0
- package/dist/esm/models/site-manifest-sync-response.d.ts +14 -0
- package/dist/esm/models/site-manifest-sync-response.js +14 -0
- package/dist/esm/models/site-type-enum.d.ts +21 -0
- package/dist/esm/models/site-type-enum.js +22 -0
- package/dist/esm/models/site.d.ts +19 -0
- package/dist/esm/models/site.js +14 -0
- package/dist/esm/models/status-enum.d.ts +26 -0
- package/dist/esm/models/status-enum.js +27 -0
- package/dist/esm/models/trak-user.d.ts +20 -0
- package/dist/esm/models/trak-user.js +14 -0
- package/dist/esm/models/transporter.d.ts +27 -0
- package/dist/esm/models/transporter.js +14 -0
- package/dist/esm/models/waste-line.d.ts +28 -0
- package/dist/esm/models/waste-line.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/additional-info.d.ts +21 -0
- package/dist/models/additional-info.js +15 -0
- package/dist/models/esignature.d.ts +23 -0
- package/dist/models/esignature.js +15 -0
- package/dist/models/handler-search-site-type-enum.d.ts +21 -0
- package/dist/models/handler-search-site-type-enum.js +25 -0
- package/dist/models/handler-search.d.ts +16 -0
- package/dist/models/handler-search.js +15 -0
- package/dist/models/handler.d.ts +28 -0
- package/dist/models/handler.js +15 -0
- package/dist/models/index.d.ts +34 -0
- package/dist/models/index.js +50 -0
- package/dist/models/lock-reason-enum.d.ts +20 -0
- package/dist/models/lock-reason-enum.js +24 -0
- package/dist/models/manifest-phone.d.ts +18 -0
- package/dist/models/manifest-phone.js +15 -0
- package/dist/models/manifest.d.ts +53 -0
- package/dist/models/manifest.js +15 -0
- package/dist/models/mtn.d.ts +21 -0
- package/dist/models/mtn.js +15 -0
- package/dist/models/null-enum.d.ts +13 -0
- package/dist/models/null-enum.js +17 -0
- package/dist/models/org.d.ts +20 -0
- package/dist/models/org.js +15 -0
- package/dist/models/paginated-mtn-list.d.ts +18 -0
- package/dist/models/paginated-mtn-list.js +15 -0
- package/dist/models/paginated-org-list.d.ts +18 -0
- package/dist/models/paginated-org-list.js +15 -0
- package/dist/models/paginated-site-list.d.ts +18 -0
- package/dist/models/paginated-site-list.js +15 -0
- package/dist/models/paper-signature.d.ts +18 -0
- package/dist/models/paper-signature.js +15 -0
- package/dist/models/patched-profile.d.ts +20 -0
- package/dist/models/patched-profile.js +15 -0
- package/dist/models/patched-rcrainfo-profile.d.ts +24 -0
- package/dist/models/patched-rcrainfo-profile.js +15 -0
- package/dist/models/profile.d.ts +20 -0
- package/dist/models/profile.js +15 -0
- package/dist/models/quicker-sign.d.ts +22 -0
- package/dist/models/quicker-sign.js +15 -0
- package/dist/models/rcra-address.d.ts +27 -0
- package/dist/models/rcra-address.js +15 -0
- package/dist/models/rcra-contact.d.ts +23 -0
- package/dist/models/rcra-contact.js +15 -0
- package/dist/models/rcra-phone.d.ts +18 -0
- package/dist/models/rcra-phone.js +15 -0
- package/dist/models/rcra-site-permission.d.ts +23 -0
- package/dist/models/rcra-site-permission.js +15 -0
- package/dist/models/rcra-site.d.ts +39 -0
- package/dist/models/rcra-site.js +22 -0
- package/dist/models/rcrainfo-profile.d.ts +24 -0
- package/dist/models/rcrainfo-profile.js +15 -0
- package/dist/models/signer.d.ts +26 -0
- package/dist/models/signer.js +15 -0
- package/dist/models/site-manifest-sync-request.d.ts +14 -0
- package/dist/models/site-manifest-sync-request.js +15 -0
- package/dist/models/site-manifest-sync-response.d.ts +14 -0
- package/dist/models/site-manifest-sync-response.js +15 -0
- package/dist/models/site-type-enum.d.ts +21 -0
- package/dist/models/site-type-enum.js +25 -0
- package/dist/models/site.d.ts +19 -0
- package/dist/models/site.js +15 -0
- package/dist/models/status-enum.d.ts +26 -0
- package/dist/models/status-enum.js +30 -0
- package/dist/models/trak-user.d.ts +20 -0
- package/dist/models/trak-user.js +15 -0
- package/dist/models/transporter.d.ts +27 -0
- package/dist/models/transporter.js +15 -0
- package/dist/models/waste-line.d.ts +28 -0
- package/dist/models/waste-line.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +16 -3
- package/models/additional-info.ts +27 -0
- package/models/esignature.ts +31 -0
- package/models/handler-search-site-type-enum.ts +31 -0
- package/models/handler-search.ts +26 -0
- package/models/handler.ts +42 -0
- package/models/index.ts +34 -50
- package/models/lock-reason-enum.ts +30 -0
- package/models/manifest-phone.ts +24 -0
- package/models/manifest.ts +73 -0
- package/models/mtn.ts +31 -0
- package/models/null-enum.ts +24 -0
- package/models/org.ts +26 -0
- package/models/paginated-mtn-list.ts +26 -0
- package/models/paginated-org-list.ts +26 -0
- package/models/paginated-site-list.ts +26 -0
- package/models/paper-signature.ts +24 -0
- package/models/patched-profile.ts +28 -0
- package/models/patched-rcrainfo-profile.ts +32 -0
- package/models/profile.ts +28 -0
- package/models/quicker-sign.ts +28 -0
- package/models/rcra-address.ts +29 -0
- package/models/rcra-contact.ts +31 -0
- package/models/rcra-phone.ts +24 -0
- package/models/rcra-site-permission.ts +29 -0
- package/models/rcra-site.ts +54 -0
- package/models/rcrainfo-profile.ts +32 -0
- package/models/signer.ts +34 -0
- package/models/site-manifest-sync-request.ts +20 -0
- package/models/site-manifest-sync-response.ts +20 -0
- package/models/site-type-enum.ts +31 -0
- package/models/site.ts +27 -0
- package/models/status-enum.ts +36 -0
- package/models/trak-user.ts +26 -0
- package/models/transporter.ts +39 -0
- package/models/waste-line.ts +34 -0
- package/package.json +26 -10
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
- package/apis/DefaultApi.ts +0 -176
- package/apis/InfoApi.ts +0 -80
- package/apis/ManifestApi.ts +0 -604
- package/apis/MyProfileApi.ts +0 -63
- package/apis/OrgsApi.ts +0 -172
- package/apis/PegasusApi.ts +0 -336
- package/apis/ProfileApi.ts +0 -229
- package/apis/SiteApi.ts +0 -108
- package/apis/SitesApi.ts +0 -119
- package/apis/SyncApi.ts +0 -55
- package/apis/TeamsApi.ts +0 -673
- package/apis/index.ts +0 -12
- package/docs/AdditionalInfo.md +0 -41
- package/docs/DefaultApi.md +0 -235
- package/docs/ESignature.md +0 -43
- package/docs/Handler.md +0 -41
- package/docs/HandlerSearch.md +0 -34
- package/docs/HandlerSearchSiteTypeEnum.md +0 -31
- package/docs/InfoApi.md +0 -81
- package/docs/Invitation.md +0 -42
- package/docs/LockReasonEnum.md +0 -31
- package/docs/Manifest.md +0 -93
- package/docs/ManifestApi.md +0 -907
- package/docs/ManifestPhone.md +0 -35
- package/docs/Membership.md +0 -42
- package/docs/Mtn.md +0 -39
- package/docs/MyProfileApi.md +0 -73
- package/docs/NullEnum.md +0 -30
- package/docs/OpenInvitation.md +0 -38
- package/docs/Org.md +0 -39
- package/docs/OrgsApi.md +0 -232
- package/docs/PaginatedInvitationList.md +0 -38
- package/docs/PaginatedMtnList.md +0 -38
- package/docs/PaginatedOrgList.md +0 -38
- package/docs/PaginatedSiteList.md +0 -38
- package/docs/PaginatedTeamList.md +0 -38
- package/docs/PaperSignature.md +0 -35
- package/docs/PatchedInvitation.md +0 -42
- package/docs/PatchedProfile.md +0 -35
- package/docs/PatchedRcrainfoProfile.md +0 -45
- package/docs/PatchedTeam.md +0 -48
- package/docs/Price.md +0 -42
- package/docs/Profile.md +0 -35
- package/docs/ProfileApi.md +0 -241
- package/docs/QuickerSign.md +0 -43
- package/docs/RcraAddress.md +0 -45
- package/docs/RcraContact.md +0 -43
- package/docs/RcraPhone.md +0 -35
- package/docs/RcraSite.md +0 -57
- package/docs/RcraSitePermission.md +0 -45
- package/docs/RcraSiteSiteTypeEnum.md +0 -31
- package/docs/RcrainfoProfile.md +0 -45
- package/docs/RoleEnum.md +0 -31
- package/docs/Signer.md +0 -49
- package/docs/Site.md +0 -35
- package/docs/SiteApi.md +0 -147
- package/docs/SiteManifestSyncRequest.md +0 -32
- package/docs/SiteManifestSyncResponse.md +0 -32
- package/docs/SitesApi.md +0 -155
- package/docs/StatusC23Enum.md +0 -31
- package/docs/Subscription.md +0 -51
- package/docs/SubscriptionItem.md +0 -36
- package/docs/SubscriptionStatusEnum.md +0 -31
- package/docs/SyncApi.md +0 -73
- package/docs/Team.md +0 -48
- package/docs/TeamsApi.md +0 -965
- package/docs/TrakUser.md +0 -43
- package/docs/Transporter.md +0 -41
- package/docs/UserInvitationsResponse.md +0 -32
- package/docs/WasteLine.md +0 -55
- package/models/AdditionalInfo.ts +0 -96
- package/models/AggregateEmployeeData.ts +0 -83
- package/models/DepartmentEnum.ts +0 -59
- package/models/ESignature.ts +0 -112
- package/models/Employee.ts +0 -125
- package/models/Handler.ts +0 -126
- package/models/HandlerSearch.ts +0 -84
- package/models/HandlerSearchSiteTypeEnum.ts +0 -57
- package/models/Invitation.ts +0 -116
- package/models/LockReasonEnum.ts +0 -55
- package/models/Manifest.ts +0 -353
- package/models/ManifestPhone.ts +0 -73
- package/models/Membership.ts +0 -115
- package/models/Mtn.ts +0 -98
- package/models/NullEnum.ts +0 -50
- package/models/OpenInvitation.ts +0 -88
- package/models/Org.ts +0 -88
- package/models/PaginatedEmployeeList.ts +0 -98
- package/models/PaginatedInvitationList.ts +0 -98
- package/models/PaginatedMtnList.ts +0 -98
- package/models/PaginatedOrgList.ts +0 -98
- package/models/PaginatedSiteList.ts +0 -98
- package/models/PaginatedTeamList.ts +0 -98
- package/models/PaperSignature.ts +0 -74
- package/models/PatchedEmployee.ts +0 -118
- package/models/PatchedInvitation.ts +0 -112
- package/models/PatchedProfile.ts +0 -79
- package/models/PatchedRcrainfoProfile.ts +0 -119
- package/models/PatchedTeam.ts +0 -143
- package/models/Price.ts +0 -106
- package/models/Profile.ts +0 -80
- package/models/QuickerSign.ts +0 -108
- package/models/RcraAddress.ts +0 -113
- package/models/RcraContact.ts +0 -112
- package/models/RcraPhone.ts +0 -73
- package/models/RcraSite.ts +0 -200
- package/models/RcraSitePermission.ts +0 -121
- package/models/RcraSiteSiteTypeEnum.ts +0 -57
- package/models/RcrainfoProfile.ts +0 -120
- package/models/RoleEnum.ts +0 -53
- package/models/Signer.ts +0 -136
- package/models/Site.ts +0 -81
- package/models/SiteManifestSyncRequest.ts +0 -65
- package/models/SiteManifestSyncResponse.ts +0 -65
- package/models/StatusC23Enum.ts +0 -67
- package/models/StatusEnum.ts +0 -63
- package/models/Subscription.ts +0 -168
- package/models/SubscriptionItem.ts +0 -90
- package/models/SubscriptionStatusEnum.ts +0 -63
- package/models/Team.ts +0 -151
- package/models/TrakUser.ts +0 -106
- package/models/Transporter.ts +0 -120
- package/models/UserInvitationsResponse.ts +0 -73
- package/models/WasteLine.ts +0 -157
- package/runtime.ts +0 -432
package/.openapi-generator/FILES
CHANGED
|
@@ -1,120 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
apis/
|
|
7
|
-
apis/
|
|
8
|
-
apis/
|
|
9
|
-
apis/
|
|
10
|
-
apis/
|
|
11
|
-
apis/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
docs/Invitation.md
|
|
20
|
-
docs/LockReasonEnum.md
|
|
21
|
-
docs/Manifest.md
|
|
22
|
-
docs/ManifestApi.md
|
|
23
|
-
docs/ManifestPhone.md
|
|
24
|
-
docs/Membership.md
|
|
25
|
-
docs/Mtn.md
|
|
26
|
-
docs/MyProfileApi.md
|
|
27
|
-
docs/NullEnum.md
|
|
28
|
-
docs/OpenInvitation.md
|
|
29
|
-
docs/Org.md
|
|
30
|
-
docs/OrgsApi.md
|
|
31
|
-
docs/PaginatedInvitationList.md
|
|
32
|
-
docs/PaginatedMtnList.md
|
|
33
|
-
docs/PaginatedOrgList.md
|
|
34
|
-
docs/PaginatedSiteList.md
|
|
35
|
-
docs/PaginatedTeamList.md
|
|
36
|
-
docs/PaperSignature.md
|
|
37
|
-
docs/PatchedInvitation.md
|
|
38
|
-
docs/PatchedProfile.md
|
|
39
|
-
docs/PatchedRcrainfoProfile.md
|
|
40
|
-
docs/PatchedTeam.md
|
|
41
|
-
docs/Price.md
|
|
42
|
-
docs/Profile.md
|
|
43
|
-
docs/ProfileApi.md
|
|
44
|
-
docs/QuickerSign.md
|
|
45
|
-
docs/RcraAddress.md
|
|
46
|
-
docs/RcraContact.md
|
|
47
|
-
docs/RcraPhone.md
|
|
48
|
-
docs/RcraSite.md
|
|
49
|
-
docs/RcraSitePermission.md
|
|
50
|
-
docs/RcraSiteSiteTypeEnum.md
|
|
51
|
-
docs/RcrainfoProfile.md
|
|
52
|
-
docs/RoleEnum.md
|
|
53
|
-
docs/Signer.md
|
|
54
|
-
docs/Site.md
|
|
55
|
-
docs/SiteApi.md
|
|
56
|
-
docs/SiteManifestSyncRequest.md
|
|
57
|
-
docs/SiteManifestSyncResponse.md
|
|
58
|
-
docs/SitesApi.md
|
|
59
|
-
docs/StatusC23Enum.md
|
|
60
|
-
docs/Subscription.md
|
|
61
|
-
docs/SubscriptionItem.md
|
|
62
|
-
docs/SubscriptionStatusEnum.md
|
|
63
|
-
docs/SyncApi.md
|
|
64
|
-
docs/Team.md
|
|
65
|
-
docs/TeamsApi.md
|
|
66
|
-
docs/TrakUser.md
|
|
67
|
-
docs/Transporter.md
|
|
68
|
-
docs/UserInvitationsResponse.md
|
|
69
|
-
docs/WasteLine.md
|
|
1
|
+
.gitignore
|
|
2
|
+
.npmignore
|
|
3
|
+
.openapi-generator-ignore
|
|
4
|
+
README.md
|
|
5
|
+
api.ts
|
|
6
|
+
apis/default-api.ts
|
|
7
|
+
apis/info-api.ts
|
|
8
|
+
apis/manifest-api.ts
|
|
9
|
+
apis/my-profile-api.ts
|
|
10
|
+
apis/orgs-api.ts
|
|
11
|
+
apis/profile-api.ts
|
|
12
|
+
apis/site-api.ts
|
|
13
|
+
apis/sites-api.ts
|
|
14
|
+
apis/sync-api.ts
|
|
15
|
+
base.ts
|
|
16
|
+
common.ts
|
|
17
|
+
configuration.ts
|
|
18
|
+
git_push.sh
|
|
70
19
|
index.ts
|
|
71
|
-
models/
|
|
72
|
-
models/
|
|
73
|
-
models/
|
|
74
|
-
models/
|
|
75
|
-
models/
|
|
76
|
-
models/Invitation.ts
|
|
77
|
-
models/LockReasonEnum.ts
|
|
78
|
-
models/Manifest.ts
|
|
79
|
-
models/ManifestPhone.ts
|
|
80
|
-
models/Membership.ts
|
|
81
|
-
models/Mtn.ts
|
|
82
|
-
models/NullEnum.ts
|
|
83
|
-
models/OpenInvitation.ts
|
|
84
|
-
models/Org.ts
|
|
85
|
-
models/PaginatedInvitationList.ts
|
|
86
|
-
models/PaginatedMtnList.ts
|
|
87
|
-
models/PaginatedOrgList.ts
|
|
88
|
-
models/PaginatedSiteList.ts
|
|
89
|
-
models/PaginatedTeamList.ts
|
|
90
|
-
models/PaperSignature.ts
|
|
91
|
-
models/PatchedInvitation.ts
|
|
92
|
-
models/PatchedProfile.ts
|
|
93
|
-
models/PatchedRcrainfoProfile.ts
|
|
94
|
-
models/PatchedTeam.ts
|
|
95
|
-
models/Price.ts
|
|
96
|
-
models/Profile.ts
|
|
97
|
-
models/QuickerSign.ts
|
|
98
|
-
models/RcraAddress.ts
|
|
99
|
-
models/RcraContact.ts
|
|
100
|
-
models/RcraPhone.ts
|
|
101
|
-
models/RcraSite.ts
|
|
102
|
-
models/RcraSitePermission.ts
|
|
103
|
-
models/RcraSiteSiteTypeEnum.ts
|
|
104
|
-
models/RcrainfoProfile.ts
|
|
105
|
-
models/RoleEnum.ts
|
|
106
|
-
models/Signer.ts
|
|
107
|
-
models/Site.ts
|
|
108
|
-
models/SiteManifestSyncRequest.ts
|
|
109
|
-
models/SiteManifestSyncResponse.ts
|
|
110
|
-
models/StatusC23Enum.ts
|
|
111
|
-
models/Subscription.ts
|
|
112
|
-
models/SubscriptionItem.ts
|
|
113
|
-
models/SubscriptionStatusEnum.ts
|
|
114
|
-
models/Team.ts
|
|
115
|
-
models/TrakUser.ts
|
|
116
|
-
models/Transporter.ts
|
|
117
|
-
models/UserInvitationsResponse.ts
|
|
118
|
-
models/WasteLine.ts
|
|
20
|
+
models/additional-info.ts
|
|
21
|
+
models/esignature.ts
|
|
22
|
+
models/handler-search-site-type-enum.ts
|
|
23
|
+
models/handler-search.ts
|
|
24
|
+
models/handler.ts
|
|
119
25
|
models/index.ts
|
|
120
|
-
|
|
26
|
+
models/lock-reason-enum.ts
|
|
27
|
+
models/manifest-phone.ts
|
|
28
|
+
models/manifest.ts
|
|
29
|
+
models/mtn.ts
|
|
30
|
+
models/null-enum.ts
|
|
31
|
+
models/org.ts
|
|
32
|
+
models/paginated-mtn-list.ts
|
|
33
|
+
models/paginated-org-list.ts
|
|
34
|
+
models/paginated-site-list.ts
|
|
35
|
+
models/paper-signature.ts
|
|
36
|
+
models/patched-profile.ts
|
|
37
|
+
models/patched-rcrainfo-profile.ts
|
|
38
|
+
models/profile.ts
|
|
39
|
+
models/quicker-sign.ts
|
|
40
|
+
models/rcra-address.ts
|
|
41
|
+
models/rcra-contact.ts
|
|
42
|
+
models/rcra-phone.ts
|
|
43
|
+
models/rcra-site-permission.ts
|
|
44
|
+
models/rcra-site.ts
|
|
45
|
+
models/rcrainfo-profile.ts
|
|
46
|
+
models/signer.ts
|
|
47
|
+
models/site-manifest-sync-request.ts
|
|
48
|
+
models/site-manifest-sync-response.ts
|
|
49
|
+
models/site-type-enum.ts
|
|
50
|
+
models/site.ts
|
|
51
|
+
models/status-enum.ts
|
|
52
|
+
models/trak-user.ts
|
|
53
|
+
models/transporter.ts
|
|
54
|
+
models/waste-line.ts
|
|
55
|
+
package.json
|
|
56
|
+
tsconfig.esm.json
|
|
57
|
+
tsconfig.json
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.20.0
|
package/README.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
## @wastesentry/trak-client@0.1.1
|
|
2
|
+
|
|
3
|
+
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
|
+
|
|
5
|
+
Environment
|
|
6
|
+
* Node.js
|
|
7
|
+
* Webpack
|
|
8
|
+
* Browserify
|
|
9
|
+
|
|
10
|
+
Language level
|
|
11
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
+
* ES6
|
|
13
|
+
|
|
14
|
+
Module system
|
|
15
|
+
* CommonJS
|
|
16
|
+
* ES6 module system
|
|
17
|
+
|
|
18
|
+
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
|
|
19
|
+
|
|
20
|
+
### Building
|
|
21
|
+
|
|
22
|
+
To build and compile the typescript sources to javascript use:
|
|
23
|
+
```
|
|
24
|
+
npm install
|
|
25
|
+
npm run build
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Publishing
|
|
29
|
+
|
|
30
|
+
First build the package then run `npm publish`
|
|
31
|
+
|
|
32
|
+
### Consuming
|
|
33
|
+
|
|
34
|
+
navigate to the folder of your consuming project and run one of the following commands.
|
|
35
|
+
|
|
36
|
+
_published:_
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
npm install @wastesentry/trak-client@0.1.1 --save
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
_unPublished (not recommended):_
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Documentation for API Endpoints
|
|
49
|
+
|
|
50
|
+
All URIs are relative to *http://localhost*
|
|
51
|
+
|
|
52
|
+
Class | Method | HTTP request | Description
|
|
53
|
+
------------ | ------------- | ------------- | -------------
|
|
54
|
+
*DefaultApi* | [**rootPartialUpdate**](docs/DefaultApi.md#rootpartialupdate) | **PATCH** /api/v1/{username} |
|
|
55
|
+
*DefaultApi* | [**rootRetrieve**](docs/DefaultApi.md#rootretrieve) | **GET** /api/v1/{username} |
|
|
56
|
+
*DefaultApi* | [**rootUpdate**](docs/DefaultApi.md#rootupdate) | **PUT** /api/v1/{username} |
|
|
57
|
+
*InfoApi* | [**infoRcrasiteSearchCreate**](docs/InfoApi.md#inforcrasitesearchcreate) | **POST** /api/v1/rcrainfo/rcrasite/search |
|
|
58
|
+
*ManifestApi* | [**manifestCreate**](docs/ManifestApi.md#manifestcreate) | **POST** /api/v1/manifest |
|
|
59
|
+
*ManifestApi* | [**manifestEmanifestCreate**](docs/ManifestApi.md#manifestemanifestcreate) | **POST** /api/v1/manifest/emanifest |
|
|
60
|
+
*ManifestApi* | [**manifestEmanifestSignCreate**](docs/ManifestApi.md#manifestemanifestsigncreate) | **POST** /api/v1/manifest/emanifest/sign |
|
|
61
|
+
*ManifestApi* | [**manifestEmanifestSyncCreate**](docs/ManifestApi.md#manifestemanifestsynccreate) | **POST** /api/v1/manifest/emanifest/sync |
|
|
62
|
+
*ManifestApi* | [**manifestMtnList**](docs/ManifestApi.md#manifestmtnlist) | **GET** /api/v1/manifest/mtn |
|
|
63
|
+
*ManifestApi* | [**manifestMtnList2**](docs/ManifestApi.md#manifestmtnlist2) | **GET** /api/v1/manifest/mtn/{epa_id} |
|
|
64
|
+
*ManifestApi* | [**manifestMtnList3**](docs/ManifestApi.md#manifestmtnlist3) | **GET** /api/v1/manifest/mtn/{epa_id}/{site_type} |
|
|
65
|
+
*ManifestApi* | [**manifestRetrieve**](docs/ManifestApi.md#manifestretrieve) | **GET** /api/v1/manifest/{mtn} |
|
|
66
|
+
*ManifestApi* | [**manifestUpdate**](docs/ManifestApi.md#manifestupdate) | **PUT** /api/v1/manifest/{mtn} |
|
|
67
|
+
*ManifestApi* | [**manifestWastelineDotClassRetrieve**](docs/ManifestApi.md#manifestwastelinedotclassretrieve) | **GET** /api/v1/manifest/wasteline/dot/class |
|
|
68
|
+
*ManifestApi* | [**manifestWastelineDotIdRetrieve**](docs/ManifestApi.md#manifestwastelinedotidretrieve) | **GET** /api/v1/manifest/wasteline/dot/id |
|
|
69
|
+
*ManifestApi* | [**manifestWastelineDotNameRetrieve**](docs/ManifestApi.md#manifestwastelinedotnameretrieve) | **GET** /api/v1/manifest/wasteline/dot/name |
|
|
70
|
+
*MyProfileApi* | [**myProfileRetrieve**](docs/MyProfileApi.md#myprofileretrieve) | **GET** /api/v1/my-profile |
|
|
71
|
+
*OrgsApi* | [**orgsList**](docs/OrgsApi.md#orgslist) | **GET** /api/v1/orgs |
|
|
72
|
+
*OrgsApi* | [**orgsRetrieve**](docs/OrgsApi.md#orgsretrieve) | **GET** /api/v1/orgs/{org_slug} |
|
|
73
|
+
*OrgsApi* | [**orgsSitesList**](docs/OrgsApi.md#orgssiteslist) | **GET** /api/v1/orgs/{org_slug}/sites |
|
|
74
|
+
*ProfileApi* | [**profilePartialUpdate**](docs/ProfileApi.md#profilepartialupdate) | **PATCH** /api/v1/profile/{user_id} |
|
|
75
|
+
*ProfileApi* | [**profileRetrieve**](docs/ProfileApi.md#profileretrieve) | **GET** /api/v1/profile/{user_id} |
|
|
76
|
+
*ProfileApi* | [**profileUpdate**](docs/ProfileApi.md#profileupdate) | **PUT** /api/v1/profile/{user_id} |
|
|
77
|
+
*SiteApi* | [**siteRetrieve**](docs/SiteApi.md#siteretrieve) | **GET** /api/v1/rcrasite/{epa_id} |
|
|
78
|
+
*SiteApi* | [**siteSearchList**](docs/SiteApi.md#sitesearchlist) | **GET** /api/v1/rcrasite/search |
|
|
79
|
+
*SitesApi* | [**sitesList**](docs/SitesApi.md#siteslist) | **GET** /api/v1/sites |
|
|
80
|
+
*SitesApi* | [**sitesRetrieve**](docs/SitesApi.md#sitesretrieve) | **GET** /api/v1/sites/{epa_id} |
|
|
81
|
+
*SyncApi* | [**syncCreate**](docs/SyncApi.md#synccreate) | **POST** /api/v1/sync |
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Documentation For Models
|
|
85
|
+
|
|
86
|
+
- [AdditionalInfo](docs/AdditionalInfo.md)
|
|
87
|
+
- [ESignature](docs/ESignature.md)
|
|
88
|
+
- [Handler](docs/Handler.md)
|
|
89
|
+
- [HandlerSearch](docs/HandlerSearch.md)
|
|
90
|
+
- [HandlerSearchSiteTypeEnum](docs/HandlerSearchSiteTypeEnum.md)
|
|
91
|
+
- [LockReasonEnum](docs/LockReasonEnum.md)
|
|
92
|
+
- [Manifest](docs/Manifest.md)
|
|
93
|
+
- [ManifestPhone](docs/ManifestPhone.md)
|
|
94
|
+
- [Mtn](docs/Mtn.md)
|
|
95
|
+
- [NullEnum](docs/NullEnum.md)
|
|
96
|
+
- [Org](docs/Org.md)
|
|
97
|
+
- [PaginatedMtnList](docs/PaginatedMtnList.md)
|
|
98
|
+
- [PaginatedOrgList](docs/PaginatedOrgList.md)
|
|
99
|
+
- [PaginatedSiteList](docs/PaginatedSiteList.md)
|
|
100
|
+
- [PaperSignature](docs/PaperSignature.md)
|
|
101
|
+
- [PatchedProfile](docs/PatchedProfile.md)
|
|
102
|
+
- [PatchedRcrainfoProfile](docs/PatchedRcrainfoProfile.md)
|
|
103
|
+
- [Profile](docs/Profile.md)
|
|
104
|
+
- [QuickerSign](docs/QuickerSign.md)
|
|
105
|
+
- [RcraAddress](docs/RcraAddress.md)
|
|
106
|
+
- [RcraContact](docs/RcraContact.md)
|
|
107
|
+
- [RcraPhone](docs/RcraPhone.md)
|
|
108
|
+
- [RcraSite](docs/RcraSite.md)
|
|
109
|
+
- [RcraSitePermission](docs/RcraSitePermission.md)
|
|
110
|
+
- [RcrainfoProfile](docs/RcrainfoProfile.md)
|
|
111
|
+
- [Signer](docs/Signer.md)
|
|
112
|
+
- [Site](docs/Site.md)
|
|
113
|
+
- [SiteManifestSyncRequest](docs/SiteManifestSyncRequest.md)
|
|
114
|
+
- [SiteManifestSyncResponse](docs/SiteManifestSyncResponse.md)
|
|
115
|
+
- [SiteTypeEnum](docs/SiteTypeEnum.md)
|
|
116
|
+
- [StatusEnum](docs/StatusEnum.md)
|
|
117
|
+
- [TrakUser](docs/TrakUser.md)
|
|
118
|
+
- [Transporter](docs/Transporter.md)
|
|
119
|
+
- [WasteLine](docs/WasteLine.md)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
<a id="documentation-for-authorization"></a>
|
|
123
|
+
## Documentation For Authorization
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
Authentication schemes defined for the API:
|
|
127
|
+
<a id="ApiKeyAuth"></a>
|
|
128
|
+
### ApiKeyAuth
|
|
129
|
+
|
|
130
|
+
- **Type**: API key
|
|
131
|
+
- **API key parameter name**: Authorization
|
|
132
|
+
- **Location**: HTTP header
|
|
133
|
+
|
|
134
|
+
<a id="cookieAuth"></a>
|
|
135
|
+
### cookieAuth
|
|
136
|
+
|
|
137
|
+
- **Type**: API key
|
|
138
|
+
- **API key parameter name**: sessionid
|
|
139
|
+
- **Location**:
|
|
140
|
+
|
package/api.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export * from './apis/default-api';
|
|
18
|
+
export * from './apis/info-api';
|
|
19
|
+
export * from './apis/manifest-api';
|
|
20
|
+
export * from './apis/my-profile-api';
|
|
21
|
+
export * from './apis/orgs-api';
|
|
22
|
+
export * from './apis/profile-api';
|
|
23
|
+
export * from './apis/site-api';
|
|
24
|
+
export * from './apis/sites-api';
|
|
25
|
+
export * from './apis/sync-api';
|
|
26
|
+
|
|
@@ -0,0 +1,328 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { PatchedRcrainfoProfile } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { RcrainfoProfile } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* DefaultApi - axios parameter creator
|
|
30
|
+
*/
|
|
31
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* 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.
|
|
35
|
+
* @param {string} username
|
|
36
|
+
* @param {PatchedRcrainfoProfile} [patchedRcrainfoProfile]
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
rootPartialUpdate: async (username: string, patchedRcrainfoProfile?: PatchedRcrainfoProfile, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41
|
+
// verify required parameter 'username' is not null or undefined
|
|
42
|
+
assertParamExists('rootPartialUpdate', 'username', username)
|
|
43
|
+
const localVarPath = `/api/v1/{username}`
|
|
44
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
53
|
+
const localVarHeaderParameter = {} as any;
|
|
54
|
+
const localVarQueryParameter = {} as any;
|
|
55
|
+
|
|
56
|
+
// authentication cookieAuth required
|
|
57
|
+
|
|
58
|
+
// authentication ApiKeyAuth required
|
|
59
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
60
|
+
|
|
61
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
63
|
+
|
|
64
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
67
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchedRcrainfoProfile, localVarRequestOptions, configuration)
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
url: toPathString(localVarUrlObj),
|
|
71
|
+
options: localVarRequestOptions,
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* 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.
|
|
76
|
+
* @param {string} username
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
rootRetrieve: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
81
|
+
// verify required parameter 'username' is not null or undefined
|
|
82
|
+
assertParamExists('rootRetrieve', 'username', username)
|
|
83
|
+
const localVarPath = `/api/v1/{username}`
|
|
84
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
85
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
87
|
+
let baseOptions;
|
|
88
|
+
if (configuration) {
|
|
89
|
+
baseOptions = configuration.baseOptions;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
93
|
+
const localVarHeaderParameter = {} as any;
|
|
94
|
+
const localVarQueryParameter = {} as any;
|
|
95
|
+
|
|
96
|
+
// authentication cookieAuth required
|
|
97
|
+
|
|
98
|
+
// authentication ApiKeyAuth required
|
|
99
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
100
|
+
|
|
101
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
102
|
+
|
|
103
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
104
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
url: toPathString(localVarUrlObj),
|
|
109
|
+
options: localVarRequestOptions,
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
/**
|
|
113
|
+
* 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.
|
|
114
|
+
* @param {string} username
|
|
115
|
+
* @param {RcrainfoProfile} [rcrainfoProfile]
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
rootUpdate: async (username: string, rcrainfoProfile?: RcrainfoProfile, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
120
|
+
// verify required parameter 'username' is not null or undefined
|
|
121
|
+
assertParamExists('rootUpdate', 'username', username)
|
|
122
|
+
const localVarPath = `/api/v1/{username}`
|
|
123
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
124
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
125
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
126
|
+
let baseOptions;
|
|
127
|
+
if (configuration) {
|
|
128
|
+
baseOptions = configuration.baseOptions;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
132
|
+
const localVarHeaderParameter = {} as any;
|
|
133
|
+
const localVarQueryParameter = {} as any;
|
|
134
|
+
|
|
135
|
+
// authentication cookieAuth required
|
|
136
|
+
|
|
137
|
+
// authentication ApiKeyAuth required
|
|
138
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
139
|
+
|
|
140
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
141
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
142
|
+
|
|
143
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
146
|
+
localVarRequestOptions.data = serializeDataIfNeeded(rcrainfoProfile, localVarRequestOptions, configuration)
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
url: toPathString(localVarUrlObj),
|
|
150
|
+
options: localVarRequestOptions,
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* DefaultApi - functional programming interface
|
|
158
|
+
*/
|
|
159
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
160
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
161
|
+
return {
|
|
162
|
+
/**
|
|
163
|
+
* 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.
|
|
164
|
+
* @param {string} username
|
|
165
|
+
* @param {PatchedRcrainfoProfile} [patchedRcrainfoProfile]
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
async rootPartialUpdate(username: string, patchedRcrainfoProfile?: PatchedRcrainfoProfile, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RcrainfoProfile>> {
|
|
170
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rootPartialUpdate(username, patchedRcrainfoProfile, options);
|
|
171
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
172
|
+
const localVarOperationServerBasePath = operationServerMap['DefaultApi.rootPartialUpdate']?.[localVarOperationServerIndex]?.url;
|
|
173
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
174
|
+
},
|
|
175
|
+
/**
|
|
176
|
+
* 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.
|
|
177
|
+
* @param {string} username
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
async rootRetrieve(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RcrainfoProfile>> {
|
|
182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rootRetrieve(username, options);
|
|
183
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
184
|
+
const localVarOperationServerBasePath = operationServerMap['DefaultApi.rootRetrieve']?.[localVarOperationServerIndex]?.url;
|
|
185
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
* 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.
|
|
189
|
+
* @param {string} username
|
|
190
|
+
* @param {RcrainfoProfile} [rcrainfoProfile]
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
async rootUpdate(username: string, rcrainfoProfile?: RcrainfoProfile, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RcrainfoProfile>> {
|
|
195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rootUpdate(username, rcrainfoProfile, options);
|
|
196
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
197
|
+
const localVarOperationServerBasePath = operationServerMap['DefaultApi.rootUpdate']?.[localVarOperationServerIndex]?.url;
|
|
198
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
199
|
+
},
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* DefaultApi - factory interface
|
|
205
|
+
*/
|
|
206
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
207
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
208
|
+
return {
|
|
209
|
+
/**
|
|
210
|
+
* 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.
|
|
211
|
+
* @param {DefaultApiRootPartialUpdateRequest} requestParameters Request parameters.
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
rootPartialUpdate(requestParameters: DefaultApiRootPartialUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile> {
|
|
216
|
+
return localVarFp.rootPartialUpdate(requestParameters.username, requestParameters.patchedRcrainfoProfile, options).then((request) => request(axios, basePath));
|
|
217
|
+
},
|
|
218
|
+
/**
|
|
219
|
+
* 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.
|
|
220
|
+
* @param {DefaultApiRootRetrieveRequest} requestParameters Request parameters.
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
rootRetrieve(requestParameters: DefaultApiRootRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile> {
|
|
225
|
+
return localVarFp.rootRetrieve(requestParameters.username, options).then((request) => request(axios, basePath));
|
|
226
|
+
},
|
|
227
|
+
/**
|
|
228
|
+
* 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.
|
|
229
|
+
* @param {DefaultApiRootUpdateRequest} requestParameters Request parameters.
|
|
230
|
+
* @param {*} [options] Override http request option.
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
*/
|
|
233
|
+
rootUpdate(requestParameters: DefaultApiRootUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile> {
|
|
234
|
+
return localVarFp.rootUpdate(requestParameters.username, requestParameters.rcrainfoProfile, options).then((request) => request(axios, basePath));
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* DefaultApi - interface
|
|
241
|
+
*/
|
|
242
|
+
export interface DefaultApiInterface {
|
|
243
|
+
/**
|
|
244
|
+
* 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.
|
|
245
|
+
* @param {DefaultApiRootPartialUpdateRequest} requestParameters Request parameters.
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
rootPartialUpdate(requestParameters: DefaultApiRootPartialUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile>;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* 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.
|
|
253
|
+
* @param {DefaultApiRootRetrieveRequest} requestParameters Request parameters.
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
rootRetrieve(requestParameters: DefaultApiRootRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile>;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* 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.
|
|
261
|
+
* @param {DefaultApiRootUpdateRequest} requestParameters Request parameters.
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
rootUpdate(requestParameters: DefaultApiRootUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcrainfoProfile>;
|
|
266
|
+
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Request parameters for rootPartialUpdate operation in DefaultApi.
|
|
271
|
+
*/
|
|
272
|
+
export interface DefaultApiRootPartialUpdateRequest {
|
|
273
|
+
readonly username: string
|
|
274
|
+
|
|
275
|
+
readonly patchedRcrainfoProfile?: PatchedRcrainfoProfile
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Request parameters for rootRetrieve operation in DefaultApi.
|
|
280
|
+
*/
|
|
281
|
+
export interface DefaultApiRootRetrieveRequest {
|
|
282
|
+
readonly username: string
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Request parameters for rootUpdate operation in DefaultApi.
|
|
287
|
+
*/
|
|
288
|
+
export interface DefaultApiRootUpdateRequest {
|
|
289
|
+
readonly username: string
|
|
290
|
+
|
|
291
|
+
readonly rcrainfoProfile?: RcrainfoProfile
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* DefaultApi - object-oriented interface
|
|
296
|
+
*/
|
|
297
|
+
export class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
298
|
+
/**
|
|
299
|
+
* 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.
|
|
300
|
+
* @param {DefaultApiRootPartialUpdateRequest} requestParameters Request parameters.
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
public rootPartialUpdate(requestParameters: DefaultApiRootPartialUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
305
|
+
return DefaultApiFp(this.configuration).rootPartialUpdate(requestParameters.username, requestParameters.patchedRcrainfoProfile, options).then((request) => request(this.axios, this.basePath));
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* 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.
|
|
310
|
+
* @param {DefaultApiRootRetrieveRequest} requestParameters Request parameters.
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
public rootRetrieve(requestParameters: DefaultApiRootRetrieveRequest, options?: RawAxiosRequestConfig) {
|
|
315
|
+
return DefaultApiFp(this.configuration).rootRetrieve(requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* 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.
|
|
320
|
+
* @param {DefaultApiRootUpdateRequest} requestParameters Request parameters.
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
public rootUpdate(requestParameters: DefaultApiRootUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
325
|
+
return DefaultApiFp(this.configuration).rootUpdate(requestParameters.username, requestParameters.rcrainfoProfile, options).then((request) => request(this.axios, this.basePath));
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|