@matech/thebigpos-sdk 3.18.0 → 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
@@ -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
  /**
@@ -2891,6 +2917,7 @@ export class Api extends HttpClient {
2891
2917
  * @request POST:/api/listings/{listingId}/files
2892
2918
  * @secure
2893
2919
  * @response `200` `ListingFile` OK
2920
+ * @response `403` `HttpError` Forbidden
2894
2921
  */
2895
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)),
2896
2923
  /**
@@ -2902,6 +2929,7 @@ export class Api extends HttpClient {
2902
2929
  * @request PATCH:/api/listings/{listingId}/files
2903
2930
  * @secure
2904
2931
  * @response `200` `ListingFile` OK
2932
+ * @response `403` `HttpError` Forbidden
2905
2933
  */
2906
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)),
2907
2935
  /**
@@ -2913,6 +2941,7 @@ export class Api extends HttpClient {
2913
2941
  * @request DELETE:/api/listings/{listingId}/files/{id}
2914
2942
  * @secure
2915
2943
  * @response `204` `Listing` No Content
2944
+ * @response `403` `HttpError` Forbidden
2916
2945
  */
2917
2946
  removeListingFile: (listingId, id, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
2918
2947
  /**
@@ -2924,6 +2953,7 @@ export class Api extends HttpClient {
2924
2953
  * @request POST:/api/listings/{listingId}/photos
2925
2954
  * @secure
2926
2955
  * @response `200` `ListingPhoto` OK
2956
+ * @response `403` `HttpError` Forbidden
2927
2957
  */
2928
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)),
2929
2959
  /**
@@ -2935,6 +2965,7 @@ export class Api extends HttpClient {
2935
2965
  * @request PATCH:/api/listings/{listingId}/photos
2936
2966
  * @secure
2937
2967
  * @response `200` `(ListingPhoto)[]` OK
2968
+ * @response `403` `HttpError` Forbidden
2938
2969
  */
2939
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)),
2940
2971
  /**
@@ -2946,6 +2977,7 @@ export class Api extends HttpClient {
2946
2977
  * @request DELETE:/api/listings/{listingId}/photos/{id}
2947
2978
  * @secure
2948
2979
  * @response `204` `Listing` No Content
2980
+ * @response `403` `HttpError` Forbidden
2949
2981
  */
2950
2982
  removeListingPhoto: (listingId, id, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
2951
2983
  /**
@@ -3016,6 +3048,7 @@ export class Api extends HttpClient {
3016
3048
  * @request DELETE:/api/listings/{id}
3017
3049
  * @secure
3018
3050
  * @response `204` `void` No Content
3051
+ * @response `403` `HttpError` Forbidden
3019
3052
  */
3020
3053
  deleteListing: (id, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "DELETE", secure: true }, params)),
3021
3054
  /**
@@ -3038,6 +3071,7 @@ export class Api extends HttpClient {
3038
3071
  * @request PUT:/api/listings/{id}/background-image
3039
3072
  * @secure
3040
3073
  * @response `200` `File` OK
3074
+ * @response `403` `HttpError` Forbidden
3041
3075
  */
3042
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)),
3043
3077
  /**
@@ -3049,6 +3083,7 @@ export class Api extends HttpClient {
3049
3083
  * @request DELETE:/api/listings/{id}/background-image
3050
3084
  * @secure
3051
3085
  * @response `204` `void` No Content
3086
+ * @response `403` `HttpError` Forbidden
3052
3087
  */
3053
3088
  deleteListingBackgroundImage: (id, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}/background-image`, method: "DELETE", secure: true }, params)),
3054
3089
  /**
@@ -3372,7 +3407,7 @@ export class Api extends HttpClient {
3372
3407
  */
3373
3408
  getLoanDocumentFolderUsage: (id, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}/usage`, method: "GET", secure: true, format: "json" }, params)),
3374
3409
  /**
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.
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.
3376
3411
  *
3377
3412
  * @tags LoanDocumentFoldersForSingleLoan
3378
3413
  * @name ListLoanDocumentFolders
@@ -3634,6 +3669,76 @@ export class Api extends HttpClient {
3634
3669
  * @response `403` `ProblemDetails` Forbidden
3635
3670
  */
3636
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)),
3637
3742
  /**
3638
3743
  * No description
3639
3744
  *
@@ -4895,6 +5000,21 @@ export class Api extends HttpClient {
4895
5000
  * @response `200` `NotificationTemplateVersion` OK
4896
5001
  */
4897
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)),
4898
5018
  /**
4899
5019
  * No description
4900
5020
  *
@@ -6328,6 +6448,72 @@ export class Api extends HttpClient {
6328
6448
  * @response `204` `void` No Content
6329
6449
  */
6330
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)),
6331
6517
  /**
6332
6518
  * No description
6333
6519
  *