@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
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* trak
|
|
3
|
+
* Hazardous waste tracking application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { Profile } from '../models';
|
|
16
|
+
import type { TrakUser } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* ProfileApi - axios parameter creator
|
|
19
|
+
*/
|
|
20
|
+
export declare const ProfileApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* ViewSet for the Profile model.
|
|
23
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
24
|
+
* @param {TrakUser} [user]
|
|
25
|
+
* @param {string | null} [avatar]
|
|
26
|
+
* @param {string} [phoneNumber]
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
profilePartialUpdate: (userId: string, user?: TrakUser, avatar?: string | null, phoneNumber?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
* ViewSet for the Profile model.
|
|
33
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
profileRetrieve: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
|
+
/**
|
|
39
|
+
* ViewSet for the Profile model.
|
|
40
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
41
|
+
* @param {TrakUser} user
|
|
42
|
+
* @param {string} phoneNumber
|
|
43
|
+
* @param {string | null} [avatar]
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
profileUpdate: (userId: string, user: TrakUser, phoneNumber: string, avatar?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* ProfileApi - functional programming interface
|
|
51
|
+
*/
|
|
52
|
+
export declare const ProfileApiFp: (configuration?: Configuration) => {
|
|
53
|
+
/**
|
|
54
|
+
* ViewSet for the Profile model.
|
|
55
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
56
|
+
* @param {TrakUser} [user]
|
|
57
|
+
* @param {string | null} [avatar]
|
|
58
|
+
* @param {string} [phoneNumber]
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
*/
|
|
62
|
+
profilePartialUpdate(userId: string, user?: TrakUser, avatar?: string | null, phoneNumber?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>>;
|
|
63
|
+
/**
|
|
64
|
+
* ViewSet for the Profile model.
|
|
65
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
profileRetrieve(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>>;
|
|
70
|
+
/**
|
|
71
|
+
* ViewSet for the Profile model.
|
|
72
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
73
|
+
* @param {TrakUser} user
|
|
74
|
+
* @param {string} phoneNumber
|
|
75
|
+
* @param {string | null} [avatar]
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
profileUpdate(userId: string, user: TrakUser, phoneNumber: string, avatar?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>>;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* ProfileApi - factory interface
|
|
83
|
+
*/
|
|
84
|
+
export declare const ProfileApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
85
|
+
/**
|
|
86
|
+
* ViewSet for the Profile model.
|
|
87
|
+
* @param {ProfileApiProfilePartialUpdateRequest} requestParameters Request parameters.
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
profilePartialUpdate(requestParameters: ProfileApiProfilePartialUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
|
|
92
|
+
/**
|
|
93
|
+
* ViewSet for the Profile model.
|
|
94
|
+
* @param {ProfileApiProfileRetrieveRequest} requestParameters Request parameters.
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
profileRetrieve(requestParameters: ProfileApiProfileRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
|
|
99
|
+
/**
|
|
100
|
+
* ViewSet for the Profile model.
|
|
101
|
+
* @param {ProfileApiProfileUpdateRequest} requestParameters Request parameters.
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
profileUpdate(requestParameters: ProfileApiProfileUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* ProfileApi - interface
|
|
109
|
+
*/
|
|
110
|
+
export interface ProfileApiInterface {
|
|
111
|
+
/**
|
|
112
|
+
* ViewSet for the Profile model.
|
|
113
|
+
* @param {ProfileApiProfilePartialUpdateRequest} requestParameters Request parameters.
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
profilePartialUpdate(requestParameters: ProfileApiProfilePartialUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
|
|
118
|
+
/**
|
|
119
|
+
* ViewSet for the Profile model.
|
|
120
|
+
* @param {ProfileApiProfileRetrieveRequest} requestParameters Request parameters.
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
profileRetrieve(requestParameters: ProfileApiProfileRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
|
|
125
|
+
/**
|
|
126
|
+
* ViewSet for the Profile model.
|
|
127
|
+
* @param {ProfileApiProfileUpdateRequest} requestParameters Request parameters.
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
*/
|
|
131
|
+
profileUpdate(requestParameters: ProfileApiProfileUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Profile>;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Request parameters for profilePartialUpdate operation in ProfileApi.
|
|
135
|
+
*/
|
|
136
|
+
export interface ProfileApiProfilePartialUpdateRequest {
|
|
137
|
+
/**
|
|
138
|
+
* A UUID string identifying this profile.
|
|
139
|
+
*/
|
|
140
|
+
readonly userId: string;
|
|
141
|
+
readonly user?: TrakUser;
|
|
142
|
+
readonly avatar?: string | null;
|
|
143
|
+
readonly phoneNumber?: string;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Request parameters for profileRetrieve operation in ProfileApi.
|
|
147
|
+
*/
|
|
148
|
+
export interface ProfileApiProfileRetrieveRequest {
|
|
149
|
+
/**
|
|
150
|
+
* A UUID string identifying this profile.
|
|
151
|
+
*/
|
|
152
|
+
readonly userId: string;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Request parameters for profileUpdate operation in ProfileApi.
|
|
156
|
+
*/
|
|
157
|
+
export interface ProfileApiProfileUpdateRequest {
|
|
158
|
+
/**
|
|
159
|
+
* A UUID string identifying this profile.
|
|
160
|
+
*/
|
|
161
|
+
readonly userId: string;
|
|
162
|
+
readonly user: TrakUser;
|
|
163
|
+
readonly phoneNumber: string;
|
|
164
|
+
readonly avatar?: string | null;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* ProfileApi - object-oriented interface
|
|
168
|
+
*/
|
|
169
|
+
export declare class ProfileApi extends BaseAPI implements ProfileApiInterface {
|
|
170
|
+
/**
|
|
171
|
+
* ViewSet for the Profile model.
|
|
172
|
+
* @param {ProfileApiProfilePartialUpdateRequest} requestParameters Request parameters.
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
profilePartialUpdate(requestParameters: ProfileApiProfilePartialUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Profile, any, {}>>;
|
|
177
|
+
/**
|
|
178
|
+
* ViewSet for the Profile model.
|
|
179
|
+
* @param {ProfileApiProfileRetrieveRequest} requestParameters Request parameters.
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
*/
|
|
183
|
+
profileRetrieve(requestParameters: ProfileApiProfileRetrieveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Profile, any, {}>>;
|
|
184
|
+
/**
|
|
185
|
+
* ViewSet for the Profile model.
|
|
186
|
+
* @param {ProfileApiProfileUpdateRequest} requestParameters Request parameters.
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
profileUpdate(requestParameters: ProfileApiProfileUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Profile, any, {}>>;
|
|
191
|
+
}
|
|
@@ -0,0 +1,291 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* ProfileApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const ProfileApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
* ViewSet for the Profile model.
|
|
36
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
37
|
+
* @param {TrakUser} [user]
|
|
38
|
+
* @param {string | null} [avatar]
|
|
39
|
+
* @param {string} [phoneNumber]
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
profilePartialUpdate: (userId_1, user_1, avatar_1, phoneNumber_1, ...args_1) => __awaiter(this, [userId_1, user_1, avatar_1, phoneNumber_1, ...args_1], void 0, function* (userId, user, avatar, phoneNumber, options = {}) {
|
|
44
|
+
// verify required parameter 'userId' is not null or undefined
|
|
45
|
+
assertParamExists('profilePartialUpdate', 'userId', userId);
|
|
46
|
+
const localVarPath = `/api/v1/profile/{user_id}`
|
|
47
|
+
.replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
55
|
+
const localVarHeaderParameter = {};
|
|
56
|
+
const localVarQueryParameter = {};
|
|
57
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
58
|
+
// authentication cookieAuth required
|
|
59
|
+
// authentication ApiKeyAuth required
|
|
60
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
61
|
+
if (user !== undefined) {
|
|
62
|
+
localVarFormParams.append('user', new Blob([JSON.stringify(user, replaceWithSerializableTypeIfNeeded)], { type: "application/json", }));
|
|
63
|
+
}
|
|
64
|
+
if (avatar !== undefined) {
|
|
65
|
+
localVarFormParams.append('avatar', avatar);
|
|
66
|
+
}
|
|
67
|
+
if (phoneNumber !== undefined) {
|
|
68
|
+
localVarFormParams.append('phoneNumber', phoneNumber);
|
|
69
|
+
}
|
|
70
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
71
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
72
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
73
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
74
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
75
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
76
|
+
return {
|
|
77
|
+
url: toPathString(localVarUrlObj),
|
|
78
|
+
options: localVarRequestOptions,
|
|
79
|
+
};
|
|
80
|
+
}),
|
|
81
|
+
/**
|
|
82
|
+
* ViewSet for the Profile model.
|
|
83
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
profileRetrieve: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
88
|
+
// verify required parameter 'userId' is not null or undefined
|
|
89
|
+
assertParamExists('profileRetrieve', 'userId', userId);
|
|
90
|
+
const localVarPath = `/api/v1/profile/{user_id}`
|
|
91
|
+
.replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
|
|
92
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
93
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
94
|
+
let baseOptions;
|
|
95
|
+
if (configuration) {
|
|
96
|
+
baseOptions = configuration.baseOptions;
|
|
97
|
+
}
|
|
98
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
99
|
+
const localVarHeaderParameter = {};
|
|
100
|
+
const localVarQueryParameter = {};
|
|
101
|
+
// authentication cookieAuth required
|
|
102
|
+
// authentication ApiKeyAuth required
|
|
103
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
104
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
105
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
106
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
107
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
108
|
+
return {
|
|
109
|
+
url: toPathString(localVarUrlObj),
|
|
110
|
+
options: localVarRequestOptions,
|
|
111
|
+
};
|
|
112
|
+
}),
|
|
113
|
+
/**
|
|
114
|
+
* ViewSet for the Profile model.
|
|
115
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
116
|
+
* @param {TrakUser} user
|
|
117
|
+
* @param {string} phoneNumber
|
|
118
|
+
* @param {string | null} [avatar]
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
profileUpdate: (userId_1, user_1, phoneNumber_1, avatar_1, ...args_1) => __awaiter(this, [userId_1, user_1, phoneNumber_1, avatar_1, ...args_1], void 0, function* (userId, user, phoneNumber, avatar, options = {}) {
|
|
123
|
+
// verify required parameter 'userId' is not null or undefined
|
|
124
|
+
assertParamExists('profileUpdate', 'userId', userId);
|
|
125
|
+
// verify required parameter 'user' is not null or undefined
|
|
126
|
+
assertParamExists('profileUpdate', 'user', user);
|
|
127
|
+
// verify required parameter 'phoneNumber' is not null or undefined
|
|
128
|
+
assertParamExists('profileUpdate', 'phoneNumber', phoneNumber);
|
|
129
|
+
const localVarPath = `/api/v1/profile/{user_id}`
|
|
130
|
+
.replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
|
|
131
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
132
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
133
|
+
let baseOptions;
|
|
134
|
+
if (configuration) {
|
|
135
|
+
baseOptions = configuration.baseOptions;
|
|
136
|
+
}
|
|
137
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
138
|
+
const localVarHeaderParameter = {};
|
|
139
|
+
const localVarQueryParameter = {};
|
|
140
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
141
|
+
// authentication cookieAuth required
|
|
142
|
+
// authentication ApiKeyAuth required
|
|
143
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
144
|
+
if (user !== undefined) {
|
|
145
|
+
localVarFormParams.append('user', new Blob([JSON.stringify(user, replaceWithSerializableTypeIfNeeded)], { type: "application/json", }));
|
|
146
|
+
}
|
|
147
|
+
if (avatar !== undefined) {
|
|
148
|
+
localVarFormParams.append('avatar', avatar);
|
|
149
|
+
}
|
|
150
|
+
if (phoneNumber !== undefined) {
|
|
151
|
+
localVarFormParams.append('phoneNumber', phoneNumber);
|
|
152
|
+
}
|
|
153
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
154
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
155
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
156
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
157
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
158
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
159
|
+
return {
|
|
160
|
+
url: toPathString(localVarUrlObj),
|
|
161
|
+
options: localVarRequestOptions,
|
|
162
|
+
};
|
|
163
|
+
}),
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* ProfileApi - functional programming interface
|
|
168
|
+
*/
|
|
169
|
+
export const ProfileApiFp = function (configuration) {
|
|
170
|
+
const localVarAxiosParamCreator = ProfileApiAxiosParamCreator(configuration);
|
|
171
|
+
return {
|
|
172
|
+
/**
|
|
173
|
+
* ViewSet for the Profile model.
|
|
174
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
175
|
+
* @param {TrakUser} [user]
|
|
176
|
+
* @param {string | null} [avatar]
|
|
177
|
+
* @param {string} [phoneNumber]
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
profilePartialUpdate(userId, user, avatar, phoneNumber, options) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
var _a, _b, _c;
|
|
184
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.profilePartialUpdate(userId, user, avatar, phoneNumber, options);
|
|
185
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
186
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProfileApi.profilePartialUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
187
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
188
|
+
});
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
* ViewSet for the Profile model.
|
|
192
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
profileRetrieve(userId, options) {
|
|
197
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
198
|
+
var _a, _b, _c;
|
|
199
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.profileRetrieve(userId, options);
|
|
200
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
201
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProfileApi.profileRetrieve']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
202
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
203
|
+
});
|
|
204
|
+
},
|
|
205
|
+
/**
|
|
206
|
+
* ViewSet for the Profile model.
|
|
207
|
+
* @param {string} userId A UUID string identifying this profile.
|
|
208
|
+
* @param {TrakUser} user
|
|
209
|
+
* @param {string} phoneNumber
|
|
210
|
+
* @param {string | null} [avatar]
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
profileUpdate(userId, user, phoneNumber, avatar, options) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
var _a, _b, _c;
|
|
217
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.profileUpdate(userId, user, phoneNumber, avatar, options);
|
|
218
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
219
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProfileApi.profileUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
220
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
221
|
+
});
|
|
222
|
+
},
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* ProfileApi - factory interface
|
|
227
|
+
*/
|
|
228
|
+
export const ProfileApiFactory = function (configuration, basePath, axios) {
|
|
229
|
+
const localVarFp = ProfileApiFp(configuration);
|
|
230
|
+
return {
|
|
231
|
+
/**
|
|
232
|
+
* ViewSet for the Profile model.
|
|
233
|
+
* @param {ProfileApiProfilePartialUpdateRequest} requestParameters Request parameters.
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
profilePartialUpdate(requestParameters, options) {
|
|
238
|
+
return localVarFp.profilePartialUpdate(requestParameters.userId, requestParameters.user, requestParameters.avatar, requestParameters.phoneNumber, options).then((request) => request(axios, basePath));
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
* ViewSet for the Profile model.
|
|
242
|
+
* @param {ProfileApiProfileRetrieveRequest} requestParameters Request parameters.
|
|
243
|
+
* @param {*} [options] Override http request option.
|
|
244
|
+
* @throws {RequiredError}
|
|
245
|
+
*/
|
|
246
|
+
profileRetrieve(requestParameters, options) {
|
|
247
|
+
return localVarFp.profileRetrieve(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
248
|
+
},
|
|
249
|
+
/**
|
|
250
|
+
* ViewSet for the Profile model.
|
|
251
|
+
* @param {ProfileApiProfileUpdateRequest} requestParameters Request parameters.
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
profileUpdate(requestParameters, options) {
|
|
256
|
+
return localVarFp.profileUpdate(requestParameters.userId, requestParameters.user, requestParameters.phoneNumber, requestParameters.avatar, options).then((request) => request(axios, basePath));
|
|
257
|
+
},
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* ProfileApi - object-oriented interface
|
|
262
|
+
*/
|
|
263
|
+
export class ProfileApi extends BaseAPI {
|
|
264
|
+
/**
|
|
265
|
+
* ViewSet for the Profile model.
|
|
266
|
+
* @param {ProfileApiProfilePartialUpdateRequest} requestParameters Request parameters.
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
profilePartialUpdate(requestParameters, options) {
|
|
271
|
+
return ProfileApiFp(this.configuration).profilePartialUpdate(requestParameters.userId, requestParameters.user, requestParameters.avatar, requestParameters.phoneNumber, options).then((request) => request(this.axios, this.basePath));
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* ViewSet for the Profile model.
|
|
275
|
+
* @param {ProfileApiProfileRetrieveRequest} requestParameters Request parameters.
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
profileRetrieve(requestParameters, options) {
|
|
280
|
+
return ProfileApiFp(this.configuration).profileRetrieve(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* ViewSet for the Profile model.
|
|
284
|
+
* @param {ProfileApiProfileUpdateRequest} requestParameters Request parameters.
|
|
285
|
+
* @param {*} [options] Override http request option.
|
|
286
|
+
* @throws {RequiredError}
|
|
287
|
+
*/
|
|
288
|
+
profileUpdate(requestParameters, options) {
|
|
289
|
+
return ProfileApiFp(this.configuration).profileUpdate(requestParameters.userId, requestParameters.user, requestParameters.phoneNumber, requestParameters.avatar, options).then((request) => request(this.axios, this.basePath));
|
|
290
|
+
}
|
|
291
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* trak
|
|
3
|
+
* Hazardous waste tracking application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { RcraSite } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* SiteApi - axios parameter creator
|
|
18
|
+
*/
|
|
19
|
+
export declare const SiteApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve details on a rcra_site stored in the database
|
|
22
|
+
* @param {string} epaId
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
siteRetrieve: (epaId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
/**
|
|
28
|
+
* Search for hazardous waste sites.
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
siteSearchList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* SiteApi - functional programming interface
|
|
36
|
+
*/
|
|
37
|
+
export declare const SiteApiFp: (configuration?: Configuration) => {
|
|
38
|
+
/**
|
|
39
|
+
* Retrieve details on a rcra_site stored in the database
|
|
40
|
+
* @param {string} epaId
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
siteRetrieve(epaId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RcraSite>>;
|
|
45
|
+
/**
|
|
46
|
+
* Search for hazardous waste sites.
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
siteSearchList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RcraSite>>>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* SiteApi - factory interface
|
|
54
|
+
*/
|
|
55
|
+
export declare const SiteApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
56
|
+
/**
|
|
57
|
+
* Retrieve details on a rcra_site stored in the database
|
|
58
|
+
* @param {SiteApiSiteRetrieveRequest} requestParameters Request parameters.
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
*/
|
|
62
|
+
siteRetrieve(requestParameters: SiteApiSiteRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcraSite>;
|
|
63
|
+
/**
|
|
64
|
+
* Search for hazardous waste sites.
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
siteSearchList(options?: RawAxiosRequestConfig): AxiosPromise<Array<RcraSite>>;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* SiteApi - interface
|
|
72
|
+
*/
|
|
73
|
+
export interface SiteApiInterface {
|
|
74
|
+
/**
|
|
75
|
+
* Retrieve details on a rcra_site stored in the database
|
|
76
|
+
* @param {SiteApiSiteRetrieveRequest} requestParameters Request parameters.
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
siteRetrieve(requestParameters: SiteApiSiteRetrieveRequest, options?: RawAxiosRequestConfig): AxiosPromise<RcraSite>;
|
|
81
|
+
/**
|
|
82
|
+
* Search for hazardous waste sites.
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
siteSearchList(options?: RawAxiosRequestConfig): AxiosPromise<Array<RcraSite>>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Request parameters for siteRetrieve operation in SiteApi.
|
|
90
|
+
*/
|
|
91
|
+
export interface SiteApiSiteRetrieveRequest {
|
|
92
|
+
readonly epaId: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* SiteApi - object-oriented interface
|
|
96
|
+
*/
|
|
97
|
+
export declare class SiteApi extends BaseAPI implements SiteApiInterface {
|
|
98
|
+
/**
|
|
99
|
+
* Retrieve details on a rcra_site stored in the database
|
|
100
|
+
* @param {SiteApiSiteRetrieveRequest} requestParameters Request parameters.
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
siteRetrieve(requestParameters: SiteApiSiteRetrieveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RcraSite, any, {}>>;
|
|
105
|
+
/**
|
|
106
|
+
* Search for hazardous waste sites.
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
siteSearchList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RcraSite[], any, {}>>;
|
|
111
|
+
}
|