@matech/thebigpos-sdk 3.18.0 → 3.19.0-dev-6801

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
@@ -86,7 +86,13 @@ export class HttpClient {
86
86
  const property = input[key];
87
87
  const propertyContent = property instanceof Array ? property : [property];
88
88
  for (const formItem of propertyContent) {
89
- const isFileType = formItem instanceof Blob || formItem instanceof File;
89
+ // React Native files are plain { uri, name, type } objects, not Blob/File.
90
+ const isReactNativeFile = !!formItem &&
91
+ typeof formItem === "object" &&
92
+ "uri" in formItem &&
93
+ "name" in formItem &&
94
+ "type" in formItem;
95
+ const isFileType = isReactNativeFile || formItem instanceof Blob || formItem instanceof File;
90
96
  formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
91
97
  }
92
98
  return formData;
@@ -95,7 +101,7 @@ export class HttpClient {
95
101
  }
96
102
  /**
97
103
  * @title The Big POS API
98
- * @version v3.18.0
104
+ * @version v3.19.0
99
105
  * @termsOfService https://www.thebigpos.com/terms-of-use/
100
106
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
101
107
  */
@@ -232,6 +238,19 @@ export class Api extends HttpClient {
232
238
  * @response `422` `ProblemDetails` Unprocessable Content
233
239
  */
234
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)),
235
254
  /**
236
255
  * No description
237
256
  *
@@ -2578,6 +2597,7 @@ export class Api extends HttpClient {
2578
2597
  * @request DELETE:/api/form-submissions/{formSubmissionId}/files/{formSubmissionFileId}
2579
2598
  * @secure
2580
2599
  * @response `204` `void` No Content
2600
+ * @response `403` `HttpError` Forbidden
2581
2601
  */
