@s-corp-biz/biz-entity-api 1.22.1 → 1.23.0-staging.2

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.
@@ -13,6 +13,7 @@ import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { BillingPortalRequest } from '../models';
16
+ import type { CreateSubscriptionRequest } from '../models';
16
17
  import type { CreateSubscriptionResponse } from '../models';
17
18
  /**
18
19
  * BillingApi - axios parameter creator
@@ -37,10 +38,11 @@ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration
37
38
  /**
38
39
  *
39
40
  * @param {string} companyId
41
+ * @param {CreateSubscriptionRequest} [createSubscriptionRequest]
40
42
  * @param {*} [options] Override http request option.
41
43
  * @throws {RequiredError}
42
44
  */
43
- apiCompaniesCompanyIdBillingSubscribePost: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
45
+ apiCompaniesCompanyIdBillingSubscribePost: (companyId: string, createSubscriptionRequest?: CreateSubscriptionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
44
46
  };
45
47
  /**
46
48
  * BillingApi - functional programming interface
@@ -65,10 +67,11 @@ export declare const BillingApiFp: (configuration?: Configuration) => {
65
67
  /**
66
68
  *
67
69
  * @param {string} companyId
70
+ * @param {CreateSubscriptionRequest} [createSubscriptionRequest]
68
71
  * @param {*} [options] Override http request option.
69
72
  * @throws {RequiredError}
70
73
  */
