@wastesentry/trak-client 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/.openapi-generator/FILES +120 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/apis/DefaultApi.ts +176 -0
  5. package/apis/InfoApi.ts +80 -0
  6. package/apis/ManifestApi.ts +604 -0
  7. package/apis/MyProfileApi.ts +63 -0
  8. package/apis/OrgsApi.ts +172 -0
  9. package/apis/PegasusApi.ts +336 -0
  10. package/apis/ProfileApi.ts +229 -0
  11. package/apis/SiteApi.ts +108 -0
  12. package/apis/SitesApi.ts +119 -0
  13. package/apis/SyncApi.ts +55 -0
  14. package/apis/TeamsApi.ts +673 -0
  15. package/apis/index.ts +12 -0
  16. package/docs/AdditionalInfo.md +41 -0
  17. package/docs/DefaultApi.md +235 -0
  18. package/docs/ESignature.md +43 -0
  19. package/docs/Handler.md +41 -0
  20. package/docs/HandlerSearch.md +34 -0
  21. package/docs/HandlerSearchSiteTypeEnum.md +31 -0
  22. package/docs/InfoApi.md +81 -0
  23. package/docs/Invitation.md +42 -0
  24. package/docs/LockReasonEnum.md +31 -0
  25. package/docs/Manifest.md +93 -0
  26. package/docs/ManifestApi.md +907 -0
  27. package/docs/ManifestPhone.md +35 -0
  28. package/docs/Membership.md +42 -0
  29. package/docs/Mtn.md +39 -0
  30. package/docs/MyProfileApi.md +73 -0
  31. package/docs/NullEnum.md +30 -0
  32. package/docs/OpenInvitation.md +38 -0
  33. package/docs/Org.md +39 -0
  34. package/docs/OrgsApi.md +232 -0
  35. package/docs/PaginatedInvitationList.md +38 -0
  36. package/docs/PaginatedMtnList.md +38 -0
  37. package/docs/PaginatedOrgList.md +38 -0
  38. package/docs/PaginatedSiteList.md +38 -0
  39. package/docs/PaginatedTeamList.md +38 -0
  40. package/docs/PaperSignature.md +35 -0
  41. package/docs/PatchedInvitation.md +42 -0
  42. package/docs/PatchedProfile.md +35 -0
  43. package/docs/PatchedRcrainfoProfile.md +45 -0
  44. package/docs/PatchedTeam.md +48 -0
  45. package/docs/Price.md +42 -0
  46. package/docs/Profile.md +35 -0
  47. package/docs/ProfileApi.md +241 -0
  48. package/docs/QuickerSign.md +43 -0
  49. package/docs/RcraAddress.md +45 -0
  50. package/docs/RcraContact.md +43 -0
  51. package/docs/RcraPhone.md +35 -0
  52. package/docs/RcraSite.md +57 -0
  53. package/docs/RcraSitePermission.md +45 -0
  54. package/docs/RcraSiteSiteTypeEnum.md +31 -0
  55. package/docs/RcrainfoProfile.md +45 -0
  56. package/docs/RoleEnum.md +31 -0
  57. package/docs/Signer.md +49 -0
  58. package/docs/Site.md +35 -0
  59. package/docs/SiteApi.md +147 -0
  60. package/docs/SiteManifestSyncRequest.md +32 -0
  61. package/docs/SiteManifestSyncResponse.md +32 -0
  62. package/docs/SitesApi.md +155 -0
  63. package/docs/StatusC23Enum.md +31 -0
  64. package/docs/Subscription.md +51 -0
  65. package/docs/SubscriptionItem.md +36 -0
  66. package/docs/SubscriptionStatusEnum.md +31 -0
  67. package/docs/SyncApi.md +73 -0
  68. package/docs/Team.md +48 -0
  69. package/docs/TeamsApi.md +965 -0
  70. package/docs/TrakUser.md +43 -0
  71. package/docs/Transporter.md +41 -0
  72. package/docs/UserInvitationsResponse.md +32 -0
  73. package/docs/WasteLine.md +55 -0
  74. package/index.ts +5 -0
  75. package/models/AdditionalInfo.ts +96 -0
  76. package/models/AggregateEmployeeData.ts +83 -0
  77. package/models/DepartmentEnum.ts +59 -0
  78. package/models/ESignature.ts +112 -0
  79. package/models/Employee.ts +125 -0
  80. package/models/Handler.ts +126 -0
  81. package/models/HandlerSearch.ts +84 -0
  82. package/models/HandlerSearchSiteTypeEnum.ts +57 -0
  83. package/models/Invitation.ts +116 -0
  84. package/models/LockReasonEnum.ts +55 -0
  85. package/models/Manifest.ts +353 -0
  86. package/models/ManifestPhone.ts +73 -0
  87. package/models/Membership.ts +115 -0
  88. package/models/Mtn.ts +98 -0
  89. package/models/NullEnum.ts +50 -0
  90. package/models/OpenInvitation.ts +88 -0
  91. package/models/Org.ts +88 -0
  92. package/models/PaginatedEmployeeList.ts +98 -0
  93. package/models/PaginatedInvitationList.ts +98 -0
  94. package/models/PaginatedMtnList.ts +98 -0
  95. package/models/PaginatedOrgList.ts +98 -0
  96. package/models/PaginatedSiteList.ts +98 -0
  97. package/models/PaginatedTeamList.ts +98 -0
  98. package/models/PaperSignature.ts +74 -0
  99. package/models/PatchedEmployee.ts +118 -0
  100. package/models/PatchedInvitation.ts +112 -0
  101. package/models/PatchedProfile.ts +79 -0
  102. package/models/PatchedRcrainfoProfile.ts +119 -0
  103. package/models/PatchedTeam.ts +143 -0
  104. package/models/Price.ts +106 -0
  105. package/models/Profile.ts +80 -0
  106. package/models/QuickerSign.ts +108 -0
  107. package/models/RcraAddress.ts +113 -0
  108. package/models/RcraContact.ts +112 -0
  109. package/models/RcraPhone.ts +73 -0
  110. package/models/RcraSite.ts +200 -0
  111. package/models/RcraSitePermission.ts +121 -0
  112. package/models/RcraSiteSiteTypeEnum.ts +57 -0
  113. package/models/RcrainfoProfile.ts +120 -0
  114. package/models/RoleEnum.ts +53 -0
  115. package/models/Signer.ts +136 -0
  116. package/models/Site.ts +81 -0
  117. package/models/SiteManifestSyncRequest.ts +65 -0
  118. package/models/SiteManifestSyncResponse.ts +65 -0
  119. package/models/StatusC23Enum.ts +67 -0
  120. package/models/StatusEnum.ts +63 -0
  121. package/models/Subscription.ts +168 -0
  122. package/models/SubscriptionItem.ts +90 -0
  123. package/models/SubscriptionStatusEnum.ts +63 -0
  124. package/models/Team.ts +151 -0
  125. package/models/TrakUser.ts +106 -0
  126. package/models/Transporter.ts +120 -0
  127. package/models/UserInvitationsResponse.ts +73 -0
  128. package/models/WasteLine.ts +157 -0
  129. package/models/index.ts +50 -0
  130. package/package.json +17 -0
  131. package/runtime.ts +432 -0
