@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,120 @@
1
+ apis/DefaultApi.ts
2
+ apis/InfoApi.ts
3
+ apis/ManifestApi.ts
4
+ apis/MyProfileApi.ts
5
+ apis/OrgsApi.ts
6
+ apis/ProfileApi.ts
7
+ apis/SiteApi.ts
8
+ apis/SitesApi.ts
9
+ apis/SyncApi.ts
10
+ apis/TeamsApi.ts
11
+ apis/index.ts
12
+ docs/AdditionalInfo.md
13
+ docs/DefaultApi.md
14
+ docs/ESignature.md
15
+ docs/Handler.md
16
+ docs/HandlerSearch.md
17
+ docs/HandlerSearchSiteTypeEnum.md
18
+ docs/InfoApi.md
19
+ docs/Invitation.md
20
+ docs/LockReasonEnum.md
21
+ docs/Manifest.md
22
+ docs/ManifestApi.md
23
+ docs/ManifestPhone.md
24
+ docs/Membership.md
25
+ docs/Mtn.md
26
+ docs/MyProfileApi.md
27
+ docs/NullEnum.md
28
+ docs/OpenInvitation.md
29
+ docs/Org.md
30
+ docs/OrgsApi.md
31
+ docs/PaginatedInvitationList.md
32
+ docs/PaginatedMtnList.md
33
+ docs/PaginatedOrgList.md
34
+ docs/PaginatedSiteList.md
35
+ docs/PaginatedTeamList.md
36
+ docs/PaperSignature.md
37
+ docs/PatchedInvitation.md
38
+ docs/PatchedProfile.md
39
+ docs/PatchedRcrainfoProfile.md
40
+ docs/PatchedTeam.md
41
+ docs/Price.md
42
+ docs/Profile.md
43
+ docs/ProfileApi.md
44
+ docs/QuickerSign.md
45
+ docs/RcraAddress.md
46
+ docs/RcraContact.md
47
+ docs/RcraPhone.md
48
+ docs/RcraSite.md
49
+ docs/RcraSitePermission.md
50
+ docs/RcraSiteSiteTypeEnum.md
51
+ docs/RcrainfoProfile.md
52
+ docs/RoleEnum.md
53
+ docs/Signer.md
54
+ docs/Site.md
55
+ docs/SiteApi.md
56
+ docs/SiteManifestSyncRequest.md
57
+ docs/SiteManifestSyncResponse.md
58
+ docs/SitesApi.md
59
+ docs/StatusC23Enum.md
60
+ docs/Subscription.md
61
+ docs/SubscriptionItem.md
62
+ docs/SubscriptionStatusEnum.md
63
+ docs/SyncApi.md
64
+ docs/Team.md
65
+ docs/TeamsApi.md
66
+ docs/TrakUser.md
67
+ docs/Transporter.md
68
+ docs/UserInvitationsResponse.md
69
+ docs/WasteLine.md
70
+ index.ts
71
+ models/AdditionalInfo.ts
72
+ models/ESignature.ts
73
+ models/Handler.ts
74
+ models/HandlerSearch.ts
75
+ models/HandlerSearchSiteTypeEnum.ts
76
+ models/Invitation.ts
77
+ models/LockReasonEnum.ts
78
+ models/Manifest.ts
79
+ models/ManifestPhone.ts
80
+ models/Membership.ts
81
+ models/Mtn.ts
82
+ models/NullEnum.ts
83
+ models/OpenInvitation.ts
84
+ models/Org.ts
85
+ models/PaginatedInvitationList.ts
86
+ models/PaginatedMtnList.ts
87
+ models/PaginatedOrgList.ts
88
+ models/PaginatedSiteList.ts
89
+ models/PaginatedTeamList.ts
90
+ models/PaperSignature.ts
91
+ models/PatchedInvitation.ts
92
+ models/PatchedProfile.ts
93
+ models/PatchedRcrainfoProfile.ts
94
+ models/PatchedTeam.ts
95
+ models/Price.ts
96
+ models/Profile.ts
97
+ models/QuickerSign.ts
98
+ models/RcraAddress.ts
99
+ models/RcraContact.ts
100
+ models/RcraPhone.ts
101
+ models/RcraSite.ts
102
+ models/RcraSitePermission.ts
103
+ models/RcraSiteSiteTypeEnum.ts
104
+ models/RcrainfoProfile.ts
105
+ models/RoleEnum.ts
106
+ models/Signer.ts
107
+ models/Site.ts
108
+ models/SiteManifestSyncRequest.ts
109
+ models/SiteManifestSyncResponse.ts
110
+ models/StatusC23Enum.ts
111
+ models/Subscription.ts
112
+ models/SubscriptionItem.ts
113
+ models/SubscriptionStatusEnum.ts
114
+ models/Team.ts
115
+ models/TrakUser.ts
116
+ models/Transporter.ts
117
+ models/UserInvitationsResponse.ts
118
+ models/WasteLine.ts
119
+ models/index.ts
120
+ runtime.ts
@@ -0,0 +1 @@
1
+ 7.19.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
@@ -0,0 +1,176 @@
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
+ PatchedRcrainfoProfile,
19
+ RcrainfoProfile,
20
+ } from '../models/index';
21
+ import {
22
+ PatchedRcrainfoProfileFromJSON,
23
+ PatchedRcrainfoProfileToJSON,
24
+ RcrainfoProfileFromJSON,
25
+ RcrainfoProfileToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface RootPartialUpdateRequest {
29
+ username: string;
30
+ patchedRcrainfoProfile?: Omit<PatchedRcrainfoProfile, 'user'>;
31
+ }
32
+
33
+ export interface RootRetrieveRequest {
34
+ username: string;
35
+ }
36
+
37
+ export interface RootUpdateRequest {
38
+ username: string;
39
+ rcrainfoProfile?: Omit<RcrainfoProfile, 'user'>;
40
+ }
41
+
42
+ /**
43
+ *
44
+ */
45
+ export class DefaultApi extends runtime.BaseAPI {
46
+
47
+ /**
48
+ * 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.
49
+ */
50
+ async rootPartialUpdateRaw(requestParameters: RootPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RcrainfoProfile>> {
51
+ if (requestParameters['username'] == null) {
52
+ throw new runtime.RequiredError(
53
+ 'username',
54
+ 'Required parameter "username" was null or undefined when calling rootPartialUpdate().'
55
+ );
56
+ }
57
+
58
+ const queryParameters: any = {};
59
+
60
+ const headerParameters: runtime.HTTPHeaders = {};
61
+
62
+ headerParameters['Content-Type'] = 'application/json';
63
+
64
+ if (this.configuration && this.configuration.apiKey) {
65
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
66
+ }
67
+
68
+
69
+ let urlPath = `/api/v1/{username}`;
70
+ urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username'])));
71
+
72
+ const response = await this.request({
73
+ path: urlPath,
74
+ method: 'PATCH',
75
+ headers: headerParameters,
76
+ query: queryParameters,
77
+ body: PatchedRcrainfoProfileToJSON(requestParameters['patchedRcrainfoProfile']),
78
+ }, initOverrides);
79
+
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => RcrainfoProfileFromJSON(jsonValue));
81
+ }
82
+
83
+ /**
84
+ * 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.
85
+ */
86
+ async rootPartialUpdate(requestParameters: RootPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RcrainfoProfile> {
87
+ const response = await this.rootPartialUpdateRaw(requestParameters, initOverrides);
88
+ return await response.value();
89
+ }
90
+
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
+ */
94
+ async rootRetrieveRaw(requestParameters: RootRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RcrainfoProfile>> {
95
+ if (requestParameters['username'] == null) {
96
+ throw new runtime.RequiredError(
97
+ 'username',
98
+ 'Required parameter "username" was null or undefined when calling rootRetrieve().'
99
+ );
100
+ }
101
+
102
+ const queryParameters: any = {};
103
+
104
+ const headerParameters: runtime.HTTPHeaders = {};
105
+
106
+ if (this.configuration && this.configuration.apiKey) {
107
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
108
+ }
109
+
110
+
111
+ let urlPath = `/api/v1/{username}`;
112
+ urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username'])));
113
+
114
+ const response = await this.request({
115
+ path: urlPath,
116
+ method: 'GET',
117
+ headers: headerParameters,
118
+ query: queryParameters,
119
+ }, initOverrides);
120
+
121
+ return new runtime.JSONApiResponse(response, (jsonValue) => RcrainfoProfileFromJSON(jsonValue));
122
+ }
123
+
124
+ /**
125
+ * 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.
126
+ */
127
+ async rootRetrieve(requestParameters: RootRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RcrainfoProfile> {
128
+ const response = await this.rootRetrieveRaw(requestParameters, initOverrides);
129
+ return await response.value();
130
+ }
131
+
132
+ /**
133
+ * 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.
134
+ */
135
+ async rootUpdateRaw(requestParameters: RootUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RcrainfoProfile>> {
136
+ if (requestParameters['username'] == null) {
137
+ throw new runtime.RequiredError(
138
+ 'username',
139
+ 'Required parameter "username" was null or undefined when calling rootUpdate().'
140
+ );
141
+ }
142
+
143
+ const queryParameters: any = {};
144
+
145
+ const headerParameters: runtime.HTTPHeaders = {};
146
+
147
+ headerParameters['Content-Type'] = 'application/json';
148
+
149
+ if (this.configuration && this.configuration.apiKey) {
150
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
151
+ }
152
+
153
+
154
+ let urlPath = `/api/v1/{username}`;
155
+ urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username'])));
156
+
157
+ const response = await this.request({
158
+ path: urlPath,
159
+ method: 'PUT',
160
+ headers: headerParameters,
161
+ query: queryParameters,
162
+ body: RcrainfoProfileToJSON(requestParameters['rcrainfoProfile']),
163
+ }, initOverrides);
164
+
165
+ return new runtime.JSONApiResponse(response, (jsonValue) => RcrainfoProfileFromJSON(jsonValue));
166
+ }
167
+
168
+ /**
169
+ * 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.
170
+ */
171
+ async rootUpdate(requestParameters: RootUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RcrainfoProfile> {
172
+ const response = await this.rootUpdateRaw(requestParameters, initOverrides);
173
+ return await response.value();
174
+ }
175
+
176
+ }
@@ -0,0 +1,80 @@
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
+ HandlerSearch,
19
+ RcraSite,
20
+ } from '../models/index';
21
+ import {
22
+ HandlerSearchFromJSON,
23
+ HandlerSearchToJSON,
24
+ RcraSiteFromJSON,
25
+ RcraSiteToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface InfoRcrasiteSearchCreateRequest {
29
+ handlerSearch: HandlerSearch;
30
+ }
31
+
32
+ /**
33
+ *
34
+ */
35
+ export class InfoApi extends runtime.BaseAPI {
36
+
37
+ /**
38
+ * Search for handlers by siteId and site.
39
+ */
40
+ async infoRcrasiteSearchCreateRaw(requestParameters: InfoRcrasiteSearchCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RcraSite>>> {
41
+ if (requestParameters['handlerSearch'] == null) {
42
+ throw new runtime.RequiredError(
43
+ 'handlerSearch',
44
+ 'Required parameter "handlerSearch" was null or undefined when calling infoRcrasiteSearchCreate().'
45
+ );
46
+ }
47
+
48
+ const queryParameters: any = {};
49
+
50
+ const headerParameters: runtime.HTTPHeaders = {};
51
+
52
+ headerParameters['Content-Type'] = 'application/json';
53
+
54
+ if (this.configuration && this.configuration.apiKey) {
55
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
56
+ }
57
+
58
+
59
+ let urlPath = `/api/v1/rcrainfo/rcrasite/search`;
60
+
61
+ const response = await this.request({
62
+ path: urlPath,
63
+ method: 'POST',
64
+ headers: headerParameters,
65
+ query: queryParameters,
66
+ body: HandlerSearchToJSON(requestParameters['handlerSearch']),
67
+ }, initOverrides);
68
+
69
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RcraSiteFromJSON));
70
+ }
71
+
72
+ /**
73
+ * Search for handlers by siteId and site.
74
+ */
75
+ async infoRcrasiteSearchCreate(requestParameters: InfoRcrasiteSearchCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RcraSite>> {
76
+ const response = await this.infoRcrasiteSearchCreateRaw(requestParameters, initOverrides);
77
+ return await response.value();
78
+ }
79
+
80
+ }