71
- apiCompaniesCompanyIdBillingSubscribePost(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSubscriptionResponse>>;
74
+ apiCompaniesCompanyIdBillingSubscribePost(companyId: string, createSubscriptionRequest?: CreateSubscriptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSubscriptionResponse>>;
72
75
  };
73
76
  /**
74
77
  * BillingApi - factory interface
@@ -93,10 +96,11 @@ export declare const BillingApiFactory: (configuration?: Configuration, basePath
93
96
  /**
94
97
  *
95
98
  * @param {string} companyId
99
+ * @param {CreateSubscriptionRequest} [createSubscriptionRequest]
96
100
  * @param {*} [options] Override http request option.
97
101
  * @throws {RequiredError}
98
102
  */
99
- apiCompaniesCompanyIdBillingSubscribePost(companyId: string, options?: RawAxiosRequestConfig): AxiosPromise<CreateSubscriptionResponse>;
103
+ apiCompaniesCompanyIdBillingSubscribePost(companyId: string, createSubscriptionRequest?: CreateSubscriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateSubscriptionResponse>;
100
104
  };
101
105
  /**
102
106
  * BillingApi - object-oriented interface
@@ -125,9 +129,10 @@ export declare class BillingApi extends BaseAPI {
125
129
  /**
126
130
  *
127
131
  * @param {string} companyId
132
+ * @param {CreateSubscriptionRequest} [createSubscriptionRequest]
128
133
  * @param {*} [options] Override http request option.
129
134
  * @throws {RequiredError}
130
135
  * @memberof BillingApi
131
136
  */
132
- apiCompaniesCompanyIdBillingSubscribePost(companyId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSubscriptionResponse, any, {}>>;
137
+ apiCompaniesCompanyIdBillingSubscribePost(companyId: string, createSubscriptionRequest?: CreateSubscriptionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSubscriptionResponse, any, {}>>;
133
138
  }
@@ -179,10 +179,11 @@ var BillingApiAxiosParamCreator = function (configuration) {
179
179
  /**
180
180
  *
181
181
  * @param {string} companyId
182
+ * @param {CreateSubscriptionRequest} [createSubscriptionRequest]
182
183
  * @param {*} [options] Override http request option.
183
184
  * @throws {RequiredError}
184
185
  */
185
- apiCompaniesCompanyIdBillingSubscribePost: function (companyId, options) {
186
+ apiCompaniesCompanyIdBillingSubscribePost: function (companyId, createSubscriptionRequest, options) {
186
187
  if (options === void 0) { options = {}; }
187
188
  return __awaiter(_this, void 0, void 0, function () {
188
189
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -207,9 +208,11 @@ var BillingApiAxiosParamCreator = function (configuration) {
207
208
  // authentication Bearer required
208
209
  // http bearer authentication required
209
210
  _a.sent();
211
+ localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
210
212
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
211
213
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
212
214
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
215
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscriptionRequest, localVarRequestOptions, configuration);
213
216
  return [2 /*return*/, {
214
217
  url: (0, common_1.toPathString)(localVarUrlObj),
215
218
  options: localVarRequestOptions,
@@ -276,16 +279,17 @@ var BillingApiFp = function (configuration) {
276
279
  /**
277
280
  *
278
281
  * @param {string} companyId
282
+ * @param {CreateSubscriptionRequest} [createSubscriptionRequest]
279
283
  * @param {*} [options] Override http request option.
280
284
  * @throws {RequiredError}
281
285
  */
282
- apiCompaniesCompanyIdBillingSubscribePost: function (companyId, options) {
286
+ apiCompaniesCompanyIdBillingSubscribePost: function (companyId, createSubscriptionRequest, options) {
283
287
  var _a, _b, _c;
284
288
  return __awaiter(this, void 0, void 0, function () {
285
289
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
286
290
  return __generator(this, function (_d) {
287
291
  switch (_d.label) {
288
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiCompaniesCompanyIdBillingSubscribePost(companyId, options)];
292
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiCompaniesCompanyIdBillingSubscribePost(companyId, createSubscriptionRequest, options)];
289
293
  case 1:
290
294
  localVarAxiosArgs = _d.sent();
291
295
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -327,11 +331,12 @@ var BillingApiFactory = function (configuration, basePath, axios) {
327
331
  /**
328
332
  *
329
333
  * @param {string} companyId
334
+ * @param {CreateSubscriptionRequest} [createSubscriptionRequest]
330
335
  * @param {*} [options] Override http request option.
331
336
  * @throws {RequiredError}
332
337
  */
333
- apiCompaniesCompanyIdBillingSubscribePost: function (companyId, options) {
334
- return localVarFp.apiCompaniesCompanyIdBillingSubscribePost(companyId, options).then(function (request) { return request(axios, basePath); });
338
+ apiCompaniesCompanyIdBillingSubscribePost: function (companyId, createSubscriptionRequest, options) {
339
+ return localVarFp.apiCompaniesCompanyIdBillingSubscribePost(companyId, createSubscriptionRequest, options).then(function (request) { return request(axios, basePath); });
335
340
  },
336
341
  };
337
342
  };
@@ -373,13 +378,14 @@ var BillingApi = /** @class */ (function (_super) {
373
378
  /**
374
379
  *
375
380
  * @param {string} companyId
381
+ * @param {CreateSubscriptionRequest} [createSubscriptionRequest]
376
382
  * @param {*} [options] Override http request option.
377
383
  * @throws {RequiredError}
378
384
  * @memberof BillingApi
379
385
  */
380
- BillingApi.prototype.apiCompaniesCompanyIdBillingSubscribePost = function (companyId, options) {
386
+ BillingApi.prototype.apiCompaniesCompanyIdBillingSubscribePost = function (companyId, createSubscriptionRequest, options) {
381
387
  var _this = this;
382
- return (0, exports.BillingApiFp)(this.configuration).apiCompaniesCompanyIdBillingSubscribePost(companyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
388
+ return (0, exports.BillingApiFp)(this.configuration).apiCompaniesCompanyIdBillingSubscribePost(companyId, createSubscriptionRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
383
389
  };
384
390
  return BillingApi;
385
391
  }(base_1.BaseAPI));
@@ -58,6 +58,14 @@ export declare const PeopleApiAxiosParamCreator: (configuration?: Configuration)
58
58
  * @throws {RequiredError}
59
59
  */
60
60
  apiPeopleCompanyCompanyIdInvitePost: (companyId: string, sendInvitationRequest?: SendInvitationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
61
+ /**
62
+ *
63
+ * @param {string} companyId
64
+ * @param {string} [email]
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ apiPeopleCompanyCompanyIdLookupByEmailGet: (companyId: string, email?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
61
69
  /**
62
70
  *
63
71
  * @param {string} companyId
@@ -164,6 +172,14 @@ export declare const PeopleApiFp: (configuration?: Configuration) => {
164
172
  * @throws {RequiredError}
165
173
  */
166
174
  apiPeopleCompanyCompanyIdInvitePost(companyId: string, sendInvitationRequest?: SendInvitationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponse>>;
175
+ /**
176
+ *
177
+ * @param {string} companyId
178
+ * @param {string} [email]
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ apiPeopleCompanyCompanyIdLookupByEmailGet(companyId: string, email?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponse>>;
167
183
  /**
168
184
  *
169
185
  * @param {string} companyId
@@ -270,6 +286,14 @@ export declare const PeopleApiFactory: (configuration?: Configuration, basePath?
270
286
  * @throws {RequiredError}
271
287
  */
272
288
  apiPeopleCompanyCompanyIdInvitePost(companyId: string, sendInvitationRequest?: SendInvitationRequest, options?: RawAxiosRequestConfig): AxiosPromise<PeopleResponse>;
289
+ /**
290
+ *
291
+ * @param {string} companyId
292
+ * @param {string} [email]
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ apiPeopleCompanyCompanyIdLookupByEmailGet(companyId: string, email?: string, options?: RawAxiosRequestConfig): AxiosPromise<PeopleResponse>;
273
297
  /**
274
298
  *
275
299
  * @param {string} companyId
@@ -382,6 +406,15 @@ export declare class PeopleApi extends BaseAPI {
382
406
  * @memberof PeopleApi
383
407
  */
384
408
  apiPeopleCompanyCompanyIdInvitePost(companyId: string, sendInvitationRequest?: SendInvitationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PeopleResponse, any, {}>>;
409
+ /**
410
+ *
411
+ * @param {string} companyId
412
+ * @param {string} [email]
413
+ * @param {*} [options] Override http request option.
414
+ * @throws {RequiredError}
415
+ * @memberof PeopleApi
416
+ */
417
+ apiPeopleCompanyCompanyIdLookupByEmailGet(companyId: string, email?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PeopleResponse, any, {}>>;
385
418
  /**
386
419
  *
387
420
  * @param {string} companyId
@@ -262,6 +262,52 @@ var PeopleApiAxiosParamCreator = function (configuration) {
262
262
  });
263
263
  });
264
264
  },
265
+ /**
266
+ *
267
+ * @param {string} companyId
268
+ * @param {string} [email]
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ apiPeopleCompanyCompanyIdLookupByEmailGet: function (companyId, email, options) {
273
+ if (options === void 0) { options = {}; }
274
+ return __awaiter(_this, void 0, void 0, function () {
275
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
276
+ return __generator(this, function (_a) {
277
+ switch (_a.label) {
278
+ case 0:
279
+ // verify required parameter 'companyId' is not null or undefined
280
+ (0, common_1.assertParamExists)('apiPeopleCompanyCompanyIdLookupByEmailGet', 'companyId', companyId);
281
+ localVarPath = "/api/People/company/{companyId}/lookup-by-email"
282
+ .replace("{".concat("companyId", "}"), encodeURIComponent(String(companyId)));
283
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
284
+ if (configuration) {
285
+ baseOptions = configuration.baseOptions;
286
+ }
287
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
288
+ localVarHeaderParameter = {};
289
+ localVarQueryParameter = {};
290
+ // authentication Bearer required
291
+ // http bearer authentication required
292
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
293
+ case 1:
294
+ // authentication Bearer required
295
+ // http bearer authentication required
296
+ _a.sent();
297
+ if (email !== undefined) {
298
+ localVarQueryParameter['email'] = email;
299
+ }
300
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
301
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
302
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
303
+ return [2 /*return*/, {
304
+ url: (0, common_1.toPathString)(localVarUrlObj),
305
+ options: localVarRequestOptions,
306
+ }];
307
+ }
308
+ });
309
+ });
310
+ },
265
311
  /**
266
312
  *
267
313
  * @param {string} companyId
@@ -762,6 +808,29 @@ var PeopleApiFp = function (configuration) {
762
808
  });
763
809
  });
764
810
  },
811
+ /**
812
+ *
813
+ * @param {string} companyId
814
+ * @param {string} [email]
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ */
818
+ apiPeopleCompanyCompanyIdLookupByEmailGet: function (companyId, email, options) {
819
+ var _a, _b, _c;
820
+ return __awaiter(this, void 0, void 0, function () {
821
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
822
+ return __generator(this, function (_d) {
823
+ switch (_d.label) {
824
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiPeopleCompanyCompanyIdLookupByEmailGet(companyId, email, options)];
825
+ case 1:
826
+ localVarAxiosArgs = _d.sent();
827
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
828
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PeopleApi.apiPeopleCompanyCompanyIdLookupByEmailGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
829
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
830
+ }
831
+ });
832
+ });
833
+ },
765
834
  /**
766
835
  *
767
836
  * @param {string} companyId
@@ -1015,6 +1084,16 @@ var PeopleApiFactory = function (configuration, basePath, axios) {
1015
1084
  apiPeopleCompanyCompanyIdInvitePost: function (companyId, sendInvitationRequest, options) {
1016
1085
  return localVarFp.apiPeopleCompanyCompanyIdInvitePost(companyId, sendInvitationRequest, options).then(function (request) { return request(axios, basePath); });
1017
1086
  },
1087
+ /**
1088
+ *
1089
+ * @param {string} companyId
1090
+ * @param {string} [email]
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ */
1094
+ apiPeopleCompanyCompanyIdLookupByEmailGet: function (companyId, email, options) {
1095
+ return localVarFp.apiPeopleCompanyCompanyIdLookupByEmailGet(companyId, email, options).then(function (request) { return request(axios, basePath); });
1096
+ },
1018
1097
  /**
1019
1098
  *
1020
1099
  * @param {string} companyId
@@ -1163,6 +1242,18 @@ var PeopleApi = /** @class */ (function (_super) {
1163
1242
  var _this = this;
1164
1243
  return (0, exports.PeopleApiFp)(this.configuration).apiPeopleCompanyCompanyIdInvitePost(companyId, sendInvitationRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1165
1244
  };
1245
+ /**
1246
+ *
1247
+ * @param {string} companyId
1248
+ * @param {string} [email]
1249
+ * @param {*} [options] Override http request option.
1250
+ * @throws {RequiredError}
1251
+ * @memberof PeopleApi
1252
+ */
1253
+ PeopleApi.prototype.apiPeopleCompanyCompanyIdLookupByEmailGet = function (companyId, email, options) {
1254
+ var _this = this;
1255
+ return (0, exports.PeopleApiFp)(this.configuration).apiPeopleCompanyCompanyIdLookupByEmailGet(companyId, email, options).then(function (request) { return request(_this.axios, _this.basePath); });
1256
+ };
1166
1257
  /**
1167
1258
  *
1168
1259
  * @param {string} companyId
@@ -28,4 +28,10 @@ export interface CreateElectionPaymentRequest {
28
28
  * @memberof CreateElectionPaymentRequest
29
29
  */
30
30
  'subscriptionTier'?: SubscriptionTierEnum;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof CreateElectionPaymentRequest
35
+ */
36
+ 'companyName'?: string | null;
31
37
  }
@@ -0,0 +1,24 @@
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 CreateSubscriptionRequest
16
+ */
17
+ export interface CreateSubscriptionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateSubscriptionRequest
22
+ */
23
+ 'companyName'?: string | null;
24
+ }
@@ -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 });
@@ -32,6 +32,7 @@ export * from './create-election-payment-request';
32
32
  export * from './create-election-payment-response';
33
33
  export * from './create-personal-tax-report-for-user-request';
34
34
  export * from './create-personal-tax-report-request';
35
+ export * from './create-subscription-request';
35
36
  export * from './create-subscription-response';
36
37
  export * from './create-tax-line-item-request';
37
38
  export * from './create-tax-line-item-self-employment-flag-request';
@@ -48,6 +48,7 @@ __exportStar(require("./create-election-payment-request"), exports);
48
48
  __exportStar(require("./create-election-payment-response"), exports);
49
49
  __exportStar(require("./create-personal-tax-report-for-user-request"), exports);
50
50
  __exportStar(require("./create-personal-tax-report-request"), exports);
51
+ __exportStar(require("./create-subscription-request"), exports);
51
52
  __exportStar(require("./create-subscription-response"), exports);
52
53
  __exportStar(require("./create-tax-line-item-request"), exports);
53
54
  __exportStar(require("./create-tax-line-item-self-employment-flag-request"), exports);
@@ -111,6 +111,12 @@ export interface PeopleResponse {
111
111
  * @memberof PeopleResponse
112
112
  */
113
113
  'avatarUrl'?: string | null;
114
+ /**
115
+ *
116
+ * @type {boolean}
117
+ * @memberof PeopleResponse
118
+ */
119
+ 'hasAccount'?: boolean;
114
120
  /**
115
121
  *
116
122
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-corp-biz/biz-entity-api",
3
- "version": "1.22.1",
3
+ "version": "1.23.0-staging.2",
4
4
  "description": "TypeScript API client for S-Corp Biz Entity API",
5
5
  "keywords": [
6
6
  "typescript",