@@ -0,0 +1,229 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * trak
5
+ * Hazardous waste tracking application
6
+ *
7
+ * The version of the OpenAPI document: 0.7.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ Profile,
19
+ TrakUser,
20
+ } from '../models/index';
21
+ import {
22
+ ProfileFromJSON,
23
+ ProfileToJSON,
24
+ TrakUserFromJSON,
25
+ TrakUserToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface ProfilePartialUpdateRequest {
29
+ userId: string;
30
+ user?: TrakUser;
31
+ avatar?: string | null;
32
+ }
33
+
34
+ export interface ProfileRetrieveRequest {
35
+ userId: string;
36
+ }
37
+
38
+ export interface ProfileUpdateRequest {
39
+ userId: string;
40
+ user: TrakUser;
41
+ avatar?: string | null;
42
+ }
43
+
44
+ /**
45
+ *
46
+ */
47
+ export class ProfileApi extends runtime.BaseAPI {
48
+
49
+ /**
50
+ * ViewSet for the Profile model.
51
+ */
52
+ async profilePartialUpdateRaw(requestParameters: ProfilePartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Profile>> {
53
+ if (requestParameters['userId'] == null) {
54
+ throw new runtime.RequiredError(
55
+ 'userId',
56
+ 'Required parameter "userId" was null or undefined when calling profilePartialUpdate().'
57
+ );
58
+ }
59
+
60
+ const queryParameters: any = {};
61
+
62
+ const headerParameters: runtime.HTTPHeaders = {};
63
+
64
+ if (this.configuration && this.configuration.apiKey) {
65
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
66
+ }
67
+
68
+ const consumes: runtime.Consume[] = [
69
+ { contentType: 'multipart/form-data' },
70
+ { contentType: 'application/x-www-form-urlencoded' },
71
+ { contentType: 'application/json' },
72
+ ];
73
+ // @ts-ignore: canConsumeForm may be unused
74
+ const canConsumeForm = runtime.canConsumeForm(consumes);
75
+
76
+ let formParams: { append(param: string, value: any): any };
77
+ let useForm = false;
78
+ if (useForm) {
79
+ formParams = new FormData();
80
+ } else {
81
+ formParams = new URLSearchParams();
82
+ }
83
+
84
+ if (requestParameters['user'] != null) {
85
+ formParams.append('user', new Blob([JSON.stringify(TrakUserToJSON(requestParameters['user']))], { type: "application/json", }));
86
+ }
87
+
88
+ if (requestParameters['avatar'] != null) {
89
+ formParams.append('avatar', requestParameters['avatar'] as any);
90
+ }
91
+
92
+
93
+ let urlPath = `/api/v1/profile/{user_id}`;
94
+ urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
95
+
96
+ const response = await this.request({
97
+ path: urlPath,
98
+ method: 'PATCH',
99
+ headers: headerParameters,
100
+ query: queryParameters,
101
+ body: formParams,
102
+ }, initOverrides);
103
+
104
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProfileFromJSON(jsonValue));
105
+ }
106
+
107
+ /**
108
+ * ViewSet for the Profile model.
109
+ */
110
+ async profilePartialUpdate(requestParameters: ProfilePartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Profile> {
111
+ const response = await this.profilePartialUpdateRaw(requestParameters, initOverrides);
112
+ return await response.value();
113
+ }
114
+
115
+ /**
116
+ * ViewSet for the Profile model.
117
+ */
118
+ async profileRetrieveRaw(requestParameters: ProfileRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Profile>> {
119
+ if (requestParameters['userId'] == null) {
120
+ throw new runtime.RequiredError(
121
+ 'userId',
122
+ 'Required parameter "userId" was null or undefined when calling profileRetrieve().'
123
+ );
124
+ }
125
+
126
+ const queryParameters: any = {};
127
+
128
+ const headerParameters: runtime.HTTPHeaders = {};
129
+
130
+ if (this.configuration && this.configuration.apiKey) {
131
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
132
+ }
133
+
134
+
135
+ let urlPath = `/api/v1/profile/{user_id}`;
136
+ urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
137
+
138
+ const response = await this.request({
139
+ path: urlPath,
140
+ method: 'GET',
141
+ headers: headerParameters,
142
+ query: queryParameters,
143
+ }, initOverrides);
144
+
145
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProfileFromJSON(jsonValue));
146
+ }
147
+
148
+ /**
149
+ * ViewSet for the Profile model.
150
+ */
151
+ async profileRetrieve(requestParameters: ProfileRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Profile> {
152
+ const response = await this.profileRetrieveRaw(requestParameters, initOverrides);
153
+ return await response.value();
154
+ }
155
+
156
+ /**
157
+ * ViewSet for the Profile model.
158
+ */
159
+ async profileUpdateRaw(requestParameters: ProfileUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Profile>> {
160
+ if (requestParameters['userId'] == null) {
161
+ throw new runtime.RequiredError(
162
+ 'userId',
163
+ 'Required parameter "userId" was null or undefined when calling profileUpdate().'
164
+ );
165
+ }
166
+
167
+ if (requestParameters['user'] == null) {
168
+ throw new runtime.RequiredError(
169
+ 'user',
170
+ 'Required parameter "user" was null or undefined when calling profileUpdate().'
171
+ );
172
+ }
173
+
174
+ const queryParameters: any = {};
175
+
176
+ const headerParameters: runtime.HTTPHeaders = {};
177
+
178
+ if (this.configuration && this.configuration.apiKey) {
179
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
180
+ }
181
+
182
+ const consumes: runtime.Consume[] = [
183
+ { contentType: 'multipart/form-data' },
184
+ { contentType: 'application/x-www-form-urlencoded' },
185
+ { contentType: 'application/json' },
186
+ ];
187
+ // @ts-ignore: canConsumeForm may be unused
188
+ const canConsumeForm = runtime.canConsumeForm(consumes);
189
+
190
+ let formParams: { append(param: string, value: any): any };
191
+ let useForm = false;
192
+ if (useForm) {
193
+ formParams = new FormData();
194
+ } else {
195
+ formParams = new URLSearchParams();
196
+ }
197
+
198
+ if (requestParameters['user'] != null) {
199
+ formParams.append('user', new Blob([JSON.stringify(TrakUserToJSON(requestParameters['user']))], { type: "application/json", }));
200
+ }
201
+
202
+ if (requestParameters['avatar'] != null) {
203
+ formParams.append('avatar', requestParameters['avatar'] as any);
204
+ }
205
+
206
+
207
+ let urlPath = `/api/v1/profile/{user_id}`;
208
+ urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
209
+
210
+ const response = await this.request({
211
+ path: urlPath,
212
+ method: 'PUT',
213
+ headers: headerParameters,
214
+ query: queryParameters,
215
+ body: formParams,
216
+ }, initOverrides);
217
+
218
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProfileFromJSON(jsonValue));
219
+ }
220
+
221
+ /**
222
+ * ViewSet for the Profile model.
223
+ */
224
+ async profileUpdate(requestParameters: ProfileUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Profile> {
225
+ const response = await this.profileUpdateRaw(requestParameters, initOverrides);
226
+ return await response.value();
227
+ }
228
+
229
+ }
@@ -0,0 +1,108 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * trak
5
+ * Hazardous waste tracking application
6
+ *
7
+ * The version of the OpenAPI document: 0.7.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ RcraSite,
19
+ } from '../models/index';
20
+ import {
21
+ RcraSiteFromJSON,
22
+ RcraSiteToJSON,
23
+ } from '../models/index';
24
+
25
+ export interface SiteRetrieveRequest {
26
+ epaId: string;
27
+ }
28
+
29
+ /**
30
+ *
31
+ */
32
+ export class SiteApi extends runtime.BaseAPI {
33
+
34
+ /**
35
+ * Retrieve details on a rcra_site stored in the database
36
+ */
37
+ async siteRetrieveRaw(requestParameters: SiteRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RcraSite>> {
38
+ if (requestParameters['epaId'] == null) {
39
+ throw new runtime.RequiredError(
40
+ 'epaId',
41
+ 'Required parameter "epaId" was null or undefined when calling siteRetrieve().'
42
+ );
43
+ }
44
+
45
+ const queryParameters: any = {};
46
+
47
+ const headerParameters: runtime.HTTPHeaders = {};
48
+
49
+ if (this.configuration && this.configuration.apiKey) {
50
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
51
+ }
52
+
53
+
54
+ let urlPath = `/api/v1/rcrasite/{epa_id}`;
55
+ urlPath = urlPath.replace(`{${"epa_id"}}`, encodeURIComponent(String(requestParameters['epaId'])));
56
+
57
+ const response = await this.request({
58
+ path: urlPath,
59
+ method: 'GET',
60
+ headers: headerParameters,
61
+ query: queryParameters,
62
+ }, initOverrides);
63
+
64
+ return new runtime.JSONApiResponse(response, (jsonValue) => RcraSiteFromJSON(jsonValue));
65
+ }
66
+
67
+ /**
68
+ * Retrieve details on a rcra_site stored in the database
69
+ */
70
+ async siteRetrieve(requestParameters: SiteRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RcraSite> {
71
+ const response = await this.siteRetrieveRaw(requestParameters, initOverrides);
72
+ return await response.value();
73
+ }
74
+
75
+ /**
76
+ * Search for hazardous waste sites.
77
+ */
78
+ async siteSearchListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RcraSite>>> {
79
+ const queryParameters: any = {};
80
+
81
+ const headerParameters: runtime.HTTPHeaders = {};
82
+
83
+ if (this.configuration && this.configuration.apiKey) {
84
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
85
+ }
86
+
87
+
88
+ let urlPath = `/api/v1/rcrasite/search`;
89
+
90
+ const response = await this.request({
91
+ path: urlPath,
92
+ method: 'GET',
93
+ headers: headerParameters,
94
+ query: queryParameters,
95
+ }, initOverrides);
96
+
97
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RcraSiteFromJSON));
98
+ }
99
+
100
+ /**
101
+ * Search for hazardous waste sites.
102
+ */
103
+ async siteSearchList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RcraSite>> {
104
+ const response = await this.siteSearchListRaw(initOverrides);
105
+ return await response.value();
106
+ }
107
+
108
+ }
@@ -0,0 +1,119 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * trak
5
+ * Hazardous waste tracking application
6
+ *
7
+ * The version of the OpenAPI document: 0.7.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ PaginatedSiteList,
19
+ Site,
20
+ } from '../models/index';
21
+ import {
22
+ PaginatedSiteListFromJSON,
23
+ PaginatedSiteListToJSON,
24
+ SiteFromJSON,
25
+ SiteToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface SitesListRequest {
29
+ page?: number;
30
+ }
31
+
32
+ export interface SitesRetrieveRequest {
33
+ epaId: string;
34
+ }
35
+
36
+ /**
37
+ *
38
+ */
39
+ export class SitesApi extends runtime.BaseAPI {
40
+
41
+ /**
42
+ * View all sites that the user has access to.
43
+ */
44
+ async sitesListRaw(requestParameters: SitesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteList>> {
45
+ const queryParameters: any = {};
46
+
47
+ if (requestParameters['page'] != null) {
48
+ queryParameters['page'] = requestParameters['page'];
49
+ }
50
+
51
+ const headerParameters: runtime.HTTPHeaders = {};
52
+
53
+ if (this.configuration && this.configuration.apiKey) {
54
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
55
+ }
56
+
57
+
58
+ let urlPath = `/api/v1/sites`;
59
+
60
+ const response = await this.request({
61
+ path: urlPath,
62
+ method: 'GET',
63
+ headers: headerParameters,
64
+ query: queryParameters,
65
+ }, initOverrides);
66
+
67
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSiteListFromJSON(jsonValue));
68
+ }
69
+
70
+ /**
71
+ * View all sites that the user has access to.
72
+ */
73
+ async sitesList(requestParameters: SitesListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteList> {
74
+ const response = await this.sitesListRaw(requestParameters, initOverrides);
75
+ return await response.value();
76
+ }
77
+
78
+ /**
79
+ * View details of a Site.
80
+ */
81
+ async sitesRetrieveRaw(requestParameters: SitesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Site>> {
82
+ if (requestParameters['epaId'] == null) {
83
+ throw new runtime.RequiredError(
84
+ 'epaId',
85
+ 'Required parameter "epaId" was null or undefined when calling sitesRetrieve().'
86
+ );
87
+ }
88
+
89
+ const queryParameters: any = {};
90
+
91
+ const headerParameters: runtime.HTTPHeaders = {};
92
+
93
+ if (this.configuration && this.configuration.apiKey) {
94
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
95
+ }
96
+
97
+
98
+ let urlPath = `/api/v1/sites/{epa_id}`;
99
+ urlPath = urlPath.replace(`{${"epa_id"}}`, encodeURIComponent(String(requestParameters['epaId'])));
100
+
101
+ const response = await this.request({
102
+ path: urlPath,
103
+ method: 'GET',
104
+ headers: headerParameters,
105
+ query: queryParameters,
106
+ }, initOverrides);
107
+
108
+ return new runtime.JSONApiResponse(response, (jsonValue) => SiteFromJSON(jsonValue));
109
+ }
110
+
111
+ /**
112
+ * View details of a Site.
113
+ */
114
+ async sitesRetrieve(requestParameters: SitesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Site> {
115
+ const response = await this.sitesRetrieveRaw(requestParameters, initOverrides);
116
+ return await response.value();
117
+ }
118
+
119
+ }
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * trak
5
+ * Hazardous waste tracking application
6
+ *
7
+ * The version of the OpenAPI document: 0.7.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+
18
+ /**
19
+ *
20
+ */
21
+ export class SyncApi extends runtime.BaseAPI {
22
+
23
+ /**
24
+ * Create a job to sync the user\'s RCRAInfo profile.
25
+ */
26
+ async syncCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
27
+ const queryParameters: any = {};
28
+
29
+ const headerParameters: runtime.HTTPHeaders = {};
30
+
31
+ if (this.configuration && this.configuration.apiKey) {
32
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
33
+ }
34
+
35
+
36
+ let urlPath = `/api/v1/sync`;
37
+
38
+ const response = await this.request({
39
+ path: urlPath,
40
+ method: 'POST',
41
+ headers: headerParameters,
42
+ query: queryParameters,
43
+ }, initOverrides);
44
+
45
+ return new runtime.VoidApiResponse(response);
46
+ }
47
+
48
+ /**
49
+ * Create a job to sync the user\'s RCRAInfo profile.
50
+ */
51
+ async syncCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
52
+ await this.syncCreateRaw(initOverrides);
53
+ }
54
+
55
+ }