@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,38 @@
1
+
2
+ # PaginatedTeamList
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `count` | number
10
+ `next` | string
11
+ `previous` | string
12
+ `results` | [Array<Team>](Team.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PaginatedTeamList } from ''
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "count": 123,
22
+ "next": http://api.example.org/accounts/?page=4,
23
+ "previous": http://api.example.org/accounts/?page=2,
24
+ "results": null,
25
+ } satisfies PaginatedTeamList
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedTeamList
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -0,0 +1,35 @@
1
+
2
+ # PaperSignature
3
+
4
+ Serializer for Paper Signature on manifest. Indicates the change of custody with paper manifests.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `printedName` | string
11
+ `signatureDate` | Date
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { PaperSignature } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "printedName": null,
21
+ "signatureDate": null,
22
+ } satisfies PaperSignature
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as PaperSignature
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -0,0 +1,42 @@
1
+
2
+ # PatchedInvitation
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `team` | number
11
+ `email` | string
12
+ `role` | [RoleEnum](RoleEnum.md)
13
+ `invitedBy` | string
14
+ `isAccepted` | boolean
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { PatchedInvitation } from ''
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "id": null,
24
+ "team": null,
25
+ "email": null,
26
+ "role": null,
27
+ "invitedBy": null,
28
+ "isAccepted": null,
29
+ } satisfies PatchedInvitation
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as PatchedInvitation
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -0,0 +1,35 @@
1
+
2
+ # PatchedProfile
3
+
4
+ Serializer for a user\'s profile.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `user` | [TrakUser](TrakUser.md)
11
+ `avatar` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { PatchedProfile } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "user": null,
21
+ "avatar": null,
22
+ } satisfies PatchedProfile
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as PatchedProfile
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -0,0 +1,45 @@
1
+
2
+ # PatchedRcrainfoProfile
3
+
4
+ Model serializer for marshalling/unmarshalling a user\'s RcrainfoProfile.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `user` | string
11
+ `rcraAPIID` | string
12
+ `rcraAPIKey` | string
13
+ `rcraUsername` | string
14
+ `rcraSites` | [Array<RcraSitePermission>](RcraSitePermission.md)
15
+ `phoneNumber` | string
16
+ `apiUser` | boolean
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { PatchedRcrainfoProfile } from ''
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "user": null,
26
+ "rcraAPIID": null,
27
+ "rcraAPIKey": null,
28
+ "rcraUsername": null,
29
+ "rcraSites": null,
30
+ "phoneNumber": null,
31
+ "apiUser": null,
32
+ } satisfies PatchedRcrainfoProfile
33
+
34
+ console.log(example)
35
+
36
+ // Convert the instance to a JSON string
37
+ const exampleJSON: string = JSON.stringify(example)
38
+ console.log(exampleJSON)
39
+
40
+ // Parse the JSON string back to an object
41
+ const exampleParsed = JSON.parse(exampleJSON) as PatchedRcrainfoProfile
42
+ console.log(exampleParsed)
43
+ ```
44
+
45
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -0,0 +1,48 @@
1
+
2
+ # PatchedTeam
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `name` | string
11
+ `slug` | string
12
+ `members` | [Array<Membership>](Membership.md)
13
+ `invitations` | [Array<Invitation>](Invitation.md)
14
+ `dashboardUrl` | string
15
+ `isAdmin` | boolean
16
+ `subscription` | [Subscription](Subscription.md)
17
+ `hasActiveSubscription` | boolean
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { PatchedTeam } from ''
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "id": null,
27
+ "name": null,
28
+ "slug": null,
29
+ "members": null,
30
+ "invitations": null,
31
+ "dashboardUrl": null,
32
+ "isAdmin": null,
33
+ "subscription": null,
34
+ "hasActiveSubscription": null,
35
+ } satisfies PatchedTeam
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as PatchedTeam
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
package/docs/Price.md ADDED
@@ -0,0 +1,42 @@
1
+
2
+ # Price
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `productName` | string
11
+ `humanReadablePrice` | string
12
+ `paymentAmount` | string
13
+ `nickname` | string
14
+ `unitAmount` | number
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { Price } from ''
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "id": null,
24
+ "productName": null,
25
+ "humanReadablePrice": null,
26
+ "paymentAmount": null,
27
+ "nickname": null,
28
+ "unitAmount": null,
29
+ } satisfies Price
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as Price
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -0,0 +1,35 @@
1
+
2
+ # Profile
3
+
4
+ Serializer for a user\'s profile.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `user` | [TrakUser](TrakUser.md)
11
+ `avatar` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { Profile } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "user": null,
21
+ "avatar": null,
22
+ } satisfies Profile
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as Profile
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -0,0 +1,241 @@
1
+ # ProfileApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**profilePartialUpdate**](ProfileApi.md#profilepartialupdate) | **PATCH** /api/v1/profile/{user_id} | |
8
+ | [**profileRetrieve**](ProfileApi.md#profileretrieve) | **GET** /api/v1/profile/{user_id} | |
9
+ | [**profileUpdate**](ProfileApi.md#profileupdate) | **PUT** /api/v1/profile/{user_id} | |
10
+
11
+
12
+
13
+ ## profilePartialUpdate
14
+
15
+ > Profile profilePartialUpdate(userId, user, avatar)
16
+
17
+
18
+
19
+ ViewSet for the Profile model.
20
+
21
+ ### Example
22
+
23
+ ```ts
24
+ import {
25
+ Configuration,
26
+ ProfileApi,
27
+ } from '';
28
+ import type { ProfilePartialUpdateRequest } from '';
29
+
30
+ async function example() {
31
+ console.log("🚀 Testing SDK...");
32
+ const config = new Configuration({
33
+ // To configure API key authorization: cookieAuth
34
+ apiKey: "YOUR API KEY",
35
+ // To configure API key authorization: ApiKeyAuth
36
+ apiKey: "YOUR API KEY",
37
+ });
38
+ const api = new ProfileApi(config);
39
+
40
+ const body = {
41
+ // string | A UUID string identifying this profile.
42
+ userId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
43
+ // TrakUser (optional)
44
+ user: ...,
45
+ // string (optional)
46
+ avatar: avatar_example,
47
+ } satisfies ProfilePartialUpdateRequest;
48
+
49
+ try {
50
+ const data = await api.profilePartialUpdate(body);
51
+ console.log(data);
52
+ } catch (error) {
53
+ console.error(error);
54
+ }
55
+ }
56
+
57
+ // Run the test
58
+ example().catch(console.error);
59
+ ```
60
+
61
+ ### Parameters
62
+
63
+
64
+ | Name | Type | Description | Notes |
65
+ |------------- | ------------- | ------------- | -------------|
66
+ | **userId** | `string` | A UUID string identifying this profile. | [Defaults to `undefined`] |
67
+ | **user** | [TrakUser](TrakUser.md) | | [Optional] [Defaults to `undefined`] |
68
+ | **avatar** | `string` | | [Optional] [Defaults to `undefined`] |
69
+
70
+ ### Return type
71
+
72
+ [**Profile**](Profile.md)
73
+
74
+ ### Authorization
75
+
76
+ [cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: `multipart/form-data`, `application/x-www-form-urlencoded`, `application/json`
81
+ - **Accept**: `application/json`
82
+
83
+
84
+ ### HTTP response details
85
+ | Status code | Description | Response headers |
86
+ |-------------|-------------|------------------|
87
+ | **200** | | - |
88
+
89
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
90
+
91
+
92
+ ## profileRetrieve
93
+
94
+ > Profile profileRetrieve(userId)
95
+
96
+
97
+
98
+ ViewSet for the Profile model.
99
+
100
+ ### Example
101
+
102
+ ```ts
103
+ import {
104
+ Configuration,
105
+ ProfileApi,
106
+ } from '';
107
+ import type { ProfileRetrieveRequest } from '';
108
+
109
+ async function example() {
110
+ console.log("🚀 Testing SDK...");
111
+ const config = new Configuration({
112
+ // To configure API key authorization: cookieAuth
113
+ apiKey: "YOUR API KEY",
114
+ // To configure API key authorization: ApiKeyAuth
115
+ apiKey: "YOUR API KEY",
116
+ });
117
+ const api = new ProfileApi(config);
118
+
119
+ const body = {
120
+ // string | A UUID string identifying this profile.
121
+ userId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
122
+ } satisfies ProfileRetrieveRequest;
123
+
124
+ try {
125
+ const data = await api.profileRetrieve(body);
126
+ console.log(data);
127
+ } catch (error) {
128
+ console.error(error);
129
+ }
130
+ }
131
+
132
+ // Run the test
133
+ example().catch(console.error);
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+
139
+ | Name | Type | Description | Notes |
140
+ |------------- | ------------- | ------------- | -------------|
141
+ | **userId** | `string` | A UUID string identifying this profile. | [Defaults to `undefined`] |
142
+
143
+ ### Return type
144
+
145
+ [**Profile**](Profile.md)
146
+
147
+ ### Authorization
148
+
149
+ [cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: Not defined
154
+ - **Accept**: `application/json`
155
+
156
+
157
+ ### HTTP response details
158
+ | Status code | Description | Response headers |
159
+ |-------------|-------------|------------------|
160
+ | **200** | | - |
161
+
162
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
163
+
164
+
165
+ ## profileUpdate
166
+
167
+ > Profile profileUpdate(userId, user, avatar)
168
+
169
+
170
+
171
+ ViewSet for the Profile model.
172
+
173
+ ### Example
174
+
175
+ ```ts
176
+ import {
177
+ Configuration,
178
+ ProfileApi,
179
+ } from '';
180
+ import type { ProfileUpdateRequest } from '';
181
+
182
+ async function example() {
183
+ console.log("🚀 Testing SDK...");
184
+ const config = new Configuration({
185
+ // To configure API key authorization: cookieAuth
186
+ apiKey: "YOUR API KEY",
187
+ // To configure API key authorization: ApiKeyAuth
188
+ apiKey: "YOUR API KEY",
189
+ });
190
+ const api = new ProfileApi(config);
191
+
192
+ const body = {
193
+ // string | A UUID string identifying this profile.
194
+ userId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
195
+ // TrakUser
196
+ user: ...,
197
+ // string (optional)
198
+ avatar: avatar_example,
199
+ } satisfies ProfileUpdateRequest;
200
+
201
+ try {
202
+ const data = await api.profileUpdate(body);
203
+ console.log(data);
204
+ } catch (error) {
205
+ console.error(error);
206
+ }
207
+ }
208
+
209
+ // Run the test
210
+ example().catch(console.error);
211
+ ```
212
+
213
+ ### Parameters
214
+
215
+
216
+ | Name | Type | Description | Notes |
217
+ |------------- | ------------- | ------------- | -------------|
218
+ | **userId** | `string` | A UUID string identifying this profile. | [Defaults to `undefined`] |
219
+ | **user** | [TrakUser](TrakUser.md) | | [Defaults to `undefined`] |
220
+ | **avatar** | `string` | | [Optional] [Defaults to `undefined`] |
221
+
222
+ ### Return type
223
+
224
+ [**Profile**](Profile.md)
225
+
226
+ ### Authorization
227
+
228
+ [cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
229
+
230
+ ### HTTP request headers
231
+
232
+ - **Content-Type**: `multipart/form-data`, `application/x-www-form-urlencoded`, `application/json`
233
+ - **Accept**: `application/json`
234
+
235
+
236
+ ### HTTP response details
237
+ | Status code | Description | Response headers |
238
+ |-------------|-------------|------------------|
239
+ | **200** | | - |
240
+
241
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -0,0 +1,43 @@
1
+
2
+ # QuickerSign
3
+
4
+ Serializer for EPA Quicker Sign objects.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `manifestTrackingNumbers` | Array<string>
11
+ `printedSignatureName` | string
12
+ `printedSignatureDate` | Date
13
+ `siteType` | string
14
+ `siteId` | string
15
+ `transporterOrder` | number
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { QuickerSign } from ''
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "manifestTrackingNumbers": null,
25
+ "printedSignatureName": null,
26
+ "printedSignatureDate": null,
27
+ "siteType": null,
28
+ "siteId": null,
29
+ "transporterOrder": null,
30
+ } satisfies QuickerSign
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as QuickerSign
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -0,0 +1,45 @@
1
+
2
+ # RcraAddress
3
+
4
+ Address model serializer for JSON representation.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `streetNumber` | string
11
+ `address1` | string
12
+ `address2` | string
13
+ `city` | string
14
+ `state` | { [key: string]: any; }
15
+ `country` | { [key: string]: any; }
16
+ `zip` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { RcraAddress } from ''
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "streetNumber": null,
26
+ "address1": null,
27
+ "address2": null,
28
+ "city": null,
29
+ "state": null,
30
+ "country": null,
31
+ "zip": null,
32
+ } satisfies RcraAddress
33
+
34
+ console.log(example)
35
+
36
+ // Convert the instance to a JSON string
37
+ const exampleJSON: string = JSON.stringify(example)
38
+ console.log(exampleJSON)
39
+
40
+ // Parse the JSON string back to an object
41
+ const exampleParsed = JSON.parse(exampleJSON) as RcraAddress
42
+ console.log(exampleParsed)
43
+ ```
44
+
45
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -0,0 +1,43 @@
1
+
2
+ # RcraContact
3
+
4
+ Contact serializer for JSON marshaling/unmarshalling.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `firstName` | string
11
+ `middleInitial` | string
12
+ `lastName` | string
13
+ `phone` | [RcraPhone](RcraPhone.md)
14
+ `email` | string
15
+ `companyName` | string
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { RcraContact } from ''
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "firstName": null,
25
+ "middleInitial": null,
26
+ "lastName": null,
27
+ "phone": null,
28
+ "email": null,
29
+ "companyName": null,
30
+ } satisfies RcraContact
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as RcraContact
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)