2582
2602
  deleteFormSubmissionFile: (formSubmissionFileId, formSubmissionId, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files/${formSubmissionFileId}`, method: "DELETE", secure: true }, params)),
2583
2603
  /**
@@ -2589,6 +2609,7 @@ export class Api extends HttpClient {
2589
2609
  * @request GET:/api/form-submissions/{formSubmissionId}/files/{formSubmissionFileId}/download
2590
2610
  * @secure
2591
2611
  * @response `200` `FileWithBytes` OK
2612
+ * @response `403` `HttpError` Forbidden
2592
2613
  */
2593
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)),
2594
2615
  /**
@@ -2600,6 +2621,7 @@ export class Api extends HttpClient {
2600
2621
  * @request GET:/api/form-submissions
2601
2622
  * @secure
2602
2623
  * @response `200` `FormSubmissionPaginated` OK
2624
+ * @response `403` `HttpError` Forbidden
2603
2625
  */
2604
2626
  getFormSubmissions: (query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "GET", query: query, secure: true, format: "json" }, params)),
2605
2627
  /**
@@ -2622,6 +2644,7 @@ export class Api extends HttpClient {
2622
2644
  * @request GET:/api/form-submissions/{id}
2623
2645
  * @secure
2624
2646
  * @response `200` `FormSubmission` OK
2647
+ * @response `403` `HttpError` Forbidden
2625
2648
  */
2626
2649
  getFormSubmission: (id, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "GET", secure: true, format: "json" }, params)),
2627
2650
  /**
@@ -2633,6 +2656,7 @@ export class Api extends HttpClient {
2633
2656
  * @request PUT:/api/form-submissions/{id}
2634
2657
  * @secure
2635
2658
  * @response `200` `FormSubmission` OK
2659
+ * @response `403` `HttpError` Forbidden
2636
2660
  */
2637
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)),
2638
2662
  /**
@@ -2644,6 +2668,7 @@ export class Api extends HttpClient {
2644
2668
  * @request DELETE:/api/form-submissions/{id}
2645
2669
  * @secure
2646
2670
  * @response `204` `void` No Content
2671
+ * @response `403` `HttpError` Forbidden
2647
2672
  */
2648
2673
  deleteFormSubmission: (id, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "DELETE", secure: true }, params)),
2649
2674
  /**
@@ -2655,6 +2680,7 @@ export class Api extends HttpClient {
2655
2680
  * @request POST:/api/form-submissions/search
2656
2681
  * @secure
2657
2682
  * @response `200` `FormSubmissionPaginated` OK
2683
+ * @response `403` `HttpError` Forbidden
2658
2684
  */
2659
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)),
2660
2686
  /**
@@ -2857,17 +2883,6 @@ export class Api extends HttpClient {
2857
2883
  * @response `200` `(UnderwritingCondition)[]` OK
2858
2884
  */
2859
2885
  getUnderwritingConditionsForLoan: (loanId, params = {}) => this.request(Object.assign({ path: `/api/los/loan/${loanId}/conditions/underwriting`, method: "GET", secure: true, format: "json" }, params)),
2860
- /**
2861
- * No description
2862
- *
2863
- * @tags LegacyLoan
2864
- * @name GetLoanEmbeddedSigningLink
2865
- * @summary Get Embedded Signing Link
2866
- * @request POST:/api/los/loan/embeddedsigning/{envelopeId}/{userName}/{email}
2867
- * @secure
2868
- * @response `200` `string` OK
2869
- */
2870
- getLoanEmbeddedSigningLink: (envelopeId, userName, email, params = {}) => this.request(Object.assign({ path: `/api/los/loan/embeddedsigning/${envelopeId}/${userName}/${email}`, method: "POST", secure: true, format: "json" }, params)),
2871
2886
  /**
2872
2887
  * No description
2873
2888
  *
@@ -2891,6 +2906,7 @@ export class Api extends HttpClient {
2891
2906
  * @request POST:/api/listings/{listingId}/files
2892
2907
  * @secure
2893
2908
  * @response `200` `ListingFile` OK
2909
+ * @response `403` `HttpError` Forbidden
2894
2910
  */
2895
2911
  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)),
2896
2912
  /**
@@ -2902,6 +2918,7 @@ export class Api extends HttpClient {
2902
2918
  * @request PATCH:/api/listings/{listingId}/files
2903
2919
  * @secure
2904
2920
  * @response `200` `ListingFile` OK
2921
+ * @response `403` `HttpError` Forbidden
2905
2922
  */
2906
2923
  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)),
2907
2924
  /**
@@ -2913,6 +2930,7 @@ export class Api extends HttpClient {
2913
2930
  * @request DELETE:/api/listings/{listingId}/files/{id}
2914
2931
  * @secure
2915
2932
  * @response `204` `Listing` No Content
2933
+ * @response `403` `HttpError` Forbidden
2916
2934
  */
2917
2935
  removeListingFile: (listingId, id, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
2918
2936
  /**
@@ -2924,6 +2942,7 @@ export class Api extends HttpClient {
2924
2942
  * @request POST:/api/listings/{listingId}/photos
2925
2943
  * @secure
2926
2944
  * @response `200` `ListingPhoto` OK
2945
+ * @response `403` `HttpError` Forbidden
2927
2946
  */
2928
2947
  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)),
2929
2948
  /**
@@ -2935,6 +2954,7 @@ export class Api extends HttpClient {
2935
2954
  * @request PATCH:/api/listings/{listingId}/photos
2936
2955
  * @secure
2937
2956
  * @response `200` `(ListingPhoto)[]` OK
2957
+ * @response `403` `HttpError` Forbidden
2938
2958
  */
2939
2959
  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)),
2940
2960
  /**
@@ -2946,6 +2966,7 @@ export class Api extends HttpClient {
2946
2966
  * @request DELETE:/api/listings/{listingId}/photos/{id}
2947
2967
  * @secure
2948
2968
  * @response `204` `Listing` No Content
2969
+ * @response `403` `HttpError` Forbidden
2949
2970
  */
2950
2971
  removeListingPhoto: (listingId, id, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
2951
2972
  /**
@@ -3016,6 +3037,7 @@ export class Api extends HttpClient {
3016
3037
  * @request DELETE:/api/listings/{id}
3017
3038
  * @secure
3018
3039
  * @response `204` `void` No Content
3040
+ * @response `403` `HttpError` Forbidden
3019
3041
  */
3020
3042
  deleteListing: (id, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "DELETE", secure: true }, params)),
3021
3043
  /**
@@ -3038,6 +3060,7 @@ export class Api extends HttpClient {
3038
3060
  * @request PUT:/api/listings/{id}/background-image
3039
3061
  * @secure
3040
3062
  * @response `200` `File` OK
3063
+ * @response `403` `HttpError` Forbidden
3041
3064
  */
3042
3065
  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)),
3043
3066
  /**
@@ -3049,6 +3072,7 @@ export class Api extends HttpClient {
3049
3072
  * @request DELETE:/api/listings/{id}/background-image
3050
3073
  * @secure
3051
3074
  * @response `204` `void` No Content
3075
+ * @response `403` `HttpError` Forbidden
3052
3076
  */
3053
3077
  deleteListingBackgroundImage: (id, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}/background-image`, method: "DELETE", secure: true }, params)),
