@vaultgig/vaultgig-api-client 0.0.9 → 0.0.10
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/.openapi-generator/FILES +2 -2
- package/.versions.json +1 -1
- package/README.md +6 -4
- package/dist/apis/ContractorsApi.d.ts +8 -7
- package/dist/apis/ContractorsApi.js +12 -6
- package/dist/models/ContractorCreatePayload.d.ts +1 -1
- package/dist/models/ContractorCreatePayload.js +1 -3
- package/dist/models/ContractorResponse.d.ts +1 -1
- package/dist/models/ContractorResponse.js +1 -3
- package/dist/models/ContractorUpdatePayload.d.ts +1 -1
- package/dist/models/ContractorUpdatePayload.js +1 -3
- package/dist/models/LocationInner.d.ts +26 -0
- package/dist/models/LocationInner.js +39 -0
- package/dist/models/ValidationError.d.ts +3 -3
- package/dist/models/ValidationError.js +3 -3
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/ContractorsApi.md +9 -6
- package/docs/{ValidationErrorLocInner.md → LocationInner.md} +4 -4
- package/docs/ValidationError.md +1 -1
- package/package.json +1 -1
- package/src/apis/ContractorsApi.ts +19 -7
- package/src/models/ContractorCreatePayload.ts +2 -3
- package/src/models/ContractorResponse.ts +2 -3
- package/src/models/ContractorUpdatePayload.ts +2 -3
- package/src/models/LocationInner.ts +46 -0
- package/src/models/ValidationError.ts +10 -10
- package/src/models/index.ts +1 -1
- package/dist/models/ValidationErrorLocInner.d.ts +0 -26
- package/dist/models/ValidationErrorLocInner.js +0 -39
- package/src/models/ValidationErrorLocInner.ts +0 -46
package/.openapi-generator/FILES
CHANGED
|
@@ -12,6 +12,7 @@ docs/ContractorType.md
|
|
|
12
12
|
docs/ContractorUpdatePayload.md
|
|
13
13
|
docs/ContractorsApi.md
|
|
14
14
|
docs/HTTPValidationError.md
|
|
15
|
+
docs/LocationInner.md
|
|
15
16
|
docs/PaginatedResponseContractorResponse.md
|
|
16
17
|
docs/PaginationMeta.md
|
|
17
18
|
docs/ResponseContractorCreateData.md
|
|
@@ -21,7 +22,6 @@ docs/SchemaApi.md
|
|
|
21
22
|
docs/SuccessResponse.md
|
|
22
23
|
docs/TinType.md
|
|
23
24
|
docs/ValidationError.md
|
|
24
|
-
docs/ValidationErrorLocInner.md
|
|
25
25
|
package.json
|
|
26
26
|
src/apis/ContractorsApi.ts
|
|
27
27
|
src/apis/SchemaApi.ts
|
|
@@ -36,6 +36,7 @@ src/models/ContractorStatus.ts
|
|
|
36
36
|
src/models/ContractorType.ts
|
|
37
37
|
src/models/ContractorUpdatePayload.ts
|
|
38
38
|
src/models/HTTPValidationError.ts
|
|
39
|
+
src/models/LocationInner.ts
|
|
39
40
|
src/models/PaginatedResponseContractorResponse.ts
|
|
40
41
|
src/models/PaginationMeta.ts
|
|
41
42
|
src/models/ResponseContractorCreateData.ts
|
|
@@ -44,7 +45,6 @@ src/models/ResponsePaginatedResponseContractorResponse.ts
|
|
|
44
45
|
src/models/SuccessResponse.ts
|
|
45
46
|
src/models/TinType.ts
|
|
46
47
|
src/models/ValidationError.ts
|
|
47
|
-
src/models/ValidationErrorLocInner.ts
|
|
48
48
|
src/models/index.ts
|
|
49
49
|
src/runtime.ts
|
|
50
50
|
tsconfig.json
|
package/.versions.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"vaultgig-api-client": {"typescript": "0.0.
|
|
1
|
+
{"vaultgig-api-client": {"typescript": "0.0.10"}}
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @vaultgig/vaultgig-api-client@0.0.
|
|
1
|
+
# @vaultgig/vaultgig-api-client@0.0.10
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -31,8 +31,10 @@ async function example() {
|
|
|
31
31
|
const body = {
|
|
32
32
|
// string
|
|
33
33
|
organizationId: organizationId_example,
|
|
34
|
-
// ContractorCreatePayload
|
|
34
|
+
// ContractorCreatePayload
|
|
35
35
|
contractorCreatePayload: {"sample_data":true,"name":"string","email":"user@example.com","contractor_type":"individual","send_invite":true},
|
|
36
|
+
// string (optional)
|
|
37
|
+
xIdempotencyKey: xIdempotencyKey_example,
|
|
36
38
|
} satisfies CreateContractorRequest;
|
|
37
39
|
|
|
38
40
|
try {
|
|
@@ -74,6 +76,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
74
76
|
- [ContractorType](docs/ContractorType.md)
|
|
75
77
|
- [ContractorUpdatePayload](docs/ContractorUpdatePayload.md)
|
|
76
78
|
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
79
|
+
- [LocationInner](docs/LocationInner.md)
|
|
77
80
|
- [PaginatedResponseContractorResponse](docs/PaginatedResponseContractorResponse.md)
|
|
78
81
|
- [PaginationMeta](docs/PaginationMeta.md)
|
|
79
82
|
- [ResponseContractorCreateData](docs/ResponseContractorCreateData.md)
|
|
@@ -82,7 +85,6 @@ All URIs are relative to *http://localhost:8080*
|
|
|
82
85
|
- [SuccessResponse](docs/SuccessResponse.md)
|
|
83
86
|
- [TinType](docs/TinType.md)
|
|
84
87
|
- [ValidationError](docs/ValidationError.md)
|
|
85
|
-
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
86
88
|
|
|
87
89
|
### Authorization
|
|
88
90
|
|
|
@@ -101,7 +103,7 @@ and is automatically generated by the
|
|
|
101
103
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
102
104
|
|
|
103
105
|
- API version: `1.0.0`
|
|
104
|
-
- Package version: `0.0.
|
|
106
|
+
- Package version: `0.0.10`
|
|
105
107
|
- Generator version: `7.19.0-SNAPSHOT`
|
|
106
108
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
107
109
|
|
|
@@ -13,7 +13,8 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { ContractorCreatePayload, ContractorUpdatePayload, ResponseContractorCreateData, ResponseContractorData, ResponsePaginatedResponseContractorResponse, SuccessResponse } from '../models/index';
|
|
14
14
|
export interface CreateContractorRequest {
|
|
15
15
|
organizationId: string;
|
|
16
|
-
contractorCreatePayload
|
|
16
|
+
contractorCreatePayload: ContractorCreatePayload;
|
|
17
|
+
xIdempotencyKey?: string | null;
|
|
17
18
|
}
|
|
18
19
|
export interface GetContractorRequest {
|
|
19
20
|
contractorId: string;
|
|
@@ -36,12 +37,12 @@ export interface UpdateContractorRequest {
|
|
|
36
37
|
*/
|
|
37
38
|
export declare class ContractorsApi extends runtime.BaseAPI {
|
|
38
39
|
/**
|
|
39
|
-
* Create a contractor.
|
|
40
|
+
* Create a contractor.
|
|
40
41
|
* Create Contractor
|
|
41
42
|
*/
|
|
42
43
|
createContractorRaw(requestParameters: CreateContractorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseContractorCreateData>>;
|
|
43
44
|
/**
|
|
44
|
-
* Create a contractor.
|
|
45
|
+
* Create a contractor.
|
|
45
46
|
* Create Contractor
|
|
46
47
|
*/
|
|
47
48
|
createContractor(requestParameters: CreateContractorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseContractorCreateData>;
|
|
@@ -56,22 +57,22 @@ export declare class ContractorsApi extends runtime.BaseAPI {
|
|
|
56
57
|
*/
|
|
57
58
|
getContractor(requestParameters: GetContractorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseContractorData>;
|
|
58
59
|
/**
|
|
59
|
-
* Get all contractors for an organization.
|
|
60
|
+
* Get all contractors for an organization.
|
|
60
61
|
* Get Contractors
|
|
61
62
|
*/
|
|
62
63
|
getContractorsRaw(requestParameters: GetContractorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponsePaginatedResponseContractorResponse>>;
|
|
63
64
|
/**
|
|
64
|
-
* Get all contractors for an organization.
|
|
65
|
+
* Get all contractors for an organization.
|
|
65
66
|
* Get Contractors
|
|
66
67
|
*/
|
|
67
68
|
getContractors(requestParameters: GetContractorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponsePaginatedResponseContractorResponse>;
|
|
68
69
|
/**
|
|
69
|
-
* Update a contractor.
|
|
70
|
+
* Update a contractor.
|
|
70
71
|
* Update Contractor
|
|
71
72
|
*/
|
|
72
73
|
updateContractorRaw(requestParameters: UpdateContractorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
|
|
73
74
|
/**
|
|
74
|
-
* Update a contractor.
|
|
75
|
+
* Update a contractor.
|
|
75
76
|
* Update Contractor
|
|
76
77
|
*/
|
|
77
78
|
updateContractor(requestParameters: UpdateContractorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
|
|
@@ -76,7 +76,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Create a contractor.
|
|
79
|
+
* Create a contractor.
|
|
80
80
|
* Create Contractor
|
|
81
81
|
*/
|
|
82
82
|
ContractorsApi.prototype.createContractorRaw = function (requestParameters, initOverrides) {
|
|
@@ -88,9 +88,15 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
88
88
|
if (requestParameters['organizationId'] == null) {
|
|
89
89
|
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createContractor().');
|
|
90
90
|
}
|
|
91
|
+
if (requestParameters['contractorCreatePayload'] == null) {
|
|
92
|
+
throw new runtime.RequiredError('contractorCreatePayload', 'Required parameter "contractorCreatePayload" was null or undefined when calling createContractor().');
|
|
93
|
+
}
|
|
91
94
|
queryParameters = {};
|
|
92
95
|
headerParameters = {};
|
|
93
96
|
headerParameters['Content-Type'] = 'application/json';
|
|
97
|
+
if (requestParameters['xIdempotencyKey'] != null) {
|
|
98
|
+
headerParameters['X-Idempotency-Key'] = String(requestParameters['xIdempotencyKey']);
|
|
99
|
+
}
|
|
94
100
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
95
101
|
token = this.configuration.accessToken;
|
|
96
102
|
return [4 /*yield*/, token("ClerkAuth", [])];
|
|
@@ -118,7 +124,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
118
124
|
});
|
|
119
125
|
};
|
|
120
126
|
/**
|
|
121
|
-
* Create a contractor.
|
|
127
|
+
* Create a contractor.
|
|
122
128
|
* Create Contractor
|
|
123
129
|
*/
|
|
124
130
|
ContractorsApi.prototype.createContractor = function (requestParameters, initOverrides) {
|
|
@@ -198,7 +204,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
198
204
|
});
|
|
199
205
|
};
|
|
200
206
|
/**
|
|
201
|
-
* Get all contractors for an organization.
|
|
207
|
+
* Get all contractors for an organization.
|
|
202
208
|
* Get Contractors
|
|
203
209
|
*/
|
|
204
210
|
ContractorsApi.prototype.getContractorsRaw = function (requestParameters, initOverrides) {
|
|
@@ -250,7 +256,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
250
256
|
});
|
|
251
257
|
};
|
|
252
258
|
/**
|
|
253
|
-
* Get all contractors for an organization.
|
|
259
|
+
* Get all contractors for an organization.
|
|
254
260
|
* Get Contractors
|
|
255
261
|
*/
|
|
256
262
|
ContractorsApi.prototype.getContractors = function (requestParameters, initOverrides) {
|
|
@@ -268,7 +274,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
268
274
|
});
|
|
269
275
|
};
|
|
270
276
|
/**
|
|
271
|
-
* Update a contractor.
|
|
277
|
+
* Update a contractor.
|
|
272
278
|
* Update Contractor
|
|
273
279
|
*/
|
|
274
280
|
ContractorsApi.prototype.updateContractorRaw = function (requestParameters, initOverrides) {
|
|
@@ -314,7 +320,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
314
320
|
});
|
|
315
321
|
};
|
|
316
322
|
/**
|
|
317
|
-
* Update a contractor.
|
|
323
|
+
* Update a contractor.
|
|
318
324
|
* Update Contractor
|
|
319
325
|
*/
|
|
320
326
|
ContractorsApi.prototype.updateContractor = function (requestParameters, initOverrides) {
|
|
@@ -25,8 +25,6 @@ var ContractorType_1 = require("./ContractorType");
|
|
|
25
25
|
function instanceOfContractorCreatePayload(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
-
return false;
|
|
30
28
|
if (!('contractorType' in value) || value['contractorType'] === undefined)
|
|
31
29
|
return false;
|
|
32
30
|
if (!('sendInvite' in value) || value['sendInvite'] === undefined)
|
|
@@ -43,7 +41,7 @@ function ContractorCreatePayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
41
|
return {
|
|
44
42
|
'sampleData': json['sample_data'] == null ? undefined : json['sample_data'],
|
|
45
43
|
'name': json['name'],
|
|
46
|
-
'email': json['email'],
|
|
44
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
47
45
|
'contractorType': (0, ContractorType_1.ContractorTypeFromJSON)(json['contractor_type']),
|
|
48
46
|
'sendInvite': json['send_invite'],
|
|
49
47
|
};
|
|
@@ -27,8 +27,6 @@ var TinType_1 = require("./TinType");
|
|
|
27
27
|
function instanceOfContractorResponse(value) {
|
|
28
28
|
if (!('id' in value) || value['id'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
31
|
-
return false;
|
|
32
30
|
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
33
31
|
return false;
|
|
34
32
|
return true;
|
|
@@ -45,7 +43,7 @@ function ContractorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
43
|
'clerkUserId': json['clerk_user_id'] == null ? undefined : json['clerk_user_id'],
|
|
46
44
|
'fullName': json['full_name'] == null ? undefined : json['full_name'],
|
|
47
45
|
'businessName': json['business_name'] == null ? undefined : json['business_name'],
|
|
48
|
-
'email': json['email'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
49
47
|
'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
|
|
50
48
|
'status': json['status'] == null ? undefined : (0, ContractorStatus_1.ContractorStatusFromJSON)(json['status']),
|
|
51
49
|
'contractorType': json['contractor_type'] == null ? undefined : (0, ContractorType_1.ContractorTypeFromJSON)(json['contractor_type']),
|
|
@@ -24,8 +24,6 @@ var TinType_1 = require("./TinType");
|
|
|
24
24
|
* Check if a given object implements the ContractorUpdatePayload interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfContractorUpdatePayload(value) {
|
|
27
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
function ContractorUpdatePayloadFromJSON(json) {
|
|
@@ -39,7 +37,7 @@ function ContractorUpdatePayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
37
|
'sampleData': json['sample_data'] == null ? undefined : json['sample_data'],
|
|
40
38
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
41
39
|
'name': json['name'] == null ? undefined : json['name'],
|
|
42
|
-
'email': json['email'],
|
|
40
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
43
41
|
'country': json['country'] == null ? undefined : json['country'],
|
|
44
42
|
'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
|
|
45
43
|
'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LocationInner
|
|
16
|
+
*/
|
|
17
|
+
export interface LocationInner {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the LocationInner interface.
|
|
21
|
+
*/
|
|
22
|
+
export declare function instanceOfLocationInner(value: object): value is LocationInner;
|
|
23
|
+
export declare function LocationInnerFromJSON(json: any): LocationInner;
|
|
24
|
+
export declare function LocationInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LocationInner;
|
|
25
|
+
export declare function LocationInnerToJSON(json: any): LocationInner;
|
|
26
|
+
export declare function LocationInnerToJSONTyped(value?: LocationInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
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.instanceOfLocationInner = instanceOfLocationInner;
|
|
17
|
+
exports.LocationInnerFromJSON = LocationInnerFromJSON;
|
|
18
|
+
exports.LocationInnerFromJSONTyped = LocationInnerFromJSONTyped;
|
|
19
|
+
exports.LocationInnerToJSON = LocationInnerToJSON;
|
|
20
|
+
exports.LocationInnerToJSONTyped = LocationInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LocationInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLocationInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function LocationInnerFromJSON(json) {
|
|
28
|
+
return LocationInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function LocationInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
function LocationInnerToJSON(json) {
|
|
34
|
+
return LocationInnerToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function LocationInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
37
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { LocationInner } from './LocationInner';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
|
|
|
18
18
|
export interface ValidationError {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<LocationInner>}
|
|
22
22
|
* @memberof ValidationError
|
|
23
23
|
*/
|
|
24
|
-
loc: Array<
|
|
24
|
+
loc: Array<LocationInner>;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -18,7 +18,7 @@ exports.ValidationErrorFromJSON = ValidationErrorFromJSON;
|
|
|
18
18
|
exports.ValidationErrorFromJSONTyped = ValidationErrorFromJSONTyped;
|
|
19
19
|
exports.ValidationErrorToJSON = ValidationErrorToJSON;
|
|
20
20
|
exports.ValidationErrorToJSONTyped = ValidationErrorToJSONTyped;
|
|
21
|
-
var
|
|
21
|
+
var LocationInner_1 = require("./LocationInner");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the ValidationError interface.
|
|
24
24
|
*/
|
|
@@ -39,7 +39,7 @@ function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
return json;
|
|
40
40
|
}
|
|
41
41
|
return {
|
|
42
|
-
'loc': (json['loc'].map(
|
|
42
|
+
'loc': (json['loc'].map(LocationInner_1.LocationInnerFromJSON)),
|
|
43
43
|
'msg': json['msg'],
|
|
44
44
|
'type': json['type'],
|
|
45
45
|
};
|
|
@@ -53,7 +53,7 @@ function ValidationErrorToJSONTyped(value, ignoreDiscriminator) {
|
|
|
53
53
|
return value;
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
|
-
'loc': (value['loc'].map(
|
|
56
|
+
'loc': (value['loc'].map(LocationInner_1.LocationInnerToJSON)),
|
|
57
57
|
'msg': value['msg'],
|
|
58
58
|
'type': value['type'],
|
|
59
59
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './ContractorStatus';
|
|
|
7
7
|
export * from './ContractorType';
|
|
8
8
|
export * from './ContractorUpdatePayload';
|
|
9
9
|
export * from './HTTPValidationError';
|
|
10
|
+
export * from './LocationInner';
|
|
10
11
|
export * from './PaginatedResponseContractorResponse';
|
|
11
12
|
export * from './PaginationMeta';
|
|
12
13
|
export * from './ResponseContractorCreateData';
|
|
@@ -15,4 +16,3 @@ export * from './ResponsePaginatedResponseContractorResponse';
|
|
|
15
16
|
export * from './SuccessResponse';
|
|
16
17
|
export * from './TinType';
|
|
17
18
|
export * from './ValidationError';
|
|
18
|
-
export * from './ValidationErrorLocInner';
|
package/dist/models/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./ContractorStatus"), exports);
|
|
|
25
25
|
__exportStar(require("./ContractorType"), exports);
|
|
26
26
|
__exportStar(require("./ContractorUpdatePayload"), exports);
|
|
27
27
|
__exportStar(require("./HTTPValidationError"), exports);
|
|
28
|
+
__exportStar(require("./LocationInner"), exports);
|
|
28
29
|
__exportStar(require("./PaginatedResponseContractorResponse"), exports);
|
|
29
30
|
__exportStar(require("./PaginationMeta"), exports);
|
|
30
31
|
__exportStar(require("./ResponseContractorCreateData"), exports);
|
|
@@ -33,4 +34,3 @@ __exportStar(require("./ResponsePaginatedResponseContractorResponse"), exports);
|
|
|
33
34
|
__exportStar(require("./SuccessResponse"), exports);
|
|
34
35
|
__exportStar(require("./TinType"), exports);
|
|
35
36
|
__exportStar(require("./ValidationError"), exports);
|
|
36
|
-
__exportStar(require("./ValidationErrorLocInner"), exports);
|
package/docs/ContractorsApi.md
CHANGED
|
@@ -13,11 +13,11 @@ All URIs are relative to *http://localhost:8080*
|
|
|
13
13
|
|
|
14
14
|
## createContractor
|
|
15
15
|
|
|
16
|
-
> ResponseContractorCreateData createContractor(organizationId, contractorCreatePayload)
|
|
16
|
+
> ResponseContractorCreateData createContractor(organizationId, contractorCreatePayload, xIdempotencyKey)
|
|
17
17
|
|
|
18
18
|
Create Contractor
|
|
19
19
|
|
|
20
|
-
Create a contractor.
|
|
20
|
+
Create a contractor.
|
|
21
21
|
|
|
22
22
|
### Example
|
|
23
23
|
|
|
@@ -39,8 +39,10 @@ async function example() {
|
|
|
39
39
|
const body = {
|
|
40
40
|
// string
|
|
41
41
|
organizationId: organizationId_example,
|
|
42
|
-
// ContractorCreatePayload
|
|
42
|
+
// ContractorCreatePayload
|
|
43
43
|
contractorCreatePayload: {"sample_data":true,"name":"string","email":"user@example.com","contractor_type":"individual","send_invite":true},
|
|
44
|
+
// string (optional)
|
|
45
|
+
xIdempotencyKey: xIdempotencyKey_example,
|
|
44
46
|
} satisfies CreateContractorRequest;
|
|
45
47
|
|
|
46
48
|
try {
|
|
@@ -61,7 +63,8 @@ example().catch(console.error);
|
|
|
61
63
|
| Name | Type | Description | Notes |
|
|
62
64
|
|------------- | ------------- | ------------- | -------------|
|
|
63
65
|
| **organizationId** | `string` | | [Defaults to `undefined`] |
|
|
64
|
-
| **contractorCreatePayload** | [ContractorCreatePayload](ContractorCreatePayload.md) | |
|
|
66
|
+
| **contractorCreatePayload** | [ContractorCreatePayload](ContractorCreatePayload.md) | | |
|
|
67
|
+
| **xIdempotencyKey** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
65
68
|
|
|
66
69
|
### Return type
|
|
67
70
|
|
|
@@ -167,7 +170,7 @@ example().catch(console.error);
|
|
|
167
170
|
|
|
168
171
|
Get Contractors
|
|
169
172
|
|
|
170
|
-
Get all contractors for an organization.
|
|
173
|
+
Get all contractors for an organization.
|
|
171
174
|
|
|
172
175
|
### Example
|
|
173
176
|
|
|
@@ -251,7 +254,7 @@ example().catch(console.error);
|
|
|
251
254
|
|
|
252
255
|
Update Contractor
|
|
253
256
|
|
|
254
|
-
Update a contractor.
|
|
257
|
+
Update a contractor.
|
|
255
258
|
|
|
256
259
|
### Example
|
|
257
260
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# LocationInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -10,11 +10,11 @@ Name | Type
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import type {
|
|
13
|
+
import type { LocationInner } from '@vaultgig/vaultgig-api-client'
|
|
14
14
|
|
|
15
15
|
// TODO: Update the object below with actual values
|
|
16
16
|
const example = {
|
|
17
|
-
} satisfies
|
|
17
|
+
} satisfies LocationInner
|
|
18
18
|
|
|
19
19
|
console.log(example)
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
23
23
|
console.log(exampleJSON)
|
|
24
24
|
|
|
25
25
|
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as LocationInner
|
|
27
27
|
console.log(exampleParsed)
|
|
28
28
|
```
|
|
29
29
|
|
package/docs/ValidationError.md
CHANGED
package/package.json
CHANGED
|
@@ -42,7 +42,8 @@ import {
|
|
|
42
42
|
|
|
43
43
|
export interface CreateContractorRequest {
|
|
44
44
|
organizationId: string;
|
|
45
|
-
contractorCreatePayload
|
|
45
|
+
contractorCreatePayload: ContractorCreatePayload;
|
|
46
|
+
xIdempotencyKey?: string | null;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export interface GetContractorRequest {
|
|
@@ -70,7 +71,7 @@ export interface UpdateContractorRequest {
|
|
|
70
71
|
export class ContractorsApi extends runtime.BaseAPI {
|
|
71
72
|
|
|
72
73
|
/**
|
|
73
|
-
* Create a contractor.
|
|
74
|
+
* Create a contractor.
|
|
74
75
|
* Create Contractor
|
|
75
76
|
*/
|
|
76
77
|
async createContractorRaw(requestParameters: CreateContractorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseContractorCreateData>> {
|
|
@@ -81,12 +82,23 @@ export class ContractorsApi extends runtime.BaseAPI {
|
|
|
81
82
|
);
|
|
82
83
|
}
|
|
83
84
|
|
|
85
|
+
if (requestParameters['contractorCreatePayload'] == null) {
|
|
86
|
+
throw new runtime.RequiredError(
|
|
87
|
+
'contractorCreatePayload',
|
|
88
|
+
'Required parameter "contractorCreatePayload" was null or undefined when calling createContractor().'
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
84
92
|
const queryParameters: any = {};
|
|
85
93
|
|
|
86
94
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
87
95
|
|
|
88
96
|
headerParameters['Content-Type'] = 'application/json';
|
|
89
97
|
|
|
98
|
+
if (requestParameters['xIdempotencyKey'] != null) {
|
|
99
|
+
headerParameters['X-Idempotency-Key'] = String(requestParameters['xIdempotencyKey']);
|
|
100
|
+
}
|
|
101
|
+
|
|
90
102
|
if (this.configuration && this.configuration.accessToken) {
|
|
91
103
|
const token = this.configuration.accessToken;
|
|
92
104
|
const tokenString = await token("ClerkAuth", []);
|
|
@@ -111,7 +123,7 @@ export class ContractorsApi extends runtime.BaseAPI {
|
|
|
111
123
|
}
|
|
112
124
|
|
|
113
125
|
/**
|
|
114
|
-
* Create a contractor.
|
|
126
|
+
* Create a contractor.
|
|
115
127
|
* Create Contractor
|
|
116
128
|
*/
|
|
117
129
|
async createContractor(requestParameters: CreateContractorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseContractorCreateData> {
|
|
@@ -175,7 +187,7 @@ export class ContractorsApi extends runtime.BaseAPI {
|
|
|
175
187
|
}
|
|
176
188
|
|
|
177
189
|
/**
|
|
178
|
-
* Get all contractors for an organization.
|
|
190
|
+
* Get all contractors for an organization.
|
|
179
191
|
* Get Contractors
|
|
180
192
|
*/
|
|
181
193
|
async getContractorsRaw(requestParameters: GetContractorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponsePaginatedResponseContractorResponse>> {
|
|
@@ -229,7 +241,7 @@ export class ContractorsApi extends runtime.BaseAPI {
|
|
|
229
241
|
}
|
|
230
242
|
|
|
231
243
|
/**
|
|
232
|
-
* Get all contractors for an organization.
|
|
244
|
+
* Get all contractors for an organization.
|
|
233
245
|
* Get Contractors
|
|
234
246
|
*/
|
|
235
247
|
async getContractors(requestParameters: GetContractorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponsePaginatedResponseContractorResponse> {
|
|
@@ -238,7 +250,7 @@ export class ContractorsApi extends runtime.BaseAPI {
|
|
|
238
250
|
}
|
|
239
251
|
|
|
240
252
|
/**
|
|
241
|
-
* Update a contractor.
|
|
253
|
+
* Update a contractor.
|
|
242
254
|
* Update Contractor
|
|
243
255
|
*/
|
|
244
256
|
async updateContractorRaw(requestParameters: UpdateContractorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>> {
|
|
@@ -287,7 +299,7 @@ export class ContractorsApi extends runtime.BaseAPI {
|
|
|
287
299
|
}
|
|
288
300
|
|
|
289
301
|
/**
|
|
290
|
-
* Update a contractor.
|
|
302
|
+
* Update a contractor.
|
|
291
303
|
* Update Contractor
|
|
292
304
|
*/
|
|
293
305
|
async updateContractor(requestParameters: UpdateContractorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse> {
|
|
@@ -44,7 +44,7 @@ export interface ContractorCreatePayload {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ContractorCreatePayload
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {ContractorType}
|
|
@@ -66,7 +66,6 @@ export interface ContractorCreatePayload {
|
|
|
66
66
|
*/
|
|
67
67
|
export function instanceOfContractorCreatePayload(value: object): value is ContractorCreatePayload {
|
|
68
68
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
69
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
70
69
|
if (!('contractorType' in value) || value['contractorType'] === undefined) return false;
|
|
71
70
|
if (!('sendInvite' in value) || value['sendInvite'] === undefined) return false;
|
|
72
71
|
return true;
|
|
@@ -84,7 +83,7 @@ export function ContractorCreatePayloadFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
84
83
|
|
|
85
84
|
'sampleData': json['sample_data'] == null ? undefined : json['sample_data'],
|
|
86
85
|
'name': json['name'],
|
|
87
|
-
'email': json['email'],
|
|
86
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
88
87
|
'contractorType': ContractorTypeFromJSON(json['contractor_type']),
|
|
89
88
|
'sendInvite': json['send_invite'],
|
|
90
89
|
};
|
|
@@ -70,7 +70,7 @@ export interface ContractorResponse {
|
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof ContractorResponse
|
|
72
72
|
*/
|
|
73
|
-
email
|
|
73
|
+
email?: string | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {string}
|
|
@@ -152,7 +152,6 @@ export interface ContractorResponse {
|
|
|
152
152
|
*/
|
|
153
153
|
export function instanceOfContractorResponse(value: object): value is ContractorResponse {
|
|
154
154
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
155
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
156
155
|
if (!('organizationId' in value) || value['organizationId'] === undefined) return false;
|
|
157
156
|
return true;
|
|
158
157
|
}
|
|
@@ -171,7 +170,7 @@ export function ContractorResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
171
170
|
'clerkUserId': json['clerk_user_id'] == null ? undefined : json['clerk_user_id'],
|
|
172
171
|
'fullName': json['full_name'] == null ? undefined : json['full_name'],
|
|
173
172
|
'businessName': json['business_name'] == null ? undefined : json['business_name'],
|
|
174
|
-
'email': json['email'],
|
|
173
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
175
174
|
'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
|
|
176
175
|
'status': json['status'] == null ? undefined : ContractorStatusFromJSON(json['status']),
|
|
177
176
|
'contractorType': json['contractor_type'] == null ? undefined : ContractorTypeFromJSON(json['contractor_type']),
|
|
@@ -57,7 +57,7 @@ export interface ContractorUpdatePayload {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof ContractorUpdatePayload
|
|
59
59
|
*/
|
|
60
|
-
email
|
|
60
|
+
email?: string | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -126,7 +126,6 @@ export interface ContractorUpdatePayload {
|
|
|
126
126
|
* Check if a given object implements the ContractorUpdatePayload interface.
|
|
127
127
|
*/
|
|
128
128
|
export function instanceOfContractorUpdatePayload(value: object): value is ContractorUpdatePayload {
|
|
129
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
130
129
|
return true;
|
|
131
130
|
}
|
|
132
131
|
|
|
@@ -143,7 +142,7 @@ export function ContractorUpdatePayloadFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
143
142
|
'sampleData': json['sample_data'] == null ? undefined : json['sample_data'],
|
|
144
143
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
145
144
|
'name': json['name'] == null ? undefined : json['name'],
|
|
146
|
-
'email': json['email'],
|
|
145
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
147
146
|
'country': json['country'] == null ? undefined : json['country'],
|
|
148
147
|
'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
|
|
149
148
|
'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
|
|
@@ -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 LocationInner
|
|
20
|
+
*/
|
|
21
|
+
export interface LocationInner {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the LocationInner interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfLocationInner(value: object): value is LocationInner {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function LocationInnerFromJSON(json: any): LocationInner {
|
|
32
|
+
return LocationInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function LocationInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LocationInner {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function LocationInnerToJSON(json: any): LocationInner {
|
|
40
|
+
return LocationInnerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function LocationInnerToJSONTyped(value?: LocationInner | null, ignoreDiscriminator: boolean = false): any {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { LocationInner } from './LocationInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
LocationInnerFromJSON,
|
|
19
|
+
LocationInnerFromJSONTyped,
|
|
20
|
+
LocationInnerToJSON,
|
|
21
|
+
LocationInnerToJSONTyped,
|
|
22
|
+
} from './LocationInner';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
export interface ValidationError {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {Array<
|
|
32
|
+
* @type {Array<LocationInner>}
|
|
33
33
|
* @memberof ValidationError
|
|
34
34
|
*/
|
|
35
|
-
loc: Array<
|
|
35
|
+
loc: Array<LocationInner>;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -67,7 +67,7 @@ export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
67
67
|
}
|
|
68
68
|
return {
|
|
69
69
|
|
|
70
|
-
'loc': ((json['loc'] as Array<any>).map(
|
|
70
|
+
'loc': ((json['loc'] as Array<any>).map(LocationInnerFromJSON)),
|
|
71
71
|
'msg': json['msg'],
|
|
72
72
|
'type': json['type'],
|
|
73
73
|
};
|
|
@@ -84,7 +84,7 @@ export function ValidationErrorToJSONTyped(value?: ValidationError | null, ignor
|
|
|
84
84
|
|
|
85
85
|
return {
|
|
86
86
|
|
|
87
|
-
'loc': ((value['loc'] as Array<any>).map(
|
|
87
|
+
'loc': ((value['loc'] as Array<any>).map(LocationInnerToJSON)),
|
|
88
88
|
'msg': value['msg'],
|
|
89
89
|
'type': value['type'],
|
|
90
90
|
};
|
package/src/models/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './ContractorStatus';
|
|
|
9
9
|
export * from './ContractorType';
|
|
10
10
|
export * from './ContractorUpdatePayload';
|
|
11
11
|
export * from './HTTPValidationError';
|
|
12
|
+
export * from './LocationInner';
|
|
12
13
|
export * from './PaginatedResponseContractorResponse';
|
|
13
14
|
export * from './PaginationMeta';
|
|
14
15
|
export * from './ResponseContractorCreateData';
|
|
@@ -17,4 +18,3 @@ export * from './ResponsePaginatedResponseContractorResponse';
|
|
|
17
18
|
export * from './SuccessResponse';
|
|
18
19
|
export * from './TinType';
|
|
19
20
|
export * from './ValidationError';
|
|
20
|
-
export * from './ValidationErrorLocInner';
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ValidationErrorLocInner
|
|
16
|
-
*/
|
|
17
|
-
export interface ValidationErrorLocInner {
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
21
|
-
*/
|
|
22
|
-
export declare function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner;
|
|
23
|
-
export declare function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner;
|
|
24
|
-
export declare function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner;
|
|
25
|
-
export declare function ValidationErrorLocInnerToJSON(json: any): ValidationErrorLocInner;
|
|
26
|
-
export declare function ValidationErrorLocInnerToJSONTyped(value?: ValidationErrorLocInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,39 +0,0 @@
|
|
|
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.instanceOfValidationErrorLocInner = instanceOfValidationErrorLocInner;
|
|
17
|
-
exports.ValidationErrorLocInnerFromJSON = ValidationErrorLocInnerFromJSON;
|
|
18
|
-
exports.ValidationErrorLocInnerFromJSONTyped = ValidationErrorLocInnerFromJSONTyped;
|
|
19
|
-
exports.ValidationErrorLocInnerToJSON = ValidationErrorLocInnerToJSON;
|
|
20
|
-
exports.ValidationErrorLocInnerToJSONTyped = ValidationErrorLocInnerToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfValidationErrorLocInner(value) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function ValidationErrorLocInnerFromJSON(json) {
|
|
28
|
-
return ValidationErrorLocInnerFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
function ValidationErrorLocInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
function ValidationErrorLocInnerToJSON(json) {
|
|
34
|
-
return ValidationErrorLocInnerToJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function ValidationErrorLocInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
37
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
|