@s-corp-biz/biz-entity-api 1.13.1 → 1.14.1

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.
@@ -14,6 +14,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { AuthenticatedUserInUi } from '../models';
16
16
  import type { DatabaseInspectionResponse } from '../models';
17
+ import type { SeedScenarioResponse } from '../models';
17
18
  import type { SingleEntityResponse } from '../models';
18
19
  import type { TestAddToCompanyRequest } from '../models';
19
20
  import type { TestAddToCompanyResponse } from '../models';
@@ -58,6 +59,19 @@ export declare const TestApiAxiosParamCreator: (configuration?: Configuration) =
58
59
  * @throws {RequiredError}
59
60
  */
60
61
  apiTestQuickBooksAuthCallbackPost: (testQuickBooksCallbackRequest?: TestQuickBooksCallbackRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
62
+ /**
63
+ *
64
+ * @param {string} name
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ apiTestSeedScenarioNamePost: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
69
+ /**
70
+ *
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ apiTestUserFreshPost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
61
75
  };
62
76
  /**
63
77
  * TestApi - functional programming interface
@@ -98,6 +112,19 @@ export declare const TestApiFp: (configuration?: Configuration) => {
98
112
  * @throws {RequiredError}
99
113
  */
100
114
  apiTestQuickBooksAuthCallbackPost(testQuickBooksCallbackRequest?: TestQuickBooksCallbackRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TestQuickBooksCallbackResponse>>;
115
+ /**
116
+ *
117
+ * @param {string} name
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ apiTestSeedScenarioNamePost(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeedScenarioResponse>>;
122
+ /**
123
+ *
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ apiTestUserFreshPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticatedUserInUi>>;
101
128
  };
102
129
  /**
103
130
  * TestApi - factory interface
@@ -138,6 +165,19 @@ export declare const TestApiFactory: (configuration?: Configuration, basePath?:
138
165
  * @throws {RequiredError}
139
166
  */
140
167
  apiTestQuickBooksAuthCallbackPost(testQuickBooksCallbackRequest?: TestQuickBooksCallbackRequest, options?: RawAxiosRequestConfig): AxiosPromise<TestQuickBooksCallbackResponse>;
168
+ /**
169
+ *
170
+ * @param {string} name
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ apiTestSeedScenarioNamePost(name: string, options?: RawAxiosRequestConfig): AxiosPromise<SeedScenarioResponse>;
175
+ /**
176
+ *
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ apiTestUserFreshPost(options?: RawAxiosRequestConfig): AxiosPromise<AuthenticatedUserInUi>;
141
181
  };
142
182
  /**
143
183
  * TestApi - object-oriented interface
@@ -185,4 +225,19 @@ export declare class TestApi extends BaseAPI {
185
225
  * @memberof TestApi
186
226
  */
187
227
  apiTestQuickBooksAuthCallbackPost(testQuickBooksCallbackRequest?: TestQuickBooksCallbackRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TestQuickBooksCallbackResponse, any, {}>>;
228
+ /**
229
+ *
230
+ * @param {string} name
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ * @memberof TestApi
234
+ */
235
+ apiTestSeedScenarioNamePost(name: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SeedScenarioResponse, any, {}>>;
236
+ /**
237
+ *
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ * @memberof TestApi
241
+ */
242
+ apiTestUserFreshPost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticatedUserInUi, any, {}>>;
188
243
  }
@@ -293,6 +293,86 @@ var TestApiAxiosParamCreator = function (configuration) {
293
293
  });
294
294
  });
295
295
  },
