@matech/thebigpos-sdk 3.18.0-pr-5678-6676 → 3.19.0-dev-6779

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/index.js CHANGED
@@ -101,7 +101,7 @@ export class HttpClient {
101
101
  }
102
102
  /**
103
103
  * @title The Big POS API
104
- * @version v3.18.0
104
+ * @version v3.19.0
105
105
  * @termsOfService https://www.thebigpos.com/terms-of-use/
106
106
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
107
107
  */
@@ -238,6 +238,19 @@ export class Api extends HttpClient {
238
238
  * @response `422` `ProblemDetails` Unprocessable Content
239
239
  */
240
240
  updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
241
+ /**
242
+ * @description Turns the account's partner portal on or off. While Partner-lite is on for the account, off refuses its realtors' leads and listings and the creation of partner sites.
243
+ *
244
+ * @tags Accounts
245
+ * @name UpdateAccountPartnerPortal
246
+ * @summary Update partner portal switch
247
+ * @request PUT:/api/accounts/{id}/partner-portal
248
+ * @secure
249
+ * @response `200` `Account` OK
250
+ * @response `404` `ProblemDetails` Not Found
251
+ * @response `422` `ProblemDetails` Unprocessable Content
252
+ */
253
+ updateAccountPartnerPortal: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/partner-portal`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
241
254
  /**
242
255
  * No description
243
256
  *
@@ -2584,6 +2597,7 @@ export class Api extends HttpClient {
2584
2597
  * @request DELETE:/api/form-submissions/{formSubmissionId}/files/{formSubmissionFileId}
2585
2598
  * @secure
2586
2599
  * @response `204` `void` No Content
2600
+ * @response `403` `HttpError` Forbidden
2587
2601
  */
2588
2602
  deleteFormSubmissionFile: (formSubmissionFileId, formSubmissionId, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files/${formSubmissionFileId}`, method: "DELETE", secure: true }, params)),
2589
2603
  /**
@@ -2595,6 +2609,7 @@ export class Api extends HttpClient {
2595
2609
  * @request GET:/api/form-submissions/{formSubmissionId}/files/{formSubmissionFileId}/download
2596
2610
  * @secure
2597
2611
  * @response `200` `FileWithBytes` OK
2612
+ * @response `403` `HttpError` Forbidden
2598
2613
  */