3054
3078
  /**
@@ -3372,7 +3396,7 @@ export class Api extends HttpClient {
3372
3396
  */
3373
3397
  getLoanDocumentFolderUsage: (id, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}/usage`, method: "GET", secure: true, format: "json" }, params)),
3374
3398
  /**
3375
- * @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.
3399
+ * @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.
3376
3400
  *
3377
3401
  * @tags LoanDocumentFoldersForSingleLoan
3378
3402
  * @name ListLoanDocumentFolders
@@ -3634,6 +3658,76 @@ export class Api extends HttpClient {
3634
3658
  * @response `403` `ProblemDetails` Forbidden
3635
3659
  */
3636
3660
  getLoanFieldAccess: (params = {}) => this.request(Object.assign({ path: `/api/loan-fields/access`, method: "GET", secure: true, format: "json" }, params)),
3661
+ /**
3662
+ * No description
3663
+ *
3664
+ * @tags LoanFields
3665
+ * @name GetStandardLoanFields
3666
+ * @summary List standard loan fields with effective access and settings
3667
+ * @request GET:/api/loan-fields/standard
3668
+ * @secure
3669
+ * @response `200` `(StandardLoanField)[]` OK
3670
+ * @response `401` `ProblemDetails` Unauthorized
3671
+ * @response `403` `ProblemDetails` Forbidden
3672
+ */
3673
+ getStandardLoanFields: (params = {}) => this.request(Object.assign({ path: `/api/loan-fields/standard`, method: "GET", secure: true, format: "json" }, params)),
3674
+ /**
3675
+ * No description
3676
+ *
3677
+ * @tags LoanFields
3678
+ * @name SetLoanFieldPermissions
3679
+ * @summary Set role access levels on one loan field
3680
+ * @request PUT:/api/loan-fields/{fieldKey}/permissions
3681
+ * @secure
3682
+ * @response `204` `void` No Content
3683
+ * @response `401` `ProblemDetails` Unauthorized
3684
+ * @response `403` `ProblemDetails` Forbidden
3685
+ * @response `404` `ProblemDetails` Not Found
3686
+ */
3687
+ setLoanFieldPermissions: (fieldKey, data, params = {}) => this.request(Object.assign({ path: `/api/loan-fields/${fieldKey}/permissions`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
3688
+ /**
3689
+ * No description
3690
+ *
3691
+ * @tags LoanFields
3692
+ * @name SetLoanFieldSettings
3693
+ * @summary Set the AI setting on one loan field
3694
+ * @request PUT:/api/loan-fields/{fieldKey}/settings
3695
+ * @secure
3696
+ * @response `204` `void` No Content
3697
+ * @response `401` `ProblemDetails` Unauthorized
3698
+ * @response `403` `ProblemDetails` Forbidden
3699
+ * @response `404` `ProblemDetails` Not Found
3700
+ */
3701
+ setLoanFieldSettings: (fieldKey, data, params = {}) => this.request(Object.assign({ path: `/api/loan-fields/${fieldKey}/settings`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
3702
+ /**
3703
+ * No description
3704
+ *
3705
+ * @tags LoanFields
3706
+ * @name ResetLoanFieldOverrides
3707
+ * @summary Reset one standard loan field to its seeded defaults
3708
+ * @request DELETE:/api/loan-fields/{fieldKey}/overrides
3709
+ * @secure
3710
+ * @response `204` `void` No Content
3711
+ * @response `401` `ProblemDetails` Unauthorized
3712
+ * @response `403` `ProblemDetails` Forbidden
3713
+ * @response `404` `ProblemDetails` Not Found
3714
+ */
3715
+ resetLoanFieldOverrides: (fieldKey, params = {}) => this.request(Object.assign({ path: `/api/loan-fields/${fieldKey}/overrides`, method: "DELETE", secure: true }, params)),
3716
+ /**
3717
+ * No description
3718
+ *
3719
+ * @tags LoanFields
3720
+ * @name BulkLoanFieldOperation
3721
+ * @summary Apply one operation to many loan fields
3722
+ * @request POST:/api/loan-fields/bulk
3723
+ * @secure
3724
+ * @response `200` `BulkLoanFieldOperation` OK
3725
+ * @response `401` `ProblemDetails` Unauthorized
3726
+ * @response `403` `ProblemDetails` Forbidden
3727
+ * @response `404` `ProblemDetails` Not Found
3728
+ * @response `422` `UnprocessableEntity` Unprocessable Content
3729
+ */
3730
+ bulkLoanFieldOperation: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-fields/bulk`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3637
3731
  /**
3638
3732
  * No description
3639
3733
  *
@@ -6328,6 +6422,57 @@ export class Api extends HttpClient {
6328
6422
  * @response `204` `void` No Content
6329
6423
  */
