@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,90 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { Price } from './Price';
17
+ import {
18
+ PriceFromJSON,
19
+ PriceFromJSONTyped,
20
+ PriceToJSON,
21
+ PriceToJSONTyped,
22
+ } from './Price';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SubscriptionItem
28
+ */
29
+ export interface SubscriptionItem {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SubscriptionItem
34
+ */
35
+ id: string;
36
+ /**
37
+ *
38
+ * @type {Price}
39
+ * @memberof SubscriptionItem
40
+ */
41
+ price: Price;
42
+ /**
43
+ * The quantity of the plan to which the customer should be subscribed.
44
+ * @type {number}
45
+ * @memberof SubscriptionItem
46
+ */
47
+ quantity?: number | null;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the SubscriptionItem interface.
52
+ */
53
+ export function instanceOfSubscriptionItem(value: object): value is SubscriptionItem {
54
+ if (!('id' in value) || value['id'] === undefined) return false;
55
+ if (!('price' in value) || value['price'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function SubscriptionItemFromJSON(json: any): SubscriptionItem {
60
+ return SubscriptionItemFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function SubscriptionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionItem {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'id': json['id'],
70
+ 'price': PriceFromJSON(json['price']),
71
+ 'quantity': json['quantity'] == null ? undefined : json['quantity'],
72
+ };
73
+ }
74
+
75
+ export function SubscriptionItemToJSON(json: any): SubscriptionItem {
76
+ return SubscriptionItemToJSONTyped(json, false);
77
+ }
78
+
79
+ export function SubscriptionItemToJSONTyped(value?: SubscriptionItem | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'id': value['id'],
87
+ 'price': PriceToJSON(value['price']),
88
+ 'quantity': value['quantity'],
89
+ };
90
+ }
@@ -0,0 +1,63 @@
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
+ /**
17
+ * * `active` - Active
18
+ * * `canceled` - Canceled
19
+ * * `incomplete` - Incomplete
20
+ * * `incomplete_expired` - Incomplete Expired
21
+ * * `past_due` - Past due
22
+ * * `trialing` - Trialing
23
+ * * `unpaid` - Unpaid
24
+ * @export
25
+ */
26
+ export const SubscriptionStatusEnum = {
27
+ Active: 'active',
28
+ Canceled: 'canceled',
29
+ Incomplete: 'incomplete',
30
+ IncompleteExpired: 'incomplete_expired',
31
+ PastDue: 'past_due',
32
+ Trialing: 'trialing',
33
+ Unpaid: 'unpaid'
34
+ } as const;
35
+ export type SubscriptionStatusEnum = typeof SubscriptionStatusEnum[keyof typeof SubscriptionStatusEnum];
36
+
37
+
38
+ export function instanceOfSubscriptionStatusEnum(value: any): boolean {
39
+ for (const key in SubscriptionStatusEnum) {
40
+ if (Object.prototype.hasOwnProperty.call(SubscriptionStatusEnum, key)) {
41
+ if (SubscriptionStatusEnum[key as keyof typeof SubscriptionStatusEnum] === value) {
42
+ return true;
43
+ }
44
+ }
45
+ }
46
+ return false;
47
+ }
48
+
49
+ export function SubscriptionStatusEnumFromJSON(json: any): SubscriptionStatusEnum {
50
+ return SubscriptionStatusEnumFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function SubscriptionStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionStatusEnum {
54
+ return json as SubscriptionStatusEnum;
55
+ }
56
+
57
+ export function SubscriptionStatusEnumToJSON(value?: SubscriptionStatusEnum | null): any {
58
+ return value as any;
59
+ }
60
+
61
+ export function SubscriptionStatusEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): SubscriptionStatusEnum {
62
+ return value as SubscriptionStatusEnum;
63
+ }
package/models/Team.ts ADDED
@@ -0,0 +1,151 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { Invitation } from './Invitation';
17
+ import {
18
+ InvitationFromJSON,
19
+ InvitationFromJSONTyped,
20
+ InvitationToJSON,
21
+ InvitationToJSONTyped,
22
+ } from './Invitation';
23
+ import type { Membership } from './Membership';
24
+ import {
25
+ MembershipFromJSON,
26
+ MembershipFromJSONTyped,
27
+ MembershipToJSON,
28
+ MembershipToJSONTyped,
29
+ } from './Membership';
30
+ import type { Subscription } from './Subscription';
31
+ import {
32
+ SubscriptionFromJSON,
33
+ SubscriptionFromJSONTyped,
34
+ SubscriptionToJSON,
35
+ SubscriptionToJSONTyped,
36
+ } from './Subscription';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface Team
42
+ */
43
+ export interface Team {
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof Team
48
+ */
49
+ readonly id: number;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof Team
54
+ */
55
+ name: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof Team
60
+ */
61
+ slug?: string;
62
+ /**
63
+ *
64
+ * @type {Array<Membership>}
65
+ * @memberof Team
66
+ */
67
+ readonly members: Array<Membership>;
68
+ /**
69
+ *
70
+ * @type {Array<Invitation>}
71
+ * @memberof Team
72
+ */
73
+ readonly invitations: Array<Invitation>;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof Team
78
+ */
79
+ readonly dashboardUrl: string;
80
+ /**
81
+ *
82
+ * @type {boolean}
83
+ * @memberof Team
84
+ */
85
+ readonly isAdmin: boolean;
86
+ /**
87
+ *
88
+ * @type {Subscription}
89
+ * @memberof Team
90
+ */
91
+ readonly subscription: Subscription;
92
+ /**
93
+ *
94
+ * @type {boolean}
95
+ * @memberof Team
96
+ */
97
+ readonly hasActiveSubscription: boolean;
98
+ }
99
+
100
+ /**
101
+ * Check if a given object implements the Team interface.
102
+ */
103
+ export function instanceOfTeam(value: object): value is Team {
104
+ if (!('id' in value) || value['id'] === undefined) return false;
105
+ if (!('name' in value) || value['name'] === undefined) return false;
106
+ if (!('members' in value) || value['members'] === undefined) return false;
107
+ if (!('invitations' in value) || value['invitations'] === undefined) return false;
108
+ if (!('dashboardUrl' in value) || value['dashboardUrl'] === undefined) return false;
109
+ if (!('isAdmin' in value) || value['isAdmin'] === undefined) return false;
110
+ if (!('subscription' in value) || value['subscription'] === undefined) return false;
111
+ if (!('hasActiveSubscription' in value) || value['hasActiveSubscription'] === undefined) return false;
112
+ return true;
113
+ }
114
+
115
+ export function TeamFromJSON(json: any): Team {
116
+ return TeamFromJSONTyped(json, false);
117
+ }
118
+
119
+ export function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Team {
120
+ if (json == null) {
121
+ return json;
122
+ }
123
+ return {
124
+
125
+ 'id': json['id'],
126
+ 'name': json['name'],
127
+ 'slug': json['slug'] == null ? undefined : json['slug'],
128
+ 'members': ((json['members'] as Array<any>).map(MembershipFromJSON)),
129
+ 'invitations': ((json['invitations'] as Array<any>).map(InvitationFromJSON)),
130
+ 'dashboardUrl': json['dashboard_url'],
131
+ 'isAdmin': json['is_admin'],
132
+ 'subscription': SubscriptionFromJSON(json['subscription']),
133
+ 'hasActiveSubscription': json['has_active_subscription'],
134
+ };
135
+ }
136
+
137
+ export function TeamToJSON(json: any): Team {
138
+ return TeamToJSONTyped(json, false);
139
+ }
140
+
141
+ export function TeamToJSONTyped(value?: Omit<Team, 'id'|'members'|'invitations'|'dashboard_url'|'is_admin'|'subscription'|'has_active_subscription'> | null, ignoreDiscriminator: boolean = false): any {
142
+ if (value == null) {
143
+ return value;
144
+ }
145
+
146
+ return {
147
+
148
+ 'name': value['name'],
149
+ 'slug': value['slug'],
150
+ };
151
+ }
@@ -0,0 +1,106 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Basic serializer to pass TrakUser details to the front end.
18
+ * Extend with any fields your app needs.
19
+ * @export
20
+ * @interface TrakUser
21
+ */
22
+ export interface TrakUser {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof TrakUser
27
+ */
28
+ readonly id: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof TrakUser
33
+ */
34
+ firstName?: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof TrakUser
39
+ */
40
+ lastName?: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof TrakUser
45
+ */
46
+ email: string;
47
+ /**
48
+ * Avatar URL.
49
+ * @type {string}
50
+ * @memberof TrakUser
51
+ */
52
+ readonly avatarUrl: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof TrakUser
57
+ */
58
+ readonly getDisplayName: string;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the TrakUser interface.
63
+ */
64
+ export function instanceOfTrakUser(value: object): value is TrakUser {
65
+ if (!('id' in value) || value['id'] === undefined) return false;
66
+ if (!('email' in value) || value['email'] === undefined) return false;
67
+ if (!('avatarUrl' in value) || value['avatarUrl'] === undefined) return false;
68
+ if (!('getDisplayName' in value) || value['getDisplayName'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function TrakUserFromJSON(json: any): TrakUser {
73
+ return TrakUserFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function TrakUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrakUser {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'id': json['id'],
83
+ 'firstName': json['first_name'] == null ? undefined : json['first_name'],
84
+ 'lastName': json['last_name'] == null ? undefined : json['last_name'],
85
+ 'email': json['email'],
86
+ 'avatarUrl': json['avatar_url'],
87
+ 'getDisplayName': json['get_display_name'],
88
+ };
89
+ }
90
+
91
+ export function TrakUserToJSON(json: any): TrakUser {
92
+ return TrakUserToJSONTyped(json, false);
93
+ }
94
+
95
+ export function TrakUserToJSONTyped(value?: Omit<TrakUser, 'id'|'avatar_url'|'get_display_name'> | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'first_name': value['firstName'],
103
+ 'last_name': value['lastName'],
104
+ 'email': value['email'],
105
+ };
106
+ }
@@ -0,0 +1,120 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { PaperSignature } from './PaperSignature';
17
+ import {
18
+ PaperSignatureFromJSON,
19
+ PaperSignatureFromJSONTyped,
20
+ PaperSignatureToJSON,
21
+ PaperSignatureToJSONTyped,
22
+ } from './PaperSignature';
23
+ import type { ESignature } from './ESignature';
24
+ import {
25
+ ESignatureFromJSON,
26
+ ESignatureFromJSONTyped,
27
+ ESignatureToJSON,
28
+ ESignatureToJSONTyped,
29
+ } from './ESignature';
30
+ import type { RcraSite } from './RcraSite';
31
+ import {
32
+ RcraSiteFromJSON,
33
+ RcraSiteFromJSONTyped,
34
+ RcraSiteToJSON,
35
+ RcraSiteToJSONTyped,
36
+ } from './RcraSite';
37
+
38
+ /**
39
+ * Transporter model serializer for JSON marshalling/unmarshalling.
40
+ * @export
41
+ * @interface Transporter
42
+ */
43
+ export interface Transporter {
44
+ /**
45
+ *
46
+ * @type {RcraSite}
47
+ * @memberof Transporter
48
+ */
49
+ rcraSite: RcraSite;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof Transporter
54
+ */
55
+ order: number;
56
+ /**
57
+ *
58
+ * @type {PaperSignature}
59
+ * @memberof Transporter
60
+ */
61
+ paperSignatureInfo?: PaperSignature;
62
+ /**
63
+ *
64
+ * @type {Array<ESignature>}
65
+ * @memberof Transporter
66
+ */
67
+ electronicSignaturesInfo?: Array<ESignature>;
68
+ /**
69
+ * Returns True if one of the signature types is present.
70
+ * @type {boolean}
71
+ * @memberof Transporter
72
+ */
73
+ readonly signed: boolean;
74
+ }
75
+
76
+ /**
77
+ * Check if a given object implements the Transporter interface.
78
+ */
79
+ export function instanceOfTransporter(value: object): value is Transporter {
80
+ if (!('rcraSite' in value) || value['rcraSite'] === undefined) return false;
81
+ if (!('order' in value) || value['order'] === undefined) return false;
82
+ if (!('signed' in value) || value['signed'] === undefined) return false;
83
+ return true;
84
+ }
85
+
86
+ export function TransporterFromJSON(json: any): Transporter {
87
+ return TransporterFromJSONTyped(json, false);
88
+ }
89
+
90
+ export function TransporterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transporter {
91
+ if (json == null) {
92
+ return json;
93
+ }
94
+ return {
95
+
96
+ 'rcraSite': RcraSiteFromJSON(json['rcra_site']),
97
+ 'order': json['order'],
98
+ 'paperSignatureInfo': json['paperSignatureInfo'] == null ? undefined : PaperSignatureFromJSON(json['paperSignatureInfo']),
99
+ 'electronicSignaturesInfo': json['electronicSignaturesInfo'] == null ? undefined : ((json['electronicSignaturesInfo'] as Array<any>).map(ESignatureFromJSON)),
100
+ 'signed': json['signed'],
101
+ };
102
+ }
103
+
104
+ export function TransporterToJSON(json: any): Transporter {
105
+ return TransporterToJSONTyped(json, false);
106
+ }
107
+
108
+ export function TransporterToJSONTyped(value?: Omit<Transporter, 'signed'> | null, ignoreDiscriminator: boolean = false): any {
109
+ if (value == null) {
110
+ return value;
111
+ }
112
+
113
+ return {
114
+
115
+ 'rcra_site': RcraSiteToJSON(value['rcraSite']),
116
+ 'order': value['order'],
117
+ 'paperSignatureInfo': PaperSignatureToJSON(value['paperSignatureInfo']),
118
+ 'electronicSignaturesInfo': value['electronicSignaturesInfo'] == null ? undefined : ((value['electronicSignaturesInfo'] as Array<any>).map(ESignatureToJSON)),
119
+ };
120
+ }
@@ -0,0 +1,73 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { OpenInvitation } from './OpenInvitation';
17
+ import {
18
+ OpenInvitationFromJSON,
19
+ OpenInvitationFromJSONTyped,
20
+ OpenInvitationToJSON,
21
+ OpenInvitationToJSONTyped,
22
+ } from './OpenInvitation';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UserInvitationsResponse
28
+ */
29
+ export interface UserInvitationsResponse {
30
+ /**
31
+ *
32
+ * @type {Array<OpenInvitation>}
33
+ * @memberof UserInvitationsResponse
34
+ */
35
+ results: Array<OpenInvitation>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the UserInvitationsResponse interface.
40
+ */
41
+ export function instanceOfUserInvitationsResponse(value: object): value is UserInvitationsResponse {
42
+ if (!('results' in value) || value['results'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function UserInvitationsResponseFromJSON(json: any): UserInvitationsResponse {
47
+ return UserInvitationsResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function UserInvitationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserInvitationsResponse {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'results': ((json['results'] as Array<any>).map(OpenInvitationFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function UserInvitationsResponseToJSON(json: any): UserInvitationsResponse {
61
+ return UserInvitationsResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function UserInvitationsResponseToJSONTyped(value?: UserInvitationsResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'results': ((value['results'] as Array<any>).map(OpenInvitationToJSON)),
72
+ };
73
+ }