@reposit/api-client 6.50.0 → 6.52.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/dist/api.d.ts CHANGED
@@ -1301,6 +1301,11 @@ export interface OfferToTenantRequestDTO {
1301
1301
  organizationId: string;
1302
1302
  tenants: Array<TenantForOfferDTO>;
1303
1303
  cashDepositAmount?: number;
1304
+ tenantsReferenceStatus?: OfferToTenantRequestDTOTenantsReferenceStatusEnum;
1305
+ }
1306
+ export declare enum OfferToTenantRequestDTOTenantsReferenceStatusEnum {
1307
+ PASSED = "PASSED",
1308
+ FAILED = "FAILED"
1304
1309
  }
1305
1310
  export interface OneTimeSessionTokenDTO {
1306
1311
  id: string;
@@ -1472,6 +1477,12 @@ export declare enum OrganizationBankAccountDTOAccountTypeEnum {
1472
1477
  DEFAULT = "DEFAULT",
1473
1478
  CLAIM = "CLAIM"
1474
1479
  }
1480
+ export interface OrganizationCashDepositSchemeDTO {
1481
+ id: string;
1482
+ cashDepositSchemeId: string;
1483
+ createdAt: string;
1484
+ updatedAt: string;
1485
+ }
1475
1486
  export interface OrganizationDTO {
1476
1487
  id: string;
1477
1488
  parentId: string;
@@ -1617,6 +1628,25 @@ export declare enum OrganizationVerticalDTONameEnum {
1617
1628
  HMO = "HMO",
1618
1629
  PBSA = "PBSA"
1619
1630
  }
1631
+ export interface OrganizationWithCashDepositDTO {
1632
+ id: string;
1633
+ parentId: string;
1634
+ name: string;
1635
+ attributes?: OrganizationAttributesDTO;
1636
+ settings?: OrganizationSettingsDTO;
1637
+ organizationTypeId: OrganizationWithCashDepositDTOOrganizationTypeIdEnum;
1638
+ organizationRecipients?: Array<OrganizationRecipientDTO>;
1639
+ createdAt: string;
1640
+ updatedAt: string;
1641
+ legacyId?: string;
1642
+ hasCashDepositEnabled: boolean;
1643
+ }
1644
+ export declare enum OrganizationWithCashDepositDTOOrganizationTypeIdEnum {
1645
+ AGENCY = "AGENCY",
1646
+ BUILDTORENT = "BUILD_TO_RENT",
1647
+ PRIVATE = "PRIVATE",
1648
+ INTEGRATORREFERRAL = "INTEGRATOR_REFERRAL"
1649
+ }
1620
1650
  export interface OrganizationWithRepositsAndRoles {
1621
1651
  id: string;
1622
1652
  parentId: string;
@@ -2082,9 +2112,14 @@ export interface RepositOfferDTO {
2082
2112
  repositAmount: number;
2083
2113
  savingAmount: number;
2084
2114
  tenancyOrder?: TenancyOrderDTO;
2115
+ tenantsReferenceStatus?: RepositOfferDTOTenantsReferenceStatusEnum;
2085
2116
  createdAt: string;
2086
2117
  updatedAt: string;
2087
2118
  }
2119
+ export declare enum RepositOfferDTOTenantsReferenceStatusEnum {
2120
+ PASSED = "PASSED",
2121
+ FAILED = "FAILED"
2122
+ }
2088
2123
  export interface RepositOfferRecipientDTO {
2089
2124
  id: string;
2090
2125
  repositOfferId: string;
@@ -2528,6 +2563,7 @@ export interface TenantForOfferDTO {
2528
2563
  email: string;
2529
2564
  firstName: string;
2530
2565
  lastName: string;
2566
+ guarantor?: TenantGuarantorForOfferDTO;
2531
2567
  }
2532
2568
  export interface TenantGuarantorDTO {
2533
2569
  firstName: string;
@@ -2535,6 +2571,12 @@ export interface TenantGuarantorDTO {
2535
2571
  email: string;
2536
2572
  mobileNumber?: string;
2537
2573
  }
2574
+ export interface TenantGuarantorForOfferDTO {
2575
+ email: string;
2576
+ firstName: string;
2577
+ lastName: string;
2578
+ mobileNumber?: string;
2579
+ }
2538
2580
  export interface TermsDTO {
2539
2581
  url: string;
2540
2582
  }
@@ -3937,6 +3979,7 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
3937
3979
  fetchTenanciesByOrganizationId(id: string, options?: any): RequestArgs;
3938
3980
  fetchUsersByOrganizationId(id: string, options?: any): RequestArgs;
3939
3981
  findOrganizationById(id: string, options?: any): RequestArgs;
3982
+ getCashDepositScheme(id: string, options?: any): RequestArgs;
3940
3983
  getChildren(id: string, options?: any): RequestArgs;
3941
3984
  getOrganizationMetrics(organizationId: string, options?: any): RequestArgs;
3942
3985
  getOrganizationVerticals(id: string, options?: any): RequestArgs;
@@ -3964,7 +4007,8 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
3964
4007
  fetchPropertiesByOrganizationId(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<PropertyDTO[]>;
3965
4008
  fetchTenanciesByOrganizationId(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<TenancyDTO[]>;
3966
4009
  fetchUsersByOrganizationId(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDTO[]>;
3967
- findOrganizationById(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationDTO>;
4010
+ findOrganizationById(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationWithCashDepositDTO>;
4011
+ getCashDepositScheme(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCashDepositSchemeDTO[]>;
3968
4012
  getChildren(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationDTO[]>;
3969
4013
  getOrganizationMetrics(organizationId: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationMetricsDTO>;
3970
4014
  getOrganizationVerticals(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationVerticalDTO[]>;
@@ -3992,7 +4036,8 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
3992
4036
  fetchPropertiesByOrganizationId(id: string, options?: any): AxiosPromise<PropertyDTO[]>;
3993
4037
  fetchTenanciesByOrganizationId(id: string, options?: any): AxiosPromise<TenancyDTO[]>;
3994
4038
  fetchUsersByOrganizationId(id: string, options?: any): AxiosPromise<UserDTO[]>;
3995
- findOrganizationById(id: string, options?: any): AxiosPromise<OrganizationDTO>;
4039
+ findOrganizationById(id: string, options?: any): AxiosPromise<OrganizationWithCashDepositDTO>;
4040
+ getCashDepositScheme(id: string, options?: any): AxiosPromise<OrganizationCashDepositSchemeDTO[]>;
3996
4041
  getChildren(id: string, options?: any): AxiosPromise<OrganizationDTO[]>;
3997
4042
  getOrganizationMetrics(organizationId: string, options?: any): AxiosPromise<OrganizationMetricsDTO>;
3998
4043
  getOrganizationVerticals(id: string, options?: any): AxiosPromise<OrganizationVerticalDTO[]>;
@@ -4020,7 +4065,8 @@ export interface OrganizationsApiInterface {
4020
4065
  fetchPropertiesByOrganizationId(id: string, options?: any): AxiosPromise<Array<PropertyDTO>>;
4021
4066
  fetchTenanciesByOrganizationId(id: string, options?: any): AxiosPromise<Array<TenancyDTO>>;
4022
4067
  fetchUsersByOrganizationId(id: string, options?: any): AxiosPromise<Array<UserDTO>>;
4023
- findOrganizationById(id: string, options?: any): AxiosPromise<OrganizationDTO>;
4068
+ findOrganizationById(id: string, options?: any): AxiosPromise<OrganizationWithCashDepositDTO>;
4069
+ getCashDepositScheme(id: string, options?: any): AxiosPromise<Array<OrganizationCashDepositSchemeDTO>>;
4024
4070
  getChildren(id: string, options?: any): AxiosPromise<Array<OrganizationDTO>>;
4025
4071
  getOrganizationMetrics(organizationId: string, options?: any): AxiosPromise<OrganizationMetricsDTO>;
4026
4072
  getOrganizationVerticals(id: string, options?: any): AxiosPromise<Array<OrganizationVerticalDTO>>;
@@ -4048,7 +4094,8 @@ export declare class OrganizationsApi extends BaseAPI implements OrganizationsAp
4048
4094
  fetchPropertiesByOrganizationId(id: string, options?: any): AxiosPromise<PropertyDTO[]>;
4049
4095
  fetchTenanciesByOrganizationId(id: string, options?: any): AxiosPromise<TenancyDTO[]>;
4050
4096
  fetchUsersByOrganizationId(id: string, options?: any): AxiosPromise<UserDTO[]>;
4051
- findOrganizationById(id: string, options?: any): AxiosPromise<OrganizationDTO>;
4097
+ findOrganizationById(id: string, options?: any): AxiosPromise<OrganizationWithCashDepositDTO>;
4098
+ getCashDepositScheme(id: string, options?: any): AxiosPromise<OrganizationCashDepositSchemeDTO[]>;
4052
4099
  getChildren(id: string, options?: any): AxiosPromise<OrganizationDTO[]>;
4053
4100
  getOrganizationMetrics(organizationId: string, options?: any): AxiosPromise<OrganizationMetricsDTO>;
4054
4101
  getOrganizationVerticals(id: string, options?: any): AxiosPromise<OrganizationVerticalDTO[]>;
package/dist/api.js CHANGED
@@ -476,6 +476,11 @@ var NetPromoterScoreDTOCategoryEnum;
476
476
  NetPromoterScoreDTOCategoryEnum["DETRACTOR"] = "DETRACTOR";
477
477
  NetPromoterScoreDTOCategoryEnum["PASSIVE"] = "PASSIVE";
478
478
  })(NetPromoterScoreDTOCategoryEnum = exports.NetPromoterScoreDTOCategoryEnum || (exports.NetPromoterScoreDTOCategoryEnum = {}));
479
+ var OfferToTenantRequestDTOTenantsReferenceStatusEnum;
480
+ (function (OfferToTenantRequestDTOTenantsReferenceStatusEnum) {
481
+ OfferToTenantRequestDTOTenantsReferenceStatusEnum["PASSED"] = "PASSED";
482
+ OfferToTenantRequestDTOTenantsReferenceStatusEnum["FAILED"] = "FAILED";
483
+ })(OfferToTenantRequestDTOTenantsReferenceStatusEnum = exports.OfferToTenantRequestDTOTenantsReferenceStatusEnum || (exports.OfferToTenantRequestDTOTenantsReferenceStatusEnum = {}));
479
484
  var OrderCustomerActionDTOTypeIdEnum;
480
485
  (function (OrderCustomerActionDTOTypeIdEnum) {
481
486
  OrderCustomerActionDTOTypeIdEnum["REPOSITABOUTYOU"] = "REPOSIT_ABOUT_YOU";
@@ -618,6 +623,13 @@ var OrganizationVerticalDTONameEnum;
618
623
  OrganizationVerticalDTONameEnum["HMO"] = "HMO";
619
624
  OrganizationVerticalDTONameEnum["PBSA"] = "PBSA";
620
625
  })(OrganizationVerticalDTONameEnum = exports.OrganizationVerticalDTONameEnum || (exports.OrganizationVerticalDTONameEnum = {}));
626
+ var OrganizationWithCashDepositDTOOrganizationTypeIdEnum;
627
+ (function (OrganizationWithCashDepositDTOOrganizationTypeIdEnum) {
628
+ OrganizationWithCashDepositDTOOrganizationTypeIdEnum["AGENCY"] = "AGENCY";
629
+ OrganizationWithCashDepositDTOOrganizationTypeIdEnum["BUILDTORENT"] = "BUILD_TO_RENT";
630
+ OrganizationWithCashDepositDTOOrganizationTypeIdEnum["PRIVATE"] = "PRIVATE";
631
+ OrganizationWithCashDepositDTOOrganizationTypeIdEnum["INTEGRATORREFERRAL"] = "INTEGRATOR_REFERRAL";
632
+ })(OrganizationWithCashDepositDTOOrganizationTypeIdEnum = exports.OrganizationWithCashDepositDTOOrganizationTypeIdEnum || (exports.OrganizationWithCashDepositDTOOrganizationTypeIdEnum = {}));
621
633
  var OrganizationWithRepositsAndRolesOrganizationTypeIdEnum;
622
634
  (function (OrganizationWithRepositsAndRolesOrganizationTypeIdEnum) {
623
635
  OrganizationWithRepositsAndRolesOrganizationTypeIdEnum["AGENCY"] = "AGENCY";
@@ -846,6 +858,11 @@ var RepositDTOStatusEnum;
846
858
  RepositDTOStatusEnum["DRAFT"] = "DRAFT";
847
859
  RepositDTOStatusEnum["PUBLISHED"] = "PUBLISHED";
848
860
  })(RepositDTOStatusEnum = exports.RepositDTOStatusEnum || (exports.RepositDTOStatusEnum = {}));
861
+ var RepositOfferDTOTenantsReferenceStatusEnum;
862
+ (function (RepositOfferDTOTenantsReferenceStatusEnum) {
863
+ RepositOfferDTOTenantsReferenceStatusEnum["PASSED"] = "PASSED";
864
+ RepositOfferDTOTenantsReferenceStatusEnum["FAILED"] = "FAILED";
865
+ })(RepositOfferDTOTenantsReferenceStatusEnum = exports.RepositOfferDTOTenantsReferenceStatusEnum || (exports.RepositOfferDTOTenantsReferenceStatusEnum = {}));
849
866
  var RepositOfferRecipientDTOChoiceEnum;
850
867
  (function (RepositOfferRecipientDTOChoiceEnum) {
851
868
  RepositOfferRecipientDTOChoiceEnum["REPOSIT"] = "REPOSIT";
@@ -8186,6 +8203,29 @@ exports.OrganizationsApiAxiosParamCreator = function (configuration) {
8186
8203
  options: localVarRequestOptions,
8187
8204
  };
8188
8205
  },
8206
+ getCashDepositScheme: function (id, options) {
8207
+ if (options === void 0) { options = {}; }
8208
+ if (id === null || id === undefined) {
8209
+ throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling getCashDepositScheme.');
8210
+ }
8211
+ var localVarPath = "/v2/organizations/{id}/cash-deposit-scheme"
8212
+ .replace("{" + "id" + "}", encodeURIComponent(String(id)));
8213
+ var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
8214
+ var baseOptions;
8215
+ if (configuration) {
8216
+ baseOptions = configuration.baseOptions;
8217
+ }
8218
+ var localVarRequestOptions = __assign({ method: 'GET' }, baseOptions, options);
8219
+ var localVarHeaderParameter = {};
8220
+ var localVarQueryParameter = {};
8221
+ localVarUrlObj.query = __assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
8222
+ delete localVarUrlObj.search;
8223
+ localVarRequestOptions.headers = __assign({}, localVarHeaderParameter, options.headers);
8224
+ return {
8225
+ url: globalImportUrl.format(localVarUrlObj),
8226
+ options: localVarRequestOptions,
8227
+ };
8228
+ },
8189
8229
  getChildren: function (id, options) {
8190
8230
  if (options === void 0) { options = {}; }
8191
8231
  if (id === null || id === undefined) {
@@ -8662,6 +8702,15 @@ exports.OrganizationsApiFp = function (configuration) {
8662
8702
  return axios.request(axiosRequestArgs);
8663
8703
  };
8664
8704
  },
8705
+ getCashDepositScheme: function (id, options) {
8706
+ var localVarAxiosArgs = exports.OrganizationsApiAxiosParamCreator(configuration).getCashDepositScheme(id, options);
8707
+ return function (axios, basePath) {
8708
+ if (axios === void 0) { axios = axios_1.default; }
8709
+ if (basePath === void 0) { basePath = base_1.BASE_PATH; }
8710
+ var axiosRequestArgs = __assign({}, localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url });
8711
+ return axios.request(axiosRequestArgs);
8712
+ };
8713
+ },
8665
8714
  getChildren: function (id, options) {
8666
8715
  var localVarAxiosArgs = exports.OrganizationsApiAxiosParamCreator(configuration).getChildren(id, options);
8667
8716
  return function (axios, basePath) {
@@ -8828,6 +8877,9 @@ exports.OrganizationsApiFactory = function (configuration, basePath, axios) {
8828
8877
  findOrganizationById: function (id, options) {
8829
8878
  return exports.OrganizationsApiFp(configuration).findOrganizationById(id, options)(axios, basePath);
8830
8879
  },
8880
+ getCashDepositScheme: function (id, options) {
8881
+ return exports.OrganizationsApiFp(configuration).getCashDepositScheme(id, options)(axios, basePath);
8882
+ },
8831
8883
  getChildren: function (id, options) {
8832
8884
  return exports.OrganizationsApiFp(configuration).getChildren(id, options)(axios, basePath);
8833
8885
  },
@@ -8913,6 +8965,9 @@ var OrganizationsApi = (function (_super) {
8913
8965
  OrganizationsApi.prototype.findOrganizationById = function (id, options) {
8914
8966
  return exports.OrganizationsApiFp(this.configuration).findOrganizationById(id, options)(this.axios, this.basePath);
8915
8967
  };
8968
+ OrganizationsApi.prototype.getCashDepositScheme = function (id, options) {
8969
+ return exports.OrganizationsApiFp(this.configuration).getCashDepositScheme(id, options)(this.axios, this.basePath);
8970
+ };
8916
8971
  OrganizationsApi.prototype.getChildren = function (id, options) {
8917
8972
  return exports.OrganizationsApiFp(this.configuration).getChildren(id, options)(this.axios, this.basePath);
8918
8973
  };