@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,43 @@
1
+
2
+ # TrakUser
3
+
4
+ Basic serializer to pass TrakUser details to the front end. Extend with any fields your app needs.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `firstName` | string
12
+ `lastName` | string
13
+ `email` | string
14
+ `avatarUrl` | string
15
+ `getDisplayName` | string
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { TrakUser } from ''
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "firstName": null,
26
+ "lastName": null,
27
+ "email": null,
28
+ "avatarUrl": null,
29
+ "getDisplayName": null,
30
+ } satisfies TrakUser
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as TrakUser
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[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,41 @@
1
+
2
+ # Transporter
3
+
4
+ Transporter model serializer for JSON marshalling/unmarshalling.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `rcraSite` | [RcraSite](RcraSite.md)
11
+ `order` | number
12
+ `paperSignatureInfo` | [PaperSignature](PaperSignature.md)
13
+ `electronicSignaturesInfo` | [Array<ESignature>](ESignature.md)
14
+ `signed` | boolean
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { Transporter } from ''
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "rcraSite": null,
24
+ "order": null,
25
+ "paperSignatureInfo": null,
26
+ "electronicSignaturesInfo": null,
27
+ "signed": null,
28
+ } satisfies Transporter
29
+
30
+ console.log(example)
31
+
32
+ // Convert the instance to a JSON string
33
+ const exampleJSON: string = JSON.stringify(example)
34
+ console.log(exampleJSON)
35
+
36
+ // Parse the JSON string back to an object
37
+ const exampleParsed = JSON.parse(exampleJSON) as Transporter
38
+ console.log(exampleParsed)
39
+ ```
40
+
41
+ [[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
+ # UserInvitationsResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `results` | [Array<OpenInvitation>](OpenInvitation.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { UserInvitationsResponse } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "results": null,
19
+ } satisfies UserInvitationsResponse
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 UserInvitationsResponse
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,55 @@
1
+
2
+ # WasteLine
3
+
4
+ Waste Line model serializer for interfacing with RCRAInfo.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `lineNumber` | number
11
+ `dotHazardous` | boolean
12
+ `dotInformation` | any
13
+ `quantity` | any
14
+ `hazardousWaste` | any
15
+ `br` | boolean
16
+ `brInfo` | any
17
+ `managementMethod` | any
18
+ `pcb` | boolean
19
+ `pcbInfos` | any
20
+ `discrepancyResidueInfo` | any
21
+ `epaWaste` | boolean
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import type { WasteLine } from ''
27
+
28
+ // TODO: Update the object below with actual values
29
+ const example = {
30
+ "lineNumber": null,
31
+ "dotHazardous": null,
32
+ "dotInformation": null,
33
+ "quantity": null,
34
+ "hazardousWaste": null,
35
+ "br": null,
36
+ "brInfo": null,
37
+ "managementMethod": null,
38
+ "pcb": null,
39
+ "pcbInfos": null,
40
+ "discrepancyResidueInfo": null,
41
+ "epaWaste": null,
42
+ } satisfies WasteLine
43
+
44
+ console.log(example)
45
+
46
+ // Convert the instance to a JSON string
47
+ const exampleJSON: string = JSON.stringify(example)
48
+ console.log(exampleJSON)
49
+
50
+ // Parse the JSON string back to an object
51
+ const exampleParsed = JSON.parse(exampleJSON) as WasteLine
52
+ console.log(exampleParsed)
53
+ ```
54
+
55
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
package/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -0,0 +1,96 @@
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
+ * Additional Info serializer.
18
+ * @export
19
+ * @interface AdditionalInfo
20
+ */
21
+ export interface AdditionalInfo {
22
+ /**
23
+ *
24
+ * @type {any}
25
+ * @memberof AdditionalInfo
26
+ */
27
+ originalManifestTrackingNumbers?: any | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AdditionalInfo
32
+ */
33
+ newManifestDestination?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AdditionalInfo
38
+ */
39
+ consentNumber?: string | null;
40
+ /**
41
+ *
42
+ * @type {any}
43
+ * @memberof AdditionalInfo
44
+ */
45
+ comments?: any | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AdditionalInfo
50
+ */
51
+ handlingInstructions?: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the AdditionalInfo interface.
56
+ */
57
+ export function instanceOfAdditionalInfo(value: object): value is AdditionalInfo {
58
+ return true;
59
+ }
60
+
61
+ export function AdditionalInfoFromJSON(json: any): AdditionalInfo {
62
+ return AdditionalInfoFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function AdditionalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdditionalInfo {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'originalManifestTrackingNumbers': json['originalManifestTrackingNumbers'] == null ? undefined : json['originalManifestTrackingNumbers'],
72
+ 'newManifestDestination': json['newManifestDestination'] == null ? undefined : json['newManifestDestination'],
73
+ 'consentNumber': json['consentNumber'] == null ? undefined : json['consentNumber'],
74
+ 'comments': json['comments'] == null ? undefined : json['comments'],
75
+ 'handlingInstructions': json['handlingInstructions'] == null ? undefined : json['handlingInstructions'],
76
+ };
77
+ }
78
+
79
+ export function AdditionalInfoToJSON(json: any): AdditionalInfo {
80
+ return AdditionalInfoToJSONTyped(json, false);
81
+ }
82
+
83
+ export function AdditionalInfoToJSONTyped(value?: AdditionalInfo | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'originalManifestTrackingNumbers': value['originalManifestTrackingNumbers'],
91
+ 'newManifestDestination': value['newManifestDestination'],
92
+ 'consentNumber': value['consentNumber'],
93
+ 'comments': value['comments'],
94
+ 'handlingInstructions': value['handlingInstructions'],
95
+ };
96
+ }
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * trak
5
+ * Hazardous waste tracking application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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 AggregateEmployeeData
20
+ */
21
+ export interface AggregateEmployeeData {
22
+ /**
23
+ *
24
+ * @type {any}
25
+ * @memberof AggregateEmployeeData
26
+ */
27
+ totalCosts: any | null;
28
+ /**
29
+ *
30
+ * @type {any}
31
+ * @memberof AggregateEmployeeData
32
+ */
33
+ averageSalaries: any | null;
34
+ /**
35
+ *
36
+ * @type {any}
37
+ * @memberof AggregateEmployeeData
38
+ */
39
+ headcounts: any | null;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AggregateEmployeeData interface.
44
+ */
45
+ export function instanceOfAggregateEmployeeData(value: object): value is AggregateEmployeeData {
46
+ if (!('totalCosts' in value) || value['totalCosts'] === undefined) return false;
47
+ if (!('averageSalaries' in value) || value['averageSalaries'] === undefined) return false;
48
+ if (!('headcounts' in value) || value['headcounts'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function AggregateEmployeeDataFromJSON(json: any): AggregateEmployeeData {
53
+ return AggregateEmployeeDataFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function AggregateEmployeeDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AggregateEmployeeData {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'totalCosts': json['total_costs'],
63
+ 'averageSalaries': json['average_salaries'],
64
+ 'headcounts': json['headcounts'],
65
+ };
66
+ }
67
+
68
+ export function AggregateEmployeeDataToJSON(json: any): AggregateEmployeeData {
69
+ return AggregateEmployeeDataToJSONTyped(json, false);
70
+ }
71
+
72
+ export function AggregateEmployeeDataToJSONTyped(value?: AggregateEmployeeData | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'total_costs': value['totalCosts'],
80
+ 'average_salaries': value['averageSalaries'],
81
+ 'headcounts': value['headcounts'],
82
+ };
83
+ }
@@ -0,0 +1,59 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * trak
5
+ * Hazardous waste tracking application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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
+ * * `hr` - Human Resources
18
+ * * `finance` - Finance
19
+ * * `engineering` - Engineering
20
+ * * `marketing` - Marketing
21
+ * * `sales` - Sales
22
+ * @export
23
+ */
24
+ export const DepartmentEnum = {
25
+ Hr: 'hr',
26
+ Finance: 'finance',
27
+ Engineering: 'engineering',
28
+ Marketing: 'marketing',
29
+ Sales: 'sales'
30
+ } as const;
31
+ export type DepartmentEnum = typeof DepartmentEnum[keyof typeof DepartmentEnum];
32
+
33
+
34
+ export function instanceOfDepartmentEnum(value: any): boolean {
35
+ for (const key in DepartmentEnum) {
36
+ if (Object.prototype.hasOwnProperty.call(DepartmentEnum, key)) {
37
+ if (DepartmentEnum[key as keyof typeof DepartmentEnum] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+
45
+ export function DepartmentEnumFromJSON(json: any): DepartmentEnum {
46
+ return DepartmentEnumFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DepartmentEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepartmentEnum {
50
+ return json as DepartmentEnum;
51
+ }
52
+
53
+ export function DepartmentEnumToJSON(value?: DepartmentEnum | null): any {
54
+ return value as any;
55
+ }
56
+
57
+ export function DepartmentEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): DepartmentEnum {
58
+ return value as DepartmentEnum;
59
+ }
@@ -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 { Signer } from './Signer';
17
+ import {
18
+ SignerFromJSON,
19
+ SignerFromJSONTyped,
20
+ SignerToJSON,
21
+ SignerToJSONTyped,
22
+ } from './Signer';
23
+
24
+ /**
25
+ * Serializer for Electronic Signature on manifest.
26
+ * @export
27
+ * @interface ESignature
28
+ */
29
+ export interface ESignature {
30
+ /**
31
+ *
32
+ * @type {Signer}
33
+ * @memberof ESignature
34
+ */
35
+ signer?: Signer;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ESignature
40
+ */
41
+ cromerrActivityId?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ESignature
46
+ */
47
+ cromerrDocumentId?: string;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof ESignature
52
+ */
53
+ signatureDate?: Date;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof ESignature
58
+ */
59
+ onBehalf?: boolean;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ESignature
64
+ */
65
+ order?: number;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the ESignature interface.
70
+ */
71
+ export function instanceOfESignature(value: object): value is ESignature {
72
+ return true;
73
+ }
74
+
75
+ export function ESignatureFromJSON(json: any): ESignature {
76
+ return ESignatureFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function ESignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): ESignature {
80
+ if (json == null) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'signer': json['signer'] == null ? undefined : SignerFromJSON(json['signer']),
86
+ 'cromerrActivityId': json['cromerrActivityId'] == null ? undefined : json['cromerrActivityId'],
87
+ 'cromerrDocumentId': json['cromerrDocumentId'] == null ? undefined : json['cromerrDocumentId'],
88
+ 'signatureDate': json['signatureDate'] == null ? undefined : (new Date(json['signatureDate'])),
89
+ 'onBehalf': json['onBehalf'] == null ? undefined : json['onBehalf'],
90
+ 'order': json['order'] == null ? undefined : json['order'],
91
+ };
92
+ }
93
+
94
+ export function ESignatureToJSON(json: any): ESignature {
95
+ return ESignatureToJSONTyped(json, false);
96
+ }
97
+
98
+ export function ESignatureToJSONTyped(value?: ESignature | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'signer': SignerToJSON(value['signer']),
106
+ 'cromerrActivityId': value['cromerrActivityId'],
107
+ 'cromerrDocumentId': value['cromerrDocumentId'],
108
+ 'signatureDate': value['signatureDate'] == null ? value['signatureDate'] : value['signatureDate'].toISOString(),
109
+ 'onBehalf': value['onBehalf'],
110
+ 'order': value['order'],
111
+ };
112
+ }
@@ -0,0 +1,125 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * trak
5
+ * Hazardous waste tracking application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
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 { DepartmentEnum } from './DepartmentEnum';
17
+ import {
18
+ DepartmentEnumFromJSON,
19
+ DepartmentEnumFromJSONTyped,
20
+ DepartmentEnumToJSON,
21
+ DepartmentEnumToJSONTyped,
22
+ } from './DepartmentEnum';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface Employee
28
+ */
29
+ export interface Employee {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof Employee
34
+ */
35
+ readonly id: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof Employee
40
+ */
41
+ readonly user: number;
42
+ /**
43
+ * Your employee's name.
44
+ * @type {string}
45
+ * @memberof Employee
46
+ */
47
+ name: string;
48
+ /**
49
+ *
50
+ * @type {DepartmentEnum}
51
+ * @memberof Employee
52
+ */
53
+ department: DepartmentEnum;
54
+ /**
55
+ * Your employee's annual salary.
56
+ * @type {number}
57
+ * @memberof Employee
58
+ */
59
+ salary: number;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof Employee
64
+ */
65
+ readonly createdAt: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof Employee
70
+ */
71
+ readonly updatedAt: Date;
72
+ }
73
+
74
+
75
+
76
+ /**
77
+ * Check if a given object implements the Employee interface.
78
+ */
79
+ export function instanceOfEmployee(value: object): value is Employee {
80
+ if (!('id' in value) || value['id'] === undefined) return false;
81
+ if (!('user' in value) || value['user'] === undefined) return false;
82
+ if (!('name' in value) || value['name'] === undefined) return false;
83
+ if (!('department' in value) || value['department'] === undefined) return false;
84
+ if (!('salary' in value) || value['salary'] === undefined) return false;
85
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
86
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function EmployeeFromJSON(json: any): Employee {
91
+ return EmployeeFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function EmployeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Employee {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'id': json['id'],
101
+ 'user': json['user'],
102
+ 'name': json['name'],
103
+ 'department': DepartmentEnumFromJSON(json['department']),
104
+ 'salary': json['salary'],
105
+ 'createdAt': (new Date(json['created_at'])),
106
+ 'updatedAt': (new Date(json['updated_at'])),
107
+ };
108
+ }
109
+
110
+ export function EmployeeToJSON(json: any): Employee {
111
+ return EmployeeToJSONTyped(json, false);
112
+ }
113
+
114
+ export function EmployeeToJSONTyped(value?: Omit<Employee, 'id'|'user'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
115
+ if (value == null) {
116
+ return value;
117
+ }
118
+
119
+ return {
120
+
121
+ 'name': value['name'],
122
+ 'department': DepartmentEnumToJSON(value['department']),
123
+ 'salary': value['salary'],
124
+ };
125
+ }