296
+ /**
297
+ *
298
+ * @param {string} name
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ apiTestSeedScenarioNamePost: function (name, options) {
303
+ if (options === void 0) { options = {}; }
304
+ return __awaiter(_this, void 0, void 0, function () {
305
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
306
+ return __generator(this, function (_a) {
307
+ switch (_a.label) {
308
+ case 0:
309
+ // verify required parameter 'name' is not null or undefined
310
+ (0, common_1.assertParamExists)('apiTestSeedScenarioNamePost', 'name', name);
311
+ localVarPath = "/api/Test/seedScenario/{name}"
312
+ .replace("{".concat("name", "}"), encodeURIComponent(String(name)));
313
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
314
+ if (configuration) {
315
+ baseOptions = configuration.baseOptions;
316
+ }
317
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
318
+ localVarHeaderParameter = {};
319
+ localVarQueryParameter = {};
320
+ // authentication Bearer required
321
+ // http bearer authentication required
322
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
323
+ case 1:
324
+ // authentication Bearer required
325
+ // http bearer authentication required
326
+ _a.sent();
327
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
328
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
329
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
330
+ return [2 /*return*/, {
331
+ url: (0, common_1.toPathString)(localVarUrlObj),
332
+ options: localVarRequestOptions,
333
+ }];
334
+ }
335
+ });
336
+ });
337
+ },
338
+ /**
339
+ *
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ */
343
+ apiTestUserFreshPost: function (options) {
344
+ if (options === void 0) { options = {}; }
345
+ return __awaiter(_this, void 0, void 0, function () {
346
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
347
+ return __generator(this, function (_a) {
348
+ switch (_a.label) {
349
+ case 0:
350
+ localVarPath = "/api/Test/user/fresh";
351
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
352
+ if (configuration) {
353
+ baseOptions = configuration.baseOptions;
354
+ }
355
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
356
+ localVarHeaderParameter = {};
357
+ localVarQueryParameter = {};
358
+ // authentication Bearer required
359
+ // http bearer authentication required
360
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
361
+ case 1:
362
+ // authentication Bearer required
363
+ // http bearer authentication required
364
+ _a.sent();
365
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
366
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
367
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
368
+ return [2 /*return*/, {
369
+ url: (0, common_1.toPathString)(localVarUrlObj),
370
+ options: localVarRequestOptions,
371
+ }];
372
+ }
373
+ });
374
+ });
375
+ },
296
376
  };
297
377
  };
298
378
  exports.TestApiAxiosParamCreator = TestApiAxiosParamCreator;
@@ -412,6 +492,49 @@ var TestApiFp = function (configuration) {
412
492
  });
413
493
  });
414
494
  },
495
+ /**
496
+ *
497
+ * @param {string} name
498
+ * @param {*} [options] Override http request option.
499
+ * @throws {RequiredError}
500
+ */
501
+ apiTestSeedScenarioNamePost: function (name, options) {
502
+ var _a, _b, _c;
503
+ return __awaiter(this, void 0, void 0, function () {
504
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
505
+ return __generator(this, function (_d) {
506
+ switch (_d.label) {
507
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiTestSeedScenarioNamePost(name, options)];
508
+ case 1:
509
+ localVarAxiosArgs = _d.sent();
510
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
511
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TestApi.apiTestSeedScenarioNamePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
512
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
513
+ }
514
+ });
515
+ });
516
+ },
517
+ /**
518
+ *
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ apiTestUserFreshPost: function (options) {
523
+ var _a, _b, _c;
524
+ return __awaiter(this, void 0, void 0, function () {
525
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
526
+ return __generator(this, function (_d) {
527
+ switch (_d.label) {
528
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiTestUserFreshPost(options)];
529
+ case 1:
530
+ localVarAxiosArgs = _d.sent();
531
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
532
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TestApi.apiTestUserFreshPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
533
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
534
+ }
535
+ });
536
+ });
537
+ },
415
538
  };
416
539
  };
417
540
  exports.TestApiFp = TestApiFp;
@@ -466,6 +589,23 @@ var TestApiFactory = function (configuration, basePath, axios) {
466
589
  apiTestQuickBooksAuthCallbackPost: function (testQuickBooksCallbackRequest, options) {
467
590
  return localVarFp.apiTestQuickBooksAuthCallbackPost(testQuickBooksCallbackRequest, options).then(function (request) { return request(axios, basePath); });
468
591
  },
592
+ /**
593
+ *
594
+ * @param {string} name
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ */
598
+ apiTestSeedScenarioNamePost: function (name, options) {
599
+ return localVarFp.apiTestSeedScenarioNamePost(name, options).then(function (request) { return request(axios, basePath); });
600
+ },
601
+ /**
602
+ *
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ */
606
+ apiTestUserFreshPost: function (options) {
607
+ return localVarFp.apiTestUserFreshPost(options).then(function (request) { return request(axios, basePath); });
608
+ },
469
609
  };
