@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,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
+ /**
17
+ * ManifestPhone model serializer for JSON marshalling/unmarshalling.
18
+ * @export
19
+ * @interface RcraPhone
20
+ */
21
+ export interface RcraPhone {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RcraPhone
26
+ */
27
+ number: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RcraPhone
32
+ */
33
+ extension?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the RcraPhone interface.
38
+ */
39
+ export function instanceOfRcraPhone(value: object): value is RcraPhone {
40
+ if (!('number' in value) || value['number'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function RcraPhoneFromJSON(json: any): RcraPhone {
45
+ return RcraPhoneFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function RcraPhoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): RcraPhone {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'number': json['number'],
55
+ 'extension': json['extension'] == null ? undefined : json['extension'],
56
+ };
57
+ }
58
+
59
+ export function RcraPhoneToJSON(json: any): RcraPhone {
60
+ return RcraPhoneToJSONTyped(json, false);
61
+ }
62
+
63
+ export function RcraPhoneToJSONTyped(value?: RcraPhone | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'number': value['number'],
71
+ 'extension': value['extension'],
72
+ };
73
+ }
@@ -0,0 +1,200 @@
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 { RcraContact } from './RcraContact';
17
+ import {
18
+ RcraContactFromJSON,
19
+ RcraContactFromJSONTyped,
20
+ RcraContactToJSON,
21
+ RcraContactToJSONTyped,
22
+ } from './RcraContact';
23
+ import type { RcraAddress } from './RcraAddress';
24
+ import {
25
+ RcraAddressFromJSON,
26
+ RcraAddressFromJSONTyped,
27
+ RcraAddressToJSON,
28
+ RcraAddressToJSONTyped,
29
+ } from './RcraAddress';
30
+ import type { RcraPhone } from './RcraPhone';
31
+ import {
32
+ RcraPhoneFromJSON,
33
+ RcraPhoneFromJSONTyped,
34
+ RcraPhoneToJSON,
35
+ RcraPhoneToJSONTyped,
36
+ } from './RcraPhone';
37
+
38
+ /**
39
+ * RcraSite model serializer for JSON marshalling/unmarshalling.
40
+ * @export
41
+ * @interface RcraSite
42
+ */
43
+ export interface RcraSite {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof RcraSite
48
+ */
49
+ epaSiteId: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof RcraSite
54
+ */
55
+ siteType?: RcraSiteSiteTypeEnum | null;
56
+ /**
57
+ *
58
+ * @type {boolean}
59
+ * @memberof RcraSite
60
+ */
61
+ modified?: boolean | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof RcraSite
66
+ */
67
+ name: string;
68
+ /**
69
+ *
70
+ * @type {RcraAddress}
71
+ * @memberof RcraSite
72
+ */
73
+ siteAddress: RcraAddress;
74
+ /**
75
+ *
76
+ * @type {RcraAddress}
77
+ * @memberof RcraSite
78
+ */
79
+ mailingAddress: RcraAddress;
80
+ /**
81
+ *
82
+ * @type {RcraContact}
83
+ * @memberof RcraSite
84
+ */
85
+ contact: RcraContact;
86
+ /**
87
+ *
88
+ * @type {RcraPhone}
89
+ * @memberof RcraSite
90
+ */
91
+ emergencyPhone?: RcraPhone | null;
92
+ /**
93
+ *
94
+ * @type {boolean}
95
+ * @memberof RcraSite
96
+ */
97
+ registered?: boolean | null;
98
+ /**
99
+ *
100
+ * @type {boolean}
101
+ * @memberof RcraSite
102
+ */
103
+ limitedEsign?: boolean | null;
104
+ /**
105
+ *
106
+ * @type {boolean}
107
+ * @memberof RcraSite
108
+ */
109
+ canEsign?: boolean | null;
110
+ /**
111
+ *
112
+ * @type {boolean}
113
+ * @memberof RcraSite
114
+ */
115
+ hasRegisteredEmanifestUser?: boolean | null;
116
+ /**
117
+ *
118
+ * @type {boolean}
119
+ * @memberof RcraSite
120
+ */
121
+ gisPrimary?: boolean | null;
122
+ }
123
+
124
+
125
+ /**
126
+ * @export
127
+ */
128
+ export const RcraSiteSiteTypeEnum = {
129
+ Generator: 'Generator',
130
+ Transporter: 'Transporter',
131
+ Tsdf: 'Tsdf',
132
+ Broker: 'Broker'
133
+ } as const;
134
+ export type RcraSiteSiteTypeEnum = typeof RcraSiteSiteTypeEnum[keyof typeof RcraSiteSiteTypeEnum];
135
+
136
+
137
+ /**
138
+ * Check if a given object implements the RcraSite interface.
139
+ */
140
+ export function instanceOfRcraSite(value: object): value is RcraSite {
141
+ if (!('epaSiteId' in value) || value['epaSiteId'] === undefined) return false;
142
+ if (!('name' in value) || value['name'] === undefined) return false;
143
+ if (!('siteAddress' in value) || value['siteAddress'] === undefined) return false;
144
+ if (!('mailingAddress' in value) || value['mailingAddress'] === undefined) return false;
145
+ if (!('contact' in value) || value['contact'] === undefined) return false;
146
+ return true;
147
+ }
148
+
149
+ export function RcraSiteFromJSON(json: any): RcraSite {
150
+ return RcraSiteFromJSONTyped(json, false);
151
+ }
152
+
153
+ export function RcraSiteFromJSONTyped(json: any, ignoreDiscriminator: boolean): RcraSite {
154
+ if (json == null) {
155
+ return json;
156
+ }
157
+ return {
158
+
159
+ 'epaSiteId': json['epaSiteId'],
160
+ 'siteType': json['siteType'] == null ? undefined : json['siteType'],
161
+ 'modified': json['modified'] == null ? undefined : json['modified'],
162
+ 'name': json['name'],
163
+ 'siteAddress': RcraAddressFromJSON(json['siteAddress']),
164
+ 'mailingAddress': RcraAddressFromJSON(json['mailingAddress']),
165
+ 'contact': RcraContactFromJSON(json['contact']),
166
+ 'emergencyPhone': json['emergencyPhone'] == null ? undefined : RcraPhoneFromJSON(json['emergencyPhone']),
167
+ 'registered': json['registered'] == null ? undefined : json['registered'],
168
+ 'limitedEsign': json['limitedEsign'] == null ? undefined : json['limitedEsign'],
169
+ 'canEsign': json['canEsign'] == null ? undefined : json['canEsign'],
170
+ 'hasRegisteredEmanifestUser': json['hasRegisteredEmanifestUser'] == null ? undefined : json['hasRegisteredEmanifestUser'],
171
+ 'gisPrimary': json['gisPrimary'] == null ? undefined : json['gisPrimary'],
172
+ };
173
+ }
174
+
175
+ export function RcraSiteToJSON(json: any): RcraSite {
176
+ return RcraSiteToJSONTyped(json, false);
177
+ }
178
+
179
+ export function RcraSiteToJSONTyped(value?: RcraSite | null, ignoreDiscriminator: boolean = false): any {
180
+ if (value == null) {
181
+ return value;
182
+ }
183
+
184
+ return {
185
+
186
+ 'epaSiteId': value['epaSiteId'],
187
+ 'siteType': value['siteType'],
188
+ 'modified': value['modified'],
189
+ 'name': value['name'],
190
+ 'siteAddress': RcraAddressToJSON(value['siteAddress']),
191
+ 'mailingAddress': RcraAddressToJSON(value['mailingAddress']),
192
+ 'contact': RcraContactToJSON(value['contact']),
193
+ 'emergencyPhone': RcraPhoneToJSON(value['emergencyPhone']),
194
+ 'registered': value['registered'],
195
+ 'limitedEsign': value['limitedEsign'],
196
+ 'canEsign': value['canEsign'],
197
+ 'hasRegisteredEmanifestUser': value['hasRegisteredEmanifestUser'],
198
+ 'gisPrimary': value['gisPrimary'],
199
+ };
200
+ }
@@ -0,0 +1,121 @@
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
+ * RcrainfoSiteAccess model serializer.
18
+ *
19
+ * We use this internally because it's easier to handle,
20
+ * Using consistent naming, we have a separate serializer for user permissions from RCRAInfo.
21
+ * @export
22
+ * @interface RcraSitePermission
23
+ */
24
+ export interface RcraSitePermission {
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof RcraSitePermission
29
+ */
30
+ readonly epaSiteId: string;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof RcraSitePermission
35
+ */
36
+ siteManagement: boolean;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof RcraSitePermission
41
+ */
42
+ annualReport: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof RcraSitePermission
47
+ */
48
+ biennialReport: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof RcraSitePermission
53
+ */
54
+ eManifest: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof RcraSitePermission
59
+ */
60
+ wIETS: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof RcraSitePermission
65
+ */
66
+ myRCRAid: string;
67
+ }
68
+
69
+ /**
70
+ * Check if a given object implements the RcraSitePermission interface.
71
+ */
72
+ export function instanceOfRcraSitePermission(value: object): value is RcraSitePermission {
73
+ if (!('epaSiteId' in value) || value['epaSiteId'] === undefined) return false;
74
+ if (!('siteManagement' in value) || value['siteManagement'] === undefined) return false;
75
+ if (!('annualReport' in value) || value['annualReport'] === undefined) return false;
76
+ if (!('biennialReport' in value) || value['biennialReport'] === undefined) return false;
77
+ if (!('eManifest' in value) || value['eManifest'] === undefined) return false;
78
+ if (!('wIETS' in value) || value['wIETS'] === undefined) return false;
79
+ if (!('myRCRAid' in value) || value['myRCRAid'] === undefined) return false;
80
+ return true;
81
+ }
82
+
83
+ export function RcraSitePermissionFromJSON(json: any): RcraSitePermission {
84
+ return RcraSitePermissionFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function RcraSitePermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RcraSitePermission {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'epaSiteId': json['epaSiteId'],
94
+ 'siteManagement': json['siteManagement'],
95
+ 'annualReport': json['annualReport'],
96
+ 'biennialReport': json['biennialReport'],
97
+ 'eManifest': json['eManifest'],
98
+ 'wIETS': json['WIETS'],
99
+ 'myRCRAid': json['myRCRAid'],
100
+ };
101
+ }
102
+
103
+ export function RcraSitePermissionToJSON(json: any): RcraSitePermission {
104
+ return RcraSitePermissionToJSONTyped(json, false);
105
+ }
106
+
107
+ export function RcraSitePermissionToJSONTyped(value?: Omit<RcraSitePermission, 'epaSiteId'> | null, ignoreDiscriminator: boolean = false): any {
108
+ if (value == null) {
109
+ return value;
110
+ }
111
+
112
+ return {
113
+
114
+ 'siteManagement': value['siteManagement'],
115
+ 'annualReport': value['annualReport'],
116
+ 'biennialReport': value['biennialReport'],
117
+ 'eManifest': value['eManifest'],
118
+ 'WIETS': value['wIETS'],
119
+ 'myRCRAid': value['myRCRAid'],
120
+ };
121
+ }
@@ -0,0 +1,57 @@
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
+ * * `Generator` - Generator
18
+ * * `Transporter` - Transporter
19
+ * * `Tsdf` - Tsdf
20
+ * * `Broker` - Broker
21
+ * @export
22
+ */
23
+ export const RcraSiteSiteTypeEnum = {
24
+ Generator: 'Generator',
25
+ Transporter: 'Transporter',
26
+ Tsdf: 'Tsdf',
27
+ Broker: 'Broker'
28
+ } as const;
29
+ export type RcraSiteSiteTypeEnum = typeof RcraSiteSiteTypeEnum[keyof typeof RcraSiteSiteTypeEnum];
30
+
31
+
32
+ export function instanceOfRcraSiteSiteTypeEnum(value: any): boolean {
33
+ for (const key in RcraSiteSiteTypeEnum) {
34
+ if (Object.prototype.hasOwnProperty.call(RcraSiteSiteTypeEnum, key)) {
35
+ if (RcraSiteSiteTypeEnum[key as keyof typeof RcraSiteSiteTypeEnum] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+
43
+ export function RcraSiteSiteTypeEnumFromJSON(json: any): RcraSiteSiteTypeEnum {
44
+ return RcraSiteSiteTypeEnumFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function RcraSiteSiteTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RcraSiteSiteTypeEnum {
48
+ return json as RcraSiteSiteTypeEnum;
49
+ }
50
+
51
+ export function RcraSiteSiteTypeEnumToJSON(value?: RcraSiteSiteTypeEnum | null): any {
52
+ return value as any;
53
+ }
54
+
55
+ export function RcraSiteSiteTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): RcraSiteSiteTypeEnum {
56
+ return value as RcraSiteSiteTypeEnum;
57
+ }
@@ -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 { RcraSitePermission } from './RcraSitePermission';
17
+ import {
18
+ RcraSitePermissionFromJSON,
19
+ RcraSitePermissionFromJSONTyped,
20
+ RcraSitePermissionToJSON,
21
+ RcraSitePermissionToJSONTyped,
22
+ } from './RcraSitePermission';
23
+
24
+ /**
25
+ * Model serializer for marshalling/unmarshalling a user's RcrainfoProfile.
26
+ * @export
27
+ * @interface RcrainfoProfile
28
+ */
29
+ export interface RcrainfoProfile {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof RcrainfoProfile
34
+ */
35
+ readonly user: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof RcrainfoProfile
40
+ */
41
+ rcraAPIID?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof RcrainfoProfile
46
+ */
47
+ rcraAPIKey?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof RcrainfoProfile
52
+ */
53
+ rcraUsername?: string;
54
+ /**
55
+ *
56
+ * @type {Array<RcraSitePermission>}
57
+ * @memberof RcrainfoProfile
58
+ */
59
+ rcraSites?: Array<RcraSitePermission>;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof RcrainfoProfile
64
+ */
65
+ phoneNumber?: string;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof RcrainfoProfile
70
+ */
71
+ apiUser?: boolean;
72
+ }
73
+
74
+ /**
75
+ * Check if a given object implements the RcrainfoProfile interface.
76
+ */
77
+ export function instanceOfRcrainfoProfile(value: object): value is RcrainfoProfile {
78
+ if (!('user' in value) || value['user'] === undefined) return false;
79
+ return true;
80
+ }
81
+
82
+ export function RcrainfoProfileFromJSON(json: any): RcrainfoProfile {
83
+ return RcrainfoProfileFromJSONTyped(json, false);
84
+ }
85
+
86
+ export function RcrainfoProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): RcrainfoProfile {
87
+ if (json == null) {
88
+ return json;
89
+ }
90
+ return {
91
+
92
+ 'user': json['user'],
93
+ 'rcraAPIID': json['rcraAPIID'] == null ? undefined : json['rcraAPIID'],
94
+ 'rcraAPIKey': json['rcraAPIKey'] == null ? undefined : json['rcraAPIKey'],
95
+ 'rcraUsername': json['rcraUsername'] == null ? undefined : json['rcraUsername'],
96
+ 'rcraSites': json['rcraSites'] == null ? undefined : ((json['rcraSites'] as Array<any>).map(RcraSitePermissionFromJSON)),
97
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
98
+ 'apiUser': json['apiUser'] == null ? undefined : json['apiUser'],
99
+ };
100
+ }
101
+
102
+ export function RcrainfoProfileToJSON(json: any): RcrainfoProfile {
103
+ return RcrainfoProfileToJSONTyped(json, false);
104
+ }
105
+
106
+ export function RcrainfoProfileToJSONTyped(value?: Omit<RcrainfoProfile, 'user'> | null, ignoreDiscriminator: boolean = false): any {
107
+ if (value == null) {
108
+ return value;
109
+ }
110
+
111
+ return {
112
+
113
+ 'rcraAPIID': value['rcraAPIID'],
114
+ 'rcraAPIKey': value['rcraAPIKey'],
115
+ 'rcraUsername': value['rcraUsername'],
116
+ 'rcraSites': value['rcraSites'] == null ? undefined : ((value['rcraSites'] as Array<any>).map(RcraSitePermissionToJSON)),
117
+ 'phoneNumber': value['phoneNumber'],
118
+ 'apiUser': value['apiUser'],
119
+ };
120
+ }
@@ -0,0 +1,53 @@
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
+ * * `admin` - Administrator
18
+ * * `member` - Member
19
+ * @export
20
+ */
21
+ export const RoleEnum = {
22
+ Admin: 'admin',
23
+ Member: 'member'
24
+ } as const;
25
+ export type RoleEnum = typeof RoleEnum[keyof typeof RoleEnum];
26
+
27
+
28
+ export function instanceOfRoleEnum(value: any): boolean {
29
+ for (const key in RoleEnum) {
30
+ if (Object.prototype.hasOwnProperty.call(RoleEnum, key)) {
31
+ if (RoleEnum[key as keyof typeof RoleEnum] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function RoleEnumFromJSON(json: any): RoleEnum {
40
+ return RoleEnumFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function RoleEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleEnum {
44
+ return json as RoleEnum;
45
+ }
46
+
47
+ export function RoleEnumToJSON(value?: RoleEnum | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function RoleEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): RoleEnum {
52
+ return value as RoleEnum;
53
+ }