@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,35 @@
1
+
2
+ # RcraPhone
3
+
4
+ ManifestPhone model serializer for JSON marshalling/unmarshalling.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `number` | string
11
+ `extension` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { RcraPhone } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "number": null,
21
+ "extension": null,
22
+ } satisfies RcraPhone
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 RcraPhone
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,57 @@
1
+
2
+ # RcraSite
3
+
4
+ RcraSite model serializer for JSON marshalling/unmarshalling.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `epaSiteId` | string
11
+ `siteType` | string
12
+ `modified` | boolean
13
+ `name` | string
14
+ `siteAddress` | [RcraAddress](RcraAddress.md)
15
+ `mailingAddress` | [RcraAddress](RcraAddress.md)
16
+ `contact` | [RcraContact](RcraContact.md)
17
+ `emergencyPhone` | [RcraPhone](RcraPhone.md)
18
+ `registered` | boolean
19
+ `limitedEsign` | boolean
20
+ `canEsign` | boolean
21
+ `hasRegisteredEmanifestUser` | boolean
22
+ `gisPrimary` | boolean
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import type { RcraSite } from ''
28
+
29
+ // TODO: Update the object below with actual values
30
+ const example = {
31
+ "epaSiteId": null,
32
+ "siteType": null,
33
+ "modified": null,
34
+ "name": null,
35
+ "siteAddress": null,
36
+ "mailingAddress": null,
37
+ "contact": null,
38
+ "emergencyPhone": null,
39
+ "registered": null,
40
+ "limitedEsign": null,
41
+ "canEsign": null,
42
+ "hasRegisteredEmanifestUser": null,
43
+ "gisPrimary": null,
44
+ } satisfies RcraSite
45
+
46
+ console.log(example)
47
+
48
+ // Convert the instance to a JSON string
49
+ const exampleJSON: string = JSON.stringify(example)
50
+ console.log(exampleJSON)
51
+
52
+ // Parse the JSON string back to an object
53
+ const exampleParsed = JSON.parse(exampleJSON) as RcraSite
54
+ console.log(exampleParsed)
55
+ ```
56
+
57
+ [[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
+ # RcraSitePermission
3
+
4
+ RcrainfoSiteAccess model serializer. We use this internally because it\'s easier to handle, Using consistent naming, we have a separate serializer for user permissions from RCRAInfo.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `epaSiteId` | string
11
+ `siteManagement` | boolean
12
+ `annualReport` | string
13
+ `biennialReport` | string
14
+ `eManifest` | string
15
+ `wIETS` | string
16
+ `myRCRAid` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { RcraSitePermission } from ''
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "epaSiteId": null,
26
+ "siteManagement": null,
27
+ "annualReport": null,
28
+ "biennialReport": null,
29
+ "eManifest": null,
30
+ "wIETS": null,
31
+ "myRCRAid": null,
32
+ } satisfies RcraSitePermission
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 RcraSitePermission
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,31 @@
1
+
2
+ # RcraSiteSiteTypeEnum
3
+
4
+ * `Generator` - Generator * `Transporter` - Transporter * `Tsdf` - Tsdf * `Broker` - Broker
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { RcraSiteSiteTypeEnum } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies RcraSiteSiteTypeEnum
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as RcraSiteSiteTypeEnum
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[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
+ # RcrainfoProfile
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 { RcrainfoProfile } 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 RcrainfoProfile
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 RcrainfoProfile
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,31 @@
1
+
2
+ # RoleEnum
3
+
4
+ * `admin` - Administrator * `member` - Member
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { RoleEnum } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies RoleEnum
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as RoleEnum
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[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/Signer.md ADDED
@@ -0,0 +1,49 @@
1
+
2
+ # Signer
3
+
4
+ Serializer for EPA Signer Object.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `userId` | string
11
+ `firstName` | string
12
+ `middleInitial` | string
13
+ `lastName` | string
14
+ `phone` | [RcraPhone](RcraPhone.md)
15
+ `email` | string
16
+ `contactType` | string
17
+ `companyName` | string
18
+ `signerRole` | string
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { Signer } from ''
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "userId": null,
28
+ "firstName": null,
29
+ "middleInitial": null,
30
+ "lastName": null,
31
+ "phone": null,
32
+ "email": null,
33
+ "contactType": null,
34
+ "companyName": null,
35
+ "signerRole": null,
36
+ } satisfies Signer
37
+
38
+ console.log(example)
39
+
40
+ // Convert the instance to a JSON string
41
+ const exampleJSON: string = JSON.stringify(example)
42
+ console.log(exampleJSON)
43
+
44
+ // Parse the JSON string back to an object
45
+ const exampleParsed = JSON.parse(exampleJSON) as Signer
46
+ console.log(exampleParsed)
47
+ ```
48
+
49
+ [[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/Site.md ADDED
@@ -0,0 +1,35 @@
1
+
2
+ # Site
3
+
4
+ Site model serializer for JSON marshalling/unmarshalling.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `name` | string
11
+ `handler` | [RcraSite](RcraSite.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { Site } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "name": null,
21
+ "handler": null,
22
+ } satisfies Site
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 Site
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,147 @@
1
+ # SiteApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**siteRetrieve**](SiteApi.md#siteretrieve) | **GET** /api/v1/rcrasite/{epa_id} | |
8
+ | [**siteSearchList**](SiteApi.md#sitesearchlist) | **GET** /api/v1/rcrasite/search | |
9
+
10
+
11
+
12
+ ## siteRetrieve
13
+
14
+ > RcraSite siteRetrieve(epaId)
15
+
16
+
17
+
18
+ Retrieve details on a rcra_site stored in the database
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ SiteApi,
26
+ } from '';
27
+ import type { SiteRetrieveRequest } from '';
28
+
29
+ async function example() {
30
+ console.log("🚀 Testing SDK...");
31
+ const config = new Configuration({
32
+ // To configure API key authorization: cookieAuth
33
+ apiKey: "YOUR API KEY",
34
+ // To configure API key authorization: ApiKeyAuth
35
+ apiKey: "YOUR API KEY",
36
+ });
37
+ const api = new SiteApi(config);
38
+
39
+ const body = {
40
+ // string
41
+ epaId: epaId_example,
42
+ } satisfies SiteRetrieveRequest;
43
+
44
+ try {
45
+ const data = await api.siteRetrieve(body);
46
+ console.log(data);
47
+ } catch (error) {
48
+ console.error(error);
49
+ }
50
+ }
51
+
52
+ // Run the test
53
+ example().catch(console.error);
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+
59
+ | Name | Type | Description | Notes |
60
+ |------------- | ------------- | ------------- | -------------|
61
+ | **epaId** | `string` | | [Defaults to `undefined`] |
62
+
63
+ ### Return type
64
+
65
+ [**RcraSite**](RcraSite.md)
66
+
67
+ ### Authorization
68
+
69
+ [cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: `application/json`
75
+
76
+
77
+ ### HTTP response details
78
+ | Status code | Description | Response headers |
79
+ |-------------|-------------|------------------|
80
+ | **200** | | - |
81
+
82
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
83
+
84
+
85
+ ## siteSearchList
86
+
87
+ > Array<RcraSite> siteSearchList()
88
+
89
+
90
+
91
+ Search for hazardous waste sites.
92
+
93
+ ### Example
94
+
95
+ ```ts
96
+ import {
97
+ Configuration,
98
+ SiteApi,
99
+ } from '';
100
+ import type { SiteSearchListRequest } from '';
101
+
102
+ async function example() {
103
+ console.log("🚀 Testing SDK...");
104
+ const config = new Configuration({
105
+ // To configure API key authorization: cookieAuth
106
+ apiKey: "YOUR API KEY",
107
+ // To configure API key authorization: ApiKeyAuth
108
+ apiKey: "YOUR API KEY",
109
+ });
110
+ const api = new SiteApi(config);
111
+
112
+ try {
113
+ const data = await api.siteSearchList();
114
+ console.log(data);
115
+ } catch (error) {
116
+ console.error(error);
117
+ }
118
+ }
119
+
120
+ // Run the test
121
+ example().catch(console.error);
122
+ ```
123
+
124
+ ### Parameters
125
+
126
+ This endpoint does not need any parameter.
127
+
128
+ ### Return type
129
+
130
+ [**Array<RcraSite>**](RcraSite.md)
131
+
132
+ ### Authorization
133
+
134
+ [cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
135
+
136
+ ### HTTP request headers
137
+
138
+ - **Content-Type**: Not defined
139
+ - **Accept**: `application/json`
140
+
141
+
142
+ ### HTTP response details
143
+ | Status code | Description | Response headers |
144
+ |-------------|-------------|------------------|
145
+ | **200** | | - |
146
+
147
+ [[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,32 @@
1
+
2
+ # SiteManifestSyncRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `siteId` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { SiteManifestSyncRequest } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "siteId": null,
19
+ } satisfies SiteManifestSyncRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as SiteManifestSyncRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[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,32 @@
1
+
2
+ # SiteManifestSyncResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `task` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { SiteManifestSyncResponse } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "task": null,
19
+ } satisfies SiteManifestSyncResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as SiteManifestSyncResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[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,155 @@
1
+ # SitesApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**sitesList**](SitesApi.md#siteslist) | **GET** /api/v1/sites | |
8
+ | [**sitesRetrieve**](SitesApi.md#sitesretrieve) | **GET** /api/v1/sites/{epa_id} | |
9
+
10
+
11
+
12
+ ## sitesList
13
+
14
+ > PaginatedSiteList sitesList(page)
15
+
16
+
17
+
18
+ View all sites that the user has access to.
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ SitesApi,
26
+ } from '';
27
+ import type { SitesListRequest } from '';
28
+
29
+ async function example() {
30
+ console.log("🚀 Testing SDK...");
31
+ const config = new Configuration({
32
+ // To configure API key authorization: cookieAuth
33
+ apiKey: "YOUR API KEY",
34
+ // To configure API key authorization: ApiKeyAuth
35
+ apiKey: "YOUR API KEY",
36
+ });
37
+ const api = new SitesApi(config);
38
+
39
+ const body = {
40
+ // number | A page number within the paginated result set. (optional)
41
+ page: 56,
42
+ } satisfies SitesListRequest;
43
+
44
+ try {
45
+ const data = await api.sitesList(body);
46
+ console.log(data);
47
+ } catch (error) {
48
+ console.error(error);
49
+ }
50
+ }
51
+
52
+ // Run the test
53
+ example().catch(console.error);
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+
59
+ | Name | Type | Description | Notes |
60
+ |------------- | ------------- | ------------- | -------------|
61
+ | **page** | `number` | A page number within the paginated result set. | [Optional] [Defaults to `undefined`] |
62
+
63
+ ### Return type
64
+
65
+ [**PaginatedSiteList**](PaginatedSiteList.md)
66
+
67
+ ### Authorization
68
+
69
+ [cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: `application/json`
75
+
76
+
77
+ ### HTTP response details
78
+ | Status code | Description | Response headers |
79
+ |-------------|-------------|------------------|
80
+ | **200** | | - |
81
+
82
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
83
+
84
+
85
+ ## sitesRetrieve
86
+
87
+ > Site sitesRetrieve(epaId)
88
+
89
+
90
+
91
+ View details of a Site.
92
+
93
+ ### Example
94
+
95
+ ```ts
96
+ import {
97
+ Configuration,
98
+ SitesApi,
99
+ } from '';
100
+ import type { SitesRetrieveRequest } from '';
101
+
102
+ async function example() {
103
+ console.log("🚀 Testing SDK...");
104
+ const config = new Configuration({
105
+ // To configure API key authorization: cookieAuth
106
+ apiKey: "YOUR API KEY",
107
+ // To configure API key authorization: ApiKeyAuth
108
+ apiKey: "YOUR API KEY",
109
+ });
110
+ const api = new SitesApi(config);
111
+
112
+ const body = {
113
+ // string
114
+ epaId: epaId_example,
115
+ } satisfies SitesRetrieveRequest;
116
+
117
+ try {
118
+ const data = await api.sitesRetrieve(body);
119
+ console.log(data);
120
+ } catch (error) {
121
+ console.error(error);
122
+ }
123
+ }
124
+
125
+ // Run the test
126
+ example().catch(console.error);
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+
132
+ | Name | Type | Description | Notes |
133
+ |------------- | ------------- | ------------- | -------------|
134
+ | **epaId** | `string` | | [Defaults to `undefined`] |
135
+
136
+ ### Return type
137
+
138
+ [**Site**](Site.md)
139
+
140
+ ### Authorization
141
+
142
+ [cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
143
+
144
+ ### HTTP request headers
145
+
146
+ - **Content-Type**: Not defined
147
+ - **Accept**: `application/json`
148
+
149
+
150
+ ### HTTP response details
151
+ | Status code | Description | Response headers |
152
+ |-------------|-------------|------------------|
153
+ | **200** | | - |
154
+
155
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)