470
610
  };
471
611
  exports.TestApiFactory = TestApiFactory;
@@ -534,6 +674,27 @@ var TestApi = /** @class */ (function (_super) {
534
674
  var _this = this;
535
675
  return (0, exports.TestApiFp)(this.configuration).apiTestQuickBooksAuthCallbackPost(testQuickBooksCallbackRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
536
676
  };
677
+ /**
678
+ *
679
+ * @param {string} name
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ * @memberof TestApi
683
+ */
684
+ TestApi.prototype.apiTestSeedScenarioNamePost = function (name, options) {
685
+ var _this = this;
686
+ return (0, exports.TestApiFp)(this.configuration).apiTestSeedScenarioNamePost(name, options).then(function (request) { return request(_this.axios, _this.basePath); });
687
+ };
688
+ /**
689
+ *
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ * @memberof TestApi
693
+ */
694
+ TestApi.prototype.apiTestUserFreshPost = function (options) {
695
+ var _this = this;
696
+ return (0, exports.TestApiFp)(this.configuration).apiTestUserFreshPost(options).then(function (request) { return request(_this.axios, _this.basePath); });
697
+ };
537
698
  return TestApi;
538
699
  }(base_1.BaseAPI));
539
700
  exports.TestApi = TestApi;
@@ -62,6 +62,8 @@ export * from './scorp-election-create-request';
62
62
  export * from './scorp-election-finalize-request';
63
63
  export * from './scorp-election-response';
64
64
  export * from './scorp-election-update-request';
65
+ export * from './seed-scenario-not-found-response';
66
+ export * from './seed-scenario-response';
65
67
  export * from './send-invitation-request';
66
68
  export * from './shared-family-info-response';
67
69
  export * from './shared-family-summary-response';
@@ -78,6 +78,8 @@ __exportStar(require("./scorp-election-create-request"), exports);
78
78
  __exportStar(require("./scorp-election-finalize-request"), exports);
79
79
  __exportStar(require("./scorp-election-response"), exports);
80
80
  __exportStar(require("./scorp-election-update-request"), exports);
81
+ __exportStar(require("./seed-scenario-not-found-response"), exports);
82
+ __exportStar(require("./seed-scenario-response"), exports);
81
83
  __exportStar(require("./send-invitation-request"), exports);
82
84
  __exportStar(require("./shared-family-info-response"), exports);
83
85
  __exportStar(require("./shared-family-summary-response"), exports);
@@ -0,0 +1,30 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SeedScenarioNotFoundResponse
16
+ */
17
+ export interface SeedScenarioNotFoundResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SeedScenarioNotFoundResponse
22
+ */
23
+ 'error'?: string | null;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof SeedScenarioNotFoundResponse
28
+ */
29
+ 'availableScenarios'?: Array<string> | null;
30
+ }
@@ -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,36 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SeedScenarioResponse
16
+ */
17
+ export interface SeedScenarioResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SeedScenarioResponse
22
+ */
23
+ 'name'?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SeedScenarioResponse
28
+ */
29
+ 'status'?: string | null;
30
+ /**
31
+ *
32
+ * @type {any}
33
+ * @memberof SeedScenarioResponse
34
+ */
35
+ 'result'?: any | null;
36
+ }
@@ -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.13.1",
3
+ "version": "1.14.1",
4
4
  "description": "TypeScript API client for S-Corp Biz Entity API",
5
5
  "keywords": [
6
6
  "typescript",