@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.
- package/README.md +135 -0
- package/dist/apis/ContractorsApi.d.ts +78 -0
- package/dist/apis/ContractorsApi.js +302 -0
- package/dist/apis/SchemaApi.d.ts +27 -0
- package/dist/apis/SchemaApi.js +129 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/BusinessClassification.d.ts +32 -0
- package/dist/models/BusinessClassification.js +58 -0
- package/dist/models/ContractorCreateData.d.ts +32 -0
- package/dist/models/ContractorCreateData.js +51 -0
- package/dist/models/ContractorCreatePayload.d.ts +51 -0
- package/dist/models/ContractorCreatePayload.js +64 -0
- package/dist/models/ContractorData.d.ts +33 -0
- package/dist/models/ContractorData.js +52 -0
- package/dist/models/ContractorResponse.d.ts +88 -0
- package/dist/models/ContractorResponse.js +75 -0
- package/dist/models/ContractorStatus.d.ts +28 -0
- package/dist/models/ContractorStatus.js +54 -0
- package/dist/models/ContractorType.d.ts +25 -0
- package/dist/models/ContractorType.js +51 -0
- package/dist/models/ContractorUpdatePayload.d.ts +106 -0
- package/dist/models/ContractorUpdatePayload.js +77 -0
- package/dist/models/HTTPValidationError.d.ts +33 -0
- package/dist/models/HTTPValidationError.js +50 -0
- package/dist/models/PaginatedResponseContractorResponse.d.ts +52 -0
- package/dist/models/PaginatedResponseContractorResponse.js +61 -0
- package/dist/models/PaginationMeta.d.ts +44 -0
- package/dist/models/PaginationMeta.js +59 -0
- package/dist/models/ResponseContractorCreateData.d.ts +45 -0
- package/dist/models/ResponseContractorCreateData.js +56 -0
- package/dist/models/ResponseContractorData.d.ts +45 -0
- package/dist/models/ResponseContractorData.js +56 -0
- package/dist/models/ResponsePaginatedResponseContractorResponse.d.ts +45 -0
- package/dist/models/ResponsePaginatedResponseContractorResponse.js +56 -0
- package/dist/models/SuccessResponse.d.ts +38 -0
- package/dist/models/SuccessResponse.js +53 -0
- package/dist/models/TinType.d.ts +25 -0
- package/dist/models/TinType.js +51 -0
- package/dist/models/ValidationError.d.ts +45 -0
- package/dist/models/ValidationError.js +60 -0
- package/dist/models/ValidationErrorLocInner.d.ts +26 -0
- package/dist/models/ValidationErrorLocInner.js +39 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +36 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +564 -0
- package/docs/BusinessClassification.md +33 -0
- package/docs/ContractorCreateData.md +35 -0
- package/docs/ContractorCreatePayload.md +41 -0
- package/docs/ContractorData.md +35 -0
- package/docs/ContractorResponse.md +53 -0
- package/docs/ContractorStatus.md +33 -0
- package/docs/ContractorType.md +33 -0
- package/docs/ContractorUpdatePayload.md +59 -0
- package/docs/ContractorsApi.md +308 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/PaginatedResponseContractorResponse.md +40 -0
- package/docs/PaginationMeta.md +39 -0
- package/docs/ResponseContractorCreateData.md +38 -0
- package/docs/ResponseContractorData.md +38 -0
- package/docs/ResponsePaginatedResponseContractorResponse.md +38 -0
- package/docs/SchemaApi.md +68 -0
- package/docs/SuccessResponse.md +37 -0
- package/docs/TinType.md +33 -0
- package/docs/ValidationError.md +38 -0
- package/docs/ValidationErrorLocInner.md +32 -0
- package/package.json +19 -0
- package/src/apis/ContractorsApi.ts +280 -0
- package/src/apis/SchemaApi.ts +58 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/BusinessClassification.ts +60 -0
- package/src/models/ContractorCreateData.ts +66 -0
- package/src/models/ContractorCreatePayload.ts +103 -0
- package/src/models/ContractorData.ts +74 -0
- package/src/models/ContractorResponse.ts +157 -0
- package/src/models/ContractorStatus.ts +56 -0
- package/src/models/ContractorType.ts +53 -0
- package/src/models/ContractorUpdatePayload.ts +179 -0
- package/src/models/HTTPValidationError.ts +73 -0
- package/src/models/PaginatedResponseContractorResponse.ts +106 -0
- package/src/models/PaginationMeta.ts +84 -0
- package/src/models/ResponseContractorCreateData.ts +90 -0
- package/src/models/ResponseContractorData.ts +90 -0
- package/src/models/ResponsePaginatedResponseContractorResponse.ts +90 -0
- package/src/models/SuccessResponse.ts +74 -0
- package/src/models/TinType.ts +53 -0
- package/src/models/ValidationError.ts +92 -0
- package/src/models/ValidationErrorLocInner.ts +46 -0
- package/src/models/index.ts +20 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.json +20 -0
|
@@ -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 { PaginatedResponseContractorResponse } from './PaginatedResponseContractorResponse';
|
|
17
|
+
import {
|
|
18
|
+
PaginatedResponseContractorResponseFromJSON,
|
|
19
|
+
PaginatedResponseContractorResponseFromJSONTyped,
|
|
20
|
+
PaginatedResponseContractorResponseToJSON,
|
|
21
|
+
PaginatedResponseContractorResponseToJSONTyped,
|
|
22
|
+
} from './PaginatedResponseContractorResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ResponsePaginatedResponseContractorResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ResponsePaginatedResponseContractorResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ResponsePaginatedResponseContractorResponse
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {PaginatedResponseContractorResponse}
|
|
39
|
+
* @memberof ResponsePaginatedResponseContractorResponse
|
|
40
|
+
*/
|
|
41
|
+
data?: PaginatedResponseContractorResponse | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ResponsePaginatedResponseContractorResponse
|
|
46
|
+
*/
|
|
47
|
+
error?: string | null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ResponsePaginatedResponseContractorResponse interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfResponsePaginatedResponseContractorResponse(value: object): value is ResponsePaginatedResponseContractorResponse {
|
|
54
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ResponsePaginatedResponseContractorResponseFromJSON(json: any): ResponsePaginatedResponseContractorResponse {
|
|
59
|
+
return ResponsePaginatedResponseContractorResponseFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ResponsePaginatedResponseContractorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResponsePaginatedResponseContractorResponse {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'success': json['success'],
|
|
69
|
+
'data': json['data'] == null ? undefined : PaginatedResponseContractorResponseFromJSON(json['data']),
|
|
70
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ResponsePaginatedResponseContractorResponseToJSON(json: any): ResponsePaginatedResponseContractorResponse {
|
|
75
|
+
return ResponsePaginatedResponseContractorResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ResponsePaginatedResponseContractorResponseToJSONTyped(value?: ResponsePaginatedResponseContractorResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'success': value['success'],
|
|
86
|
+
'data': PaginatedResponseContractorResponseToJSON(value['data']),
|
|
87
|
+
'error': value['error'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
* Success response without data.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SuccessResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface SuccessResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SuccessResponse
|
|
26
|
+
*/
|
|
27
|
+
success: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SuccessResponse
|
|
32
|
+
*/
|
|
33
|
+
error?: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SuccessResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSuccessResponse(value: object): value is SuccessResponse {
|
|
40
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function SuccessResponseFromJSON(json: any): SuccessResponse {
|
|
45
|
+
return SuccessResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function SuccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponse {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'success': json['success'],
|
|
55
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SuccessResponseToJSON(json: any): SuccessResponse {
|
|
60
|
+
return SuccessResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SuccessResponseToJSONTyped(value?: SuccessResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'success': value['success'],
|
|
71
|
+
'error': value['error'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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
|
+
* TIN type.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const TinType = {
|
|
21
|
+
Ssn: 'ssn',
|
|
22
|
+
Ein: 'ein'
|
|
23
|
+
} as const;
|
|
24
|
+
export type TinType = typeof TinType[keyof typeof TinType];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfTinType(value: any): boolean {
|
|
28
|
+
for (const key in TinType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(TinType, key)) {
|
|
30
|
+
if (TinType[key as keyof typeof TinType] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TinTypeFromJSON(json: any): TinType {
|
|
39
|
+
return TinTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TinTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TinType {
|
|
43
|
+
return json as TinType;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function TinTypeToJSON(value?: TinType | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function TinTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TinType {
|
|
51
|
+
return value as TinType;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { ValidationErrorLocInner } from './ValidationErrorLocInner';
|
|
17
|
+
import {
|
|
18
|
+
ValidationErrorLocInnerFromJSON,
|
|
19
|
+
ValidationErrorLocInnerFromJSONTyped,
|
|
20
|
+
ValidationErrorLocInnerToJSON,
|
|
21
|
+
ValidationErrorLocInnerToJSONTyped,
|
|
22
|
+
} from './ValidationErrorLocInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ValidationError
|
|
28
|
+
*/
|
|
29
|
+
export interface ValidationError {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
33
|
+
* @memberof ValidationError
|
|
34
|
+
*/
|
|
35
|
+
loc: Array<ValidationErrorLocInner>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ValidationError
|
|
40
|
+
*/
|
|
41
|
+
msg: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ValidationError
|
|
46
|
+
*/
|
|
47
|
+
type: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ValidationError interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfValidationError(value: object): value is ValidationError {
|
|
54
|
+
if (!('loc' in value) || value['loc'] === undefined) return false;
|
|
55
|
+
if (!('msg' in value) || value['msg'] === undefined) return false;
|
|
56
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ValidationErrorFromJSON(json: any): ValidationError {
|
|
61
|
+
return ValidationErrorFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'loc': ((json['loc'] as Array<any>).map(ValidationErrorLocInnerFromJSON)),
|
|
71
|
+
'msg': json['msg'],
|
|
72
|
+
'type': json['type'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ValidationErrorToJSON(json: any): ValidationError {
|
|
77
|
+
return ValidationErrorToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'loc': ((value['loc'] as Array<any>).map(ValidationErrorLocInnerToJSON)),
|
|
88
|
+
'msg': value['msg'],
|
|
89
|
+
'type': value['type'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ValidationErrorLocInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ValidationErrorLocInner {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner {
|
|
32
|
+
return ValidationErrorLocInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ValidationErrorLocInnerToJSON(json: any): ValidationErrorLocInner {
|
|
40
|
+
return ValidationErrorLocInnerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ValidationErrorLocInnerToJSONTyped(value?: ValidationErrorLocInner | null, ignoreDiscriminator: boolean = false): any {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './BusinessClassification';
|
|
4
|
+
export * from './ContractorCreateData';
|
|
5
|
+
export * from './ContractorCreatePayload';
|
|
6
|
+
export * from './ContractorData';
|
|
7
|
+
export * from './ContractorResponse';
|
|
8
|
+
export * from './ContractorStatus';
|
|
9
|
+
export * from './ContractorType';
|
|
10
|
+
export * from './ContractorUpdatePayload';
|
|
11
|
+
export * from './HTTPValidationError';
|
|
12
|
+
export * from './PaginatedResponseContractorResponse';
|
|
13
|
+
export * from './PaginationMeta';
|
|
14
|
+
export * from './ResponseContractorCreateData';
|
|
15
|
+
export * from './ResponseContractorData';
|
|
16
|
+
export * from './ResponsePaginatedResponseContractorResponse';
|
|
17
|
+
export * from './SuccessResponse';
|
|
18
|
+
export * from './TinType';
|
|
19
|
+
export * from './ValidationError';
|
|
20
|
+
export * from './ValidationErrorLocInner';
|