@s-corp-biz/biz-entity-api 1.6.0-development.3

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.
Files changed (179) hide show
  1. package/lib/api/auth-api.d.ts +135 -0
  2. package/lib/api/auth-api.js +386 -0
  3. package/lib/api/class2553-irs-form-editor-api.d.ts +70 -0
  4. package/lib/api/class2553-irs-form-editor-api.js +211 -0
  5. package/lib/api/company-api.d.ts +262 -0
  6. package/lib/api/company-api.js +753 -0
  7. package/lib/api/depreciation-api.d.ts +196 -0
  8. package/lib/api/depreciation-api.js +564 -0
  9. package/lib/api/family-api.d.ts +247 -0
  10. package/lib/api/family-api.js +713 -0
  11. package/lib/api/people-api.d.ts +430 -0
  12. package/lib/api/people-api.js +1184 -0
  13. package/lib/api/personal-tax-report-adjustments-to-income-api.d.ts +290 -0
  14. package/lib/api/personal-tax-report-adjustments-to-income-api.js +824 -0
  15. package/lib/api/personal-tax-report-api.d.ts +298 -0
  16. package/lib/api/personal-tax-report-api.js +834 -0
  17. package/lib/api/personal-tax-report-capital-gain-api.d.ts +290 -0
  18. package/lib/api/personal-tax-report-capital-gain-api.js +824 -0
  19. package/lib/api/personal-tax-report-federal-tax-section-api.d.ts +228 -0
  20. package/lib/api/personal-tax-report-federal-tax-section-api.js +650 -0
  21. package/lib/api/personal-tax-report-minimum-amount-api.d.ts +104 -0
  22. package/lib/api/personal-tax-report-minimum-amount-api.js +302 -0
  23. package/lib/api/personal-tax-report-other-income-api.d.ts +290 -0
  24. package/lib/api/personal-tax-report-other-income-api.js +824 -0
  25. package/lib/api/personal-tax-report-personal-itemized-deductions-api.d.ts +290 -0
  26. package/lib/api/personal-tax-report-personal-itemized-deductions-api.js +824 -0
  27. package/lib/api/personal-tax-report-w2-wages-api.d.ts +204 -0
  28. package/lib/api/personal-tax-report-w2-wages-api.js +574 -0
  29. package/lib/api/quick-books-auth-api.d.ts +106 -0
  30. package/lib/api/quick-books-auth-api.js +310 -0
  31. package/lib/api/stripe-api.d.ts +70 -0
  32. package/lib/api/stripe-api.js +211 -0
  33. package/lib/api/tax-category-api.d.ts +66 -0
  34. package/lib/api/tax-category-api.js +205 -0
  35. package/lib/api/tax-category-map-api.d.ts +171 -0
  36. package/lib/api/tax-category-map-api.js +484 -0
  37. package/lib/api/tax-line-items-api.d.ts +133 -0
  38. package/lib/api/tax-line-items-api.js +386 -0
  39. package/lib/api.d.ts +30 -0
  40. package/lib/api.js +48 -0
  41. package/lib/base.d.ts +66 -0
  42. package/lib/base.js +86 -0
  43. package/lib/common.d.ts +65 -0
  44. package/lib/common.js +253 -0
  45. package/lib/configuration.d.ts +91 -0
  46. package/lib/configuration.js +57 -0
  47. package/lib/index.d.ts +14 -0
  48. package/lib/index.js +32 -0
  49. package/lib/models/accept-invitation-request.d.ts +31 -0
  50. package/lib/models/accept-invitation-request.js +15 -0
  51. package/lib/models/account-name-response.d.ts +42 -0
  52. package/lib/models/account-name-response.js +15 -0
  53. package/lib/models/account-type.d.ts +25 -0
  54. package/lib/models/account-type.js +29 -0
  55. package/lib/models/add-existing-member-request.d.ts +24 -0
  56. package/lib/models/add-existing-member-request.js +15 -0
  57. package/lib/models/add-family-member-request.d.ts +31 -0
  58. package/lib/models/add-family-member-request.js +15 -0
  59. package/lib/models/add-person-request.d.ts +91 -0
  60. package/lib/models/add-person-request.js +15 -0
  61. package/lib/models/authenticated-user-in-ui.d.ts +42 -0
  62. package/lib/models/authenticated-user-in-ui.js +15 -0
  63. package/lib/models/company-ownership-transfer-request.d.ts +24 -0
  64. package/lib/models/company-ownership-transfer-request.js +15 -0
  65. package/lib/models/company-response.d.ts +115 -0
  66. package/lib/models/company-response.js +15 -0
  67. package/lib/models/company-update-request.d.ts +66 -0
  68. package/lib/models/company-update-request.js +15 -0
  69. package/lib/models/company-user-response.d.ts +96 -0
  70. package/lib/models/company-user-response.js +15 -0
  71. package/lib/models/create-depreciation-request.d.ts +54 -0
  72. package/lib/models/create-depreciation-request.js +15 -0
  73. package/lib/models/create-payment-intent-request.d.ts +30 -0
  74. package/lib/models/create-payment-intent-request.js +15 -0
  75. package/lib/models/create-tax-line-item-request.d.ts +48 -0
  76. package/lib/models/create-tax-line-item-request.js +15 -0
  77. package/lib/models/create-w2-wages-request.d.ts +48 -0
  78. package/lib/models/create-w2-wages-request.js +15 -0
  79. package/lib/models/depreciation-response.d.ts +74 -0
  80. package/lib/models/depreciation-response.js +15 -0
  81. package/lib/models/family-member-info.d.ts +42 -0
  82. package/lib/models/family-member-info.js +15 -0
  83. package/lib/models/family-member-permission-request.d.ts +31 -0
  84. package/lib/models/family-member-permission-request.js +15 -0
  85. package/lib/models/family-member-response.d.ts +42 -0
  86. package/lib/models/family-member-response.js +15 -0
  87. package/lib/models/federal-tax-estimate-response.d.ts +30 -0
  88. package/lib/models/federal-tax-estimate-response.js +15 -0
  89. package/lib/models/filing-status-enum.d.ts +24 -0
  90. package/lib/models/filing-status-enum.js +28 -0
  91. package/lib/models/fill2553-irs-form-request.d.ts +54 -0
  92. package/lib/models/fill2553-irs-form-request.js +15 -0
  93. package/lib/models/head-personal-tax-report-summary-response.d.ts +39 -0
  94. package/lib/models/head-personal-tax-report-summary-response.js +15 -0
  95. package/lib/models/http-status-code.d.ts +80 -0
  96. package/lib/models/http-status-code.js +84 -0
  97. package/lib/models/index.d.ts +64 -0
  98. package/lib/models/index.js +80 -0
  99. package/lib/models/invitation-metadata-response.d.ts +67 -0
  100. package/lib/models/invitation-metadata-response.js +15 -0
  101. package/lib/models/join-family-by-company-request.d.ts +31 -0
  102. package/lib/models/join-family-by-company-request.js +15 -0
  103. package/lib/models/long-term-capital-gains-tax-response.d.ts +30 -0
  104. package/lib/models/long-term-capital-gains-tax-response.js +15 -0
  105. package/lib/models/monthly-data.d.ts +30 -0
  106. package/lib/models/monthly-data.js +15 -0
  107. package/lib/models/open-id-claim-response.d.ts +31 -0
  108. package/lib/models/open-id-claim-response.js +15 -0
  109. package/lib/models/open-id-options-result.d.ts +24 -0
  110. package/lib/models/open-id-options-result.js +15 -0
  111. package/lib/models/people-response.d.ts +108 -0
  112. package/lib/models/people-response.js +15 -0
  113. package/lib/models/permissions-enum.d.ts +24 -0
  114. package/lib/models/permissions-enum.js +28 -0
  115. package/lib/models/personal-tax-report-response.d.ts +55 -0
  116. package/lib/models/personal-tax-report-response.js +15 -0
  117. package/lib/models/problem-details.d.ts +49 -0
  118. package/lib/models/problem-details.js +15 -0
  119. package/lib/models/qbaccount-name-info.d.ts +30 -0
  120. package/lib/models/qbaccount-name-info.js +15 -0
  121. package/lib/models/qbaccounts.d.ts +54 -0
  122. package/lib/models/qbaccounts.js +15 -0
  123. package/lib/models/quick-books-account-mapping.d.ts +36 -0
  124. package/lib/models/quick-books-account-mapping.js +15 -0
  125. package/lib/models/resend-invitation-request.d.ts +30 -0
  126. package/lib/models/resend-invitation-request.js +15 -0
  127. package/lib/models/send-invitation-request.d.ts +42 -0
  128. package/lib/models/send-invitation-request.js +15 -0
  129. package/lib/models/shared-family-info-response.d.ts +44 -0
  130. package/lib/models/shared-family-info-response.js +15 -0
  131. package/lib/models/sign-in-with-open-id-req.d.ts +30 -0
  132. package/lib/models/sign-in-with-open-id-req.js +15 -0
  133. package/lib/models/tax-calculation-step.d.ts +45 -0
  134. package/lib/models/tax-calculation-step.js +15 -0
  135. package/lib/models/tax-categories.d.ts +43 -0
  136. package/lib/models/tax-categories.js +15 -0
  137. package/lib/models/tax-category-balance.d.ts +49 -0
  138. package/lib/models/tax-category-balance.js +15 -0
  139. package/lib/models/tax-category-balances.d.ts +79 -0
  140. package/lib/models/tax-category-balances.js +15 -0
  141. package/lib/models/tax-category-enum.d.ts +35 -0
  142. package/lib/models/tax-category-enum.js +39 -0
  143. package/lib/models/tax-category-info.d.ts +31 -0
  144. package/lib/models/tax-category-info.js +15 -0
  145. package/lib/models/tax-category-response.d.ts +37 -0
  146. package/lib/models/tax-category-response.js +15 -0
  147. package/lib/models/tax-category-to-qbaccount-mappings.d.ts +87 -0
  148. package/lib/models/tax-category-to-qbaccount-mappings.js +15 -0
  149. package/lib/models/tax-dashboard-calculations.d.ts +67 -0
  150. package/lib/models/tax-dashboard-calculations.js +15 -0
  151. package/lib/models/tax-dashboard-value.d.ts +31 -0
  152. package/lib/models/tax-dashboard-value.js +15 -0
  153. package/lib/models/tax-item-definition-response.d.ts +31 -0
  154. package/lib/models/tax-item-definition-response.js +15 -0
  155. package/lib/models/tax-item-type-enum.d.ts +40 -0
  156. package/lib/models/tax-item-type-enum.js +44 -0
  157. package/lib/models/tax-line-item-response.d.ts +85 -0
  158. package/lib/models/tax-line-item-response.js +15 -0
  159. package/lib/models/tax-report-response.d.ts +57 -0
  160. package/lib/models/tax-report-response.js +15 -0
  161. package/lib/models/test-email-request.d.ts +24 -0
  162. package/lib/models/test-email-request.js +15 -0
  163. package/lib/models/unmapped-qbaccount.d.ts +36 -0
  164. package/lib/models/unmapped-qbaccount.js +15 -0
  165. package/lib/models/update-depreciation-request.d.ts +48 -0
  166. package/lib/models/update-depreciation-request.js +15 -0
  167. package/lib/models/update-person-request.d.ts +97 -0
  168. package/lib/models/update-person-request.js +15 -0
  169. package/lib/models/update-personal-tax-report-request.d.ts +25 -0
  170. package/lib/models/update-personal-tax-report-request.js +15 -0
  171. package/lib/models/update-tax-line-item-request.d.ts +48 -0
  172. package/lib/models/update-tax-line-item-request.js +15 -0
  173. package/lib/models/update-w2-wages-request.d.ts +48 -0
  174. package/lib/models/update-w2-wages-request.js +15 -0
  175. package/lib/models/user-summary-response.d.ts +36 -0
  176. package/lib/models/user-summary-response.js +15 -0
  177. package/lib/models/w2-wages-response.d.ts +78 -0
  178. package/lib/models/w2-wages-response.js +15 -0
  179. package/package.json +118 -0
