@vaultgig/vaultgig-api-client 0.0.7 → 0.0.9

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.
@@ -1 +1 @@
1
- 7.18.0-SNAPSHOT
1
+ 7.19.0-SNAPSHOT
package/.versions.json CHANGED
@@ -1 +1 @@
1
- {"vaultgig-api-client": {"typescript": "0.0.7"}}
1
+ {"vaultgig-api-client": {"typescript": "0.0.9"}}
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @vaultgig/vaultgig-api-client@0.0.7
1
+ # @vaultgig/vaultgig-api-client@0.0.9
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -31,8 +31,8 @@ async function example() {
31
31
  const body = {
32
32
  // string
33
33
  organizationId: organizationId_example,
34
- // ContractorCreatePayload
35
- contractorCreatePayload: ...,
34
+ // ContractorCreatePayload (optional)
35
+ contractorCreatePayload: {"sample_data":true,"name":"string","email":"user@example.com","contractor_type":"individual","send_invite":true},
36
36
  } satisfies CreateContractorRequest;
37
37
 
38
38
  try {
@@ -101,8 +101,8 @@ and is automatically generated by the
101
101
  [OpenAPI Generator](https://openapi-generator.tech) project:
102
102
 
103
103
  - API version: `1.0.0`
104
- - Package version: `0.0.7`
105
- - Generator version: `7.18.0-SNAPSHOT`
104
+ - Package version: `0.0.9`
105
+ - Generator version: `7.19.0-SNAPSHOT`
106
106
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
107
107
 
108
108
  The generated npm module supports the following:
@@ -13,7 +13,7 @@ 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: ContractorCreatePayload;
16
+ contractorCreatePayload?: ContractorCreatePayload;
17
17
  }
18
18
  export interface GetContractorRequest {
19
19
  contractorId: string;
@@ -29,7 +29,7 @@ export interface GetContractorsRequest {
29
29
  export interface UpdateContractorRequest {
30
30
  contractorId: string;
31
31
  organizationId: string;
32
- contractorUpdatePayload: ContractorUpdatePayload;
32
+ contractorUpdatePayload?: ContractorUpdatePayload;
33
33
  }
34
34
  /**
35
35
  *
@@ -88,9 +88,6 @@ 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
- }
94
91
  queryParameters = {};
95
92
  headerParameters = {};
96
93
  headerParameters['Content-Type'] = 'application/json';
@@ -286,9 +283,6 @@ var ContractorsApi = /** @class */ (function (_super) {
286
283
  if (requestParameters['organizationId'] == null) {
287
284
  throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateContractor().');
288
285
  }
289
- if (requestParameters['contractorUpdatePayload'] == null) {
290
- throw new runtime.RequiredError('contractorUpdatePayload', 'Required parameter "contractorUpdatePayload" was null or undefined when calling updateContractor().');
291
- }
292
286
  queryParameters = {};
293
287
  headerParameters = {};
294
288
  headerParameters['Content-Type'] = 'application/json';
@@ -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}
@@ -41,6 +41,7 @@ function ContractorCreatePayloadFromJSONTyped(json, ignoreDiscriminator) {
41
41
  return json;
42
42
  }
43
43
  return {
44
+ 'sampleData': json['sample_data'] == null ? undefined : json['sample_data'],
44
45
  'name': json['name'],
45
46
  'email': json['email'],
46
47
  'contractorType': (0, ContractorType_1.ContractorTypeFromJSON)(json['contractor_type']),
@@ -56,6 +57,7 @@ function ContractorCreatePayloadToJSONTyped(value, ignoreDiscriminator) {
56
57
  return value;
57
58
  }
58
59
  return {
60
+ 'sample_data': value['sampleData'],
59
61
  'name': value['name'],
60
62
  'email': value['email'],
61
63
  '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
@@ -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,6 +20,7 @@ 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
  */
@@ -50,6 +51,13 @@ function ContractorResponseFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'contractorType': json['contractor_type'] == null ? undefined : (0, ContractorType_1.ContractorTypeFromJSON)(json['contractor_type']),
51
52
  'lastPayment': json['last_payment'] == null ? undefined : (new Date(json['last_payment'])),
52
53
  'organizationId': json['organization_id'],
54
+ 'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
55
+ 'tinType': json['tin_type'] == null ? undefined : (0, TinType_1.TinTypeFromJSON)(json['tin_type']),
56
+ 'address': json['address'] == null ? undefined : json['address'],
57
+ 'city': json['city'] == null ? undefined : json['city'],
58
+ 'state': json['state'] == null ? undefined : json['state'],
59
+ 'zipCode': json['zip_code'] == null ? undefined : json['zip_code'],
60
+ 'country': json['country'] == null ? undefined : json['country'],
53
61
  };
54
62
  }
55
63
  function ContractorResponseToJSON(json) {
@@ -71,5 +79,12 @@ function ContractorResponseToJSONTyped(value, ignoreDiscriminator) {
71
79
  'contractor_type': (0, ContractorType_1.ContractorTypeToJSON)(value['contractorType']),
72
80
  'last_payment': value['lastPayment'] == null ? value['lastPayment'] : value['lastPayment'].toISOString(),
73
81
  'organization_id': value['organizationId'],
82
+ 'tax_id': value['taxId'],
83
+ 'tin_type': (0, TinType_1.TinTypeToJSON)(value['tinType']),
84
+ 'address': value['address'],
85
+ 'city': value['city'],
86
+ 'state': value['state'],
87
+ 'zip_code': value['zipCode'],
88
+ 'country': value['country'],
74
89
  };
75
90
  }
@@ -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}
@@ -36,6 +36,7 @@ function ContractorUpdatePayloadFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
+ 'sampleData': json['sample_data'] == null ? undefined : json['sample_data'],
39
40
  'userId': json['user_id'] == null ? undefined : json['user_id'],
40
41
  'name': json['name'] == null ? undefined : json['name'],
41
42
  'email': json['email'],
@@ -60,6 +61,7 @@ function ContractorUpdatePayloadToJSONTyped(value, ignoreDiscriminator) {
60
61
  return value;
61
62
  }
62
63
  return {
64
+ 'sample_data': value['sampleData'],
63
65
  'user_id': value['userId'],
64
66
  'name': value['name'],
65
67
  'email': value['email'],
@@ -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,
@@ -39,8 +39,8 @@ async function example() {
39
39
  const body = {
40
40
  // string
41
41
  organizationId: organizationId_example,
42
- // ContractorCreatePayload
43
- contractorCreatePayload: ...,
42
+ // ContractorCreatePayload (optional)
43
+ contractorCreatePayload: {"sample_data":true,"name":"string","email":"user@example.com","contractor_type":"individual","send_invite":true},
44
44
  } satisfies CreateContractorRequest;
45
45
 
46
46
  try {
@@ -61,7 +61,7 @@ example().catch(console.error);
61
61
  | Name | Type | Description | Notes |
62
62
  |------------- | ------------- | ------------- | -------------|
63
63
  | **organizationId** | `string` | | [Defaults to `undefined`] |
64
- | **contractorCreatePayload** | [ContractorCreatePayload](ContractorCreatePayload.md) | | |
64
+ | **contractorCreatePayload** | [ContractorCreatePayload](ContractorCreatePayload.md) | | [Optional] |
65
65
 
66
66
  ### Return type
67
67
 
@@ -275,8 +275,8 @@ async function example() {
275
275
  contractorId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
276
276
  // string
277
277
  organizationId: organizationId_example,
278
- // ContractorUpdatePayload
279
- contractorUpdatePayload: ...,
278
+ // ContractorUpdatePayload (optional)
279
+ contractorUpdatePayload: {"sample_data":true,"user_id":"string","name":"string","email":"user@example.com","country":"string","phone_number":"string","tax_id":"string","tin_type":"ssn","address":"string","state":"string","zip_code":"string","city":"string","classification_type":"sole_proprietor","business_name":"string"},
280
280
  } satisfies UpdateContractorRequest;
281
281
 
282
282
  try {
@@ -298,7 +298,7 @@ example().catch(console.error);
298
298
  |------------- | ------------- | ------------- | -------------|
299
299
  | **contractorId** | `string` | | [Defaults to `undefined`] |
300
300
  | **organizationId** | `string` | | [Defaults to `undefined`] |
301
- | **contractorUpdatePayload** | [ContractorUpdatePayload](ContractorUpdatePayload.md) | | |
301
+ | **contractorUpdatePayload** | [ContractorUpdatePayload](ContractorUpdatePayload.md) | | [Optional] |
302
302
 
303
303
  ### Return type
304
304
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaultgig/vaultgig-api-client",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "OpenAPI client for @vaultgig/vaultgig-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -42,7 +42,7 @@ import {
42
42
 
43
43
  export interface CreateContractorRequest {
44
44
  organizationId: string;
45
- contractorCreatePayload: ContractorCreatePayload;
45
+ contractorCreatePayload?: ContractorCreatePayload;
46
46
  }
47
47
 
48
48
  export interface GetContractorRequest {
@@ -61,7 +61,7 @@ export interface GetContractorsRequest {
61
61
  export interface UpdateContractorRequest {
62
62
  contractorId: string;
63
63
  organizationId: string;
64
- contractorUpdatePayload: ContractorUpdatePayload;
64
+ contractorUpdatePayload?: ContractorUpdatePayload;
65
65
  }
66
66
 
67
67
  /**
@@ -81,13 +81,6 @@ export class ContractorsApi extends runtime.BaseAPI {
81
81
  );
82
82
  }
83
83
 
84
- if (requestParameters['contractorCreatePayload'] == null) {
85
- throw new runtime.RequiredError(
86
- 'contractorCreatePayload',
87
- 'Required parameter "contractorCreatePayload" was null or undefined when calling createContractor().'
88
- );
89
- }
90
-
91
84
  const queryParameters: any = {};
92
85
 
93
86
  const headerParameters: runtime.HTTPHeaders = {};
@@ -263,13 +256,6 @@ export class ContractorsApi extends runtime.BaseAPI {
263
256
  );
264
257
  }
265
258
 
266
- if (requestParameters['contractorUpdatePayload'] == null) {
267
- throw new runtime.RequiredError(
268
- 'contractorUpdatePayload',
269
- 'Required parameter "contractorUpdatePayload" was null or undefined when calling updateContractor().'
270
- );
271
- }
272
-
273
259
  const queryParameters: any = {};
274
260
 
275
261
  const headerParameters: runtime.HTTPHeaders = {};
@@ -27,6 +27,12 @@ import {
27
27
  * @interface ContractorCreatePayload
28
28
  */
29
29
  export interface ContractorCreatePayload {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ContractorCreatePayload
34
+ */
35
+ sampleData?: boolean;
30
36
  /**
31
37
  *
32
38
  * @type {string}
@@ -76,6 +82,7 @@ export function ContractorCreatePayloadFromJSONTyped(json: any, ignoreDiscrimina
76
82
  }
77
83
  return {
78
84
 
85
+ 'sampleData': json['sample_data'] == null ? undefined : json['sample_data'],
79
86
  'name': json['name'],
80
87
  'email': json['email'],
81
88
  'contractorType': ContractorTypeFromJSON(json['contractor_type']),
@@ -94,6 +101,7 @@ export function ContractorCreatePayloadToJSONTyped(value?: ContractorCreatePaylo
94
101
 
95
102
  return {
96
103
 
104
+ 'sample_data': value['sampleData'],
97
105
  'name': value['name'],
98
106
  'email': value['email'],
99
107
  'contractor_type': ContractorTypeToJSON(value['contractorType']),
@@ -27,6 +27,13 @@ import {
27
27
  ContractorTypeToJSON,
28
28
  ContractorTypeToJSONTyped,
29
29
  } from './ContractorType';
30
+ import type { TinType } from './TinType';
31
+ import {
32
+ TinTypeFromJSON,
33
+ TinTypeFromJSONTyped,
34
+ TinTypeToJSON,
35
+ TinTypeToJSONTyped,
36
+ } from './TinType';
30
37
 
31
38
  /**
32
39
  * Response model representing a contractor.
@@ -94,6 +101,48 @@ export interface ContractorResponse {
94
101
  * @memberof ContractorResponse
95
102
  */
96
103
  organizationId: string;
104
+ /**
105
+ *
106
+ * @type {string}
107
+ * @memberof ContractorResponse
108
+ */
109
+ taxId?: string | null;
110
+ /**
111
+ *
112
+ * @type {TinType}
113
+ * @memberof ContractorResponse
114
+ */
115
+ tinType?: TinType | null;
116
+ /**
117
+ *
118
+ * @type {string}
119
+ * @memberof ContractorResponse
120
+ */
121
+ address?: string | null;
122
+ /**
123
+ *
124
+ * @type {string}
125
+ * @memberof ContractorResponse
126
+ */
127
+ city?: string | null;
128
+ /**
129
+ *
130
+ * @type {string}
131
+ * @memberof ContractorResponse
132
+ */
133
+ state?: string | null;
134
+ /**
135
+ *
136
+ * @type {string}
137
+ * @memberof ContractorResponse
138
+ */
139
+ zipCode?: string | null;
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof ContractorResponse
144
+ */
145
+ country?: string | null;
97
146
  }
98
147
 
99
148
 
@@ -128,6 +177,13 @@ export function ContractorResponseFromJSONTyped(json: any, ignoreDiscriminator:
128
177
  'contractorType': json['contractor_type'] == null ? undefined : ContractorTypeFromJSON(json['contractor_type']),
129
178
  'lastPayment': json['last_payment'] == null ? undefined : (new Date(json['last_payment'])),
130
179
  'organizationId': json['organization_id'],
180
+ 'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
181
+ 'tinType': json['tin_type'] == null ? undefined : TinTypeFromJSON(json['tin_type']),
182
+ 'address': json['address'] == null ? undefined : json['address'],
183
+ 'city': json['city'] == null ? undefined : json['city'],
184
+ 'state': json['state'] == null ? undefined : json['state'],
185
+ 'zipCode': json['zip_code'] == null ? undefined : json['zip_code'],
186
+ 'country': json['country'] == null ? undefined : json['country'],
131
187
  };
132
188
  }
133
189
 
@@ -152,6 +208,13 @@ export function ContractorResponseToJSONTyped(value?: ContractorResponse | null,
152
208
  'contractor_type': ContractorTypeToJSON(value['contractorType']),
153
209
  'last_payment': value['lastPayment'] == null ? value['lastPayment'] : value['lastPayment'].toISOString(),
154
210
  'organization_id': value['organizationId'],
211
+ 'tax_id': value['taxId'],
212
+ 'tin_type': TinTypeToJSON(value['tinType']),
213
+ 'address': value['address'],
214
+ 'city': value['city'],
215
+ 'state': value['state'],
216
+ 'zip_code': value['zipCode'],
217
+ 'country': value['country'],
155
218
  };
156
219
  }
157
220
 
@@ -34,6 +34,12 @@ import {
34
34
  * @interface ContractorUpdatePayload
35
35
  */
36
36
  export interface ContractorUpdatePayload {
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof ContractorUpdatePayload
41
+ */
42
+ sampleData?: boolean;
37
43
  /**
38
44
  *
39
45
  * @type {string}
@@ -134,6 +140,7 @@ export function ContractorUpdatePayloadFromJSONTyped(json: any, ignoreDiscrimina
134
140
  }
135
141
  return {
136
142
 
143
+ 'sampleData': json['sample_data'] == null ? undefined : json['sample_data'],
137
144
  'userId': json['user_id'] == null ? undefined : json['user_id'],
138
145
  'name': json['name'] == null ? undefined : json['name'],
139
146
  'email': json['email'],
@@ -161,6 +168,7 @@ export function ContractorUpdatePayloadToJSONTyped(value?: ContractorUpdatePaylo
161
168
 
162
169
  return {
163
170
 
171
+ 'sample_data': value['sampleData'],
164
172
  'user_id': value['userId'],
165
173
  'name': value['name'],
166
174
  'email': value['email'],