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