@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,179 @@
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 { BusinessClassification } from './BusinessClassification';
17
+ import {
18
+ BusinessClassificationFromJSON,
19
+ BusinessClassificationFromJSONTyped,
20
+ BusinessClassificationToJSON,
21
+ BusinessClassificationToJSONTyped,
22
+ } from './BusinessClassification';
23
+ import type { TinType } from './TinType';
24
+ import {
25
+ TinTypeFromJSON,
26
+ TinTypeFromJSONTyped,
27
+ TinTypeToJSON,
28
+ TinTypeToJSONTyped,
29
+ } from './TinType';
30
+
31
+ /**
32
+ * Model representing contractor data received from the client to update.
33
+ * @export
34
+ * @interface ContractorUpdatePayload
35
+ */
36
+ export interface ContractorUpdatePayload {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ContractorUpdatePayload
41
+ */
42
+ userId?: string | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ContractorUpdatePayload
47
+ */
48
+ name?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ContractorUpdatePayload
53
+ */
54
+ email: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ContractorUpdatePayload
59
+ */
60
+ country?: string | null;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ContractorUpdatePayload
65
+ */
66
+ phoneNumber?: string | null;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof ContractorUpdatePayload
71
+ */
72
+ taxId?: string | null;
73
+ /**
74
+ *
75
+ * @type {TinType}
76
+ * @memberof ContractorUpdatePayload
77
+ */
78
+ tinType?: TinType | null;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof ContractorUpdatePayload
83
+ */
84
+ address?: string | null;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof ContractorUpdatePayload
89
+ */
90
+ state?: string | null;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof ContractorUpdatePayload
95
+ */
96
+ zipCode?: string | null;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof ContractorUpdatePayload
101
+ */
102
+ city?: string | null;
103
+ /**
104
+ *
105
+ * @type {BusinessClassification}
106
+ * @memberof ContractorUpdatePayload
107
+ */
108
+ classificationType?: BusinessClassification | null;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof ContractorUpdatePayload
113
+ */
114
+ businessName?: string | null;
115
+ }
116
+
117
+
118
+
119
+ /**
120
+ * Check if a given object implements the ContractorUpdatePayload interface.
121
+ */
122
+ export function instanceOfContractorUpdatePayload(value: object): value is ContractorUpdatePayload {
123
+ if (!('email' in value) || value['email'] === undefined) return false;
124
+ return true;
125
+ }
126
+
127
+ export function ContractorUpdatePayloadFromJSON(json: any): ContractorUpdatePayload {
128
+ return ContractorUpdatePayloadFromJSONTyped(json, false);
129
+ }
130
+
131
+ export function ContractorUpdatePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorUpdatePayload {
132
+ if (json == null) {
133
+ return json;
134
+ }
135
+ return {
136
+
137
+ 'userId': json['user_id'] == null ? undefined : json['user_id'],
138
+ 'name': json['name'] == null ? undefined : json['name'],
139
+ 'email': json['email'],
140
+ 'country': json['country'] == null ? undefined : json['country'],
141
+ 'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
142
+ 'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
143
+ 'tinType': json['tin_type'] == null ? undefined : TinTypeFromJSON(json['tin_type']),
144
+ 'address': json['address'] == null ? undefined : json['address'],
145
+ 'state': json['state'] == null ? undefined : json['state'],
146
+ 'zipCode': json['zip_code'] == null ? undefined : json['zip_code'],
147
+ 'city': json['city'] == null ? undefined : json['city'],
148
+ 'classificationType': json['classification_type'] == null ? undefined : BusinessClassificationFromJSON(json['classification_type']),
149
+ 'businessName': json['business_name'] == null ? undefined : json['business_name'],
150
+ };
151
+ }
152
+
153
+ export function ContractorUpdatePayloadToJSON(json: any): ContractorUpdatePayload {
154
+ return ContractorUpdatePayloadToJSONTyped(json, false);
155
+ }
156
+
157
+ export function ContractorUpdatePayloadToJSONTyped(value?: ContractorUpdatePayload | null, ignoreDiscriminator: boolean = false): any {
158
+ if (value == null) {
159
+ return value;
160
+ }
161
+
162
+ return {
163
+
164
+ 'user_id': value['userId'],
165
+ 'name': value['name'],
166
+ 'email': value['email'],
167
+ 'country': value['country'],
168
+ 'phone_number': value['phoneNumber'],
169
+ 'tax_id': value['taxId'],
170
+ 'tin_type': TinTypeToJSON(value['tinType']),
171
+ 'address': value['address'],
172
+ 'state': value['state'],
173
+ 'zip_code': value['zipCode'],
174
+ 'city': value['city'],
175
+ 'classification_type': BusinessClassificationToJSON(value['classificationType']),
176
+ 'business_name': value['businessName'],
177
+ };
178
+ }
179
+
@@ -0,0 +1,73 @@
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 { ValidationError } from './ValidationError';
17
+ import {
18
+ ValidationErrorFromJSON,
19
+ ValidationErrorFromJSONTyped,
20
+ ValidationErrorToJSON,
21
+ ValidationErrorToJSONTyped,
22
+ } from './ValidationError';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface HTTPValidationError
28
+ */
29
+ export interface HTTPValidationError {
30
+ /**
31
+ *
32
+ * @type {Array<ValidationError>}
33
+ * @memberof HTTPValidationError
34
+ */
35
+ detail?: Array<ValidationError>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the HTTPValidationError interface.
40
+ */
41
+ export function instanceOfHTTPValidationError(value: object): value is HTTPValidationError {
42
+ return true;
43
+ }
44
+
45
+ export function HTTPValidationErrorFromJSON(json: any): HTTPValidationError {
46
+ return HTTPValidationErrorFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'detail': json['detail'] == null ? undefined : ((json['detail'] as Array<any>).map(ValidationErrorFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function HTTPValidationErrorToJSON(json: any): HTTPValidationError {
60
+ return HTTPValidationErrorToJSONTyped(json, false);
61
+ }
62
+
63
+ export function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'detail': value['detail'] == null ? undefined : ((value['detail'] as Array<any>).map(ValidationErrorToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,106 @@
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 { PaginationMeta } from './PaginationMeta';
17
+ import {
18
+ PaginationMetaFromJSON,
19
+ PaginationMetaFromJSONTyped,
20
+ PaginationMetaToJSON,
21
+ PaginationMetaToJSONTyped,
22
+ } from './PaginationMeta';
23
+ import type { ContractorResponse } from './ContractorResponse';
24
+ import {
25
+ ContractorResponseFromJSON,
26
+ ContractorResponseFromJSONTyped,
27
+ ContractorResponseToJSON,
28
+ ContractorResponseToJSONTyped,
29
+ } from './ContractorResponse';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedResponseContractorResponse
35
+ */
36
+ export interface PaginatedResponseContractorResponse {
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof PaginatedResponseContractorResponse
41
+ */
42
+ success: boolean;
43
+ /**
44
+ *
45
+ * @type {Array<ContractorResponse>}
46
+ * @memberof PaginatedResponseContractorResponse
47
+ */
48
+ data?: Array<ContractorResponse> | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof PaginatedResponseContractorResponse
53
+ */
54
+ error?: string | null;
55
+ /**
56
+ *
57
+ * @type {PaginationMeta}
58
+ * @memberof PaginatedResponseContractorResponse
59
+ */
60
+ meta: PaginationMeta;
61
+ }
62
+
63
+ /**
64
+ * Check if a given object implements the PaginatedResponseContractorResponse interface.
65
+ */
66
+ export function instanceOfPaginatedResponseContractorResponse(value: object): value is PaginatedResponseContractorResponse {
67
+ if (!('success' in value) || value['success'] === undefined) return false;
68
+ if (!('meta' in value) || value['meta'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function PaginatedResponseContractorResponseFromJSON(json: any): PaginatedResponseContractorResponse {
73
+ return PaginatedResponseContractorResponseFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function PaginatedResponseContractorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseContractorResponse {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'success': json['success'],
83
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ContractorResponseFromJSON)),
84
+ 'error': json['error'] == null ? undefined : json['error'],
85
+ 'meta': PaginationMetaFromJSON(json['meta']),
86
+ };
87
+ }
88
+
89
+ export function PaginatedResponseContractorResponseToJSON(json: any): PaginatedResponseContractorResponse {
90
+ return PaginatedResponseContractorResponseToJSONTyped(json, false);
91
+ }
92
+
93
+ export function PaginatedResponseContractorResponseToJSONTyped(value?: PaginatedResponseContractorResponse | null, ignoreDiscriminator: boolean = false): any {
94
+ if (value == null) {
95
+ return value;
96
+ }
97
+
98
+ return {
99
+
100
+ 'success': value['success'],
101
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ContractorResponseToJSON)),
102
+ 'error': value['error'],
103
+ 'meta': PaginationMetaToJSON(value['meta']),
104
+ };
105
+ }
106
+
@@ -0,0 +1,84 @@
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
+ * Pagination metadata model.
18
+ * @export
19
+ * @interface PaginationMeta
20
+ */
21
+ export interface PaginationMeta {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof PaginationMeta
26
+ */
27
+ offset: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof PaginationMeta
32
+ */
33
+ limit: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof PaginationMeta
38
+ */
39
+ total: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PaginationMeta interface.
44
+ */
45
+ export function instanceOfPaginationMeta(value: object): value is PaginationMeta {
46
+ if (!('offset' in value) || value['offset'] === undefined) return false;
47
+ if (!('limit' in value) || value['limit'] === undefined) return false;
48
+ if (!('total' in value) || value['total'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function PaginationMetaFromJSON(json: any): PaginationMeta {
53
+ return PaginationMetaFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function PaginationMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginationMeta {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'offset': json['offset'],
63
+ 'limit': json['limit'],
64
+ 'total': json['total'],
65
+ };
66
+ }
67
+
68
+ export function PaginationMetaToJSON(json: any): PaginationMeta {
69
+ return PaginationMetaToJSONTyped(json, false);
70
+ }
71
+
72
+ export function PaginationMetaToJSONTyped(value?: PaginationMeta | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'offset': value['offset'],
80
+ 'limit': value['limit'],
81
+ 'total': value['total'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,90 @@
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 { ContractorCreateData } from './ContractorCreateData';
17
+ import {
18
+ ContractorCreateDataFromJSON,
19
+ ContractorCreateDataFromJSONTyped,
20
+ ContractorCreateDataToJSON,
21
+ ContractorCreateDataToJSONTyped,
22
+ } from './ContractorCreateData';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ResponseContractorCreateData
28
+ */
29
+ export interface ResponseContractorCreateData {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ResponseContractorCreateData
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {ContractorCreateData}
39
+ * @memberof ResponseContractorCreateData
40
+ */
41
+ data?: ContractorCreateData | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ResponseContractorCreateData
46
+ */
47
+ error?: string | null;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the ResponseContractorCreateData interface.
52
+ */
53
+ export function instanceOfResponseContractorCreateData(value: object): value is ResponseContractorCreateData {
54
+ if (!('success' in value) || value['success'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function ResponseContractorCreateDataFromJSON(json: any): ResponseContractorCreateData {
59
+ return ResponseContractorCreateDataFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function ResponseContractorCreateDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResponseContractorCreateData {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'success': json['success'],
69
+ 'data': json['data'] == null ? undefined : ContractorCreateDataFromJSON(json['data']),
70
+ 'error': json['error'] == null ? undefined : json['error'],
71
+ };
72
+ }
73
+
74
+ export function ResponseContractorCreateDataToJSON(json: any): ResponseContractorCreateData {
75
+ return ResponseContractorCreateDataToJSONTyped(json, false);
76
+ }
77
+
78
+ export function ResponseContractorCreateDataToJSONTyped(value?: ResponseContractorCreateData | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'success': value['success'],
86
+ 'data': ContractorCreateDataToJSON(value['data']),
87
+ 'error': value['error'],
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
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 { ContractorData } from './ContractorData';
17
+ import {
18
+ ContractorDataFromJSON,
19
+ ContractorDataFromJSONTyped,
20
+ ContractorDataToJSON,
21
+ ContractorDataToJSONTyped,
22
+ } from './ContractorData';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ResponseContractorData
28
+ */
29
+ export interface ResponseContractorData {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ResponseContractorData
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {ContractorData}
39
+ * @memberof ResponseContractorData
40
+ */
41
+ data?: ContractorData | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ResponseContractorData
46
+ */
47
+ error?: string | null;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the ResponseContractorData interface.
52
+ */
53
+ export function instanceOfResponseContractorData(value: object): value is ResponseContractorData {
54
+ if (!('success' in value) || value['success'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function ResponseContractorDataFromJSON(json: any): ResponseContractorData {
59
+ return ResponseContractorDataFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function ResponseContractorDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResponseContractorData {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'success': json['success'],
69
+ 'data': json['data'] == null ? undefined : ContractorDataFromJSON(json['data']),
70
+ 'error': json['error'] == null ? undefined : json['error'],
71
+ };
72
+ }
73
+
74
+ export function ResponseContractorDataToJSON(json: any): ResponseContractorData {
75
+ return ResponseContractorDataToJSONTyped(json, false);
76
+ }
77
+
78
+ export function ResponseContractorDataToJSONTyped(value?: ResponseContractorData | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'success': value['success'],
86
+ 'data': ContractorDataToJSON(value['data']),
87
+ 'error': value['error'],
88
+ };
89
+ }
90
+