2599
2614
  downloadFormSubmissionFile: (formSubmissionFileId, formSubmissionId, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files/${formSubmissionFileId}/download`, method: "GET", query: query, secure: true, format: "json" }, params)),
2600
2615
  /**
@@ -2606,6 +2621,7 @@ export class Api extends HttpClient {
2606
2621
  * @request GET:/api/form-submissions
2607
2622
  * @secure
2608
2623
  * @response `200` `FormSubmissionPaginated` OK
2624
+ * @response `403` `HttpError` Forbidden
2609
2625
  */
2610
2626
  getFormSubmissions: (query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "GET", query: query, secure: true, format: "json" }, params)),
2611
2627
  /**
@@ -2628,6 +2644,7 @@ export class Api extends HttpClient {
2628
2644
  * @request GET:/api/form-submissions/{id}
2629
2645
  * @secure
2630
2646
  * @response `200` `FormSubmission` OK
2647
+ * @response `403` `HttpError` Forbidden
2631
2648
  */
2632
2649
  getFormSubmission: (id, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "GET", secure: true, format: "json" }, params)),
2633
2650
  /**
@@ -2639,6 +2656,7 @@ export class Api extends HttpClient {
2639
2656
  * @request PUT:/api/form-submissions/{id}
2640
2657
  * @secure
2641
2658
  * @response `200` `FormSubmission` OK
2659
+ * @response `403` `HttpError` Forbidden
2642
2660
  */
2643
2661
  replaceFormSubmission: (id, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2644
2662
  /**
@@ -2650,6 +2668,7 @@ export class Api extends HttpClient {
2650
2668
  * @request DELETE:/api/form-submissions/{id}
2651
2669
  * @secure
2652
2670
  * @response `204` `void` No Content
2671
+ * @response `403` `HttpError` Forbidden
2653
2672
  */
2654
2673
  deleteFormSubmission: (id, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "DELETE", secure: true }, params)),
2655
2674
  /**
@@ -2661,6 +2680,7 @@ export class Api extends HttpClient {
2661
2680
  * @request POST:/api/form-submissions/search
2662
2681
  * @secure
2663
2682
  * @response `200` `FormSubmissionPaginated` OK
2683
+ * @response `403` `HttpError` Forbidden
2664
2684
  */
2665
2685
  searchFormSubmissions: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2666
2686
  /**
@@ -2897,6 +2917,7 @@ export class Api extends HttpClient {
2897
2917
  * @request POST:/api/listings/{listingId}/files
2898
2918
  * @secure
2899
2919
  * @response `200` `ListingFile` OK
2920
+ * @response `403` `HttpError` Forbidden
2900
2921
  */
2901
2922
  addListingFile: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2902
2923
  /**
@@ -2908,6 +2929,7 @@ export class Api extends HttpClient {
2908
2929
  * @request PATCH:/api/listings/{listingId}/files
2909
2930
  * @secure
2910
2931
  * @response `200` `ListingFile` OK
2932
+ * @response `403` `HttpError` Forbidden
2911
2933
  */
2912
2934
  updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2913
2935
  /**
@@ -2919,6 +2941,7 @@ export class Api extends HttpClient {
2919
2941
  * @request DELETE:/api/listings/{listingId}/files/{id}
2920
2942
  * @secure
2921
2943
  * @response `204` `Listing` No Content
2944
+ * @response `403` `HttpError` Forbidden
2922
2945
  */
2923
2946
  removeListingFile: (listingId, id, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
2924
2947
  /**
@@ -2930,6 +2953,7 @@ export class Api extends HttpClient {
2930
2953
  * @request POST:/api/listings/{listingId}/photos
2931
2954
  * @secure
2932
2955
  * @response `200` `ListingPhoto` OK
2956
+ * @response `403` `HttpError` Forbidden
2933
2957
  */
2934
2958
  addListingPhoto: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2935
2959
  /**
@@ -2941,6 +2965,7 @@ export class Api extends HttpClient {
2941
2965
  * @request PATCH:/api/listings/{listingId}/photos
2942
2966
  * @secure
2943
2967
  * @response `200` `(ListingPhoto)[]` OK
2968
+ * @response `403` `HttpError` Forbidden
2944
2969
  */
2945
2970
  updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2946
2971
  /**
@@ -2952,6 +2977,7 @@ export class Api extends HttpClient {
2952
2977
  * @request DELETE:/api/listings/{listingId}/photos/{id}
2953
2978
  * @secure
2954
2979
  * @response `204` `Listing` No Content
2980
+ * @response `403` `HttpError` Forbidden
2955
2981
  */
2956
2982
  removeListingPhoto: (listingId, id, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
2957
2983
  /**
@@ -3022,6 +3048,7 @@ export class Api extends HttpClient {
3022
3048
  * @request DELETE:/api/listings/{id}
3023
3049
  * @secure
3024
3050
  * @response `204` `void` No Content
3051
+ * @response `403` `HttpError` Forbidden
3025
3052
  */
3026
3053
  deleteListing: (id, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "DELETE", secure: true }, params)),
3027
3054
  /**
@@ -3044,6 +3071,7 @@ export class Api extends HttpClient {
3044
3071
  * @request PUT:/api/listings/{id}/background-image
3045
3072
  * @secure
3046
3073
  * @response `200` `File` OK
3074
+ * @response `403` `HttpError` Forbidden
3047
3075
  */
3048
3076
  updateListingBackgroundImage: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}/background-image`, method: "PUT", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
3049
3077
  /**
@@ -3055,6 +3083,7 @@ export class Api extends HttpClient {
3055
3083
  * @request DELETE:/api/listings/{id}/background-image
3056
3084
  * @secure
3057
3085
  * @response `204` `void` No Content
3086
+ * @response `403` `HttpError` Forbidden
3058
3087
  */
3059
3088
  deleteListingBackgroundImage: (id, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}/background-image`, method: "DELETE", secure: true }, params)),
3060
3089
  /**
@@ -3378,7 +3407,7 @@ export class Api extends HttpClient {
3378
3407
  */
3379
3408
  getLoanDocumentFolderUsage: (id, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}/usage`, method: "GET", secure: true, format: "json" }, params)),
3380
3409
  /**
3381
- * @description Returns the folders the caller can access that are relevant to this loan — every active system-default folder, plus any folder holding a document the caller can read or bound to one of the loan's tasks, even when empty — with the caller's effective accessLevel and the count of documents they can read in each. Upload destinations are the active entries with accessLevel at least Write. Documents that are not assigned to a folder are returned as a synthetic 'Unassigned' folder (ID = empty GUID, isUnassigned = true); filter to its documents with searchLoanDocuments folderScope 'Unassigned' rather than by echoing that ID.
3410
+ * @description Returns the folders the caller can access that are relevant to this loan — every active system-default folder, plus any folder holding a document the caller can read or bound to one of the loan's tasks, even when empty as long as it is active — with the caller's effective accessLevel and the count of documents they can read in each. Upload destinations are the active entries with accessLevel at least Write. Documents that are not assigned to a folder are returned as a synthetic 'Unassigned' folder (ID = empty GUID, isUnassigned = true); filter to its documents with searchLoanDocuments folderScope 'Unassigned' rather than by echoing that ID.
3382
3411
  *
3383
3412
  * @tags LoanDocumentFoldersForSingleLoan
3384
3413
  * @name ListLoanDocumentFolders
@@ -3640,6 +3669,76 @@ export class Api extends HttpClient {
3640
3669
  * @response `403` `ProblemDetails` Forbidden
3641
3670
  */
