@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,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./ContractorsApi"), exports);
|
|
20
|
+
__exportStar(require("./SchemaApi"), exports);
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./runtime"), exports);
|
|
20
|
+
__exportStar(require("./apis/index"), exports);
|
|
21
|
+
__exportStar(require("./models/index"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Enumeration of possible business types.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const BusinessClassification: {
|
|
17
|
+
readonly SoleProprietor: "sole_proprietor";
|
|
18
|
+
readonly CCorp: "c-corp";
|
|
19
|
+
readonly SCorp: "s-corp";
|
|
20
|
+
readonly Partnership: "partnership";
|
|
21
|
+
readonly Trust: "trust";
|
|
22
|
+
readonly LlcC: "llc-c";
|
|
23
|
+
readonly LlcS: "llc-s";
|
|
24
|
+
readonly LlcP: "llc-p";
|
|
25
|
+
readonly Other: "other";
|
|
26
|
+
};
|
|
27
|
+
export type BusinessClassification = typeof BusinessClassification[keyof typeof BusinessClassification];
|
|
28
|
+
export declare function instanceOfBusinessClassification(value: any): boolean;
|
|
29
|
+
export declare function BusinessClassificationFromJSON(json: any): BusinessClassification;
|
|
30
|
+
export declare function BusinessClassificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessClassification;
|
|
31
|
+
export declare function BusinessClassificationToJSON(value?: BusinessClassification | null): any;
|
|
32
|
+
export declare function BusinessClassificationToJSONTyped(value: any, ignoreDiscriminator: boolean): BusinessClassification;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.BusinessClassification = void 0;
|
|
17
|
+
exports.instanceOfBusinessClassification = instanceOfBusinessClassification;
|
|
18
|
+
exports.BusinessClassificationFromJSON = BusinessClassificationFromJSON;
|
|
19
|
+
exports.BusinessClassificationFromJSONTyped = BusinessClassificationFromJSONTyped;
|
|
20
|
+
exports.BusinessClassificationToJSON = BusinessClassificationToJSON;
|
|
21
|
+
exports.BusinessClassificationToJSONTyped = BusinessClassificationToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Enumeration of possible business types.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.BusinessClassification = {
|
|
27
|
+
SoleProprietor: 'sole_proprietor',
|
|
28
|
+
CCorp: 'c-corp',
|
|
29
|
+
SCorp: 's-corp',
|
|
30
|
+
Partnership: 'partnership',
|
|
31
|
+
Trust: 'trust',
|
|
32
|
+
LlcC: 'llc-c',
|
|
33
|
+
LlcS: 'llc-s',
|
|
34
|
+
LlcP: 'llc-p',
|
|
35
|
+
Other: 'other'
|
|
36
|
+
};
|
|
37
|
+
function instanceOfBusinessClassification(value) {
|
|
38
|
+
for (var key in exports.BusinessClassification) {
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(exports.BusinessClassification, key)) {
|
|
40
|
+
if (exports.BusinessClassification[key] === value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
function BusinessClassificationFromJSON(json) {
|
|
48
|
+
return BusinessClassificationFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function BusinessClassificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
function BusinessClassificationToJSON(value) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function BusinessClassificationToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Response model for a contractor create response.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContractorCreateData
|
|
16
|
+
*/
|
|
17
|
+
export interface ContractorCreateData {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ContractorCreateData
|
|
22
|
+
*/
|
|
23
|
+
contractorId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ContractorCreateData interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfContractorCreateData(value: object): value is ContractorCreateData;
|
|
29
|
+
export declare function ContractorCreateDataFromJSON(json: any): ContractorCreateData;
|
|
30
|
+
export declare function ContractorCreateDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorCreateData;
|
|
31
|
+
export declare function ContractorCreateDataToJSON(json: any): ContractorCreateData;
|
|
32
|
+
export declare function ContractorCreateDataToJSONTyped(value?: ContractorCreateData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfContractorCreateData = instanceOfContractorCreateData;
|
|
17
|
+
exports.ContractorCreateDataFromJSON = ContractorCreateDataFromJSON;
|
|
18
|
+
exports.ContractorCreateDataFromJSONTyped = ContractorCreateDataFromJSONTyped;
|
|
19
|
+
exports.ContractorCreateDataToJSON = ContractorCreateDataToJSON;
|
|
20
|
+
exports.ContractorCreateDataToJSONTyped = ContractorCreateDataToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ContractorCreateData interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfContractorCreateData(value) {
|
|
25
|
+
if (!('contractorId' in value) || value['contractorId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ContractorCreateDataFromJSON(json) {
|
|
30
|
+
return ContractorCreateDataFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ContractorCreateDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'contractorId': json['contractor_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ContractorCreateDataToJSON(json) {
|
|
41
|
+
return ContractorCreateDataToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ContractorCreateDataToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'contractor_id': value['contractorId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ContractorType } from './ContractorType';
|
|
13
|
+
/**
|
|
14
|
+
* Model representing contractor data received from the client to create.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ContractorCreatePayload
|
|
17
|
+
*/
|
|
18
|
+
export interface ContractorCreatePayload {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ContractorCreatePayload
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ContractorCreatePayload
|
|
29
|
+
*/
|
|
30
|
+
email: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ContractorType}
|
|
34
|
+
* @memberof ContractorCreatePayload
|
|
35
|
+
*/
|
|
36
|
+
contractorType: ContractorType;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof ContractorCreatePayload
|
|
41
|
+
*/
|
|
42
|
+
sendInvite: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ContractorCreatePayload interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfContractorCreatePayload(value: object): value is ContractorCreatePayload;
|
|
48
|
+
export declare function ContractorCreatePayloadFromJSON(json: any): ContractorCreatePayload;
|
|
49
|
+
export declare function ContractorCreatePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorCreatePayload;
|
|
50
|
+
export declare function ContractorCreatePayloadToJSON(json: any): ContractorCreatePayload;
|
|
51
|
+
export declare function ContractorCreatePayloadToJSONTyped(value?: ContractorCreatePayload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfContractorCreatePayload = instanceOfContractorCreatePayload;
|
|
17
|
+
exports.ContractorCreatePayloadFromJSON = ContractorCreatePayloadFromJSON;
|
|
18
|
+
exports.ContractorCreatePayloadFromJSONTyped = ContractorCreatePayloadFromJSONTyped;
|
|
19
|
+
exports.ContractorCreatePayloadToJSON = ContractorCreatePayloadToJSON;
|
|
20
|
+
exports.ContractorCreatePayloadToJSONTyped = ContractorCreatePayloadToJSONTyped;
|
|
21
|
+
var ContractorType_1 = require("./ContractorType");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ContractorCreatePayload interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfContractorCreatePayload(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('contractorType' in value) || value['contractorType'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('sendInvite' in value) || value['sendInvite'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ContractorCreatePayloadFromJSON(json) {
|
|
37
|
+
return ContractorCreatePayloadFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ContractorCreatePayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'email': json['email'],
|
|
46
|
+
'contractorType': (0, ContractorType_1.ContractorTypeFromJSON)(json['contractor_type']),
|
|
47
|
+
'sendInvite': json['send_invite'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ContractorCreatePayloadToJSON(json) {
|
|
51
|
+
return ContractorCreatePayloadToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ContractorCreatePayloadToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'email': value['email'],
|
|
61
|
+
'contractor_type': (0, ContractorType_1.ContractorTypeToJSON)(value['contractorType']),
|
|
62
|
+
'send_invite': value['sendInvite'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 { ContractorResponse } from './ContractorResponse';
|
|
13
|
+
/**
|
|
14
|
+
* Model representing a contractor response.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ContractorData
|
|
17
|
+
*/
|
|
18
|
+
export interface ContractorData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ContractorResponse}
|
|
22
|
+
* @memberof ContractorData
|
|
23
|
+
*/
|
|
24
|
+
contractor: ContractorResponse;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ContractorData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfContractorData(value: object): value is ContractorData;
|
|
30
|
+
export declare function ContractorDataFromJSON(json: any): ContractorData;
|
|
31
|
+
export declare function ContractorDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorData;
|
|
32
|
+
export declare function ContractorDataToJSON(json: any): ContractorData;
|
|
33
|
+
export declare function ContractorDataToJSONTyped(value?: ContractorData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfContractorData = instanceOfContractorData;
|
|
17
|
+
exports.ContractorDataFromJSON = ContractorDataFromJSON;
|
|
18
|
+
exports.ContractorDataFromJSONTyped = ContractorDataFromJSONTyped;
|
|
19
|
+
exports.ContractorDataToJSON = ContractorDataToJSON;
|
|
20
|
+
exports.ContractorDataToJSONTyped = ContractorDataToJSONTyped;
|
|
21
|
+
var ContractorResponse_1 = require("./ContractorResponse");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ContractorData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfContractorData(value) {
|
|
26
|
+
if (!('contractor' in value) || value['contractor'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ContractorDataFromJSON(json) {
|
|
31
|
+
return ContractorDataFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ContractorDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'contractor': (0, ContractorResponse_1.ContractorResponseFromJSON)(json['contractor']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ContractorDataToJSON(json) {
|
|
42
|
+
return ContractorDataToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ContractorDataToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'contractor': (0, ContractorResponse_1.ContractorResponseToJSON)(value['contractor']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { ContractorStatus } from './ContractorStatus';
|
|
13
|
+
import type { ContractorType } from './ContractorType';
|
|
14
|
+
/**
|
|
15
|
+
* Response model representing a contractor.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ContractorResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface ContractorResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ContractorResponse
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ContractorResponse
|
|
30
|
+
*/
|
|
31
|
+
clerkUserId?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ContractorResponse
|
|
36
|
+
*/
|
|
37
|
+
fullName?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ContractorResponse
|
|
42
|
+
*/
|
|
43
|
+
businessName?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ContractorResponse
|
|
48
|
+
*/
|
|
49
|
+
email: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ContractorResponse
|
|
54
|
+
*/
|
|
55
|
+
phoneNumber?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ContractorStatus}
|
|
59
|
+
* @memberof ContractorResponse
|
|
60
|
+
*/
|
|
61
|
+
status?: ContractorStatus;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {ContractorType}
|
|
65
|
+
* @memberof ContractorResponse
|
|
66
|
+
*/
|
|
67
|
+
contractorType?: ContractorType;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof ContractorResponse
|
|
72
|
+
*/
|
|
73
|
+
lastPayment?: Date | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ContractorResponse
|
|
78
|
+
*/
|
|
79
|
+
organizationId: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the ContractorResponse interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfContractorResponse(value: object): value is ContractorResponse;
|
|
85
|
+
export declare function ContractorResponseFromJSON(json: any): ContractorResponse;
|
|
86
|
+
export declare function ContractorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorResponse;
|
|
87
|
+
export declare function ContractorResponseToJSON(json: any): ContractorResponse;
|
|
88
|
+
export declare function ContractorResponseToJSONTyped(value?: ContractorResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.instanceOfContractorResponse = instanceOfContractorResponse;
|
|
17
|
+
exports.ContractorResponseFromJSON = ContractorResponseFromJSON;
|
|
18
|
+
exports.ContractorResponseFromJSONTyped = ContractorResponseFromJSONTyped;
|
|
19
|
+
exports.ContractorResponseToJSON = ContractorResponseToJSON;
|
|
20
|
+
exports.ContractorResponseToJSONTyped = ContractorResponseToJSONTyped;
|
|
21
|
+
var ContractorStatus_1 = require("./ContractorStatus");
|
|
22
|
+
var ContractorType_1 = require("./ContractorType");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ContractorResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfContractorResponse(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ContractorResponseFromJSON(json) {
|
|
36
|
+
return ContractorResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ContractorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'clerkUserId': json['clerk_user_id'] == null ? undefined : json['clerk_user_id'],
|
|
45
|
+
'fullName': json['full_name'] == null ? undefined : json['full_name'],
|
|
46
|
+
'businessName': json['business_name'] == null ? undefined : json['business_name'],
|
|
47
|
+
'email': json['email'],
|
|
48
|
+
'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
|
|
49
|
+
'status': json['status'] == null ? undefined : (0, ContractorStatus_1.ContractorStatusFromJSON)(json['status']),
|
|
50
|
+
'contractorType': json['contractor_type'] == null ? undefined : (0, ContractorType_1.ContractorTypeFromJSON)(json['contractor_type']),
|
|
51
|
+
'lastPayment': json['last_payment'] == null ? undefined : (new Date(json['last_payment'])),
|
|
52
|
+
'organizationId': json['organization_id'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function ContractorResponseToJSON(json) {
|
|
56
|
+
return ContractorResponseToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ContractorResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'clerk_user_id': value['clerkUserId'],
|
|
66
|
+
'full_name': value['fullName'],
|
|
67
|
+
'business_name': value['businessName'],
|
|
68
|
+
'email': value['email'],
|
|
69
|
+
'phone_number': value['phoneNumber'],
|
|
70
|
+
'status': (0, ContractorStatus_1.ContractorStatusToJSON)(value['status']),
|
|
71
|
+
'contractor_type': (0, ContractorType_1.ContractorTypeToJSON)(value['contractorType']),
|
|
72
|
+
'last_payment': value['lastPayment'] == null ? value['lastPayment'] : value['lastPayment'].toISOString(),
|
|
73
|
+
'organization_id': value['organizationId'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
* Status of contractor.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ContractorStatus: {
|
|
17
|
+
readonly Active: "active";
|
|
18
|
+
readonly Invited: "invited";
|
|
19
|
+
readonly Error: "error";
|
|
20
|
+
readonly Archived: "archived";
|
|
21
|
+
readonly Pending: "pending";
|
|
22
|
+
};
|
|
23
|
+
export type ContractorStatus = typeof ContractorStatus[keyof typeof ContractorStatus];
|
|
24
|
+
export declare function instanceOfContractorStatus(value: any): boolean;
|
|
25
|
+
export declare function ContractorStatusFromJSON(json: any): ContractorStatus;
|
|
26
|
+
export declare function ContractorStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractorStatus;
|
|
27
|
+
export declare function ContractorStatusToJSON(value?: ContractorStatus | null): any;
|
|
28
|
+
export declare function ContractorStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ContractorStatus;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.ContractorStatus = void 0;
|
|
17
|
+
exports.instanceOfContractorStatus = instanceOfContractorStatus;
|
|
18
|
+
exports.ContractorStatusFromJSON = ContractorStatusFromJSON;
|
|
19
|
+
exports.ContractorStatusFromJSONTyped = ContractorStatusFromJSONTyped;
|
|
20
|
+
exports.ContractorStatusToJSON = ContractorStatusToJSON;
|
|
21
|
+
exports.ContractorStatusToJSONTyped = ContractorStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Status of contractor.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ContractorStatus = {
|
|
27
|
+
Active: 'active',
|
|
28
|
+
Invited: 'invited',
|
|
29
|
+
Error: 'error',
|
|
30
|
+
Archived: 'archived',
|
|
31
|
+
Pending: 'pending'
|
|
32
|
+
};
|
|
33
|
+
function instanceOfContractorStatus(value) {
|
|
34
|
+
for (var key in exports.ContractorStatus) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(exports.ContractorStatus, key)) {
|
|
36
|
+
if (exports.ContractorStatus[key] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
function ContractorStatusFromJSON(json) {
|
|
44
|
+
return ContractorStatusFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ContractorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
function ContractorStatusToJSON(value) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
function ContractorStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|