@s-corp-biz/biz-entity-api 1.6.0-staging.9 → 1.7.0

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.
@@ -36,6 +36,14 @@ export declare const FamilyApiAxiosParamCreator: (configuration?: Configuration)
36
36
  * @throws {RequiredError}
37
37
  */
38
38
  apiFamilyFamilyMembersUserIdGet: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
+ /**
40
+ *
41
+ * @param {string} headUserId
42
+ * @param {AddFamilyMemberRequest} [addFamilyMemberRequest]
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ apiFamilyHeadUserIdMembersPost: (headUserId: string, addFamilyMemberRequest?: AddFamilyMemberRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
47
  /**
40
48
  *
41
49
  * @param {string} headUserId
@@ -91,6 +99,14 @@ export declare const FamilyApiFp: (configuration?: Configuration) => {
91
99
  * @throws {RequiredError}
92
100
  */
93
101
  apiFamilyFamilyMembersUserIdGet(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FamilyMemberResponse>>>;
102
+ /**
103
+ *
104
+ * @param {string} headUserId
105
+ * @param {AddFamilyMemberRequest} [addFamilyMemberRequest]
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ apiFamilyHeadUserIdMembersPost(headUserId: string, addFamilyMemberRequest?: AddFamilyMemberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FamilyMemberResponse>>;
94
110
  /**
95
111
  *
96
112
  * @param {string} headUserId
@@ -146,6 +162,14 @@ export declare const FamilyApiFactory: (configuration?: Configuration, basePath?
146
162
  * @throws {RequiredError}
147
163
  */
148
164
  apiFamilyFamilyMembersUserIdGet(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FamilyMemberResponse>>;
165
+ /**
166
+ *
167
+ * @param {string} headUserId
168
+ * @param {AddFamilyMemberRequest} [addFamilyMemberRequest]
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ apiFamilyHeadUserIdMembersPost(headUserId: string, addFamilyMemberRequest?: AddFamilyMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<FamilyMemberResponse>;
149
173
  /**
150
174
  *
151
175
  * @param {string} headUserId
@@ -205,6 +229,15 @@ export declare class FamilyApi extends BaseAPI {
205
229
  * @memberof FamilyApi
206
230
  */
207
231
  apiFamilyFamilyMembersUserIdGet(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FamilyMemberResponse[], any, {}>>;
232
+ /**
233
+ *
234
+ * @param {string} headUserId
235
+ * @param {AddFamilyMemberRequest} [addFamilyMemberRequest]
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ * @memberof FamilyApi
239
+ */
240
+ apiFamilyHeadUserIdMembersPost(headUserId: string, addFamilyMemberRequest?: AddFamilyMemberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FamilyMemberResponse, any, {}>>;
208
241
  /**
209
242
  *
210
243
  * @param {string} headUserId
@@ -176,6 +176,51 @@ var FamilyApiAxiosParamCreator = function (configuration) {
176
176
  });
177
177
  });
178
178
  },
179
+ /**
180
+ *
181
+ * @param {string} headUserId
182
+ * @param {AddFamilyMemberRequest} [addFamilyMemberRequest]
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ apiFamilyHeadUserIdMembersPost: function (headUserId, addFamilyMemberRequest, options) {
187
+ if (options === void 0) { options = {}; }
188
+ return __awaiter(_this, void 0, void 0, function () {
189
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
190
+ return __generator(this, function (_a) {
191
+ switch (_a.label) {
192
+ case 0:
193
+ // verify required parameter 'headUserId' is not null or undefined
194
+ (0, common_1.assertParamExists)('apiFamilyHeadUserIdMembersPost', 'headUserId', headUserId);
195
+ localVarPath = "/api/family/{headUserId}/members"
196
+ .replace("{".concat("headUserId", "}"), encodeURIComponent(String(headUserId)));
197
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
198
+ if (configuration) {
199
+ baseOptions = configuration.baseOptions;
200
+ }
201
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
202
+ localVarHeaderParameter = {};
203
+ localVarQueryParameter = {};
204
+ // authentication Bearer required
205
+ // http bearer authentication required
206
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
207
+ case 1:
208
+ // authentication Bearer required
209
+ // http bearer authentication required
210
+ _a.sent();
211
+ localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
212
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
213
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
215
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addFamilyMemberRequest, localVarRequestOptions, configuration);
216
+ return [2 /*return*/, {
217
+ url: (0, common_1.toPathString)(localVarUrlObj),
218
+ options: localVarRequestOptions,
219
+ }];
220
+ }
221
+ });
222
+ });
223
+ },
179
224
  /**
180
225
  *
181
226
  * @param {string} headUserId
@@ -435,6 +480,29 @@ var FamilyApiFp = function (configuration) {
435
480
  });
436
481
  });
437
482
  },
483
+ /**
484
+ *
485
+ * @param {string} headUserId
486
+ * @param {AddFamilyMemberRequest} [addFamilyMemberRequest]
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ */
490
+ apiFamilyHeadUserIdMembersPost: function (headUserId, addFamilyMemberRequest, options) {
491
+ var _a, _b, _c;
492
+ return __awaiter(this, void 0, void 0, function () {
493
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
494
+ return __generator(this, function (_d) {
495
+ switch (_d.label) {
496
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiFamilyHeadUserIdMembersPost(headUserId, addFamilyMemberRequest, options)];
497
+ case 1:
498
+ localVarAxiosArgs = _d.sent();
499
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
500
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FamilyApi.apiFamilyHeadUserIdMembersPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
501
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
502
+ }
503
+ });
504
+ });
505
+ },
438
506
  /**
439
507
  *
440
508
  * @param {string} headUserId
@@ -573,6 +641,16 @@ var FamilyApiFactory = function (configuration, basePath, axios) {
573
641
  apiFamilyFamilyMembersUserIdGet: function (userId, options) {
574
642
  return localVarFp.apiFamilyFamilyMembersUserIdGet(userId, options).then(function (request) { return request(axios, basePath); });
575
643
  },
644
+ /**
645
+ *
646
+ * @param {string} headUserId
647
+ * @param {AddFamilyMemberRequest} [addFamilyMemberRequest]
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ */
651
+ apiFamilyHeadUserIdMembersPost: function (headUserId, addFamilyMemberRequest, options) {
652
+ return localVarFp.apiFamilyHeadUserIdMembersPost(headUserId, addFamilyMemberRequest, options).then(function (request) { return request(axios, basePath); });
653
+ },
576
654
  /**
577
655
  *
578
656
  * @param {string} headUserId
@@ -654,6 +732,18 @@ var FamilyApi = /** @class */ (function (_super) {
654
732
  var _this = this;
655
733
  return (0, exports.FamilyApiFp)(this.configuration).apiFamilyFamilyMembersUserIdGet(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
656
734
  };
735
+ /**
736
+ *
737
+ * @param {string} headUserId
738
+ * @param {AddFamilyMemberRequest} [addFamilyMemberRequest]
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ * @memberof FamilyApi
742
+ */
743
+ FamilyApi.prototype.apiFamilyHeadUserIdMembersPost = function (headUserId, addFamilyMemberRequest, options) {
744
+ var _this = this;
745
+ return (0, exports.FamilyApiFp)(this.configuration).apiFamilyHeadUserIdMembersPost(headUserId, addFamilyMemberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
746
+ };
657
747
  /**
658
748
  *
659
749
  * @param {string} headUserId
@@ -12,11 +12,14 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { CreatePersonalTaxReportForUserRequest } from '../models';
16
+ import type { CreatePersonalTaxReportRequest } from '../models';
15
17
  import type { FederalTaxEstimateResponse } from '../models';
16
18
  import type { FilingStatusEnum } from '../models';
17
19
  import type { LongTermCapitalGainsTaxResponse } from '../models';
18
20
  import type { PersonalTaxReportResponse } from '../models';
19
21
  import type { TaxItemDefinitionResponse } from '../models';
22
+ import type { UpdatePersonalTaxReportForUserRequest } from '../models';
20
23
  import type { UpdatePersonalTaxReportRequest } from '../models';
21
24
  /**
22
25
  * PersonalTaxReportApi - axios parameter creator
@@ -29,6 +32,20 @@ export declare const PersonalTaxReportApiAxiosParamCreator: (configuration?: Con
29
32
  * @throws {RequiredError}
30
33
  */
31
34
  apiPersonalTaxReportDefinitionsGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35
+ /**
36
+ *
37
+ * @param {CreatePersonalTaxReportForUserRequest} [createPersonalTaxReportForUserRequest]
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ apiPersonalTaxReportForUserPost: (createPersonalTaxReportForUserRequest?: CreatePersonalTaxReportForUserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
42
+ /**
43
+ *
44
+ * @param {UpdatePersonalTaxReportForUserRequest} [updatePersonalTaxReportForUserRequest]
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ apiPersonalTaxReportForUserPut: (updatePersonalTaxReportForUserRequest?: UpdatePersonalTaxReportForUserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32
49
  /**
33
50
  *
34
51
  * @param {string} reportId
@@ -36,6 +53,13 @@ export declare const PersonalTaxReportApiAxiosParamCreator: (configuration?: Con
36
53
  * @throws {RequiredError}
37
54
  */
38
55
  apiPersonalTaxReportIdReportIdGet: (reportId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
56
+ /**
57
+ *
58
+ * @param {CreatePersonalTaxReportRequest} [createPersonalTaxReportRequest]
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ apiPersonalTaxReportPost: (createPersonalTaxReportRequest?: CreatePersonalTaxReportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
63
  /**
40
64
  *
41
65
  * @param {number} taxYear
@@ -96,6 +120,20 @@ export declare const PersonalTaxReportApiFp: (configuration?: Configuration) =>
96
120
  * @throws {RequiredError}
97
121
  */
98
122
  apiPersonalTaxReportDefinitionsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TaxItemDefinitionResponse>>>;
123
+ /**
124
+ *
125
+ * @param {CreatePersonalTaxReportForUserRequest} [createPersonalTaxReportForUserRequest]
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ apiPersonalTaxReportForUserPost(createPersonalTaxReportForUserRequest?: CreatePersonalTaxReportForUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonalTaxReportResponse>>;
130
+ /**
131
+ *
132
+ * @param {UpdatePersonalTaxReportForUserRequest} [updatePersonalTaxReportForUserRequest]
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ apiPersonalTaxReportForUserPut(updatePersonalTaxReportForUserRequest?: UpdatePersonalTaxReportForUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonalTaxReportResponse>>;
99
137
  /**
100
138
  *
101
139
  * @param {string} reportId
@@ -103,6 +141,13 @@ export declare const PersonalTaxReportApiFp: (configuration?: Configuration) =>
103
141
  * @throws {RequiredError}
104
142
  */
105
143
  apiPersonalTaxReportIdReportIdGet(reportId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonalTaxReportResponse>>;
144
+ /**
145
+ *
146
+ * @param {CreatePersonalTaxReportRequest} [createPersonalTaxReportRequest]
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ apiPersonalTaxReportPost(createPersonalTaxReportRequest?: CreatePersonalTaxReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonalTaxReportResponse>>;
106
151
  /**
107
152
  *
108
153
  * @param {number} taxYear
@@ -163,6 +208,20 @@ export declare const PersonalTaxReportApiFactory: (configuration?: Configuration
163
208
  * @throws {RequiredError}
164
209
  */
165
210
  apiPersonalTaxReportDefinitionsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<TaxItemDefinitionResponse>>;
211
+ /**
212
+ *
213
+ * @param {CreatePersonalTaxReportForUserRequest} [createPersonalTaxReportForUserRequest]
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ apiPersonalTaxReportForUserPost(createPersonalTaxReportForUserRequest?: CreatePersonalTaxReportForUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<PersonalTaxReportResponse>;
218
+ /**
219
+ *
220
+ * @param {UpdatePersonalTaxReportForUserRequest} [updatePersonalTaxReportForUserRequest]
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ */
224
+ apiPersonalTaxReportForUserPut(updatePersonalTaxReportForUserRequest?: UpdatePersonalTaxReportForUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<PersonalTaxReportResponse>;
166
225
  /**
167
226
  *
168
227
  * @param {string} reportId
@@ -170,6 +229,13 @@ export declare const PersonalTaxReportApiFactory: (configuration?: Configuration
170
229
  * @throws {RequiredError}
171
230
  */
172
231
  apiPersonalTaxReportIdReportIdGet(reportId: string, options?: RawAxiosRequestConfig): AxiosPromise<PersonalTaxReportResponse>;
232
+ /**
233
+ *
234
+ * @param {CreatePersonalTaxReportRequest} [createPersonalTaxReportRequest]
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ apiPersonalTaxReportPost(createPersonalTaxReportRequest?: CreatePersonalTaxReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<PersonalTaxReportResponse>;
173
239
  /**
174
240
  *
175
241
  * @param {number} taxYear
@@ -233,6 +299,22 @@ export declare class PersonalTaxReportApi extends BaseAPI {
233
299
  * @memberof PersonalTaxReportApi
234
300
  */
235
301
  apiPersonalTaxReportDefinitionsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaxItemDefinitionResponse[], any, {}>>;
302
+ /**
303
+ *
304
+ * @param {CreatePersonalTaxReportForUserRequest} [createPersonalTaxReportForUserRequest]
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ * @memberof PersonalTaxReportApi
308
+ */
309
+ apiPersonalTaxReportForUserPost(createPersonalTaxReportForUserRequest?: CreatePersonalTaxReportForUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PersonalTaxReportResponse, any, {}>>;
310
+ /**
311
+ *
312
+ * @param {UpdatePersonalTaxReportForUserRequest} [updatePersonalTaxReportForUserRequest]
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ * @memberof PersonalTaxReportApi
316
+ */
317
+ apiPersonalTaxReportForUserPut(updatePersonalTaxReportForUserRequest?: UpdatePersonalTaxReportForUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PersonalTaxReportResponse, any, {}>>;
236
318
  /**
237
319
  *
238
320
  * @param {string} reportId
@@ -241,6 +323,14 @@ export declare class PersonalTaxReportApi extends BaseAPI {
241
323
  * @memberof PersonalTaxReportApi
242
324
  */
243
325
  apiPersonalTaxReportIdReportIdGet(reportId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PersonalTaxReportResponse, any, {}>>;
326
+ /**
327
+ *
328
+ * @param {CreatePersonalTaxReportRequest} [createPersonalTaxReportRequest]
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ * @memberof PersonalTaxReportApi
332
+ */
333
+ apiPersonalTaxReportPost(createPersonalTaxReportRequest?: CreatePersonalTaxReportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PersonalTaxReportResponse, any, {}>>;
244
334
  /**
245
335
  *
246
336
  * @param {number} taxYear
@@ -127,6 +127,88 @@ var PersonalTaxReportApiAxiosParamCreator = function (configuration) {
127
127
  });
128
128
  });
129
129
  },
130
+ /**
131
+ *
132
+ * @param {CreatePersonalTaxReportForUserRequest} [createPersonalTaxReportForUserRequest]
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ apiPersonalTaxReportForUserPost: function (createPersonalTaxReportForUserRequest, options) {
137
+ if (options === void 0) { options = {}; }
138
+ return __awaiter(_this, void 0, void 0, function () {
139
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
140
+ return __generator(this, function (_a) {
141
+ switch (_a.label) {
142
+ case 0:
143
+ localVarPath = "/api/personal-tax-report/for-user";
144
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
145
+ if (configuration) {
146
+ baseOptions = configuration.baseOptions;
147
+ }
148
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
149
+ localVarHeaderParameter = {};
150
+ localVarQueryParameter = {};
151
+ // authentication Bearer required
152
+ // http bearer authentication required
153
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
154
+ case 1:
155
+ // authentication Bearer required
156
+ // http bearer authentication required
157
+ _a.sent();
158
+ localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
159
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
160
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
161
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
162
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPersonalTaxReportForUserRequest, localVarRequestOptions, configuration);
163
+ return [2 /*return*/, {
164
+ url: (0, common_1.toPathString)(localVarUrlObj),
165
+ options: localVarRequestOptions,
166
+ }];
167
+ }
168
+ });
169
+ });
170
+ },
171
+ /**
172
+ *
173
+ * @param {UpdatePersonalTaxReportForUserRequest} [updatePersonalTaxReportForUserRequest]
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ apiPersonalTaxReportForUserPut: function (updatePersonalTaxReportForUserRequest, options) {
178
+ if (options === void 0) { options = {}; }
179
+ return __awaiter(_this, void 0, void 0, function () {
180
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
181
+ return __generator(this, function (_a) {
182
+ switch (_a.label) {
183
+ case 0:
184
+ localVarPath = "/api/personal-tax-report/for-user";
185
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
186
+ if (configuration) {
187
+ baseOptions = configuration.baseOptions;
188
+ }
189
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
190
+ localVarHeaderParameter = {};
191
+ localVarQueryParameter = {};
192
+ // authentication Bearer required
193
+ // http bearer authentication required
194
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
195
+ case 1:
196
+ // authentication Bearer required
197
+ // http bearer authentication required
198
+ _a.sent();
199
+ localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
200
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
201
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
202
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
203
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePersonalTaxReportForUserRequest, localVarRequestOptions, configuration);
204
+ return [2 /*return*/, {
205
+ url: (0, common_1.toPathString)(localVarUrlObj),
206
+ options: localVarRequestOptions,
207
+ }];
208
+ }
209
+ });
210
+ });
211
+ },
130
212
  /**
131
213
  *
132
214
  * @param {string} reportId
@@ -169,6 +251,47 @@ var PersonalTaxReportApiAxiosParamCreator = function (configuration) {
169
251
  });
170
252
  });
171
253
  },
254
+ /**
255
+ *
256
+ * @param {CreatePersonalTaxReportRequest} [createPersonalTaxReportRequest]
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ apiPersonalTaxReportPost: function (createPersonalTaxReportRequest, options) {
261
+ if (options === void 0) { options = {}; }
262
+ return __awaiter(_this, void 0, void 0, function () {
263
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
264
+ return __generator(this, function (_a) {
265
+ switch (_a.label) {
266
+ case 0:
267
+ localVarPath = "/api/personal-tax-report";
268
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
269
+ if (configuration) {
270
+ baseOptions = configuration.baseOptions;
271
+ }
272
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
273
+ localVarHeaderParameter = {};
274
+ localVarQueryParameter = {};
275
+ // authentication Bearer required
276
+ // http bearer authentication required
277
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
278
+ case 1:
279
+ // authentication Bearer required
280
+ // http bearer authentication required
281
+ _a.sent();
282
+ localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
283
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
284
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
286
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPersonalTaxReportRequest, localVarRequestOptions, configuration);
287
+ return [2 /*return*/, {
288
+ url: (0, common_1.toPathString)(localVarUrlObj),
289
+ options: localVarRequestOptions,
290
+ }];
291
+ }
292
+ });
293
+ });
294
+ },
172
295
  /**
173
296
  *
174
297
  * @param {number} taxYear
@@ -475,6 +598,50 @@ var PersonalTaxReportApiFp = function (configuration) {
475
598
  });
476
599
  });
477
600
  },
601
+ /**
602
+ *
603
+ * @param {CreatePersonalTaxReportForUserRequest} [createPersonalTaxReportForUserRequest]
604
+ * @param {*} [options] Override http request option.
605
+ * @throws {RequiredError}
606
+ */
607
+ apiPersonalTaxReportForUserPost: function (createPersonalTaxReportForUserRequest, options) {
608
+ var _a, _b, _c;
609
+ return __awaiter(this, void 0, void 0, function () {
610
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
611
+ return __generator(this, function (_d) {
612
+ switch (_d.label) {
613
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiPersonalTaxReportForUserPost(createPersonalTaxReportForUserRequest, options)];
614
+ case 1:
615
+ localVarAxiosArgs = _d.sent();
616
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
617
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PersonalTaxReportApi.apiPersonalTaxReportForUserPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
618
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
619
+ }
620
+ });
621
+ });
622
+ },
623
+ /**
624
+ *
625
+ * @param {UpdatePersonalTaxReportForUserRequest} [updatePersonalTaxReportForUserRequest]
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ */
629
+ apiPersonalTaxReportForUserPut: function (updatePersonalTaxReportForUserRequest, options) {
630
+ var _a, _b, _c;
631
+ return __awaiter(this, void 0, void 0, function () {
632
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
633
+ return __generator(this, function (_d) {
634
+ switch (_d.label) {
635
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiPersonalTaxReportForUserPut(updatePersonalTaxReportForUserRequest, options)];
636
+ case 1:
637
+ localVarAxiosArgs = _d.sent();
638
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
639
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PersonalTaxReportApi.apiPersonalTaxReportForUserPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
640
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
641
+ }
642
+ });
643
+ });
644
+ },
478
645
  /**
479
646
  *
480
647
  * @param {string} reportId
@@ -497,6 +664,28 @@ var PersonalTaxReportApiFp = function (configuration) {
497
664
  });
498
665
  });
499
666
  },
667
+ /**
668
+ *
669
+ * @param {CreatePersonalTaxReportRequest} [createPersonalTaxReportRequest]
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ */
673
+ apiPersonalTaxReportPost: function (createPersonalTaxReportRequest, options) {
674
+ var _a, _b, _c;
675
+ return __awaiter(this, void 0, void 0, function () {
676
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
677
+ return __generator(this, function (_d) {
678
+ switch (_d.label) {
679
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiPersonalTaxReportPost(createPersonalTaxReportRequest, options)];
680
+ case 1:
681
+ localVarAxiosArgs = _d.sent();
682
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
683
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PersonalTaxReportApi.apiPersonalTaxReportPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
684
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
685
+ }
686
+ });
687
+ });
688
+ },
500
689
  /**
501
690
  *
502
691
  * @param {number} taxYear
@@ -653,6 +842,24 @@ var PersonalTaxReportApiFactory = function (configuration, basePath, axios) {
653
842
  apiPersonalTaxReportDefinitionsGet: function (options) {
654
843
  return localVarFp.apiPersonalTaxReportDefinitionsGet(options).then(function (request) { return request(axios, basePath); });
655
844
  },
845
+ /**
846
+ *
847
+ * @param {CreatePersonalTaxReportForUserRequest} [createPersonalTaxReportForUserRequest]
848
+ * @param {*} [options] Override http request option.
849
+ * @throws {RequiredError}
850
+ */
851
+ apiPersonalTaxReportForUserPost: function (createPersonalTaxReportForUserRequest, options) {
852
+ return localVarFp.apiPersonalTaxReportForUserPost(createPersonalTaxReportForUserRequest, options).then(function (request) { return request(axios, basePath); });
853
+ },
854
+ /**
855
+ *
856
+ * @param {UpdatePersonalTaxReportForUserRequest} [updatePersonalTaxReportForUserRequest]
857
+ * @param {*} [options] Override http request option.
858
+ * @throws {RequiredError}
859
+ */
860
+ apiPersonalTaxReportForUserPut: function (updatePersonalTaxReportForUserRequest, options) {
861
+ return localVarFp.apiPersonalTaxReportForUserPut(updatePersonalTaxReportForUserRequest, options).then(function (request) { return request(axios, basePath); });
862
+ },
656
863
  /**
657
864
  *
658
865
  * @param {string} reportId
@@ -662,6 +869,15 @@ var PersonalTaxReportApiFactory = function (configuration, basePath, axios) {
662
869
  apiPersonalTaxReportIdReportIdGet: function (reportId, options) {
663
870
  return localVarFp.apiPersonalTaxReportIdReportIdGet(reportId, options).then(function (request) { return request(axios, basePath); });
664
871
  },
872
+ /**
873
+ *
874
+ * @param {CreatePersonalTaxReportRequest} [createPersonalTaxReportRequest]
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ */
878
+ apiPersonalTaxReportPost: function (createPersonalTaxReportRequest, options) {
879
+ return localVarFp.apiPersonalTaxReportPost(createPersonalTaxReportRequest, options).then(function (request) { return request(axios, basePath); });
880
+ },
665
881
  /**
666
882
  *
667
883
  * @param {number} taxYear
@@ -746,6 +962,28 @@ var PersonalTaxReportApi = /** @class */ (function (_super) {
746
962
  var _this = this;
747
963
  return (0, exports.PersonalTaxReportApiFp)(this.configuration).apiPersonalTaxReportDefinitionsGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
748
964
  };
965
+ /**
966
+ *
967
+ * @param {CreatePersonalTaxReportForUserRequest} [createPersonalTaxReportForUserRequest]
968
+ * @param {*} [options] Override http request option.
969
+ * @throws {RequiredError}
970
+ * @memberof PersonalTaxReportApi
971
+ */
972
+ PersonalTaxReportApi.prototype.apiPersonalTaxReportForUserPost = function (createPersonalTaxReportForUserRequest, options) {
973
+ var _this = this;
974
+ return (0, exports.PersonalTaxReportApiFp)(this.configuration).apiPersonalTaxReportForUserPost(createPersonalTaxReportForUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
975
+ };
976
+ /**
977
+ *
978
+ * @param {UpdatePersonalTaxReportForUserRequest} [updatePersonalTaxReportForUserRequest]
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ * @memberof PersonalTaxReportApi
982
+ */
983
+ PersonalTaxReportApi.prototype.apiPersonalTaxReportForUserPut = function (updatePersonalTaxReportForUserRequest, options) {
984
+ var _this = this;
985
+ return (0, exports.PersonalTaxReportApiFp)(this.configuration).apiPersonalTaxReportForUserPut(updatePersonalTaxReportForUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
986
+ };
749
987
  /**
750
988
  *
751
989
  * @param {string} reportId
@@ -757,6 +995,17 @@ var PersonalTaxReportApi = /** @class */ (function (_super) {
757
995
  var _this = this;
758
996
  return (0, exports.PersonalTaxReportApiFp)(this.configuration).apiPersonalTaxReportIdReportIdGet(reportId, options).then(function (request) { return request(_this.axios, _this.basePath); });
759
997
  };
998
+ /**
999
+ *
1000
+ * @param {CreatePersonalTaxReportRequest} [createPersonalTaxReportRequest]
1001
+ * @param {*} [options] Override http request option.
1002
+ * @throws {RequiredError}
1003
+ * @memberof PersonalTaxReportApi
1004
+ */
1005
+ PersonalTaxReportApi.prototype.apiPersonalTaxReportPost = function (createPersonalTaxReportRequest, options) {
1006
+ var _this = this;
1007
+ return (0, exports.PersonalTaxReportApiFp)(this.configuration).apiPersonalTaxReportPost(createPersonalTaxReportRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1008
+ };
760
1009
  /**
761
1010
  *
762
1011
  * @param {number} taxYear
@@ -0,0 +1,37 @@
1
+ /**
2
+ * biz-entity-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FilingStatusEnum } from './filing-status-enum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreatePersonalTaxReportForUserRequest
17
+ */
18
+ export interface CreatePersonalTaxReportForUserRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CreatePersonalTaxReportForUserRequest
23
+ */
24
+ 'targetUserId': string;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof CreatePersonalTaxReportForUserRequest
29
+ */
30
+ 'taxYear': number;
31
+ /**
32
+ *
33
+ * @type {FilingStatusEnum}
34
+ * @memberof CreatePersonalTaxReportForUserRequest
35
+ */
36
+ 'filingStatus': FilingStatusEnum;
37
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * biz-entity-api
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
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 });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * biz-entity-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FilingStatusEnum } from './filing-status-enum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreatePersonalTaxReportRequest
17
+ */
18
+ export interface CreatePersonalTaxReportRequest {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof CreatePersonalTaxReportRequest
23
+ */
24
+ 'taxYear': number;
25
+ /**
26
+ *
27
+ * @type {FilingStatusEnum}
28
+ * @memberof CreatePersonalTaxReportRequest
29
+ */
30
+ 'filingStatus': FilingStatusEnum;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * biz-entity-api
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
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 });
@@ -11,6 +11,8 @@ export * from './company-update-request';
11
11
  export * from './company-user-response';
12
12
  export * from './create-depreciation-request';
13
13
  export * from './create-payment-intent-request';
14
+ export * from './create-personal-tax-report-for-user-request';
15
+ export * from './create-personal-tax-report-request';
14
16
  export * from './create-tax-line-item-request';
15
17
  export * from './create-w2-wages-request';
16
18
  export * from './depreciation-response';
@@ -61,6 +63,7 @@ export * from './test-email-request';
61
63
  export * from './unmapped-qbaccount';
62
64
  export * from './update-depreciation-request';
63
65
  export * from './update-person-request';
66
+ export * from './update-personal-tax-report-for-user-request';
64
67
  export * from './update-personal-tax-report-request';
65
68
  export * from './update-tax-line-item-request';
66
69
  export * from './update-w2-wages-request';
@@ -27,6 +27,8 @@ __exportStar(require("./company-update-request"), exports);
27
27
  __exportStar(require("./company-user-response"), exports);
28
28
  __exportStar(require("./create-depreciation-request"), exports);
29
29
  __exportStar(require("./create-payment-intent-request"), exports);
30
+ __exportStar(require("./create-personal-tax-report-for-user-request"), exports);
31
+ __exportStar(require("./create-personal-tax-report-request"), exports);
30
32
  __exportStar(require("./create-tax-line-item-request"), exports);
31
33
  __exportStar(require("./create-w2-wages-request"), exports);
32
34
  __exportStar(require("./depreciation-response"), exports);
@@ -77,6 +79,7 @@ __exportStar(require("./test-email-request"), exports);
77
79
  __exportStar(require("./unmapped-qbaccount"), exports);
78
80
  __exportStar(require("./update-depreciation-request"), exports);
79
81
  __exportStar(require("./update-person-request"), exports);
82
+ __exportStar(require("./update-personal-tax-report-for-user-request"), exports);
80
83
  __exportStar(require("./update-personal-tax-report-request"), exports);
81
84
  __exportStar(require("./update-tax-line-item-request"), exports);
82
85
  __exportStar(require("./update-w2-wages-request"), exports);
@@ -76,4 +76,10 @@ export interface TaxCategoryBalances {
76
76
  * @memberof TaxCategoryBalances
77
77
  */
78
78
  'noTaxImpact'?: TaxCategoryBalance;
79
+ /**
80
+ *
81
+ * @type {TaxCategoryBalance}
82
+ * @memberof TaxCategoryBalances
83
+ */
84
+ 'charitableContributions'?: TaxCategoryBalance;
79
85
  }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * biz-entity-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FilingStatusEnum } from './filing-status-enum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdatePersonalTaxReportForUserRequest
17
+ */
18
+ export interface UpdatePersonalTaxReportForUserRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof UpdatePersonalTaxReportForUserRequest
23
+ */
24
+ 'targetUserId': string;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof UpdatePersonalTaxReportForUserRequest
29
+ */
30
+ 'taxYear': number;
31
+ /**
32
+ *
33
+ * @type {FilingStatusEnum}
34
+ * @memberof UpdatePersonalTaxReportForUserRequest
35
+ */
36
+ 'filingStatus': FilingStatusEnum;
37
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * biz-entity-api
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-corp-biz/biz-entity-api",
3
- "version": "1.6.0-staging.9",
3
+ "version": "1.7.0",
4
4
  "description": "TypeScript API client for S-Corp Biz Entity API",
5
5
  "keywords": [
6
6
  "typescript",