@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,143 @@
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 PatchedTeam
42
+ */
43
+ export interface PatchedTeam {
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof PatchedTeam
48
+ */
49
+ readonly id?: number;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof PatchedTeam
54
+ */
55
+ name?: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof PatchedTeam
60
+ */
61
+ slug?: string;
62
+ /**
63
+ *
64
+ * @type {Array<Membership>}
65
+ * @memberof PatchedTeam
66
+ */
67
+ readonly members?: Array<Membership>;
68
+ /**
69
+ *
70
+ * @type {Array<Invitation>}
71
+ * @memberof PatchedTeam
72
+ */
73
+ readonly invitations?: Array<Invitation>;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof PatchedTeam
78
+ */
79
+ readonly dashboardUrl?: string;
80
+ /**
81
+ *
82
+ * @type {boolean}
83
+ * @memberof PatchedTeam
84
+ */
85
+ readonly isAdmin?: boolean;
86
+ /**
87
+ *
88
+ * @type {Subscription}
89
+ * @memberof PatchedTeam
90
+ */
91
+ readonly subscription?: Subscription;
92
+ /**
93
+ *
94
+ * @type {boolean}
95
+ * @memberof PatchedTeam
96
+ */
97
+ readonly hasActiveSubscription?: boolean;
98
+ }
99
+
100
+ /**
101
+ * Check if a given object implements the PatchedTeam interface.
102
+ */
103
+ export function instanceOfPatchedTeam(value: object): value is PatchedTeam {
104
+ return true;
105
+ }
106
+
107
+ export function PatchedTeamFromJSON(json: any): PatchedTeam {
108
+ return PatchedTeamFromJSONTyped(json, false);
109
+ }
110
+
111
+ export function PatchedTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedTeam {
112
+ if (json == null) {
113
+ return json;
114
+ }
115
+ return {
116
+
117
+ 'id': json['id'] == null ? undefined : json['id'],
118
+ 'name': json['name'] == null ? undefined : json['name'],
119
+ 'slug': json['slug'] == null ? undefined : json['slug'],
120
+ 'members': json['members'] == null ? undefined : ((json['members'] as Array<any>).map(MembershipFromJSON)),
121
+ 'invitations': json['invitations'] == null ? undefined : ((json['invitations'] as Array<any>).map(InvitationFromJSON)),
122
+ 'dashboardUrl': json['dashboard_url'] == null ? undefined : json['dashboard_url'],
123
+ 'isAdmin': json['is_admin'] == null ? undefined : json['is_admin'],
124
+ 'subscription': json['subscription'] == null ? undefined : SubscriptionFromJSON(json['subscription']),
125
+ 'hasActiveSubscription': json['has_active_subscription'] == null ? undefined : json['has_active_subscription'],
126
+ };
127
+ }
128
+
129
+ export function PatchedTeamToJSON(json: any): PatchedTeam {
130
+ return PatchedTeamToJSONTyped(json, false);
131
+ }
132
+
133
+ export function PatchedTeamToJSONTyped(value?: Omit<PatchedTeam, 'id'|'members'|'invitations'|'dashboard_url'|'is_admin'|'subscription'|'has_active_subscription'> | null, ignoreDiscriminator: boolean = false): any {
134
+ if (value == null) {
135
+ return value;
136
+ }
137
+
138
+ return {
139
+
140
+ 'name': value['name'],
141
+ 'slug': value['slug'],
142
+ };
143
+ }
@@ -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
+ *
18
+ * @export
19
+ * @interface Price
20
+ */
21
+ export interface Price {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Price
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Price
32
+ */
33
+ productName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Price
38
+ */
39
+ readonly humanReadablePrice: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Price
44
+ */
45
+ readonly paymentAmount: string;
46
+ /**
47
+ * A brief description of the plan, hidden from customers.
48
+ * @type {string}
49
+ * @memberof Price
50
+ */
51
+ nickname?: string;
52
+ /**
53
+ * The unit amount in cents to be charged, represented as a whole integer if possible. Null if a sub-cent precision is required.
54
+ * @type {number}
55
+ * @memberof Price
56
+ */
57
+ unitAmount?: number | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the Price interface.
62
+ */
63
+ export function instanceOfPrice(value: object): value is Price {
64
+ if (!('id' in value) || value['id'] === undefined) return false;
65
+ if (!('productName' in value) || value['productName'] === undefined) return false;
66
+ if (!('humanReadablePrice' in value) || value['humanReadablePrice'] === undefined) return false;
67
+ if (!('paymentAmount' in value) || value['paymentAmount'] === undefined) return false;
68
+ return true;
69
+ }
70
+
71
+ export function PriceFromJSON(json: any): Price {
72
+ return PriceFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'id': json['id'],
82
+ 'productName': json['product_name'],
83
+ 'humanReadablePrice': json['human_readable_price'],
84
+ 'paymentAmount': json['payment_amount'],
85
+ 'nickname': json['nickname'] == null ? undefined : json['nickname'],
86
+ 'unitAmount': json['unit_amount'] == null ? undefined : json['unit_amount'],
87
+ };
88
+ }
89
+
90
+ export function PriceToJSON(json: any): Price {
91
+ return PriceToJSONTyped(json, false);
92
+ }
93
+
94
+ export function PriceToJSONTyped(value?: Omit<Price, 'human_readable_price'|'payment_amount'> | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'id': value['id'],
102
+ 'product_name': value['productName'],
103
+ 'nickname': value['nickname'],
104
+ 'unit_amount': value['unitAmount'],
105
+ };
106
+ }
@@ -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
+ import { mapValues } from '../runtime';
16
+ import type { TrakUser } from './TrakUser';
17
+ import {
18
+ TrakUserFromJSON,
19
+ TrakUserFromJSONTyped,
20
+ TrakUserToJSON,
21
+ TrakUserToJSONTyped,
22
+ } from './TrakUser';
23
+
24
+ /**
25
+ * Serializer for a user's profile.
26
+ * @export
27
+ * @interface Profile
28
+ */
29
+ export interface Profile {
30
+ /**
31
+ *
32
+ * @type {TrakUser}
33
+ * @memberof Profile
34
+ */
35
+ readonly user: TrakUser;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Profile
40
+ */
41
+ avatar?: string | null;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the Profile interface.
46
+ */
47
+ export function instanceOfProfile(value: object): value is Profile {
48
+ if (!('user' in value) || value['user'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function ProfileFromJSON(json: any): Profile {
53
+ return ProfileFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function ProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): Profile {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'user': TrakUserFromJSON(json['user']),
63
+ 'avatar': json['avatar'] == null ? undefined : json['avatar'],
64
+ };
65
+ }
66
+
67
+ export function ProfileToJSON(json: any): Profile {
68
+ return ProfileToJSONTyped(json, false);
69
+ }
70
+
71
+ export function ProfileToJSONTyped(value?: Omit<Profile, 'user'> | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'avatar': value['avatar'],
79
+ };
80
+ }
@@ -0,0 +1,108 @@
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
+ * Serializer for EPA Quicker Sign objects.
18
+ * @export
19
+ * @interface QuickerSign
20
+ */
21
+ export interface QuickerSign {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof QuickerSign
26
+ */
27
+ manifestTrackingNumbers: Array<string>;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof QuickerSign
32
+ */
33
+ printedSignatureName: string;
34
+ /**
35
+ *
36
+ * @type {Date}
37
+ * @memberof QuickerSign
38
+ */
39
+ printedSignatureDate?: Date;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof QuickerSign
44
+ */
45
+ siteType: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof QuickerSign
50
+ */
51
+ siteId: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof QuickerSign
56
+ */
57
+ transporterOrder?: number;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the QuickerSign interface.
62
+ */
63
+ export function instanceOfQuickerSign(value: object): value is QuickerSign {
64
+ if (!('manifestTrackingNumbers' in value) || value['manifestTrackingNumbers'] === undefined) return false;
65
+ if (!('printedSignatureName' in value) || value['printedSignatureName'] === undefined) return false;
66
+ if (!('siteType' in value) || value['siteType'] === undefined) return false;
67
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
68
+ return true;
69
+ }
70
+
71
+ export function QuickerSignFromJSON(json: any): QuickerSign {
72
+ return QuickerSignFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function QuickerSignFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickerSign {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'manifestTrackingNumbers': json['manifestTrackingNumbers'],
82
+ 'printedSignatureName': json['printedSignatureName'],
83
+ 'printedSignatureDate': json['printedSignatureDate'] == null ? undefined : (new Date(json['printedSignatureDate'])),
84
+ 'siteType': json['siteType'],
85
+ 'siteId': json['siteId'],
86
+ 'transporterOrder': json['transporterOrder'] == null ? undefined : json['transporterOrder'],
87
+ };
88
+ }
89
+
90
+ export function QuickerSignToJSON(json: any): QuickerSign {
91
+ return QuickerSignToJSONTyped(json, false);
92
+ }
93
+
94
+ export function QuickerSignToJSONTyped(value?: QuickerSign | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'manifestTrackingNumbers': value['manifestTrackingNumbers'],
102
+ 'printedSignatureName': value['printedSignatureName'],
103
+ 'printedSignatureDate': value['printedSignatureDate'] == null ? value['printedSignatureDate'] : value['printedSignatureDate'].toISOString(),
104
+ 'siteType': value['siteType'],
105
+ 'siteId': value['siteId'],
106
+ 'transporterOrder': value['transporterOrder'],
107
+ };
108
+ }
@@ -0,0 +1,113 @@
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
+ * Address model serializer for JSON representation.
18
+ * @export
19
+ * @interface RcraAddress
20
+ */
21
+ export interface RcraAddress {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RcraAddress
26
+ */
27
+ streetNumber?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RcraAddress
32
+ */
33
+ address1: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof RcraAddress
38
+ */
39
+ address2?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof RcraAddress
44
+ */
45
+ city?: string;
46
+ /**
47
+ *
48
+ * @type {{ [key: string]: any; }}
49
+ * @memberof RcraAddress
50
+ */
51
+ state?: { [key: string]: any; };
52
+ /**
53
+ *
54
+ * @type {{ [key: string]: any; }}
55
+ * @memberof RcraAddress
56
+ */
57
+ country?: { [key: string]: any; };
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof RcraAddress
62
+ */
63
+ zip?: string;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the RcraAddress interface.
68
+ */
69
+ export function instanceOfRcraAddress(value: object): value is RcraAddress {
70
+ if (!('address1' in value) || value['address1'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function RcraAddressFromJSON(json: any): RcraAddress {
75
+ return RcraAddressFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function RcraAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): RcraAddress {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'streetNumber': json['streetNumber'] == null ? undefined : json['streetNumber'],
85
+ 'address1': json['address1'],
86
+ 'address2': json['address2'] == null ? undefined : json['address2'],
87
+ 'city': json['city'] == null ? undefined : json['city'],
88
+ 'state': json['state'] == null ? undefined : json['state'],
89
+ 'country': json['country'] == null ? undefined : json['country'],
90
+ 'zip': json['zip'] == null ? undefined : json['zip'],
91
+ };
92
+ }
93
+
94
+ export function RcraAddressToJSON(json: any): RcraAddress {
95
+ return RcraAddressToJSONTyped(json, false);
96
+ }
97
+
98
+ export function RcraAddressToJSONTyped(value?: RcraAddress | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'streetNumber': value['streetNumber'],
106
+ 'address1': value['address1'],
107
+ 'address2': value['address2'],
108
+ 'city': value['city'],
109
+ 'state': value['state'],
110
+ 'country': value['country'],
111
+ 'zip': value['zip'],
112
+ };
113
+ }
@@ -0,0 +1,112 @@
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 { RcraPhone } from './RcraPhone';
17
+ import {
18
+ RcraPhoneFromJSON,
19
+ RcraPhoneFromJSONTyped,
20
+ RcraPhoneToJSON,
21
+ RcraPhoneToJSONTyped,
22
+ } from './RcraPhone';
23
+
24
+ /**
25
+ * Contact serializer for JSON marshaling/unmarshalling.
26
+ * @export
27
+ * @interface RcraContact
28
+ */
29
+ export interface RcraContact {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof RcraContact
34
+ */
35
+ firstName?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof RcraContact
40
+ */
41
+ middleInitial?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof RcraContact
46
+ */
47
+ lastName?: string;
48
+ /**
49
+ *
50
+ * @type {RcraPhone}
51
+ * @memberof RcraContact
52
+ */
53
+ phone?: RcraPhone;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof RcraContact
58
+ */
59
+ email?: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof RcraContact
64
+ */
65
+ companyName?: string;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the RcraContact interface.
70
+ */
71
+ export function instanceOfRcraContact(value: object): value is RcraContact {
72
+ return true;
73
+ }
74
+
75
+ export function RcraContactFromJSON(json: any): RcraContact {
76
+ return RcraContactFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function RcraContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): RcraContact {
80
+ if (json == null) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
86
+ 'middleInitial': json['middleInitial'] == null ? undefined : json['middleInitial'],
87
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
88
+ 'phone': json['phone'] == null ? undefined : RcraPhoneFromJSON(json['phone']),
89
+ 'email': json['email'] == null ? undefined : json['email'],
90
+ 'companyName': json['companyName'] == null ? undefined : json['companyName'],
91
+ };
92
+ }
93
+
94
+ export function RcraContactToJSON(json: any): RcraContact {
95
+ return RcraContactToJSONTyped(json, false);
96
+ }
97
+
98
+ export function RcraContactToJSONTyped(value?: RcraContact | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'firstName': value['firstName'],
106
+ 'middleInitial': value['middleInitial'],
107
+ 'lastName': value['lastName'],
108
+ 'phone': RcraPhoneToJSON(value['phone']),
109
+ 'email': value['email'],
110
+ 'companyName': value['companyName'],
111
+ };
112
+ }