3642
3671
  getLoanFieldAccess: (params = {}) => this.request(Object.assign({ path: `/api/loan-fields/access`, method: "GET", secure: true, format: "json" }, params)),
3672
+ /**
3673
+ * No description
3674
+ *
3675
+ * @tags LoanFields
3676
+ * @name GetStandardLoanFields
3677
+ * @summary List standard loan fields with effective access and settings
3678
+ * @request GET:/api/loan-fields/standard
3679
+ * @secure
3680
+ * @response `200` `(StandardLoanField)[]` OK
3681
+ * @response `401` `ProblemDetails` Unauthorized
3682
+ * @response `403` `ProblemDetails` Forbidden
3683
+ */
3684
+ getStandardLoanFields: (params = {}) => this.request(Object.assign({ path: `/api/loan-fields/standard`, method: "GET", secure: true, format: "json" }, params)),
3685
+ /**
3686
+ * No description
3687
+ *
3688
+ * @tags LoanFields
3689
+ * @name SetLoanFieldPermissions
3690
+ * @summary Set role access levels on one loan field
3691
+ * @request PUT:/api/loan-fields/{fieldKey}/permissions
3692
+ * @secure
3693
+ * @response `204` `void` No Content
3694
+ * @response `401` `ProblemDetails` Unauthorized
3695
+ * @response `403` `ProblemDetails` Forbidden
3696
+ * @response `404` `ProblemDetails` Not Found
3697
+ */
3698
+ setLoanFieldPermissions: (fieldKey, data, params = {}) => this.request(Object.assign({ path: `/api/loan-fields/${fieldKey}/permissions`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
3699
+ /**
3700
+ * No description
3701
+ *
3702
+ * @tags LoanFields
3703
+ * @name SetLoanFieldSettings
3704
+ * @summary Set the AI setting on one loan field
3705
+ * @request PUT:/api/loan-fields/{fieldKey}/settings
3706
+ * @secure
3707
+ * @response `204` `void` No Content
3708
+ * @response `401` `ProblemDetails` Unauthorized
3709
+ * @response `403` `ProblemDetails` Forbidden
3710
+ * @response `404` `ProblemDetails` Not Found
3711
+ */
3712
+ setLoanFieldSettings: (fieldKey, data, params = {}) => this.request(Object.assign({ path: `/api/loan-fields/${fieldKey}/settings`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
3713
+ /**
3714
+ * No description
3715
+ *
3716
+ * @tags LoanFields
3717
+ * @name ResetLoanFieldOverrides
3718
+ * @summary Reset one standard loan field to its seeded defaults
3719
+ * @request DELETE:/api/loan-fields/{fieldKey}/overrides
3720
+ * @secure
3721
+ * @response `204` `void` No Content
3722
+ * @response `401` `ProblemDetails` Unauthorized
3723
+ * @response `403` `ProblemDetails` Forbidden
3724
+ * @response `404` `ProblemDetails` Not Found
3725
+ */
3726
+ resetLoanFieldOverrides: (fieldKey, params = {}) => this.request(Object.assign({ path: `/api/loan-fields/${fieldKey}/overrides`, method: "DELETE", secure: true }, params)),
3727
+ /**
3728
+ * No description
3729
+ *
3730
+ * @tags LoanFields
3731
+ * @name BulkLoanFieldOperation
3732
+ * @summary Apply one operation to many loan fields
3733
+ * @request POST:/api/loan-fields/bulk
3734
+ * @secure
3735
+ * @response `200` `BulkLoanFieldOperation` OK
3736
+ * @response `401` `ProblemDetails` Unauthorized
3737
+ * @response `403` `ProblemDetails` Forbidden
3738
+ * @response `404` `ProblemDetails` Not Found
3739
+ * @response `422` `UnprocessableEntity` Unprocessable Content
3740
+ */
3741
+ bulkLoanFieldOperation: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-fields/bulk`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3643
3742
  /**
3644
3743
  * No description
3645
3744
  *
@@ -4901,6 +5000,21 @@ export class Api extends HttpClient {
4901
5000
  * @response `200` `NotificationTemplateVersion` OK
4902
5001
  */
4903
5002
  deleteNotificationTemplateVersion: (notificationId, id, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
5003
+ /**
5004
+ * @description Changes the short name a realtor's partner links carry. Links shared with the previous name stop working.
5005
+ *
5006
+ * @tags Partners
5007
+ * @name UpdatePartnerLinkSlug
5008
+ * @summary Update Partner Link Slug
5009
+ * @request PUT:/api/partners/{realtorId}/link-slug
5010
+ * @secure
5011
+ * @response `200` `PartnerSlug` OK
5012
+ * @response `403` `ProblemDetails` Forbidden
5013
+ * @response `404` `ProblemDetails` Not Found
5014
+ * @response `409` `ProblemDetails` Conflict
5015
+ * @response `422` `UnprocessableEntity` Unprocessable Content
5016
+ */
5017
+ updatePartnerLinkSlug: (realtorId, data, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/link-slug`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4904
5018
  /**
4905
5019
  * No description
4906
5020
  *
@@ -6334,6 +6448,72 @@ export class Api extends HttpClient {
6334
6448
  * @response `204` `void` No Content
6335
6449
  */
6336
6450
  deleteRelationshipProspect: (id, params = {}) => this.request(Object.assign({ path: `/api/users/me/relationships/prospects/${id}`, method: "DELETE", secure: true }, params)),
6451
+ /**
6452
+ * @description The partners on the loan officer's list and the loan officer's portal relations, plus the open partner invites the loan officer sent
6453
+ *
6454
+ * @tags UsersMe
6455
+ * @name GetMyPartners
6456
+ * @summary Get My Partners
6457
+ * @request GET:/api/users/me/partners
6458
+ * @secure
6459
+ * @response `200` `(MyPartner)[]` OK
6460
+ * @response `403` `ProblemDetails` Forbidden
6461
+ */
6462
+ getMyPartners: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partners`, method: "GET", secure: true, format: "json" }, params)),
6463
+ /**
6464
+ * No description
6465
+ *
6466
+ * @tags UsersMe
6467
+ * @name AddMyPartner
6468
+ * @summary Add My Partner
6469
+ * @request POST:/api/users/me/partners/{partnerId}
6470
+ * @secure
6471
+ * @response `204` `void` No Content
6472
+ * @response `403` `ProblemDetails` Forbidden
6473
+ * @response `404` `ProblemDetails` Not Found
6474
+ */
6475
+ addMyPartner: (partnerId, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/${partnerId}`, method: "POST", secure: true }, params)),
6476
+ /**
6477
+ * No description
6478
+ *
6479
+ * @tags UsersMe
6480
+ * @name RemoveMyPartner
6481
+ * @summary Remove My Partner
6482
+ * @request DELETE:/api/users/me/partners/{partnerId}
6483
+ * @secure
6484
+ * @response `204` `void` No Content
6485
+ * @response `403` `ProblemDetails` Forbidden
6486
+ * @response `404` `ProblemDetails` Not Found
6487
+ */
6488
+ removeMyPartner: (partnerId, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/${partnerId}`, method: "DELETE", secure: true }, params)),
6489
+ /**
6490
+ * @description The links that attribute an application to the partner, on the site of each loan officer the partner works with
6491
+ *
6492
+ * @tags UsersMe
6493
+ * @name GetMyPartnerLinks
6494
+ * @summary Get My Partner Links
6495
+ * @request GET:/api/users/me/partner-links
6496
+ * @secure
6497
+ * @response `200` `PartnerLinks` OK
6498
+ * @response `403` `ProblemDetails` Forbidden
6499
+ * @response `404` `ProblemDetails` Not Found
6500
+ */
6501
+ getMyPartnerLinks: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partner-links`, method: "GET", secure: true, format: "json" }, params)),
6502
+ /**
6503
+ * @description Changes the short name the partner's links carry and returns the links rebuilt with it. Links shared with the previous name stop working.
6504
+ *
6505
+ * @tags UsersMe
6506
+ * @name UpdateMyPartnerLinkSlug
6507
+ * @summary Update My Partner Link Slug
6508
+ * @request PUT:/api/users/me/partner-links/slug
6509
+ * @secure
6510
+ * @response `200` `PartnerLinks` OK
6511
+ * @response `403` `ProblemDetails` Forbidden
6512
+ * @response `404` `ProblemDetails` Not Found
6513
+ * @response `409` `ProblemDetails` Conflict
6514
+ * @response `422` `UnprocessableEntity` Unprocessable Content
6515
+ */
6516
+ updateMyPartnerLinkSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/partner-links/slug`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
6337
6517
  /**
6338
6518
  * No description
6339
6519
  *