tremendous 4.13.0 → 4.14.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.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/api.d.ts +38 -112
- package/dist/api.js +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.14.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.13.0...tremendous-v4.14.0) (2026-07-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* rename `kyb` to `kyb_prefill` in connected org create ([8d71686](https://github.com/tremendous-rewards/tremendous-node/commit/8d716864eebb712ad0516743fef9017bfbe51152))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* remove `prefilled_kyb_details` from connected org responses ([8d71686](https://github.com/tremendous-rewards/tremendous-node/commit/8d716864eebb712ad0516743fef9017bfbe51152))
|
|
14
|
+
|
|
3
15
|
## [4.13.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.12.0...tremendous-v4.13.0) (2026-06-09)
|
|
4
16
|
|
|
5
17
|
|
package/dist/api.d.ts
CHANGED
|
@@ -368,12 +368,6 @@ export interface ConnectedOrganization {
|
|
|
368
368
|
* @memberof ConnectedOrganization
|
|
369
369
|
*/
|
|
370
370
|
'organization'?: ConnectedOrganizationOrganization | null;
|
|
371
|
-
/**
|
|
372
|
-
*
|
|
373
|
-
* @type {ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails}
|
|
374
|
-
* @memberof ConnectedOrganization
|
|
375
|
-
*/
|
|
376
|
-
'prefilled_kyb_details'?: ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails | null;
|
|
377
371
|
}
|
|
378
372
|
/**
|
|
379
373
|
*
|
|
@@ -778,59 +772,77 @@ export interface CreateConnectedOrganizationRequest {
|
|
|
778
772
|
'client_id': string;
|
|
779
773
|
/**
|
|
780
774
|
*
|
|
781
|
-
* @type {
|
|
775
|
+
* @type {CreateConnectedOrganizationRequestKybPrefill}
|
|
782
776
|
* @memberof CreateConnectedOrganizationRequest
|
|
783
777
|
*/
|
|
784
|
-
'
|
|
778
|
+
'kyb_prefill'?: CreateConnectedOrganizationRequestKybPrefill;
|
|
785
779
|
}
|
|
786
780
|
/**
|
|
787
|
-
* Optional KYB details to forward for the end client. When provided, these values
|
|
781
|
+
* Optional KYB details to forward for the end client. When provided, these values prefill the end client\'s onboarding form. Every field is optional.
|
|
788
782
|
* @export
|
|
789
|
-
* @interface
|
|
783
|
+
* @interface CreateConnectedOrganizationRequestKybPrefill
|
|
790
784
|
*/
|
|
791
|
-
export interface
|
|
785
|
+
export interface CreateConnectedOrganizationRequestKybPrefill {
|
|
792
786
|
/**
|
|
793
787
|
* The registered legal name of the company.
|
|
794
788
|
* @type {string}
|
|
795
|
-
* @memberof
|
|
789
|
+
* @memberof CreateConnectedOrganizationRequestKybPrefill
|
|
796
790
|
*/
|
|
797
791
|
'company_name'?: string;
|
|
798
792
|
/**
|
|
799
793
|
* The trade name (DBA) the company operates under, if different from its legal name.
|
|
800
794
|
* @type {string}
|
|
801
|
-
* @memberof
|
|
795
|
+
* @memberof CreateConnectedOrganizationRequestKybPrefill
|
|
802
796
|
*/
|
|
803
797
|
'doing_business_as'?: string;
|
|
804
798
|
/**
|
|
805
|
-
* The company\'s legal entity type. Free-form text
|
|
799
|
+
* The company\'s legal entity type. Free-form text; any value is accepted. Common values include `Sole proprietorship`, `Corporation (Inc)`, `Limited liability company (LLC)`, `Limited liability partnership (LLP)`, `Public limited company (PLC)`, and `Private limited company (LTD)`.
|
|
806
800
|
* @type {string}
|
|
807
|
-
* @memberof
|
|
801
|
+
* @memberof CreateConnectedOrganizationRequestKybPrefill
|
|
808
802
|
*/
|
|
809
803
|
'company_structure'?: string;
|
|
810
804
|
/**
|
|
811
805
|
* The company\'s tax ID or registration number.
|
|
812
806
|
* @type {string}
|
|
813
|
-
* @memberof
|
|
807
|
+
* @memberof CreateConnectedOrganizationRequestKybPrefill
|
|
814
808
|
*/
|
|
815
809
|
'company_registration_number'?: string;
|
|
816
810
|
/**
|
|
817
811
|
* The ISO 3166-1 alpha-2 country code of the company. Must be a supported country.
|
|
818
812
|
* @type {string}
|
|
819
|
-
* @memberof
|
|
813
|
+
* @memberof CreateConnectedOrganizationRequestKybPrefill
|
|
820
814
|
*/
|
|
821
815
|
'country_code'?: string;
|
|
822
816
|
/**
|
|
823
817
|
* The company\'s website URL. Must be a well-formed URL.
|
|
824
818
|
* @type {string}
|
|
825
|
-
* @memberof
|
|
819
|
+
* @memberof CreateConnectedOrganizationRequestKybPrefill
|
|
826
820
|
*/
|
|
827
821
|
'website_url'?: string;
|
|
828
822
|
/**
|
|
829
|
-
*
|
|
830
|
-
* @type {
|
|
831
|
-
* @memberof
|
|
823
|
+
* The company\'s street address.
|
|
824
|
+
* @type {string}
|
|
825
|
+
* @memberof CreateConnectedOrganizationRequestKybPrefill
|
|
832
826
|
*/
|
|
833
|
-
'
|
|
827
|
+
'address_1'?: string;
|
|
828
|
+
/**
|
|
829
|
+
* The company\'s city.
|
|
830
|
+
* @type {string}
|
|
831
|
+
* @memberof CreateConnectedOrganizationRequestKybPrefill
|
|
832
|
+
*/
|
|
833
|
+
'city'?: string;
|
|
834
|
+
/**
|
|
835
|
+
* The company\'s state or province.
|
|
836
|
+
* @type {string}
|
|
837
|
+
* @memberof CreateConnectedOrganizationRequestKybPrefill
|
|
838
|
+
*/
|
|
839
|
+
'state'?: string;
|
|
840
|
+
/**
|
|
841
|
+
* The company\'s ZIP or postal code.
|
|
842
|
+
* @type {string}
|
|
843
|
+
* @memberof CreateConnectedOrganizationRequestKybPrefill
|
|
844
|
+
*/
|
|
845
|
+
'postal_code'?: string;
|
|
834
846
|
}
|
|
835
847
|
/**
|
|
836
848
|
*
|
|
@@ -4169,12 +4181,6 @@ export interface ListConnectedOrganizations200ResponseConnectedOrganizationsInne
|
|
|
4169
4181
|
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInner
|
|
4170
4182
|
*/
|
|
4171
4183
|
'organization'?: ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganization | null;
|
|
4172
|
-
/**
|
|
4173
|
-
*
|
|
4174
|
-
* @type {ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails}
|
|
4175
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInner
|
|
4176
|
-
*/
|
|
4177
|
-
'prefilled_kyb_details'?: ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails | null;
|
|
4178
4184
|
}
|
|
4179
4185
|
/**
|
|
4180
4186
|
* Associated `organization` resource. `null` until the registration flow for the connected organization has been completed.
|
|
@@ -4225,86 +4231,6 @@ export declare const ListConnectedOrganizations200ResponseConnectedOrganizations
|
|
|
4225
4231
|
readonly Rejected: "REJECTED";
|
|
4226
4232
|
};
|
|
4227
4233
|
export type ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganizationStatusEnum = typeof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganizationStatusEnum[keyof typeof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganizationStatusEnum];
|
|
4228
|
-
/**
|
|
4229
|
-
* The optional KYB details forwarded when the connected organization was created (see the `kyb` request object), stored to pre-fill the end client\'s onboarding form. Only returned on the create response — it is omitted from the list, retrieve, and delete responses and from webhook payloads. `null` when no KYB details were provided.
|
|
4230
|
-
* @export
|
|
4231
|
-
* @interface ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails
|
|
4232
|
-
*/
|
|
4233
|
-
export interface ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails {
|
|
4234
|
-
/**
|
|
4235
|
-
* The registered legal name of the company.
|
|
4236
|
-
* @type {string}
|
|
4237
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails
|
|
4238
|
-
*/
|
|
4239
|
-
'company_name'?: string;
|
|
4240
|
-
/**
|
|
4241
|
-
* The trade name (DBA) the company operates under, if different from its legal name.
|
|
4242
|
-
* @type {string}
|
|
4243
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails
|
|
4244
|
-
*/
|
|
4245
|
-
'doing_business_as'?: string;
|
|
4246
|
-
/**
|
|
4247
|
-
* The company\'s legal entity type. Free-form text — any value is accepted to support entity types outside the common presets. Common values are `Sole proprietorship`, `Corporation (Inc)`, `Limited liability company (LLC)`, `Limited liability partnership (LLP)`, `Public limited company (PLC)`, and `Private limited company (LTD)`.
|
|
4248
|
-
* @type {string}
|
|
4249
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails
|
|
4250
|
-
*/
|
|
4251
|
-
'company_structure'?: string;
|
|
4252
|
-
/**
|
|
4253
|
-
* The company\'s tax ID or registration number.
|
|
4254
|
-
* @type {string}
|
|
4255
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails
|
|
4256
|
-
*/
|
|
4257
|
-
'company_registration_number'?: string;
|
|
4258
|
-
/**
|
|
4259
|
-
* The ISO 3166-1 alpha-2 country code of the company.
|
|
4260
|
-
* @type {string}
|
|
4261
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails
|
|
4262
|
-
*/
|
|
4263
|
-
'country_code'?: string;
|
|
4264
|
-
/**
|
|
4265
|
-
* The company\'s website URL.
|
|
4266
|
-
* @type {string}
|
|
4267
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails
|
|
4268
|
-
*/
|
|
4269
|
-
'website_url'?: string;
|
|
4270
|
-
/**
|
|
4271
|
-
*
|
|
4272
|
-
* @type {ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetailsAddress}
|
|
4273
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetails
|
|
4274
|
-
*/
|
|
4275
|
-
'address'?: ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetailsAddress;
|
|
4276
|
-
}
|
|
4277
|
-
/**
|
|
4278
|
-
* The company\'s address.
|
|
4279
|
-
* @export
|
|
4280
|
-
* @interface ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetailsAddress
|
|
4281
|
-
*/
|
|
4282
|
-
export interface ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetailsAddress {
|
|
4283
|
-
/**
|
|
4284
|
-
* Street address.
|
|
4285
|
-
* @type {string}
|
|
4286
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetailsAddress
|
|
4287
|
-
*/
|
|
4288
|
-
'line1'?: string;
|
|
4289
|
-
/**
|
|
4290
|
-
* City.
|
|
4291
|
-
* @type {string}
|
|
4292
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetailsAddress
|
|
4293
|
-
*/
|
|
4294
|
-
'city'?: string;
|
|
4295
|
-
/**
|
|
4296
|
-
* State, province, or region.
|
|
4297
|
-
* @type {string}
|
|
4298
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetailsAddress
|
|
4299
|
-
*/
|
|
4300
|
-
'state'?: string;
|
|
4301
|
-
/**
|
|
4302
|
-
* ZIP or postal code.
|
|
4303
|
-
* @type {string}
|
|
4304
|
-
* @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerPrefilledKybDetailsAddress
|
|
4305
|
-
*/
|
|
4306
|
-
'zip'?: string;
|
|
4307
|
-
}
|
|
4308
4234
|
/**
|
|
4309
4235
|
*
|
|
4310
4236
|
* @export
|
|
@@ -9489,7 +9415,7 @@ export declare class ConnectedOrganizationMembersApi extends BaseAPI {
|
|
|
9489
9415
|
*/
|
|
9490
9416
|
export declare const ConnectedOrganizationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
9491
9417
|
/**
|
|
9492
|
-
* Create a connected organization. Optionally pass a `
|
|
9418
|
+
* Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client\'s onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
9493
9419
|
* @summary Create connected organization
|
|
9494
9420
|
* @param {CreateConnectedOrganizationRequest} createConnectedOrganizationRequest Connected organization to create
|
|
9495
9421
|
* @param {*} [options] Override http request option.
|
|
@@ -9528,7 +9454,7 @@ export declare const ConnectedOrganizationsApiAxiosParamCreator: (configuration?
|
|
|
9528
9454
|
*/
|
|
9529
9455
|
export declare const ConnectedOrganizationsApiFp: (configuration?: Configuration) => {
|
|
9530
9456
|
/**
|
|
9531
|
-
* Create a connected organization. Optionally pass a `
|
|
9457
|
+
* Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client\'s onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
9532
9458
|
* @summary Create connected organization
|
|
9533
9459
|
* @param {CreateConnectedOrganizationRequest} createConnectedOrganizationRequest Connected organization to create
|
|
9534
9460
|
* @param {*} [options] Override http request option.
|
|
@@ -9567,7 +9493,7 @@ export declare const ConnectedOrganizationsApiFp: (configuration?: Configuration
|
|
|
9567
9493
|
*/
|
|
9568
9494
|
export declare const ConnectedOrganizationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
9569
9495
|
/**
|
|
9570
|
-
* Create a connected organization. Optionally pass a `
|
|
9496
|
+
* Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client\'s onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
9571
9497
|
* @summary Create connected organization
|
|
9572
9498
|
* @param {CreateConnectedOrganizationRequest} createConnectedOrganizationRequest Connected organization to create
|
|
9573
9499
|
* @param {*} [options] Override http request option.
|
|
@@ -9608,7 +9534,7 @@ export declare const ConnectedOrganizationsApiFactory: (configuration?: Configur
|
|
|
9608
9534
|
*/
|
|
9609
9535
|
export declare class ConnectedOrganizationsApi extends BaseAPI {
|
|
9610
9536
|
/**
|
|
9611
|
-
* Create a connected organization. Optionally pass a `
|
|
9537
|
+
* Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client\'s onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
9612
9538
|
* @summary Create connected organization
|
|
9613
9539
|
* @param {CreateConnectedOrganizationRequest} createConnectedOrganizationRequest Connected organization to create
|
|
9614
9540
|
* @param {*} [options] Override http request option.
|
package/dist/api.js
CHANGED
|
@@ -2448,7 +2448,7 @@ exports.ConnectedOrganizationMembersApi = ConnectedOrganizationMembersApi;
|
|
|
2448
2448
|
const ConnectedOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
2449
2449
|
return {
|
|
2450
2450
|
/**
|
|
2451
|
-
* Create a connected organization. Optionally pass a `
|
|
2451
|
+
* Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client\'s onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
2452
2452
|
* @summary Create connected organization
|
|
2453
2453
|
* @param {CreateConnectedOrganizationRequest} createConnectedOrganizationRequest Connected organization to create
|
|
2454
2454
|
* @param {*} [options] Override http request option.
|
|
@@ -2591,7 +2591,7 @@ const ConnectedOrganizationsApiFp = function (configuration) {
|
|
|
2591
2591
|
const localVarAxiosParamCreator = (0, exports.ConnectedOrganizationsApiAxiosParamCreator)(configuration);
|
|
2592
2592
|
return {
|
|
2593
2593
|
/**
|
|
2594
|
-
* Create a connected organization. Optionally pass a `
|
|
2594
|
+
* Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client\'s onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
2595
2595
|
* @summary Create connected organization
|
|
2596
2596
|
* @param {CreateConnectedOrganizationRequest} createConnectedOrganizationRequest Connected organization to create
|
|
2597
2597
|
* @param {*} [options] Override http request option.
|
|
@@ -2666,7 +2666,7 @@ const ConnectedOrganizationsApiFactory = function (configuration, basePath, axio
|
|
|
2666
2666
|
const localVarFp = (0, exports.ConnectedOrganizationsApiFp)(configuration);
|
|
2667
2667
|
return {
|
|
2668
2668
|
/**
|
|
2669
|
-
* Create a connected organization. Optionally pass a `
|
|
2669
|
+
* Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client\'s onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
2670
2670
|
* @summary Create connected organization
|
|
2671
2671
|
* @param {CreateConnectedOrganizationRequest} createConnectedOrganizationRequest Connected organization to create
|
|
2672
2672
|
* @param {*} [options] Override http request option.
|
|
@@ -2717,7 +2717,7 @@ exports.ConnectedOrganizationsApiFactory = ConnectedOrganizationsApiFactory;
|
|
|
2717
2717
|
*/
|
|
2718
2718
|
class ConnectedOrganizationsApi extends base_1.BaseAPI {
|
|
2719
2719
|
/**
|
|
2720
|
-
* Create a connected organization. Optionally pass a `
|
|
2720
|
+
* Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client\'s onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
2721
2721
|
* @summary Create connected organization
|
|
2722
2722
|
* @param {CreateConnectedOrganizationRequest} createConnectedOrganizationRequest Connected organization to create
|
|
2723
2723
|
* @param {*} [options] Override http request option.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tremendous",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A node.js client for the Tremendous API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tremendous",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"axios": "^1.6.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@types/node": "^
|
|
32
|
+
"@types/node": "^26.0.1",
|
|
33
33
|
"typescript": "^6.0.2",
|
|
34
34
|
"vitest": "^4.0.6"
|
|
35
35
|
},
|