@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.
- package/.openapi-generator/FILES +120 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/apis/DefaultApi.ts +176 -0
- package/apis/InfoApi.ts +80 -0
- package/apis/ManifestApi.ts +604 -0
- package/apis/MyProfileApi.ts +63 -0
- package/apis/OrgsApi.ts +172 -0
- package/apis/PegasusApi.ts +336 -0
- package/apis/ProfileApi.ts +229 -0
- package/apis/SiteApi.ts +108 -0
- package/apis/SitesApi.ts +119 -0
- package/apis/SyncApi.ts +55 -0
- package/apis/TeamsApi.ts +673 -0
- package/apis/index.ts +12 -0
- package/docs/AdditionalInfo.md +41 -0
- package/docs/DefaultApi.md +235 -0
- package/docs/ESignature.md +43 -0
- package/docs/Handler.md +41 -0
- package/docs/HandlerSearch.md +34 -0
- package/docs/HandlerSearchSiteTypeEnum.md +31 -0
- package/docs/InfoApi.md +81 -0
- package/docs/Invitation.md +42 -0
- package/docs/LockReasonEnum.md +31 -0
- package/docs/Manifest.md +93 -0
- package/docs/ManifestApi.md +907 -0
- package/docs/ManifestPhone.md +35 -0
- package/docs/Membership.md +42 -0
- package/docs/Mtn.md +39 -0
- package/docs/MyProfileApi.md +73 -0
- package/docs/NullEnum.md +30 -0
- package/docs/OpenInvitation.md +38 -0
- package/docs/Org.md +39 -0
- package/docs/OrgsApi.md +232 -0
- package/docs/PaginatedInvitationList.md +38 -0
- package/docs/PaginatedMtnList.md +38 -0
- package/docs/PaginatedOrgList.md +38 -0
- package/docs/PaginatedSiteList.md +38 -0
- package/docs/PaginatedTeamList.md +38 -0
- package/docs/PaperSignature.md +35 -0
- package/docs/PatchedInvitation.md +42 -0
- package/docs/PatchedProfile.md +35 -0
- package/docs/PatchedRcrainfoProfile.md +45 -0
- package/docs/PatchedTeam.md +48 -0
- package/docs/Price.md +42 -0
- package/docs/Profile.md +35 -0
- package/docs/ProfileApi.md +241 -0
- package/docs/QuickerSign.md +43 -0
- package/docs/RcraAddress.md +45 -0
- package/docs/RcraContact.md +43 -0
- package/docs/RcraPhone.md +35 -0
- package/docs/RcraSite.md +57 -0
- package/docs/RcraSitePermission.md +45 -0
- package/docs/RcraSiteSiteTypeEnum.md +31 -0
- package/docs/RcrainfoProfile.md +45 -0
- package/docs/RoleEnum.md +31 -0
- package/docs/Signer.md +49 -0
- package/docs/Site.md +35 -0
- package/docs/SiteApi.md +147 -0
- package/docs/SiteManifestSyncRequest.md +32 -0
- package/docs/SiteManifestSyncResponse.md +32 -0
- package/docs/SitesApi.md +155 -0
- package/docs/StatusC23Enum.md +31 -0
- package/docs/Subscription.md +51 -0
- package/docs/SubscriptionItem.md +36 -0
- package/docs/SubscriptionStatusEnum.md +31 -0
- package/docs/SyncApi.md +73 -0
- package/docs/Team.md +48 -0
- package/docs/TeamsApi.md +965 -0
- package/docs/TrakUser.md +43 -0
- package/docs/Transporter.md +41 -0
- package/docs/UserInvitationsResponse.md +32 -0
- package/docs/WasteLine.md +55 -0
- package/index.ts +5 -0
- package/models/AdditionalInfo.ts +96 -0
- package/models/AggregateEmployeeData.ts +83 -0
- package/models/DepartmentEnum.ts +59 -0
- package/models/ESignature.ts +112 -0
- package/models/Employee.ts +125 -0
- package/models/Handler.ts +126 -0
- package/models/HandlerSearch.ts +84 -0
- package/models/HandlerSearchSiteTypeEnum.ts +57 -0
- package/models/Invitation.ts +116 -0
- package/models/LockReasonEnum.ts +55 -0
- package/models/Manifest.ts +353 -0
- package/models/ManifestPhone.ts +73 -0
- package/models/Membership.ts +115 -0
- package/models/Mtn.ts +98 -0
- package/models/NullEnum.ts +50 -0
- package/models/OpenInvitation.ts +88 -0
- package/models/Org.ts +88 -0
- package/models/PaginatedEmployeeList.ts +98 -0
- package/models/PaginatedInvitationList.ts +98 -0
- package/models/PaginatedMtnList.ts +98 -0
- package/models/PaginatedOrgList.ts +98 -0
- package/models/PaginatedSiteList.ts +98 -0
- package/models/PaginatedTeamList.ts +98 -0
- package/models/PaperSignature.ts +74 -0
- package/models/PatchedEmployee.ts +118 -0
- package/models/PatchedInvitation.ts +112 -0
- package/models/PatchedProfile.ts +79 -0
- package/models/PatchedRcrainfoProfile.ts +119 -0
- package/models/PatchedTeam.ts +143 -0
- package/models/Price.ts +106 -0
- package/models/Profile.ts +80 -0
- package/models/QuickerSign.ts +108 -0
- package/models/RcraAddress.ts +113 -0
- package/models/RcraContact.ts +112 -0
- package/models/RcraPhone.ts +73 -0
- package/models/RcraSite.ts +200 -0
- package/models/RcraSitePermission.ts +121 -0
- package/models/RcraSiteSiteTypeEnum.ts +57 -0
- package/models/RcrainfoProfile.ts +120 -0
- package/models/RoleEnum.ts +53 -0
- package/models/Signer.ts +136 -0
- package/models/Site.ts +81 -0
- package/models/SiteManifestSyncRequest.ts +65 -0
- package/models/SiteManifestSyncResponse.ts +65 -0
- package/models/StatusC23Enum.ts +67 -0
- package/models/StatusEnum.ts +63 -0
- package/models/Subscription.ts +168 -0
- package/models/SubscriptionItem.ts +90 -0
- package/models/SubscriptionStatusEnum.ts +63 -0
- package/models/Team.ts +151 -0
- package/models/TrakUser.ts +106 -0
- package/models/Transporter.ts +120 -0
- package/models/UserInvitationsResponse.ts +73 -0
- package/models/WasteLine.ts +157 -0
- package/models/index.ts +50 -0
- package/package.json +17 -0
- package/runtime.ts +432 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# StatusC23Enum
|
|
3
|
+
|
|
4
|
+
* `NotAssigned` - Not Assigned * `Pending` - Pending * `Scheduled` - Scheduled * `InTransit` - In Transit * `ReadyForSignature` - Ready for Signature * `Signed` - Signed * `Corrected` - Corrected * `UnderCorrection` - Under Correction * `MtnValidationFailed` - MTN Validation Failed
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { StatusC23Enum } from ''
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
} satisfies StatusC23Enum
|
|
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 StatusC23Enum
|
|
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,51 @@
|
|
|
1
|
+
|
|
2
|
+
# Subscription
|
|
3
|
+
|
|
4
|
+
A serializer for Subscriptions which uses the SubscriptionWrapper object under the hood
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`displayName` | string
|
|
12
|
+
`startDate` | Date
|
|
13
|
+
`billingInterval` | string
|
|
14
|
+
`currentPeriodStart` | Date
|
|
15
|
+
`currentPeriodEnd` | Date
|
|
16
|
+
`cancelAtPeriodEnd` | boolean
|
|
17
|
+
`status` | [SubscriptionStatusEnum](SubscriptionStatusEnum.md)
|
|
18
|
+
`quantity` | number
|
|
19
|
+
`items` | [Array<SubscriptionItem>](SubscriptionItem.md)
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { Subscription } from ''
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"id": null,
|
|
29
|
+
"displayName": null,
|
|
30
|
+
"startDate": null,
|
|
31
|
+
"billingInterval": null,
|
|
32
|
+
"currentPeriodStart": null,
|
|
33
|
+
"currentPeriodEnd": null,
|
|
34
|
+
"cancelAtPeriodEnd": null,
|
|
35
|
+
"status": null,
|
|
36
|
+
"quantity": null,
|
|
37
|
+
"items": null,
|
|
38
|
+
} satisfies Subscription
|
|
39
|
+
|
|
40
|
+
console.log(example)
|
|
41
|
+
|
|
42
|
+
// Convert the instance to a JSON string
|
|
43
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
44
|
+
console.log(exampleJSON)
|
|
45
|
+
|
|
46
|
+
// Parse the JSON string back to an object
|
|
47
|
+
const exampleParsed = JSON.parse(exampleJSON) as Subscription
|
|
48
|
+
console.log(exampleParsed)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
[[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,36 @@
|
|
|
1
|
+
|
|
2
|
+
# SubscriptionItem
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`price` | [Price](Price.md)
|
|
11
|
+
`quantity` | number
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { SubscriptionItem } from ''
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"price": null,
|
|
22
|
+
"quantity": null,
|
|
23
|
+
} satisfies SubscriptionItem
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as SubscriptionItem
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[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
|
+
# SubscriptionStatusEnum
|
|
3
|
+
|
|
4
|
+
* `active` - Active * `canceled` - Canceled * `incomplete` - Incomplete * `incomplete_expired` - Incomplete Expired * `past_due` - Past due * `trialing` - Trialing * `unpaid` - Unpaid
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { SubscriptionStatusEnum } from ''
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
} satisfies SubscriptionStatusEnum
|
|
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 SubscriptionStatusEnum
|
|
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/SyncApi.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# SyncApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**syncCreate**](SyncApi.md#synccreate) | **POST** /api/v1/sync | |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## syncCreate
|
|
12
|
+
|
|
13
|
+
> syncCreate()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
Create a job to sync the user\'s RCRAInfo profile.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
Configuration,
|
|
24
|
+
SyncApi,
|
|
25
|
+
} from '';
|
|
26
|
+
import type { SyncCreateRequest } from '';
|
|
27
|
+
|
|
28
|
+
async function example() {
|
|
29
|
+
console.log("🚀 Testing SDK...");
|
|
30
|
+
const config = new Configuration({
|
|
31
|
+
// To configure API key authorization: cookieAuth
|
|
32
|
+
apiKey: "YOUR API KEY",
|
|
33
|
+
// To configure API key authorization: ApiKeyAuth
|
|
34
|
+
apiKey: "YOUR API KEY",
|
|
35
|
+
});
|
|
36
|
+
const api = new SyncApi(config);
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
const data = await api.syncCreate();
|
|
40
|
+
console.log(data);
|
|
41
|
+
} catch (error) {
|
|
42
|
+
console.error(error);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Run the test
|
|
47
|
+
example().catch(console.error);
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Parameters
|
|
51
|
+
|
|
52
|
+
This endpoint does not need any parameter.
|
|
53
|
+
|
|
54
|
+
### Return type
|
|
55
|
+
|
|
56
|
+
`void` (Empty response body)
|
|
57
|
+
|
|
58
|
+
### Authorization
|
|
59
|
+
|
|
60
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
61
|
+
|
|
62
|
+
### HTTP request headers
|
|
63
|
+
|
|
64
|
+
- **Content-Type**: Not defined
|
|
65
|
+
- **Accept**: Not defined
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### HTTP response details
|
|
69
|
+
| Status code | Description | Response headers |
|
|
70
|
+
|-------------|-------------|------------------|
|
|
71
|
+
| **200** | No response body | - |
|
|
72
|
+
|
|
73
|
+
[[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/Team.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# Team
|
|
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 { Team } 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 Team
|
|
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 Team
|
|
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)
|