@vaultgig/vaultgig-api-client 0.0.8 → 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/.openapi-generator/VERSION +1 -1
- package/.versions.json +1 -1
- package/README.md +7 -5
- package/dist/apis/ContractorsApi.d.ts +8 -7
- package/dist/apis/ContractorsApi.js +9 -9
- package/dist/models/ContractorCreatePayload.d.ts +7 -1
- package/dist/models/ContractorCreatePayload.js +3 -3
- package/dist/models/ContractorResponse.d.ts +44 -1
- package/dist/models/ContractorResponse.js +16 -3
- package/dist/models/ContractorUpdatePayload.d.ts +7 -1
- package/dist/models/ContractorUpdatePayload.js +3 -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/ContractorCreatePayload.md +2 -0
- package/docs/ContractorResponse.md +14 -0
- package/docs/ContractorUpdatePayload.md +2 -0
- package/docs/ContractorsApi.md +11 -8
- package/docs/{ValidationErrorLocInner.md → LocationInner.md} +4 -4
- package/docs/ValidationError.md +1 -1
- package/package.json +1 -1
- package/src/apis/ContractorsApi.ts +12 -14
- package/src/models/ContractorCreatePayload.ts +10 -3
- package/src/models/ContractorResponse.ts +65 -3
- package/src/models/ContractorUpdatePayload.ts +10 -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.19.0-SNAPSHOT
|
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
|
|
|
@@ -32,7 +32,9 @@ async function example() {
|
|
|
32
32
|
// string
|
|
33
33
|
organizationId: organizationId_example,
|
|
34
34
|
// ContractorCreatePayload
|
|
35
|
-
contractorCreatePayload:
|
|
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,8 +103,8 @@ 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.
|
|
105
|
-
- Generator version: `7.
|
|
106
|
+
- Package version: `0.0.10`
|
|
107
|
+
- Generator version: `7.19.0-SNAPSHOT`
|
|
106
108
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
107
109
|
|
|
108
110
|
The generated npm module supports the following:
|
|
@@ -14,6 +14,7 @@ import type { ContractorCreatePayload, ContractorUpdatePayload, ResponseContract
|
|
|
14
14
|
export interface CreateContractorRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
contractorCreatePayload: ContractorCreatePayload;
|
|
17
|
+
xIdempotencyKey?: string | null;
|
|
17
18
|
}
|
|
18
19
|
export interface GetContractorRequest {
|
|
19
20
|
contractorId: string;
|
|
@@ -29,19 +30,19 @@ export interface GetContractorsRequest {
|
|
|
29
30
|
export interface UpdateContractorRequest {
|
|
30
31
|
contractorId: string;
|
|
31
32
|
organizationId: string;
|
|
32
|
-
contractorUpdatePayload
|
|
33
|
+
contractorUpdatePayload?: ContractorUpdatePayload;
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
*
|
|
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) {
|
|
@@ -94,6 +94,9 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
94
94
|
queryParameters = {};
|
|
95
95
|
headerParameters = {};
|
|
96
96
|
headerParameters['Content-Type'] = 'application/json';
|
|
97
|
+
if (requestParameters['xIdempotencyKey'] != null) {
|
|
98
|
+
headerParameters['X-Idempotency-Key'] = String(requestParameters['xIdempotencyKey']);
|
|
99
|
+
}
|
|
97
100
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
98
101
|
token = this.configuration.accessToken;
|
|
99
102
|
return [4 /*yield*/, token("ClerkAuth", [])];
|
|
@@ -121,7 +124,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
121
124
|
});
|
|
122
125
|
};
|
|
123
126
|
/**
|
|
124
|
-
* Create a contractor.
|
|
127
|
+
* Create a contractor.
|
|
125
128
|
* Create Contractor
|
|
126
129
|
*/
|
|
127
130
|
ContractorsApi.prototype.createContractor = function (requestParameters, initOverrides) {
|
|
@@ -201,7 +204,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
201
204
|
});
|
|
202
205
|
};
|
|
203
206
|
/**
|
|
204
|
-
* Get all contractors for an organization.
|
|
207
|
+
* Get all contractors for an organization.
|
|
205
208
|
* Get Contractors
|
|
206
209
|
*/
|
|
207
210
|
ContractorsApi.prototype.getContractorsRaw = function (requestParameters, initOverrides) {
|
|
@@ -253,7 +256,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
253
256
|
});
|
|
254
257
|
};
|
|
255
258
|
/**
|
|
256
|
-
* Get all contractors for an organization.
|
|
259
|
+
* Get all contractors for an organization.
|
|
257
260
|
* Get Contractors
|
|
258
261
|
*/
|
|
259
262
|
ContractorsApi.prototype.getContractors = function (requestParameters, initOverrides) {
|
|
@@ -271,7 +274,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
271
274
|
});
|
|
272
275
|
};
|
|
273
276
|
/**
|
|
274
|
-
* Update a contractor.
|
|
277
|
+
* Update a contractor.
|
|
275
278
|
* Update Contractor
|
|
276
279
|
*/
|
|
277
280
|
ContractorsApi.prototype.updateContractorRaw = function (requestParameters, initOverrides) {
|
|
@@ -286,9 +289,6 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
286
289
|
if (requestParameters['organizationId'] == null) {
|
|
287
290
|
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateContractor().');
|
|
288
291
|
}
|
|
289
|
-
if (requestParameters['contractorUpdatePayload'] == null) {
|
|
290
|
-
throw new runtime.RequiredError('contractorUpdatePayload', 'Required parameter "contractorUpdatePayload" was null or undefined when calling updateContractor().');
|
|
291
|
-
}
|
|
292
292
|
queryParameters = {};
|
|
293
293
|
headerParameters = {};
|
|
294
294
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -320,7 +320,7 @@ var ContractorsApi = /** @class */ (function (_super) {
|
|
|
320
320
|
});
|
|
321
321
|
};
|
|
322
322
|
/**
|
|
323
|
-
* Update a contractor.
|
|
323
|
+
* Update a contractor.
|
|
324
324
|
* Update Contractor
|
|
325
325
|
*/
|
|
326
326
|
ContractorsApi.prototype.updateContractor = function (requestParameters, initOverrides) {
|
|
@@ -16,6 +16,12 @@ import type { ContractorType } from './ContractorType';
|
|
|
16
16
|
* @interface ContractorCreatePayload
|
|
17
17
|
*/
|
|
18
18
|
export interface ContractorCreatePayload {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ContractorCreatePayload
|
|
23
|
+
*/
|
|
24
|
+
sampleData?: boolean;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -27,7 +33,7 @@ export interface ContractorCreatePayload {
|
|
|
27
33
|
* @type {string}
|
|
28
34
|
* @memberof ContractorCreatePayload
|
|
29
35
|
*/
|
|
30
|
-
email
|
|
36
|
+
email?: string | null;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {ContractorType}
|
|
@@ -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)
|
|
@@ -41,8 +39,9 @@ function ContractorCreatePayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
39
|
return json;
|
|
42
40
|
}
|
|
43
41
|
return {
|
|
42
|
+
'sampleData': json['sample_data'] == null ? undefined : json['sample_data'],
|
|
44
43
|
'name': json['name'],
|
|
45
|
-
'email': json['email'],
|
|
44
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
46
45
|
'contractorType': (0, ContractorType_1.ContractorTypeFromJSON)(json['contractor_type']),
|
|
47
46
|
'sendInvite': json['send_invite'],
|
|
48
47
|
};
|
|
@@ -56,6 +55,7 @@ function ContractorCreatePayloadToJSONTyped(value, ignoreDiscriminator) {
|
|
|
56
55
|
return value;
|
|
57
56
|
}
|
|
58
57
|
return {
|
|
58
|
+
'sample_data': value['sampleData'],
|
|
59
59
|
'name': value['name'],
|
|
60
60
|
'email': value['email'],
|
|
61
61
|
'contractor_type': (0, ContractorType_1.ContractorTypeToJSON)(value['contractorType']),
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ContractorStatus } from './ContractorStatus';
|
|
13
13
|
import type { ContractorType } from './ContractorType';
|
|
14
|
+
import type { TinType } from './TinType';
|
|
14
15
|
/**
|
|
15
16
|
* Response model representing a contractor.
|
|
16
17
|
* @export
|
|
@@ -46,7 +47,7 @@ export interface ContractorResponse {
|
|
|
46
47
|
* @type {string}
|
|
47
48
|
* @memberof ContractorResponse
|
|
48
49
|
*/
|
|
49
|
-
email
|
|
50
|
+
email?: string | null;
|
|
50
51
|
/**
|
|
51
52
|
*
|
|
52
53
|
* @type {string}
|
|
@@ -77,6 +78,48 @@ export interface ContractorResponse {
|
|
|
77
78
|
* @memberof ContractorResponse
|
|
78
79
|
*/
|
|
79
80
|
organizationId: string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof ContractorResponse
|
|
85
|
+
*/
|
|
86
|
+
taxId?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {TinType}
|
|
90
|
+
* @memberof ContractorResponse
|
|
91
|
+
*/
|
|
92
|
+
tinType?: TinType | null;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof ContractorResponse
|
|
97
|
+
*/
|
|
98
|
+
address?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof ContractorResponse
|
|
103
|
+
*/
|
|
104
|
+
city?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof ContractorResponse
|
|
109
|
+
*/
|
|
110
|
+
state?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof ContractorResponse
|
|
115
|
+
*/
|
|
116
|
+
zipCode?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof ContractorResponse
|
|
121
|
+
*/
|
|
122
|
+
country?: string | null;
|
|
80
123
|
}
|
|
81
124
|
/**
|
|
82
125
|
* Check if a given object implements the ContractorResponse interface.
|
|
@@ -20,14 +20,13 @@ exports.ContractorResponseToJSON = ContractorResponseToJSON;
|
|
|
20
20
|
exports.ContractorResponseToJSONTyped = ContractorResponseToJSONTyped;
|
|
21
21
|
var ContractorStatus_1 = require("./ContractorStatus");
|
|
22
22
|
var ContractorType_1 = require("./ContractorType");
|
|
23
|
+
var TinType_1 = require("./TinType");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the ContractorResponse interface.
|
|
25
26
|
*/
|
|
26
27
|
function instanceOfContractorResponse(value) {
|
|
27
28
|
if (!('id' in value) || value['id'] === undefined)
|
|
28
29
|
return false;
|
|
29
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
30
|
-
return false;
|
|
31
30
|
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
32
31
|
return false;
|
|
33
32
|
return true;
|
|
@@ -44,12 +43,19 @@ function ContractorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
43
|
'clerkUserId': json['clerk_user_id'] == null ? undefined : json['clerk_user_id'],
|
|
45
44
|
'fullName': json['full_name'] == null ? undefined : json['full_name'],
|
|
46
45
|
'businessName': json['business_name'] == null ? undefined : json['business_name'],
|
|
47
|
-
'email': json['email'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
48
47
|
'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
|
|
49
48
|
'status': json['status'] == null ? undefined : (0, ContractorStatus_1.ContractorStatusFromJSON)(json['status']),
|
|
50
49
|
'contractorType': json['contractor_type'] == null ? undefined : (0, ContractorType_1.ContractorTypeFromJSON)(json['contractor_type']),
|
|
51
50
|
'lastPayment': json['last_payment'] == null ? undefined : (new Date(json['last_payment'])),
|
|
52
51
|
'organizationId': json['organization_id'],
|
|
52
|
+
'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
|
|
53
|
+
'tinType': json['tin_type'] == null ? undefined : (0, TinType_1.TinTypeFromJSON)(json['tin_type']),
|
|
54
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
55
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
56
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
57
|
+
'zipCode': json['zip_code'] == null ? undefined : json['zip_code'],
|
|
58
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
53
59
|
};
|
|
54
60
|
}
|
|
55
61
|
function ContractorResponseToJSON(json) {
|
|
@@ -71,5 +77,12 @@ function ContractorResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
77
|
'contractor_type': (0, ContractorType_1.ContractorTypeToJSON)(value['contractorType']),
|
|
72
78
|
'last_payment': value['lastPayment'] == null ? value['lastPayment'] : value['lastPayment'].toISOString(),
|
|
73
79
|
'organization_id': value['organizationId'],
|
|
80
|
+
'tax_id': value['taxId'],
|
|
81
|
+
'tin_type': (0, TinType_1.TinTypeToJSON)(value['tinType']),
|
|
82
|
+
'address': value['address'],
|
|
83
|
+
'city': value['city'],
|
|
84
|
+
'state': value['state'],
|
|
85
|
+
'zip_code': value['zipCode'],
|
|
86
|
+
'country': value['country'],
|
|
74
87
|
};
|
|
75
88
|
}
|
|
@@ -17,6 +17,12 @@ import type { TinType } from './TinType';
|
|
|
17
17
|
* @interface ContractorUpdatePayload
|
|
18
18
|
*/
|
|
19
19
|
export interface ContractorUpdatePayload {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof ContractorUpdatePayload
|
|
24
|
+
*/
|
|
25
|
+
sampleData?: boolean;
|
|
20
26
|
/**
|
|
21
27
|
*
|
|
22
28
|
* @type {string}
|
|
@@ -34,7 +40,7 @@ export interface ContractorUpdatePayload {
|
|
|
34
40
|
* @type {string}
|
|
35
41
|
* @memberof ContractorUpdatePayload
|
|
36
42
|
*/
|
|
37
|
-
email
|
|
43
|
+
email?: string | null;
|
|
38
44
|
/**
|
|
39
45
|
*
|
|
40
46
|
* @type {string}
|
|
@@ -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) {
|
|
@@ -36,9 +34,10 @@ function ContractorUpdatePayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
34
|
return json;
|
|
37
35
|
}
|
|
38
36
|
return {
|
|
37
|
+
'sampleData': json['sample_data'] == null ? undefined : json['sample_data'],
|
|
39
38
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
40
39
|
'name': json['name'] == null ? undefined : json['name'],
|
|
41
|
-
'email': json['email'],
|
|
40
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
42
41
|
'country': json['country'] == null ? undefined : json['country'],
|
|
43
42
|
'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
|
|
44
43
|
'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
|
|
@@ -60,6 +59,7 @@ function ContractorUpdatePayloadToJSONTyped(value, ignoreDiscriminator) {
|
|
|
60
59
|
return value;
|
|
61
60
|
}
|
|
62
61
|
return {
|
|
62
|
+
'sample_data': value['sampleData'],
|
|
63
63
|
'user_id': value['userId'],
|
|
64
64
|
'name': value['name'],
|
|
65
65
|
'email': value['email'],
|
|
@@ -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);
|
|
@@ -7,6 +7,7 @@ Model representing contractor data received from the client to create.
|
|
|
7
7
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
|
+
`sampleData` | boolean
|
|
10
11
|
`name` | string
|
|
11
12
|
`email` | string
|
|
12
13
|
`contractorType` | [ContractorType](ContractorType.md)
|
|
@@ -19,6 +20,7 @@ import type { ContractorCreatePayload } from '@vaultgig/vaultgig-api-client'
|
|
|
19
20
|
|
|
20
21
|
// TODO: Update the object below with actual values
|
|
21
22
|
const example = {
|
|
23
|
+
"sampleData": null,
|
|
22
24
|
"name": null,
|
|
23
25
|
"email": null,
|
|
24
26
|
"contractorType": null,
|
|
@@ -17,6 +17,13 @@ Name | Type
|
|
|
17
17
|
`contractorType` | [ContractorType](ContractorType.md)
|
|
18
18
|
`lastPayment` | Date
|
|
19
19
|
`organizationId` | string
|
|
20
|
+
`taxId` | string
|
|
21
|
+
`tinType` | [TinType](TinType.md)
|
|
22
|
+
`address` | string
|
|
23
|
+
`city` | string
|
|
24
|
+
`state` | string
|
|
25
|
+
`zipCode` | string
|
|
26
|
+
`country` | string
|
|
20
27
|
|
|
21
28
|
## Example
|
|
22
29
|
|
|
@@ -35,6 +42,13 @@ const example = {
|
|
|
35
42
|
"contractorType": null,
|
|
36
43
|
"lastPayment": null,
|
|
37
44
|
"organizationId": null,
|
|
45
|
+
"taxId": null,
|
|
46
|
+
"tinType": null,
|
|
47
|
+
"address": null,
|
|
48
|
+
"city": null,
|
|
49
|
+
"state": null,
|
|
50
|
+
"zipCode": null,
|
|
51
|
+
"country": null,
|
|
38
52
|
} satisfies ContractorResponse
|
|
39
53
|
|
|
40
54
|
console.log(example)
|
|
@@ -7,6 +7,7 @@ Model representing contractor data received from the client to update.
|
|
|
7
7
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
|
+
`sampleData` | boolean
|
|
10
11
|
`userId` | string
|
|
11
12
|
`name` | string
|
|
12
13
|
`email` | string
|
|
@@ -28,6 +29,7 @@ import type { ContractorUpdatePayload } from '@vaultgig/vaultgig-api-client'
|
|
|
28
29
|
|
|
29
30
|
// TODO: Update the object below with actual values
|
|
30
31
|
const example = {
|
|
32
|
+
"sampleData": null,
|
|
31
33
|
"userId": null,
|
|
32
34
|
"name": null,
|
|
33
35
|
"email": null,
|