@vaultgig/vaultgig-api-client 0.0.1

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 (95) hide show
  1. package/README.md +135 -0
  2. package/dist/apis/ContractorsApi.d.ts +78 -0
  3. package/dist/apis/ContractorsApi.js +302 -0
  4. package/dist/apis/SchemaApi.d.ts +27 -0
  5. package/dist/apis/SchemaApi.js +129 -0
  6. package/dist/apis/index.d.ts +2 -0
  7. package/dist/apis/index.js +20 -0
  8. package/dist/index.d.ts +3 -0
  9. package/dist/index.js +21 -0
  10. package/dist/models/BusinessClassification.d.ts +32 -0
  11. package/dist/models/BusinessClassification.js +58 -0
  12. package/dist/models/ContractorCreateData.d.ts +32 -0
  13. package/dist/models/ContractorCreateData.js +51 -0
  14. package/dist/models/ContractorCreatePayload.d.ts +51 -0
  15. package/dist/models/ContractorCreatePayload.js +64 -0
  16. package/dist/models/ContractorData.d.ts +33 -0
  17. package/dist/models/ContractorData.js +52 -0
  18. package/dist/models/ContractorResponse.d.ts +88 -0
  19. package/dist/models/ContractorResponse.js +75 -0
  20. package/dist/models/ContractorStatus.d.ts +28 -0
  21. package/dist/models/ContractorStatus.js +54 -0
  22. package/dist/models/ContractorType.d.ts +25 -0
  23. package/dist/models/ContractorType.js +51 -0
  24. package/dist/models/ContractorUpdatePayload.d.ts +106 -0
  25. package/dist/models/ContractorUpdatePayload.js +77 -0
  26. package/dist/models/HTTPValidationError.d.ts +33 -0
  27. package/dist/models/HTTPValidationError.js +50 -0
  28. package/dist/models/PaginatedResponseContractorResponse.d.ts +52 -0
  29. package/dist/models/PaginatedResponseContractorResponse.js +61 -0
  30. package/dist/models/PaginationMeta.d.ts +44 -0
  31. package/dist/models/PaginationMeta.js +59 -0
  32. package/dist/models/ResponseContractorCreateData.d.ts +45 -0
  33. package/dist/models/ResponseContractorCreateData.js +56 -0
  34. package/dist/models/ResponseContractorData.d.ts +45 -0
  35. package/dist/models/ResponseContractorData.js +56 -0
  36. package/dist/models/ResponsePaginatedResponseContractorResponse.d.ts +45 -0
  37. package/dist/models/ResponsePaginatedResponseContractorResponse.js +56 -0
  38. package/dist/models/SuccessResponse.d.ts +38 -0
  39. package/dist/models/SuccessResponse.js +53 -0
  40. package/dist/models/TinType.d.ts +25 -0
  41. package/dist/models/TinType.js +51 -0
  42. package/dist/models/ValidationError.d.ts +45 -0
  43. package/dist/models/ValidationError.js +60 -0
  44. package/dist/models/ValidationErrorLocInner.d.ts +26 -0
  45. package/dist/models/ValidationErrorLocInner.js +39 -0
  46. package/dist/models/index.d.ts +18 -0
  47. package/dist/models/index.js +36 -0
  48. package/dist/runtime.d.ts +184 -0
  49. package/dist/runtime.js +564 -0
  50. package/docs/BusinessClassification.md +33 -0
  51. package/docs/ContractorCreateData.md +35 -0
  52. package/docs/ContractorCreatePayload.md +41 -0
  53. package/docs/ContractorData.md +35 -0
  54. package/docs/ContractorResponse.md +53 -0
  55. package/docs/ContractorStatus.md +33 -0
  56. package/docs/ContractorType.md +33 -0
  57. package/docs/ContractorUpdatePayload.md +59 -0
  58. package/docs/ContractorsApi.md +308 -0
  59. package/docs/HTTPValidationError.md +34 -0
  60. package/docs/PaginatedResponseContractorResponse.md +40 -0
  61. package/docs/PaginationMeta.md +39 -0
  62. package/docs/ResponseContractorCreateData.md +38 -0
  63. package/docs/ResponseContractorData.md +38 -0
  64. package/docs/ResponsePaginatedResponseContractorResponse.md +38 -0
  65. package/docs/SchemaApi.md +68 -0
  66. package/docs/SuccessResponse.md +37 -0
  67. package/docs/TinType.md +33 -0
  68. package/docs/ValidationError.md +38 -0
  69. package/docs/ValidationErrorLocInner.md +32 -0
  70. package/package.json +19 -0
  71. package/src/apis/ContractorsApi.ts +280 -0
  72. package/src/apis/SchemaApi.ts +58 -0
  73. package/src/apis/index.ts +4 -0
  74. package/src/index.ts +5 -0
  75. package/src/models/BusinessClassification.ts +60 -0
  76. package/src/models/ContractorCreateData.ts +66 -0
  77. package/src/models/ContractorCreatePayload.ts +103 -0
  78. package/src/models/ContractorData.ts +74 -0
  79. package/src/models/ContractorResponse.ts +157 -0
  80. package/src/models/ContractorStatus.ts +56 -0
  81. package/src/models/ContractorType.ts +53 -0
  82. package/src/models/ContractorUpdatePayload.ts +179 -0
  83. package/src/models/HTTPValidationError.ts +73 -0
  84. package/src/models/PaginatedResponseContractorResponse.ts +106 -0
  85. package/src/models/PaginationMeta.ts +84 -0
  86. package/src/models/ResponseContractorCreateData.ts +90 -0
  87. package/src/models/ResponseContractorData.ts +90 -0
  88. package/src/models/ResponsePaginatedResponseContractorResponse.ts +90 -0
  89. package/src/models/SuccessResponse.ts +74 -0
  90. package/src/models/TinType.ts +53 -0
  91. package/src/models/ValidationError.ts +92 -0
  92. package/src/models/ValidationErrorLocInner.ts +46 -0
  93. package/src/models/index.ts +20 -0
  94. package/src/runtime.ts +432 -0
  95. package/tsconfig.json +20 -0
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * VaultGig API
5
+ * API for VaultGig contractor management system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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
+ * Enumeration of possible business types.
18
+ * @export
19
+ */
20
+ export const BusinessClassification = {
21
+ SoleProprietor: 'sole_proprietor',
22
+ CCorp: 'c-corp',
23
+ SCorp: 's-corp',
24
+ Partnership: 'partnership',
25
+ Trust: 'trust',
26
+ LlcC: 'llc-c',
27
+ LlcS: 'llc-s',
28
+ LlcP: 'llc-p',
29
+ Other: 'other'
30
+ } as const;
31
+ export type BusinessClassification = typeof BusinessClassification[keyof typeof BusinessClassification];
32
+
33
+
34
+ export function instanceOfBusinessClassification(value: any): boolean {
35
+ for (const key in BusinessClassification) {
36
+ if (Object.prototype.hasOwnProperty.call(BusinessClassification, key)) {
37
+ if (BusinessClassification[key as keyof typeof BusinessClassification] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+
45
+ export function BusinessClassificationFromJSON(json: any): BusinessClassification {
46
+ return BusinessClassificationFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function BusinessClassificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessClassification {
50
+ return json as BusinessClassification;
51
+ }
52
+
53
+ export function BusinessClassificationToJSON(value?: BusinessClassification | null): any {
54
+ return value as any;
55
+ }
56
+
57
+ export function BusinessClassificationToJSONTyped(value: any, ignoreDiscriminator: boolean): BusinessClassification {
58
+ return value as BusinessClassification;
59
+ }
60
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * VaultGig API
5
+ * API for VaultGig contractor management system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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
+ * Response model for a contractor create response.
18
+ * @export
19
+ * @interface ContractorCreateData
20
+ */
21
+ export interface ContractorCreateData {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ContractorCreateData
26
+ */
27
+ contractorId: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ContractorCreateData interface.
32
+ */
33
+ export function instanceOfContractorCreateData(value: object): value is ContractorCreateData {
34
+ if (!('contractorId' in value) || value['contractorId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ContractorCreateDataFromJSON(json: any): ContractorCreateData {
39
+ return ContractorCreateDataFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ContractorCreateDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorCreateData {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'contractorId': json['contractor_id'],
49
+ };
50
+ }
51
+
52
+ export function ContractorCreateDataToJSON(json: any): ContractorCreateData {
53
+ return ContractorCreateDataToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ContractorCreateDataToJSONTyped(value?: ContractorCreateData | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'contractor_id': value['contractorId'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,103 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * VaultGig API
5
+ * API for VaultGig contractor management system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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 { ContractorType } from './ContractorType';
17
+ import {
18
+ ContractorTypeFromJSON,
19
+ ContractorTypeFromJSONTyped,
20
+ ContractorTypeToJSON,
21
+ ContractorTypeToJSONTyped,
22
+ } from './ContractorType';
23
+
24
+ /**
25
+ * Model representing contractor data received from the client to create.
26
+ * @export
27
+ * @interface ContractorCreatePayload
28
+ */
29
+ export interface ContractorCreatePayload {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ContractorCreatePayload
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ContractorCreatePayload
40
+ */
41
+ email: string;
42
+ /**
43
+ *
44
+ * @type {ContractorType}
45
+ * @memberof ContractorCreatePayload
46
+ */
47
+ contractorType: ContractorType;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof ContractorCreatePayload
52
+ */
53
+ sendInvite: boolean;
54
+ }
55
+
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the ContractorCreatePayload interface.
60
+ */
61
+ export function instanceOfContractorCreatePayload(value: object): value is ContractorCreatePayload {
62
+ if (!('name' in value) || value['name'] === undefined) return false;
63
+ if (!('email' in value) || value['email'] === undefined) return false;
64
+ if (!('contractorType' in value) || value['contractorType'] === undefined) return false;
65
+ if (!('sendInvite' in value) || value['sendInvite'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function ContractorCreatePayloadFromJSON(json: any): ContractorCreatePayload {
70
+ return ContractorCreatePayloadFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function ContractorCreatePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorCreatePayload {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'name': json['name'],
80
+ 'email': json['email'],
81
+ 'contractorType': ContractorTypeFromJSON(json['contractor_type']),
82
+ 'sendInvite': json['send_invite'],
83
+ };
84
+ }
85
+
86
+ export function ContractorCreatePayloadToJSON(json: any): ContractorCreatePayload {
87
+ return ContractorCreatePayloadToJSONTyped(json, false);
88
+ }
89
+
90
+ export function ContractorCreatePayloadToJSONTyped(value?: ContractorCreatePayload | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'name': value['name'],
98
+ 'email': value['email'],
99
+ 'contractor_type': ContractorTypeToJSON(value['contractorType']),
100
+ 'send_invite': value['sendInvite'],
101
+ };
102
+ }
103
+
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * VaultGig API
5
+ * API for VaultGig contractor management system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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 { ContractorResponse } from './ContractorResponse';
17
+ import {
18
+ ContractorResponseFromJSON,
19
+ ContractorResponseFromJSONTyped,
20
+ ContractorResponseToJSON,
21
+ ContractorResponseToJSONTyped,
22
+ } from './ContractorResponse';
23
+
24
+ /**
25
+ * Model representing a contractor response.
26
+ * @export
27
+ * @interface ContractorData
28
+ */
29
+ export interface ContractorData {
30
+ /**
31
+ *
32
+ * @type {ContractorResponse}
33
+ * @memberof ContractorData
34
+ */
35
+ contractor: ContractorResponse;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ContractorData interface.
40
+ */
41
+ export function instanceOfContractorData(value: object): value is ContractorData {
42
+ if (!('contractor' in value) || value['contractor'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function ContractorDataFromJSON(json: any): ContractorData {
47
+ return ContractorDataFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function ContractorDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorData {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'contractor': ContractorResponseFromJSON(json['contractor']),
57
+ };
58
+ }
59
+
60
+ export function ContractorDataToJSON(json: any): ContractorData {
61
+ return ContractorDataToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ContractorDataToJSONTyped(value?: ContractorData | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'contractor': ContractorResponseToJSON(value['contractor']),
72
+ };
73
+ }
74
+
@@ -0,0 +1,157 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * VaultGig API
5
+ * API for VaultGig contractor management system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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 { ContractorStatus } from './ContractorStatus';
17
+ import {
18
+ ContractorStatusFromJSON,
19
+ ContractorStatusFromJSONTyped,
20
+ ContractorStatusToJSON,
21
+ ContractorStatusToJSONTyped,
22
+ } from './ContractorStatus';
23
+ import type { ContractorType } from './ContractorType';
24
+ import {
25
+ ContractorTypeFromJSON,
26
+ ContractorTypeFromJSONTyped,
27
+ ContractorTypeToJSON,
28
+ ContractorTypeToJSONTyped,
29
+ } from './ContractorType';
30
+
31
+ /**
32
+ * Response model representing a contractor.
33
+ * @export
34
+ * @interface ContractorResponse
35
+ */
36
+ export interface ContractorResponse {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ContractorResponse
41
+ */
42
+ id: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ContractorResponse
47
+ */
48
+ clerkUserId?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ContractorResponse
53
+ */
54
+ fullName?: string | null;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ContractorResponse
59
+ */
60
+ businessName?: string | null;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ContractorResponse
65
+ */
66
+ email: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof ContractorResponse
71
+ */
72
+ phoneNumber?: string | null;
73
+ /**
74
+ *
75
+ * @type {ContractorStatus}
76
+ * @memberof ContractorResponse
77
+ */
78
+ status?: ContractorStatus;
79
+ /**
80
+ *
81
+ * @type {ContractorType}
82
+ * @memberof ContractorResponse
83
+ */
84
+ contractorType?: ContractorType;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof ContractorResponse
89
+ */
90
+ lastPayment?: Date | null;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof ContractorResponse
95
+ */
96
+ organizationId: string;
97
+ }
98
+
99
+
100
+
101
+ /**
102
+ * Check if a given object implements the ContractorResponse interface.
103
+ */
104
+ export function instanceOfContractorResponse(value: object): value is ContractorResponse {
105
+ if (!('id' in value) || value['id'] === undefined) return false;
106
+ if (!('email' in value) || value['email'] === undefined) return false;
107
+ if (!('organizationId' in value) || value['organizationId'] === undefined) return false;
108
+ return true;
109
+ }
110
+
111
+ export function ContractorResponseFromJSON(json: any): ContractorResponse {
112
+ return ContractorResponseFromJSONTyped(json, false);
113
+ }
114
+
115
+ export function ContractorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorResponse {
116
+ if (json == null) {
117
+ return json;
118
+ }
119
+ return {
120
+
121
+ 'id': json['id'],
122
+ 'clerkUserId': json['clerk_user_id'] == null ? undefined : json['clerk_user_id'],
123
+ 'fullName': json['full_name'] == null ? undefined : json['full_name'],
124
+ 'businessName': json['business_name'] == null ? undefined : json['business_name'],
125
+ 'email': json['email'],
126
+ 'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
127
+ 'status': json['status'] == null ? undefined : ContractorStatusFromJSON(json['status']),
128
+ 'contractorType': json['contractor_type'] == null ? undefined : ContractorTypeFromJSON(json['contractor_type']),
129
+ 'lastPayment': json['last_payment'] == null ? undefined : (new Date(json['last_payment'])),
130
+ 'organizationId': json['organization_id'],
131
+ };
132
+ }
133
+
134
+ export function ContractorResponseToJSON(json: any): ContractorResponse {
135
+ return ContractorResponseToJSONTyped(json, false);
136
+ }
137
+
138
+ export function ContractorResponseToJSONTyped(value?: ContractorResponse | null, ignoreDiscriminator: boolean = false): any {
139
+ if (value == null) {
140
+ return value;
141
+ }
142
+
143
+ return {
144
+
145
+ 'id': value['id'],
146
+ 'clerk_user_id': value['clerkUserId'],
147
+ 'full_name': value['fullName'],
148
+ 'business_name': value['businessName'],
149
+ 'email': value['email'],
150
+ 'phone_number': value['phoneNumber'],
151
+ 'status': ContractorStatusToJSON(value['status']),
152
+ 'contractor_type': ContractorTypeToJSON(value['contractorType']),
153
+ 'last_payment': value['lastPayment'] == null ? value['lastPayment'] : value['lastPayment'].toISOString(),
154
+ 'organization_id': value['organizationId'],
155
+ };
156
+ }
157
+
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * VaultGig API
5
+ * API for VaultGig contractor management system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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
+ * Status of contractor.
18
+ * @export
19
+ */
20
+ export const ContractorStatus = {
21
+ Active: 'active',
22
+ Invited: 'invited',
23
+ Error: 'error',
24
+ Archived: 'archived',
25
+ Pending: 'pending'
26
+ } as const;
27
+ export type ContractorStatus = typeof ContractorStatus[keyof typeof ContractorStatus];
28
+
29
+
30
+ export function instanceOfContractorStatus(value: any): boolean {
31
+ for (const key in ContractorStatus) {
32
+ if (Object.prototype.hasOwnProperty.call(ContractorStatus, key)) {
33
+ if (ContractorStatus[key as keyof typeof ContractorStatus] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+
41
+ export function ContractorStatusFromJSON(json: any): ContractorStatus {
42
+ return ContractorStatusFromJSONTyped(json, false);
43
+ }
44
+
45
+ export function ContractorStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorStatus {
46
+ return json as ContractorStatus;
47
+ }
48
+
49
+ export function ContractorStatusToJSON(value?: ContractorStatus | null): any {
50
+ return value as any;
51
+ }
52
+
53
+ export function ContractorStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ContractorStatus {
54
+ return value as ContractorStatus;
55
+ }
56
+
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * VaultGig API
5
+ * API for VaultGig contractor management system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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
+ * Type of contractor.
18
+ * @export
19
+ */
20
+ export const ContractorType = {
21
+ Individual: 'individual',
22
+ Business: 'business'
23
+ } as const;
24
+ export type ContractorType = typeof ContractorType[keyof typeof ContractorType];
25
+
26
+
27
+ export function instanceOfContractorType(value: any): boolean {
28
+ for (const key in ContractorType) {
29
+ if (Object.prototype.hasOwnProperty.call(ContractorType, key)) {
30
+ if (ContractorType[key as keyof typeof ContractorType] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function ContractorTypeFromJSON(json: any): ContractorType {
39
+ return ContractorTypeFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ContractorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorType {
43
+ return json as ContractorType;
44
+ }
45
+
46
+ export function ContractorTypeToJSON(value?: ContractorType | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function ContractorTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ContractorType {
51
+ return value as ContractorType;
52
+ }
53
+