@@ -0,0 +1,753 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ Object.defineProperty(exports, "__esModule", { value: true });
78
+ exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = void 0;
79
+ var axios_1 = require("axios");
80
+ // Some imports not used depending on template conditions
81
+ // @ts-ignore
82
+ var common_1 = require("../common");
83
+ // @ts-ignore
84
+ var base_1 = require("../base");
85
+ /**
86
+ * CompanyApi - axios parameter creator
87
+ * @export
88
+ */
89
+ var CompanyApiAxiosParamCreator = function (configuration) {
90
+ var _this = this;
91
+ return {
92
+ /**
93
+ *
94
+ * @param {string} userId
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ apiCompanyByUserGet: function (userId, options) {
99
+ if (options === void 0) { options = {}; }
100
+ return __awaiter(_this, void 0, void 0, function () {
101
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
102
+ return __generator(this, function (_a) {
103
+ switch (_a.label) {
104
+ case 0:
105
+ // verify required parameter 'userId' is not null or undefined
106
+ (0, common_1.assertParamExists)('apiCompanyByUserGet', 'userId', userId);
107
+ localVarPath = "/api/Company/by-user";
108
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ }
112
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
113
+ localVarHeaderParameter = {};
114
+ localVarQueryParameter = {};
115
+ // authentication Bearer required
116
+ // http bearer authentication required
117
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
118
+ case 1:
119
+ // authentication Bearer required
120
+ // http bearer authentication required
121
+ _a.sent();
122
+ if (userId !== undefined) {
123
+ localVarQueryParameter['userId'] = userId;
124
+ }
125
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
126
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
128
+ return [2 /*return*/, {
129
+ url: (0, common_1.toPathString)(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ }];
132
+ }
133
+ });
134
+ });
135
+ },
136
+ /**
137
+ *
138
+ * @param {string} companyId
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ apiCompanyCompanyIdDelete: function (companyId, options) {
143
+ if (options === void 0) { options = {}; }
144
+ return __awaiter(_this, void 0, void 0, function () {
145
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
146
+ return __generator(this, function (_a) {
147
+ switch (_a.label) {
148
+ case 0:
149
+ // verify required parameter 'companyId' is not null or undefined
150
+ (0, common_1.assertParamExists)('apiCompanyCompanyIdDelete', 'companyId', companyId);
151
+ localVarPath = "/api/Company/{companyId}"
152
+ .replace("{".concat("companyId", "}"), encodeURIComponent(String(companyId)));
153
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
158
+ localVarHeaderParameter = {};
159
+ localVarQueryParameter = {};
160
+ // authentication Bearer required
161
+ // http bearer authentication required
162
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
163
+ case 1:
164
+ // authentication Bearer required
165
+ // http bearer authentication required
166
+ _a.sent();
167
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
168
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
170
+ return [2 /*return*/, {
171
+ url: (0, common_1.toPathString)(localVarUrlObj),
172
+ options: localVarRequestOptions,
173
+ }];
174
+ }
175
+ });
176
+ });
177
+ },
178
+ /**
179
+ *
180
+ * @param {string} companyId
181
+ * @param {File} [file]
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ apiCompanyCompanyIdLogoPost: function (companyId, file, options) {
186
+ if (options === void 0) { options = {}; }
187
+ return __awaiter(_this, void 0, void 0, function () {
188
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
189
+ return __generator(this, function (_a) {
190
+ switch (_a.label) {
191
+ case 0:
192
+ // verify required parameter 'companyId' is not null or undefined
193
+ (0, common_1.assertParamExists)('apiCompanyCompanyIdLogoPost', 'companyId', companyId);
194
+ localVarPath = "/api/Company/{companyId}/logo"
195
+ .replace("{".concat("companyId", "}"), encodeURIComponent(String(companyId)));
196
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
197
+ if (configuration) {
198
+ baseOptions = configuration.baseOptions;
199
+ }
200
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
201
+ localVarHeaderParameter = {};
202
+ localVarQueryParameter = {};
203
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
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
+ if (file !== undefined) {
212
+ localVarFormParams.append('file', file);
213
+ }
214
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
215
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
216
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
217
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
218
+ localVarRequestOptions.data = localVarFormParams;
219
+ return [2 /*return*/, {
220
+ url: (0, common_1.toPathString)(localVarUrlObj),
221
+ options: localVarRequestOptions,
222
+ }];
223
+ }
224
+ });
225
+ });
226
+ },
227
+ /**
228
+ *
229
+ * @param {string} companyId
230
+ * @param {CompanyUpdateRequest} [companyUpdateRequest]
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ apiCompanyCompanyIdPut: function (companyId, companyUpdateRequest, options) {
235
+ if (options === void 0) { options = {}; }
236
+ return __awaiter(_this, void 0, void 0, function () {
237
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
238
+ return __generator(this, function (_a) {
239
+ switch (_a.label) {
240
+ case 0:
241
+ // verify required parameter 'companyId' is not null or undefined
242
+ (0, common_1.assertParamExists)('apiCompanyCompanyIdPut', 'companyId', companyId);
243
+ localVarPath = "/api/Company/{companyId}"
244
+ .replace("{".concat("companyId", "}"), encodeURIComponent(String(companyId)));
245
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
246
+ if (configuration) {
247
+ baseOptions = configuration.baseOptions;
248
+ }
249
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
250
+ localVarHeaderParameter = {};
251
+ localVarQueryParameter = {};
252
+ // authentication Bearer required
253
+ // http bearer authentication required
254
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
255
+ case 1:
256
+ // authentication Bearer required
257
+ // http bearer authentication required
258
+ _a.sent();
259
+ localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
260
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
261
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
262
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
263
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(companyUpdateRequest, localVarRequestOptions, configuration);
264
+ return [2 /*return*/, {
265
+ url: (0, common_1.toPathString)(localVarUrlObj),
266
+ options: localVarRequestOptions,
267
+ }];
268
+ }
269
+ });
270
+ });
271
+ },
272
+ /**
273
+ *
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ apiCompanyGet: function (options) {
278
+ if (options === void 0) { options = {}; }
279
+ return __awaiter(_this, void 0, void 0, function () {
280
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
281
+ return __generator(this, function (_a) {
282
+ switch (_a.label) {
283
+ case 0:
284
+ localVarPath = "/api/Company";
285
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
286
+ if (configuration) {
287
+ baseOptions = configuration.baseOptions;
288
+ }
289
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
290
+ localVarHeaderParameter = {};
291
+ localVarQueryParameter = {};
292
+ // authentication Bearer required
293
+ // http bearer authentication required
294
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
295
+ case 1:
296
+ // authentication Bearer required
297
+ // http bearer authentication required
298
+ _a.sent();
299
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
300
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
301
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
302
+ return [2 /*return*/, {
303
+ url: (0, common_1.toPathString)(localVarUrlObj),
304
+ options: localVarRequestOptions,
305
+ }];
306
+ }
307
+ });
308
+ });
309
+ },
310
+ /**
311
+ *
312
+ * @param {CompanyUpdateRequest} [companyUpdateRequest]
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ apiCompanyPost: function (companyUpdateRequest, options) {
317
+ if (options === void 0) { options = {}; }
318
+ return __awaiter(_this, void 0, void 0, function () {
319
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
320
+ return __generator(this, function (_a) {
321
+ switch (_a.label) {
322
+ case 0:
323
+ localVarPath = "/api/Company";
324
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
325
+ if (configuration) {
326
+ baseOptions = configuration.baseOptions;
327
+ }
328
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
329
+ localVarHeaderParameter = {};
330
+ localVarQueryParameter = {};
331
+ // authentication Bearer required
332
+ // http bearer authentication required
333
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
334
+ case 1:
335
+ // authentication Bearer required
336
+ // http bearer authentication required
337
+ _a.sent();
338
+ localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
339
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
340
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
341
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
342
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(companyUpdateRequest, localVarRequestOptions, configuration);
343
+ return [2 /*return*/, {
344
+ url: (0, common_1.toPathString)(localVarUrlObj),
345
+ options: localVarRequestOptions,
346
+ }];
347
+ }
348
+ });
349
+ });
350
+ },
351
+ /**
352
+ *
353
+ * @param {string} companyId
354
+ * @param {string} startDate
355
+ * @param {string} endDate
356
+ * @param {boolean} [isAnnual]
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ */
360
+ apiCompanyTaxreportGet: function (companyId, startDate, endDate, isAnnual, options) {
361
+ if (options === void 0) { options = {}; }
362
+ return __awaiter(_this, void 0, void 0, function () {
363
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
364
+ return __generator(this, function (_a) {
365
+ switch (_a.label) {
366
+ case 0:
367
+ // verify required parameter 'companyId' is not null or undefined
368
+ (0, common_1.assertParamExists)('apiCompanyTaxreportGet', 'companyId', companyId);
369
+ // verify required parameter 'startDate' is not null or undefined
370
+ (0, common_1.assertParamExists)('apiCompanyTaxreportGet', 'startDate', startDate);
371
+ // verify required parameter 'endDate' is not null or undefined
372
+ (0, common_1.assertParamExists)('apiCompanyTaxreportGet', 'endDate', endDate);
373
+ localVarPath = "/api/Company/taxreport";
374
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
375
+ if (configuration) {
376
+ baseOptions = configuration.baseOptions;
377
+ }
378
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
379
+ localVarHeaderParameter = {};
380
+ localVarQueryParameter = {};
381
+ // authentication Bearer required
382
+ // http bearer authentication required
383
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
384
+ case 1:
385
+ // authentication Bearer required
386
+ // http bearer authentication required
387
+ _a.sent();
388
+ if (companyId !== undefined) {
389
+ localVarQueryParameter['companyId'] = companyId;
390
+ }
391
+ if (startDate !== undefined) {
392
+ localVarQueryParameter['startDate'] = startDate;
393
+ }
394
+ if (endDate !== undefined) {
395
+ localVarQueryParameter['endDate'] = endDate;
396
+ }
397
+ if (isAnnual !== undefined) {
398
+ localVarQueryParameter['isAnnual'] = isAnnual;
399
+ }
400
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
401
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
402
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
403
+ return [2 /*return*/, {
404
+ url: (0, common_1.toPathString)(localVarUrlObj),
405
+ options: localVarRequestOptions,
406
+ }];
407
+ }
408
+ });
409
+ });
410
+ },
411
+ };
412
+ };
413
+ exports.CompanyApiAxiosParamCreator = CompanyApiAxiosParamCreator;
414
+ /**
415
+ * CompanyApi - functional programming interface
416
+ * @export
417
+ */
418
+ var CompanyApiFp = function (configuration) {
419
+ var localVarAxiosParamCreator = (0, exports.CompanyApiAxiosParamCreator)(configuration);
420
+ return {
421
+ /**
422
+ *
423
+ * @param {string} userId
424
+ * @param {*} [options] Override http request option.
425
+ * @throws {RequiredError}
426
+ */
427
+ apiCompanyByUserGet: function (userId, options) {
428
+ var _a, _b, _c;
429
+ return __awaiter(this, void 0, void 0, function () {
430
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
431
+ return __generator(this, function (_d) {
432
+ switch (_d.label) {
433
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiCompanyByUserGet(userId, options)];
434
+ case 1:
435
+ localVarAxiosArgs = _d.sent();
436
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
437
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CompanyApi.apiCompanyByUserGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
438
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
439
+ }
440
+ });
441
+ });
442
+ },
443
+ /**
444
+ *
445
+ * @param {string} companyId
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ */
449
+ apiCompanyCompanyIdDelete: function (companyId, options) {
450
+ var _a, _b, _c;
451
+ return __awaiter(this, void 0, void 0, function () {
452
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
453
+ return __generator(this, function (_d) {
454
+ switch (_d.label) {
455
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiCompanyCompanyIdDelete(companyId, options)];
456
+ case 1:
457
+ localVarAxiosArgs = _d.sent();
458
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
459
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CompanyApi.apiCompanyCompanyIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
460
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
461
+ }
462
+ });
463
+ });
464
+ },
465
+ /**
466
+ *
467
+ * @param {string} companyId
468
+ * @param {File} [file]
469
+ * @param {*} [options] Override http request option.
470
+ * @throws {RequiredError}
471
+ */
472
+ apiCompanyCompanyIdLogoPost: function (companyId, file, options) {
473
+ var _a, _b, _c;
474
+ return __awaiter(this, void 0, void 0, function () {
475
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
476
+ return __generator(this, function (_d) {
477
+ switch (_d.label) {
478
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiCompanyCompanyIdLogoPost(companyId, file, options)];
479
+ case 1:
480
+ localVarAxiosArgs = _d.sent();
481
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
482
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CompanyApi.apiCompanyCompanyIdLogoPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
483
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
484
+ }
485
+ });
486
+ });
487
+ },
488
+ /**
489
+ *
490
+ * @param {string} companyId
491
+ * @param {CompanyUpdateRequest} [companyUpdateRequest]
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ */
495
+ apiCompanyCompanyIdPut: function (companyId, companyUpdateRequest, options) {
496
+ var _a, _b, _c;
497
+ return __awaiter(this, void 0, void 0, function () {
498
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
499
+ return __generator(this, function (_d) {
500
+ switch (_d.label) {
501
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiCompanyCompanyIdPut(companyId, companyUpdateRequest, options)];
502
+ case 1:
503
+ localVarAxiosArgs = _d.sent();
504
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
505
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CompanyApi.apiCompanyCompanyIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
506
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
507
+ }
508
+ });
509
+ });
510
+ },
511
+ /**
512
+ *
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ apiCompanyGet: function (options) {
517
+ var _a, _b, _c;
518
+ return __awaiter(this, void 0, void 0, function () {
519
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
520
+ return __generator(this, function (_d) {
521
+ switch (_d.label) {
522
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiCompanyGet(options)];
523
+ case 1:
524
+ localVarAxiosArgs = _d.sent();
525
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
526
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CompanyApi.apiCompanyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
527
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
528
+ }
529
+ });
530
+ });
531
+ },
532
+ /**
533
+ *
534
+ * @param {CompanyUpdateRequest} [companyUpdateRequest]
535
+ * @param {*} [options] Override http request option.
536
+ * @throws {RequiredError}
537
+ */
538
+ apiCompanyPost: function (companyUpdateRequest, options) {
539
+ var _a, _b, _c;
540
+ return __awaiter(this, void 0, void 0, function () {
541
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
542
+ return __generator(this, function (_d) {
543
+ switch (_d.label) {
544
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiCompanyPost(companyUpdateRequest, options)];
545
+ case 1:
546
+ localVarAxiosArgs = _d.sent();
547
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
548
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CompanyApi.apiCompanyPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
549
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
550
+ }
551
+ });
552
+ });
553
+ },
554
+ /**
555
+ *
556
+ * @param {string} companyId
557
+ * @param {string} startDate
558
+ * @param {string} endDate
559
+ * @param {boolean} [isAnnual]
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ apiCompanyTaxreportGet: function (companyId, startDate, endDate, isAnnual, options) {
564
+ var _a, _b, _c;
565
+ return __awaiter(this, void 0, void 0, function () {
566
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
567
+ return __generator(this, function (_d) {
568
+ switch (_d.label) {
569
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiCompanyTaxreportGet(companyId, startDate, endDate, isAnnual, options)];
570
+ case 1:
571
+ localVarAxiosArgs = _d.sent();
572
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
573
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CompanyApi.apiCompanyTaxreportGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
574
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
575
+ }
576
+ });
577
+ });
578
+ },
579
+ };
580
+ };
581
+ exports.CompanyApiFp = CompanyApiFp;
582
+ /**
583
+ * CompanyApi - factory interface
584
+ * @export
585
+ */
586
+ var CompanyApiFactory = function (configuration, basePath, axios) {
587
+ var localVarFp = (0, exports.CompanyApiFp)(configuration);
588
+ return {
589
+ /**
590
+ *
591
+ * @param {string} userId
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ apiCompanyByUserGet: function (userId, options) {
596
+ return localVarFp.apiCompanyByUserGet(userId, options).then(function (request) { return request(axios, basePath); });
597
+ },
598
+ /**
599
+ *
600
+ * @param {string} companyId
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ apiCompanyCompanyIdDelete: function (companyId, options) {
605
+ return localVarFp.apiCompanyCompanyIdDelete(companyId, options).then(function (request) { return request(axios, basePath); });
606
+ },
607
+ /**
608
+ *
609
+ * @param {string} companyId
610
+ * @param {File} [file]
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ */
614
+ apiCompanyCompanyIdLogoPost: function (companyId, file, options) {
615
+ return localVarFp.apiCompanyCompanyIdLogoPost(companyId, file, options).then(function (request) { return request(axios, basePath); });
616
+ },
617
+ /**
618
+ *
619
+ * @param {string} companyId
620
+ * @param {CompanyUpdateRequest} [companyUpdateRequest]
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ apiCompanyCompanyIdPut: function (companyId, companyUpdateRequest, options) {
625
+ return localVarFp.apiCompanyCompanyIdPut(companyId, companyUpdateRequest, options).then(function (request) { return request(axios, basePath); });
626
+ },
627
+ /**
628
+ *
629
+ * @param {*} [options] Override http request option.
630
+ * @throws {RequiredError}
631
+ */
632
+ apiCompanyGet: function (options) {
633
+ return localVarFp.apiCompanyGet(options).then(function (request) { return request(axios, basePath); });
634
+ },
635
+ /**
636
+ *
637
+ * @param {CompanyUpdateRequest} [companyUpdateRequest]
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ apiCompanyPost: function (companyUpdateRequest, options) {
642
+ return localVarFp.apiCompanyPost(companyUpdateRequest, options).then(function (request) { return request(axios, basePath); });
643
+ },
644
+ /**
645
+ *
646
+ * @param {string} companyId
647
+ * @param {string} startDate
648
+ * @param {string} endDate
649
+ * @param {boolean} [isAnnual]
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ apiCompanyTaxreportGet: function (companyId, startDate, endDate, isAnnual, options) {
654
+ return localVarFp.apiCompanyTaxreportGet(companyId, startDate, endDate, isAnnual, options).then(function (request) { return request(axios, basePath); });
655
+ },
656
+ };
657
+ };
658
+ exports.CompanyApiFactory = CompanyApiFactory;
659
+ /**
660
+ * CompanyApi - object-oriented interface
661
+ * @export
662
+ * @class CompanyApi
663
+ * @extends {BaseAPI}
664
+ */
665
+ var CompanyApi = /** @class */ (function (_super) {
666
+ __extends(CompanyApi, _super);
667
+ function CompanyApi() {
668
+ return _super !== null && _super.apply(this, arguments) || this;
669
+ }
670
+ /**
671
+ *
672
+ * @param {string} userId
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ * @memberof CompanyApi
676
+ */
677
+ CompanyApi.prototype.apiCompanyByUserGet = function (userId, options) {
678
+ var _this = this;
679
+ return (0, exports.CompanyApiFp)(this.configuration).apiCompanyByUserGet(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
680
+ };
681
+ /**
682
+ *
683
+ * @param {string} companyId
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ * @memberof CompanyApi
687
+ */
688
+ CompanyApi.prototype.apiCompanyCompanyIdDelete = function (companyId, options) {
689
+ var _this = this;
690
+ return (0, exports.CompanyApiFp)(this.configuration).apiCompanyCompanyIdDelete(companyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
691
+ };
692
+ /**
693
+ *
694
+ * @param {string} companyId
695
+ * @param {File} [file]
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ * @memberof CompanyApi
699
+ */
700
+ CompanyApi.prototype.apiCompanyCompanyIdLogoPost = function (companyId, file, options) {
701
+ var _this = this;
702
+ return (0, exports.CompanyApiFp)(this.configuration).apiCompanyCompanyIdLogoPost(companyId, file, options).then(function (request) { return request(_this.axios, _this.basePath); });
703
+ };
704
+ /**
705
+ *
706
+ * @param {string} companyId
707
+ * @param {CompanyUpdateRequest} [companyUpdateRequest]
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ * @memberof CompanyApi
711
+ */
712
+ CompanyApi.prototype.apiCompanyCompanyIdPut = function (companyId, companyUpdateRequest, options) {
713
+ var _this = this;
714
+ return (0, exports.CompanyApiFp)(this.configuration).apiCompanyCompanyIdPut(companyId, companyUpdateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
715
+ };
716
+ /**
717
+ *
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ * @memberof CompanyApi
721
+ */
722
+ CompanyApi.prototype.apiCompanyGet = function (options) {
723
+ var _this = this;
724
+ return (0, exports.CompanyApiFp)(this.configuration).apiCompanyGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
725
+ };
726
+ /**
727
+ *
728
+ * @param {CompanyUpdateRequest} [companyUpdateRequest]
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ * @memberof CompanyApi
732
+ */
733
+ CompanyApi.prototype.apiCompanyPost = function (companyUpdateRequest, options) {
734
+ var _this = this;
735
+ return (0, exports.CompanyApiFp)(this.configuration).apiCompanyPost(companyUpdateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
736
+ };
737
+ /**
738
+ *
739
+ * @param {string} companyId
740
+ * @param {string} startDate
741
+ * @param {string} endDate
742
+ * @param {boolean} [isAnnual]
743
+ * @param {*} [options] Override http request option.
744
+ * @throws {RequiredError}
745
+ * @memberof CompanyApi
746
+ */
747
+ CompanyApi.prototype.apiCompanyTaxreportGet = function (companyId, startDate, endDate, isAnnual, options) {
748
+ var _this = this;
749
+ return (0, exports.CompanyApiFp)(this.configuration).apiCompanyTaxreportGet(companyId, startDate, endDate, isAnnual, options).then(function (request) { return request(_this.axios, _this.basePath); });
750
+ };
751
+ return CompanyApi;
752
+ }(base_1.BaseAPI));
753
+ exports.CompanyApi = CompanyApi;