6330
6424
  deleteRelationshipProspect: (id, params = {}) => this.request(Object.assign({ path: `/api/users/me/relationships/prospects/${id}`, method: "DELETE", secure: true }, params)),
6425
+ /**
6426
+ * @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
6427
+ *
6428
+ * @tags UsersMe
6429
+ * @name GetMyPartners
6430
+ * @summary Get My Partners
6431
+ * @request GET:/api/users/me/partners
6432
+ * @secure
6433
+ * @response `200` `(MyPartner)[]` OK
6434
+ * @response `403` `ProblemDetails` Forbidden
6435
+ */
6436
+ getMyPartners: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partners`, method: "GET", secure: true, format: "json" }, params)),
6437
+ /**
6438
+ * No description
6439
+ *
6440
+ * @tags UsersMe
6441
+ * @name AddMyPartner
6442
+ * @summary Add My Partner
6443
+ * @request POST:/api/users/me/partners/{partnerId}
6444
+ * @secure
6445
+ * @response `204` `void` No Content
6446
+ * @response `403` `ProblemDetails` Forbidden
6447
+ * @response `404` `ProblemDetails` Not Found
6448
+ */
6449
+ addMyPartner: (partnerId, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/${partnerId}`, method: "POST", secure: true }, params)),
6450
+ /**
6451
+ * No description
6452
+ *
6453
+ * @tags UsersMe
6454
+ * @name RemoveMyPartner
6455
+ * @summary Remove My Partner
6456
+ * @request DELETE:/api/users/me/partners/{partnerId}
6457
+ * @secure
6458
+ * @response `204` `void` No Content
6459
+ * @response `403` `ProblemDetails` Forbidden
6460
+ * @response `404` `ProblemDetails` Not Found
6461
+ */
6462
+ removeMyPartner: (partnerId, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/${partnerId}`, method: "DELETE", secure: true }, params)),
6463
+ /**
6464
+ * @description The links that attribute an application to the partner, on the site of each loan officer the partner works with
6465
+ *
6466
+ * @tags UsersMe
6467
+ * @name GetMyPartnerLinks
6468
+ * @summary Get My Partner Links
6469
+ * @request GET:/api/users/me/partner-links
6470
+ * @secure
6471
+ * @response `200` `PartnerLinks` OK
6472
+ * @response `403` `ProblemDetails` Forbidden
6473
+ * @response `404` `ProblemDetails` Not Found
6474
+ */
6475
+ getMyPartnerLinks: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partner-links`, method: "GET", secure: true, format: "json" }, params)),
6331
6476
  /**
6332
6477
  * No description
6333
6478
  *