@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,88 @@
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 OpenInvitation
20
+ */
21
+ export interface OpenInvitation {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof OpenInvitation
26
+ */
27
+ readonly id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof OpenInvitation
32
+ */
33
+ readonly teamName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof OpenInvitation
38
+ */
39
+ readonly email: string;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof OpenInvitation
44
+ */
45
+ readonly verified: boolean;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the OpenInvitation interface.
50
+ */
51
+ export function instanceOfOpenInvitation(value: object): value is OpenInvitation {
52
+ if (!('id' in value) || value['id'] === undefined) return false;
53
+ if (!('teamName' in value) || value['teamName'] === undefined) return false;
54
+ if (!('email' in value) || value['email'] === undefined) return false;
55
+ if (!('verified' in value) || value['verified'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function OpenInvitationFromJSON(json: any): OpenInvitation {
60
+ return OpenInvitationFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function OpenInvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenInvitation {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'id': json['id'],
70
+ 'teamName': json['team_name'],
71
+ 'email': json['email'],
72
+ 'verified': json['verified'],
73
+ };
74
+ }
75
+
76
+ export function OpenInvitationToJSON(json: any): OpenInvitation {
77
+ return OpenInvitationToJSONTyped(json, false);
78
+ }
79
+
80
+ export function OpenInvitationToJSONTyped(value?: Omit<OpenInvitation, 'id'|'team_name'|'email'|'verified'> | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ };
88
+ }
package/models/Org.ts ADDED
@@ -0,0 +1,88 @@
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
+ * Organization Model Serializer.
18
+ * @export
19
+ * @interface Org
20
+ */
21
+ export interface Org {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Org
26
+ */
27
+ name?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Org
32
+ */
33
+ id?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Org
38
+ */
39
+ slug?: string;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof Org
44
+ */
45
+ rcrainfoIntegrated?: boolean;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the Org interface.
50
+ */
51
+ export function instanceOfOrg(value: object): value is Org {
52
+ return true;
53
+ }
54
+
55
+ export function OrgFromJSON(json: any): Org {
56
+ return OrgFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function OrgFromJSONTyped(json: any, ignoreDiscriminator: boolean): Org {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'name': json['name'] == null ? undefined : json['name'],
66
+ 'id': json['id'] == null ? undefined : json['id'],
67
+ 'slug': json['slug'] == null ? undefined : json['slug'],
68
+ 'rcrainfoIntegrated': json['rcrainfoIntegrated'] == null ? undefined : json['rcrainfoIntegrated'],
69
+ };
70
+ }
71
+
72
+ export function OrgToJSON(json: any): Org {
73
+ return OrgToJSONTyped(json, false);
74
+ }
75
+
76
+ export function OrgToJSONTyped(value?: Org | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'name': value['name'],
84
+ 'id': value['id'],
85
+ 'slug': value['slug'],
86
+ 'rcrainfoIntegrated': value['rcrainfoIntegrated'],
87
+ };
88
+ }
@@ -0,0 +1,98 @@
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 { Employee } from './Employee';
17
+ import {
18
+ EmployeeFromJSON,
19
+ EmployeeFromJSONTyped,
20
+ EmployeeToJSON,
21
+ EmployeeToJSONTyped,
22
+ } from './Employee';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedEmployeeList
28
+ */
29
+ export interface PaginatedEmployeeList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedEmployeeList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedEmployeeList
40
+ */
41
+ next?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedEmployeeList
46
+ */
47
+ previous?: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<Employee>}
51
+ * @memberof PaginatedEmployeeList
52
+ */
53
+ results: Array<Employee>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedEmployeeList interface.
58
+ */
59
+ export function instanceOfPaginatedEmployeeList(value: object): value is PaginatedEmployeeList {
60
+ if (!('count' in value) || value['count'] === undefined) return false;
61
+ if (!('results' in value) || value['results'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function PaginatedEmployeeListFromJSON(json: any): PaginatedEmployeeList {
66
+ return PaginatedEmployeeListFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function PaginatedEmployeeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEmployeeList {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'count': json['count'],
76
+ 'next': json['next'] == null ? undefined : json['next'],
77
+ 'previous': json['previous'] == null ? undefined : json['previous'],
78
+ 'results': ((json['results'] as Array<any>).map(EmployeeFromJSON)),
79
+ };
80
+ }
81
+
82
+ export function PaginatedEmployeeListToJSON(json: any): PaginatedEmployeeList {
83
+ return PaginatedEmployeeListToJSONTyped(json, false);
84
+ }
85
+
86
+ export function PaginatedEmployeeListToJSONTyped(value?: PaginatedEmployeeList | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'count': value['count'],
94
+ 'next': value['next'],
95
+ 'previous': value['previous'],
96
+ 'results': ((value['results'] as Array<any>).map(EmployeeToJSON)),
97
+ };
98
+ }
@@ -0,0 +1,98 @@
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
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedInvitationList
28
+ */
29
+ export interface PaginatedInvitationList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedInvitationList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedInvitationList
40
+ */
41
+ next?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedInvitationList
46
+ */
47
+ previous?: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<Invitation>}
51
+ * @memberof PaginatedInvitationList
52
+ */
53
+ results: Array<Invitation>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedInvitationList interface.
58
+ */
59
+ export function instanceOfPaginatedInvitationList(value: object): value is PaginatedInvitationList {
60
+ if (!('count' in value) || value['count'] === undefined) return false;
61
+ if (!('results' in value) || value['results'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function PaginatedInvitationListFromJSON(json: any): PaginatedInvitationList {
66
+ return PaginatedInvitationListFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function PaginatedInvitationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedInvitationList {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'count': json['count'],
76
+ 'next': json['next'] == null ? undefined : json['next'],
77
+ 'previous': json['previous'] == null ? undefined : json['previous'],
78
+ 'results': ((json['results'] as Array<any>).map(InvitationFromJSON)),
79
+ };
80
+ }
81
+
82
+ export function PaginatedInvitationListToJSON(json: any): PaginatedInvitationList {
83
+ return PaginatedInvitationListToJSONTyped(json, false);
84
+ }
85
+
86
+ export function PaginatedInvitationListToJSONTyped(value?: PaginatedInvitationList | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'count': value['count'],
94
+ 'next': value['next'],
95
+ 'previous': value['previous'],
96
+ 'results': ((value['results'] as Array<any>).map(InvitationToJSON)),
97
+ };
98
+ }
@@ -0,0 +1,98 @@
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 { Mtn } from './Mtn';
17
+ import {
18
+ MtnFromJSON,
19
+ MtnFromJSONTyped,
20
+ MtnToJSON,
21
+ MtnToJSONTyped,
22
+ } from './Mtn';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedMtnList
28
+ */
29
+ export interface PaginatedMtnList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedMtnList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedMtnList
40
+ */
41
+ next?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedMtnList
46
+ */
47
+ previous?: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<Mtn>}
51
+ * @memberof PaginatedMtnList
52
+ */
53
+ results: Array<Mtn>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedMtnList interface.
58
+ */
59
+ export function instanceOfPaginatedMtnList(value: object): value is PaginatedMtnList {
60
+ if (!('count' in value) || value['count'] === undefined) return false;
61
+ if (!('results' in value) || value['results'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function PaginatedMtnListFromJSON(json: any): PaginatedMtnList {
66
+ return PaginatedMtnListFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function PaginatedMtnListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedMtnList {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'count': json['count'],
76
+ 'next': json['next'] == null ? undefined : json['next'],
77
+ 'previous': json['previous'] == null ? undefined : json['previous'],
78
+ 'results': ((json['results'] as Array<any>).map(MtnFromJSON)),
79
+ };
80
+ }
81
+
82
+ export function PaginatedMtnListToJSON(json: any): PaginatedMtnList {
83
+ return PaginatedMtnListToJSONTyped(json, false);
84
+ }
85
+
86
+ export function PaginatedMtnListToJSONTyped(value?: PaginatedMtnList | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'count': value['count'],
94
+ 'next': value['next'],
95
+ 'previous': value['previous'],
96
+ 'results': ((value['results'] as Array<any>).map(MtnToJSON)),
97
+ };
98
+ }
@@ -0,0 +1,98 @@
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 { Org } from './Org';
17
+ import {
18
+ OrgFromJSON,
19
+ OrgFromJSONTyped,
20
+ OrgToJSON,
21
+ OrgToJSONTyped,
22
+ } from './Org';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedOrgList
28
+ */
29
+ export interface PaginatedOrgList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedOrgList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedOrgList
40
+ */
41
+ next?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedOrgList
46
+ */
47
+ previous?: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<Org>}
51
+ * @memberof PaginatedOrgList
52
+ */
53
+ results: Array<Org>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedOrgList interface.
58
+ */
59
+ export function instanceOfPaginatedOrgList(value: object): value is PaginatedOrgList {
60
+ if (!('count' in value) || value['count'] === undefined) return false;
61
+ if (!('results' in value) || value['results'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function PaginatedOrgListFromJSON(json: any): PaginatedOrgList {
66
+ return PaginatedOrgListFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function PaginatedOrgListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedOrgList {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'count': json['count'],
76
+ 'next': json['next'] == null ? undefined : json['next'],
77
+ 'previous': json['previous'] == null ? undefined : json['previous'],
78
+ 'results': ((json['results'] as Array<any>).map(OrgFromJSON)),
79
+ };
80
+ }
81
+
82
+ export function PaginatedOrgListToJSON(json: any): PaginatedOrgList {
83
+ return PaginatedOrgListToJSONTyped(json, false);
84
+ }
85
+
86
+ export function PaginatedOrgListToJSONTyped(value?: PaginatedOrgList | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'count': value['count'],
94
+ 'next': value['next'],
95
+ 'previous': value['previous'],
96
+ 'results': ((value['results'] as Array<any>).map(OrgToJSON)),
97
+ };
98
+ }
@@ -0,0 +1,98 @@
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 { Site } from './Site';
17
+ import {
18
+ SiteFromJSON,
19
+ SiteFromJSONTyped,
20
+ SiteToJSON,
21
+ SiteToJSONTyped,
22
+ } from './Site';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedSiteList
28
+ */
29
+ export interface PaginatedSiteList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedSiteList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedSiteList
40
+ */
41
+ next?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedSiteList
46
+ */
47
+ previous?: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<Site>}
51
+ * @memberof PaginatedSiteList
52
+ */
53
+ results: Array<Site>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedSiteList interface.
58
+ */
59
+ export function instanceOfPaginatedSiteList(value: object): value is PaginatedSiteList {
60
+ if (!('count' in value) || value['count'] === undefined) return false;
61
+ if (!('results' in value) || value['results'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function PaginatedSiteListFromJSON(json: any): PaginatedSiteList {
66
+ return PaginatedSiteListFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function PaginatedSiteListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSiteList {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'count': json['count'],
76
+ 'next': json['next'] == null ? undefined : json['next'],
77
+ 'previous': json['previous'] == null ? undefined : json['previous'],
78
+ 'results': ((json['results'] as Array<any>).map(SiteFromJSON)),
79
+ };
80
+ }
81
+
82
+ export function PaginatedSiteListToJSON(json: any): PaginatedSiteList {
83
+ return PaginatedSiteListToJSONTyped(json, false);
84
+ }
85
+
86
+ export function PaginatedSiteListToJSONTyped(value?: PaginatedSiteList | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'count': value['count'],
94
+ 'next': value['next'],
95
+ 'previous': value['previous'],
96
+ 'results': ((value['results'] as Array<any>).map(SiteToJSON)),
97
+ };
98
+ }