@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,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 { Team } from './Team';
17
+ import {
18
+ TeamFromJSON,
19
+ TeamFromJSONTyped,
20
+ TeamToJSON,
21
+ TeamToJSONTyped,
22
+ } from './Team';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PaginatedTeamList
28
+ */
29
+ export interface PaginatedTeamList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PaginatedTeamList
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaginatedTeamList
40
+ */
41
+ next?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaginatedTeamList
46
+ */
47
+ previous?: string | null;
48
+ /**
49
+ *
50
+ * @type {Array<Team>}
51
+ * @memberof PaginatedTeamList
52
+ */
53
+ results: Array<Team>;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PaginatedTeamList interface.
58
+ */
59
+ export function instanceOfPaginatedTeamList(value: object): value is PaginatedTeamList {
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 PaginatedTeamListFromJSON(json: any): PaginatedTeamList {
66
+ return PaginatedTeamListFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function PaginatedTeamListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTeamList {
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(TeamFromJSON)),
79
+ };
80
+ }
81
+
82
+ export function PaginatedTeamListToJSON(json: any): PaginatedTeamList {
83
+ return PaginatedTeamListToJSONTyped(json, false);
84
+ }
85
+
86
+ export function PaginatedTeamListToJSONTyped(value?: PaginatedTeamList | 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(TeamToJSON)),
97
+ };
98
+ }
@@ -0,0 +1,74 @@
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 Paper Signature on manifest.
18
+ *
19
+ * Indicates the change of custody with paper manifests.
20
+ * @export
21
+ * @interface PaperSignature
22
+ */
23
+ export interface PaperSignature {
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PaperSignature
28
+ */
29
+ printedName?: string;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof PaperSignature
34
+ */
35
+ signatureDate?: Date;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the PaperSignature interface.
40
+ */
41
+ export function instanceOfPaperSignature(value: object): value is PaperSignature {
42
+ return true;
43
+ }
44
+
45
+ export function PaperSignatureFromJSON(json: any): PaperSignature {
46
+ return PaperSignatureFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PaperSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaperSignature {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'printedName': json['printedName'] == null ? undefined : json['printedName'],
56
+ 'signatureDate': json['signatureDate'] == null ? undefined : (new Date(json['signatureDate'])),
57
+ };
58
+ }
59
+
60
+ export function PaperSignatureToJSON(json: any): PaperSignature {
61
+ return PaperSignatureToJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaperSignatureToJSONTyped(value?: PaperSignature | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'printedName': value['printedName'],
72
+ 'signatureDate': value['signatureDate'] == null ? value['signatureDate'] : value['signatureDate'].toISOString(),
73
+ };
74
+ }
@@ -0,0 +1,118 @@
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 PatchedEmployee
28
+ */
29
+ export interface PatchedEmployee {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PatchedEmployee
34
+ */
35
+ readonly id?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PatchedEmployee
40
+ */
41
+ readonly user?: number;
42
+ /**
43
+ * Your employee's name.
44
+ * @type {string}
45
+ * @memberof PatchedEmployee
46
+ */
47
+ name?: string;
48
+ /**
49
+ *
50
+ * @type {DepartmentEnum}
51
+ * @memberof PatchedEmployee
52
+ */
53
+ department?: DepartmentEnum;
54
+ /**
55
+ * Your employee's annual salary.
56
+ * @type {number}
57
+ * @memberof PatchedEmployee
58
+ */
59
+ salary?: number;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof PatchedEmployee
64
+ */
65
+ readonly createdAt?: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof PatchedEmployee
70
+ */
71
+ readonly updatedAt?: Date;
72
+ }
73
+
74
+
75
+
76
+ /**
77
+ * Check if a given object implements the PatchedEmployee interface.
78
+ */
79
+ export function instanceOfPatchedEmployee(value: object): value is PatchedEmployee {
80
+ return true;
81
+ }
82
+
83
+ export function PatchedEmployeeFromJSON(json: any): PatchedEmployee {
84
+ return PatchedEmployeeFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function PatchedEmployeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedEmployee {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'id': json['id'] == null ? undefined : json['id'],
94
+ 'user': json['user'] == null ? undefined : json['user'],
95
+ 'name': json['name'] == null ? undefined : json['name'],
96
+ 'department': json['department'] == null ? undefined : DepartmentEnumFromJSON(json['department']),
97
+ 'salary': json['salary'] == null ? undefined : json['salary'],
98
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
99
+ 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
100
+ };
101
+ }
102
+
103
+ export function PatchedEmployeeToJSON(json: any): PatchedEmployee {
104
+ return PatchedEmployeeToJSONTyped(json, false);
105
+ }
106
+
107
+ export function PatchedEmployeeToJSONTyped(value?: Omit<PatchedEmployee, 'id'|'user'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
108
+ if (value == null) {
109
+ return value;
110
+ }
111
+
112
+ return {
113
+
114
+ 'name': value['name'],
115
+ 'department': DepartmentEnumToJSON(value['department']),
116
+ 'salary': value['salary'],
117
+ };
118
+ }
@@ -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 { RoleEnum } from './RoleEnum';
17
+ import {
18
+ RoleEnumFromJSON,
19
+ RoleEnumFromJSONTyped,
20
+ RoleEnumToJSON,
21
+ RoleEnumToJSONTyped,
22
+ } from './RoleEnum';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PatchedInvitation
28
+ */
29
+ export interface PatchedInvitation {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PatchedInvitation
34
+ */
35
+ readonly id?: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PatchedInvitation
40
+ */
41
+ team?: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PatchedInvitation
46
+ */
47
+ email?: string;
48
+ /**
49
+ *
50
+ * @type {RoleEnum}
51
+ * @memberof PatchedInvitation
52
+ */
53
+ role?: RoleEnum;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof PatchedInvitation
58
+ */
59
+ readonly invitedBy?: string;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof PatchedInvitation
64
+ */
65
+ isAccepted?: boolean;
66
+ }
67
+
68
+
69
+
70
+ /**
71
+ * Check if a given object implements the PatchedInvitation interface.
72
+ */
73
+ export function instanceOfPatchedInvitation(value: object): value is PatchedInvitation {
74
+ return true;
75
+ }
76
+
77
+ export function PatchedInvitationFromJSON(json: any): PatchedInvitation {
78
+ return PatchedInvitationFromJSONTyped(json, false);
79
+ }
80
+
81
+ export function PatchedInvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedInvitation {
82
+ if (json == null) {
83
+ return json;
84
+ }
85
+ return {
86
+
87
+ 'id': json['id'] == null ? undefined : json['id'],
88
+ 'team': json['team'] == null ? undefined : json['team'],
89
+ 'email': json['email'] == null ? undefined : json['email'],
90
+ 'role': json['role'] == null ? undefined : RoleEnumFromJSON(json['role']),
91
+ 'invitedBy': json['invited_by'] == null ? undefined : json['invited_by'],
92
+ 'isAccepted': json['is_accepted'] == null ? undefined : json['is_accepted'],
93
+ };
94
+ }
95
+
96
+ export function PatchedInvitationToJSON(json: any): PatchedInvitation {
97
+ return PatchedInvitationToJSONTyped(json, false);
98
+ }
99
+
100
+ export function PatchedInvitationToJSONTyped(value?: Omit<PatchedInvitation, 'id'|'invited_by'> | null, ignoreDiscriminator: boolean = false): any {
101
+ if (value == null) {
102
+ return value;
103
+ }
104
+
105
+ return {
106
+
107
+ 'team': value['team'],
108
+ 'email': value['email'],
109
+ 'role': RoleEnumToJSON(value['role']),
110
+ 'is_accepted': value['isAccepted'],
111
+ };
112
+ }
@@ -0,0 +1,79 @@
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 PatchedProfile
28
+ */
29
+ export interface PatchedProfile {
30
+ /**
31
+ *
32
+ * @type {TrakUser}
33
+ * @memberof PatchedProfile
34
+ */
35
+ readonly user?: TrakUser;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PatchedProfile
40
+ */
41
+ avatar?: string | null;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the PatchedProfile interface.
46
+ */
47
+ export function instanceOfPatchedProfile(value: object): value is PatchedProfile {
48
+ return true;
49
+ }
50
+
51
+ export function PatchedProfileFromJSON(json: any): PatchedProfile {
52
+ return PatchedProfileFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function PatchedProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedProfile {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'user': json['user'] == null ? undefined : TrakUserFromJSON(json['user']),
62
+ 'avatar': json['avatar'] == null ? undefined : json['avatar'],
63
+ };
64
+ }
65
+
66
+ export function PatchedProfileToJSON(json: any): PatchedProfile {
67
+ return PatchedProfileToJSONTyped(json, false);
68
+ }
69
+
70
+ export function PatchedProfileToJSONTyped(value?: Omit<PatchedProfile, 'user'> | null, ignoreDiscriminator: boolean = false): any {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+
75
+ return {
76
+
77
+ 'avatar': value['avatar'],
78
+ };
79
+ }
@@ -0,0 +1,119 @@
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 PatchedRcrainfoProfile
28
+ */
29
+ export interface PatchedRcrainfoProfile {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PatchedRcrainfoProfile
34
+ */
35
+ readonly user?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PatchedRcrainfoProfile
40
+ */
41
+ rcraAPIID?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PatchedRcrainfoProfile
46
+ */
47
+ rcraAPIKey?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof PatchedRcrainfoProfile
52
+ */
53
+ rcraUsername?: string;
54
+ /**
55
+ *
56
+ * @type {Array<RcraSitePermission>}
57
+ * @memberof PatchedRcrainfoProfile
58
+ */
59
+ rcraSites?: Array<RcraSitePermission>;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof PatchedRcrainfoProfile
64
+ */
65
+ phoneNumber?: string;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof PatchedRcrainfoProfile
70
+ */
71
+ apiUser?: boolean;
72
+ }
73
+
74
+ /**
75
+ * Check if a given object implements the PatchedRcrainfoProfile interface.
76
+ */
77
+ export function instanceOfPatchedRcrainfoProfile(value: object): value is PatchedRcrainfoProfile {
78
+ return true;
79
+ }
80
+
81
+ export function PatchedRcrainfoProfileFromJSON(json: any): PatchedRcrainfoProfile {
82
+ return PatchedRcrainfoProfileFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function PatchedRcrainfoProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRcrainfoProfile {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'user': json['user'] == null ? undefined : json['user'],
92
+ 'rcraAPIID': json['rcraAPIID'] == null ? undefined : json['rcraAPIID'],
93
+ 'rcraAPIKey': json['rcraAPIKey'] == null ? undefined : json['rcraAPIKey'],
94
+ 'rcraUsername': json['rcraUsername'] == null ? undefined : json['rcraUsername'],
95
+ 'rcraSites': json['rcraSites'] == null ? undefined : ((json['rcraSites'] as Array<any>).map(RcraSitePermissionFromJSON)),
96
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
97
+ 'apiUser': json['apiUser'] == null ? undefined : json['apiUser'],
98
+ };
99
+ }
100
+
101
+ export function PatchedRcrainfoProfileToJSON(json: any): PatchedRcrainfoProfile {
102
+ return PatchedRcrainfoProfileToJSONTyped(json, false);
103
+ }
104
+
105
+ export function PatchedRcrainfoProfileToJSONTyped(value?: Omit<PatchedRcrainfoProfile, 'user'> | null, ignoreDiscriminator: boolean = false): any {
106
+ if (value == null) {
107
+ return value;
108
+ }
109
+
110
+ return {
111
+
112
+ 'rcraAPIID': value['rcraAPIID'],
113
+ 'rcraAPIKey': value['rcraAPIKey'],
114
+ 'rcraUsername': value['rcraUsername'],
115
+ 'rcraSites': value['rcraSites'] == null ? undefined : ((value['rcraSites'] as Array<any>).map(RcraSitePermissionToJSON)),
116
+ 'phoneNumber': value['phoneNumber'],
117
+ 'apiUser': value['apiUser'],
118
+ };
119
+ }