@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,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VaultGig API
|
|
3
|
+
* API for VaultGig contractor management system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Type of contractor.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ContractorType: {
|
|
17
|
+
readonly Individual: "individual";
|
|
18
|
+
readonly Business: "business";
|
|
19
|
+
};
|
|
20
|
+
export type ContractorType = typeof ContractorType[keyof typeof ContractorType];
|
|
21
|
+
export declare function instanceOfContractorType(value: any): boolean;
|
|
22
|
+
export declare function ContractorTypeFromJSON(json: any): ContractorType;
|
|
23
|
+
export declare function ContractorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorType;
|
|
24
|
+
export declare function ContractorTypeToJSON(value?: ContractorType | null): any;
|
|
25
|
+
export declare function ContractorTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ContractorType;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* VaultGig API
|
|
6
|
+
* API for VaultGig contractor management system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ContractorType = void 0;
|
|
17
|
+
exports.instanceOfContractorType = instanceOfContractorType;
|
|
18
|
+
exports.ContractorTypeFromJSON = ContractorTypeFromJSON;
|
|
19
|
+
exports.ContractorTypeFromJSONTyped = ContractorTypeFromJSONTyped;
|
|
20
|
+
exports.ContractorTypeToJSON = ContractorTypeToJSON;
|
|
21
|
+
exports.ContractorTypeToJSONTyped = ContractorTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Type of contractor.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ContractorType = {
|
|
27
|
+
Individual: 'individual',
|
|
28
|
+
Business: 'business'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfContractorType(value) {
|
|
31
|
+
for (var key in exports.ContractorType) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.ContractorType, key)) {
|
|
33
|
+
if (exports.ContractorType[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function ContractorTypeFromJSON(json) {
|
|
41
|
+
return ContractorTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ContractorTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function ContractorTypeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function ContractorTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VaultGig API
|
|
3
|
+
* API for VaultGig contractor management system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { BusinessClassification } from './BusinessClassification';
|
|
13
|
+
import type { TinType } from './TinType';
|
|
14
|
+
/**
|
|
15
|
+
* Model representing contractor data received from the client to update.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ContractorUpdatePayload
|
|
18
|
+
*/
|
|
19
|
+
export interface ContractorUpdatePayload {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ContractorUpdatePayload
|
|
24
|
+
*/
|
|
25
|
+
userId?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ContractorUpdatePayload
|
|
30
|
+
*/
|
|
31
|
+
name?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ContractorUpdatePayload
|
|
36
|
+
*/
|
|
37
|
+
email: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ContractorUpdatePayload
|
|
42
|
+
*/
|
|
43
|
+
country?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ContractorUpdatePayload
|
|
48
|
+
*/
|
|
49
|
+
phoneNumber?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ContractorUpdatePayload
|
|
54
|
+
*/
|
|
55
|
+
taxId?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {TinType}
|
|
59
|
+
* @memberof ContractorUpdatePayload
|
|
60
|
+
*/
|
|
61
|
+
tinType?: TinType | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ContractorUpdatePayload
|
|
66
|
+
*/
|
|
67
|
+
address?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ContractorUpdatePayload
|
|
72
|
+
*/
|
|
73
|
+
state?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ContractorUpdatePayload
|
|
78
|
+
*/
|
|
79
|
+
zipCode?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof ContractorUpdatePayload
|
|
84
|
+
*/
|
|
85
|
+
city?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {BusinessClassification}
|
|
89
|
+
* @memberof ContractorUpdatePayload
|
|
90
|
+
*/
|
|
91
|
+
classificationType?: BusinessClassification | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof ContractorUpdatePayload
|
|
96
|
+
*/
|
|
97
|
+
businessName?: string | null;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the ContractorUpdatePayload interface.
|
|
101
|
+
*/
|
|
102
|
+
export declare function instanceOfContractorUpdatePayload(value: object): value is ContractorUpdatePayload;
|
|
103
|
+
export declare function ContractorUpdatePayloadFromJSON(json: any): ContractorUpdatePayload;
|
|
104
|
+
export declare function ContractorUpdatePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorUpdatePayload;
|
|
105
|
+
export declare function ContractorUpdatePayloadToJSON(json: any): ContractorUpdatePayload;
|
|
106
|
+
export declare function ContractorUpdatePayloadToJSONTyped(value?: ContractorUpdatePayload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* VaultGig API
|
|
6
|
+
* API for VaultGig contractor management system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfContractorUpdatePayload = instanceOfContractorUpdatePayload;
|
|
17
|
+
exports.ContractorUpdatePayloadFromJSON = ContractorUpdatePayloadFromJSON;
|
|
18
|
+
exports.ContractorUpdatePayloadFromJSONTyped = ContractorUpdatePayloadFromJSONTyped;
|
|
19
|
+
exports.ContractorUpdatePayloadToJSON = ContractorUpdatePayloadToJSON;
|
|
20
|
+
exports.ContractorUpdatePayloadToJSONTyped = ContractorUpdatePayloadToJSONTyped;
|
|
21
|
+
var BusinessClassification_1 = require("./BusinessClassification");
|
|
22
|
+
var TinType_1 = require("./TinType");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ContractorUpdatePayload interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfContractorUpdatePayload(value) {
|
|
27
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ContractorUpdatePayloadFromJSON(json) {
|
|
32
|
+
return ContractorUpdatePayloadFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ContractorUpdatePayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
40
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
41
|
+
'email': json['email'],
|
|
42
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
43
|
+
'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
|
|
44
|
+
'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
|
|
45
|
+
'tinType': json['tin_type'] == null ? undefined : (0, TinType_1.TinTypeFromJSON)(json['tin_type']),
|
|
46
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
47
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
48
|
+
'zipCode': json['zip_code'] == null ? undefined : json['zip_code'],
|
|
49
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
50
|
+
'classificationType': json['classification_type'] == null ? undefined : (0, BusinessClassification_1.BusinessClassificationFromJSON)(json['classification_type']),
|
|
51
|
+
'businessName': json['business_name'] == null ? undefined : json['business_name'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function ContractorUpdatePayloadToJSON(json) {
|
|
55
|
+
return ContractorUpdatePayloadToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function ContractorUpdatePayloadToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'user_id': value['userId'],
|
|
64
|
+
'name': value['name'],
|
|
65
|
+
'email': value['email'],
|
|
66
|
+
'country': value['country'],
|
|
67
|
+
'phone_number': value['phoneNumber'],
|
|
68
|
+
'tax_id': value['taxId'],
|
|
69
|
+
'tin_type': (0, TinType_1.TinTypeToJSON)(value['tinType']),
|
|
70
|
+
'address': value['address'],
|
|
71
|
+
'state': value['state'],
|
|
72
|
+
'zip_code': value['zipCode'],
|
|
73
|
+
'city': value['city'],
|
|
74
|
+
'classification_type': (0, BusinessClassification_1.BusinessClassificationToJSON)(value['classificationType']),
|
|
75
|
+
'business_name': value['businessName'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VaultGig API
|
|
3
|
+
* API for VaultGig contractor management system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ValidationError } from './ValidationError';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface HTTPValidationError
|
|
17
|
+
*/
|
|
18
|
+
export interface HTTPValidationError {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ValidationError>}
|
|
22
|
+
* @memberof HTTPValidationError
|
|
23
|
+
*/
|
|
24
|
+
detail?: Array<ValidationError>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the HTTPValidationError interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfHTTPValidationError(value: object): value is HTTPValidationError;
|
|
30
|
+
export declare function HTTPValidationErrorFromJSON(json: any): HTTPValidationError;
|
|
31
|
+
export declare function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError;
|
|
32
|
+
export declare function HTTPValidationErrorToJSON(json: any): HTTPValidationError;
|
|
33
|
+
export declare function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* VaultGig API
|
|
6
|
+
* API for VaultGig contractor management system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfHTTPValidationError = instanceOfHTTPValidationError;
|
|
17
|
+
exports.HTTPValidationErrorFromJSON = HTTPValidationErrorFromJSON;
|
|
18
|
+
exports.HTTPValidationErrorFromJSONTyped = HTTPValidationErrorFromJSONTyped;
|
|
19
|
+
exports.HTTPValidationErrorToJSON = HTTPValidationErrorToJSON;
|
|
20
|
+
exports.HTTPValidationErrorToJSONTyped = HTTPValidationErrorToJSONTyped;
|
|
21
|
+
var ValidationError_1 = require("./ValidationError");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the HTTPValidationError interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfHTTPValidationError(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function HTTPValidationErrorFromJSON(json) {
|
|
29
|
+
return HTTPValidationErrorFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function HTTPValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'detail': json['detail'] == null ? undefined : (json['detail'].map(ValidationError_1.ValidationErrorFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function HTTPValidationErrorToJSON(json) {
|
|
40
|
+
return HTTPValidationErrorToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function HTTPValidationErrorToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'detail': value['detail'] == null ? undefined : (value['detail'].map(ValidationError_1.ValidationErrorToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VaultGig API
|
|
3
|
+
* API for VaultGig contractor management system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PaginationMeta } from './PaginationMeta';
|
|
13
|
+
import type { ContractorResponse } from './ContractorResponse';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedResponseContractorResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedResponseContractorResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof PaginatedResponseContractorResponse
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<ContractorResponse>}
|
|
29
|
+
* @memberof PaginatedResponseContractorResponse
|
|
30
|
+
*/
|
|
31
|
+
data?: Array<ContractorResponse> | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PaginatedResponseContractorResponse
|
|
36
|
+
*/
|
|
37
|
+
error?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PaginationMeta}
|
|
41
|
+
* @memberof PaginatedResponseContractorResponse
|
|
42
|
+
*/
|
|
43
|
+
meta: PaginationMeta;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the PaginatedResponseContractorResponse interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfPaginatedResponseContractorResponse(value: object): value is PaginatedResponseContractorResponse;
|
|
49
|
+
export declare function PaginatedResponseContractorResponseFromJSON(json: any): PaginatedResponseContractorResponse;
|
|
50
|
+
export declare function PaginatedResponseContractorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseContractorResponse;
|
|
51
|
+
export declare function PaginatedResponseContractorResponseToJSON(json: any): PaginatedResponseContractorResponse;
|
|
52
|
+
export declare function PaginatedResponseContractorResponseToJSONTyped(value?: PaginatedResponseContractorResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* VaultGig API
|
|
6
|
+
* API for VaultGig contractor management system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedResponseContractorResponse = instanceOfPaginatedResponseContractorResponse;
|
|
17
|
+
exports.PaginatedResponseContractorResponseFromJSON = PaginatedResponseContractorResponseFromJSON;
|
|
18
|
+
exports.PaginatedResponseContractorResponseFromJSONTyped = PaginatedResponseContractorResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedResponseContractorResponseToJSON = PaginatedResponseContractorResponseToJSON;
|
|
20
|
+
exports.PaginatedResponseContractorResponseToJSONTyped = PaginatedResponseContractorResponseToJSONTyped;
|
|
21
|
+
var PaginationMeta_1 = require("./PaginationMeta");
|
|
22
|
+
var ContractorResponse_1 = require("./ContractorResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseContractorResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseContractorResponse(value) {
|
|
27
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedResponseContractorResponseFromJSON(json) {
|
|
34
|
+
return PaginatedResponseContractorResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedResponseContractorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'success': json['success'],
|
|
42
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ContractorResponse_1.ContractorResponseFromJSON)),
|
|
43
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
44
|
+
'meta': (0, PaginationMeta_1.PaginationMetaFromJSON)(json['meta']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function PaginatedResponseContractorResponseToJSON(json) {
|
|
48
|
+
return PaginatedResponseContractorResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function PaginatedResponseContractorResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'success': value['success'],
|
|
57
|
+
'data': value['data'] == null ? undefined : (value['data'].map(ContractorResponse_1.ContractorResponseToJSON)),
|
|
58
|
+
'error': value['error'],
|
|
59
|
+
'meta': (0, PaginationMeta_1.PaginationMetaToJSON)(value['meta']),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VaultGig API
|
|
3
|
+
* API for VaultGig contractor management system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Pagination metadata model.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PaginationMeta
|
|
16
|
+
*/
|
|
17
|
+
export interface PaginationMeta {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PaginationMeta
|
|
22
|
+
*/
|
|
23
|
+
offset: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PaginationMeta
|
|
28
|
+
*/
|
|
29
|
+
limit: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PaginationMeta
|
|
34
|
+
*/
|
|
35
|
+
total: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PaginationMeta interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPaginationMeta(value: object): value is PaginationMeta;
|
|
41
|
+
export declare function PaginationMetaFromJSON(json: any): PaginationMeta;
|
|
42
|
+
export declare function PaginationMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginationMeta;
|
|
43
|
+
export declare function PaginationMetaToJSON(json: any): PaginationMeta;
|
|
44
|
+
export declare function PaginationMetaToJSONTyped(value?: PaginationMeta | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* VaultGig API
|
|
6
|
+
* API for VaultGig contractor management system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginationMeta = instanceOfPaginationMeta;
|
|
17
|
+
exports.PaginationMetaFromJSON = PaginationMetaFromJSON;
|
|
18
|
+
exports.PaginationMetaFromJSONTyped = PaginationMetaFromJSONTyped;
|
|
19
|
+
exports.PaginationMetaToJSON = PaginationMetaToJSON;
|
|
20
|
+
exports.PaginationMetaToJSONTyped = PaginationMetaToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PaginationMeta interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPaginationMeta(value) {
|
|
25
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginationMetaFromJSON(json) {
|
|
34
|
+
return PaginationMetaFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginationMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'offset': json['offset'],
|
|
42
|
+
'limit': json['limit'],
|
|
43
|
+
'total': json['total'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function PaginationMetaToJSON(json) {
|
|
47
|
+
return PaginationMetaToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function PaginationMetaToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'offset': value['offset'],
|
|
56
|
+
'limit': value['limit'],
|
|
57
|
+
'total': value['total'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VaultGig API
|
|
3
|
+
* API for VaultGig contractor management system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ContractorCreateData } from './ContractorCreateData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ResponseContractorCreateData
|
|
17
|
+
*/
|
|
18
|
+
export interface ResponseContractorCreateData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ResponseContractorCreateData
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ContractorCreateData}
|
|
28
|
+
* @memberof ResponseContractorCreateData
|
|
29
|
+
*/
|
|
30
|
+
data?: ContractorCreateData | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ResponseContractorCreateData
|
|
35
|
+
*/
|
|
36
|
+
error?: string | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ResponseContractorCreateData interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfResponseContractorCreateData(value: object): value is ResponseContractorCreateData;
|
|
42
|
+
export declare function ResponseContractorCreateDataFromJSON(json: any): ResponseContractorCreateData;
|
|
43
|
+
export declare function ResponseContractorCreateDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResponseContractorCreateData;
|
|
44
|
+
export declare function ResponseContractorCreateDataToJSON(json: any): ResponseContractorCreateData;
|
|
45
|
+
export declare function ResponseContractorCreateDataToJSONTyped(value?: ResponseContractorCreateData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* VaultGig API
|
|
6
|
+
* API for VaultGig contractor management system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfResponseContractorCreateData = instanceOfResponseContractorCreateData;
|
|
17
|
+
exports.ResponseContractorCreateDataFromJSON = ResponseContractorCreateDataFromJSON;
|
|
18
|
+
exports.ResponseContractorCreateDataFromJSONTyped = ResponseContractorCreateDataFromJSONTyped;
|
|
19
|
+
exports.ResponseContractorCreateDataToJSON = ResponseContractorCreateDataToJSON;
|
|
20
|
+
exports.ResponseContractorCreateDataToJSONTyped = ResponseContractorCreateDataToJSONTyped;
|
|
21
|
+
var ContractorCreateData_1 = require("./ContractorCreateData");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ResponseContractorCreateData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfResponseContractorCreateData(value) {
|
|
26
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ResponseContractorCreateDataFromJSON(json) {
|
|
31
|
+
return ResponseContractorCreateDataFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ResponseContractorCreateDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'success': json['success'],
|
|
39
|
+
'data': json['data'] == null ? undefined : (0, ContractorCreateData_1.ContractorCreateDataFromJSON)(json['data']),
|
|
40
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ResponseContractorCreateDataToJSON(json) {
|
|
44
|
+
return ResponseContractorCreateDataToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ResponseContractorCreateDataToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'success': value['success'],
|
|
53
|
+
'data': (0, ContractorCreateData_1.ContractorCreateDataToJSON)(value['data']),
|
|
54
|
+
'error': value['error'],
|
|
55
|
+
};
|
|
56
|
+
}
|