@matech/thebigpos-sdk 3.23.0 → 3.24.0-dev-7509
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/README.md +39 -0
- package/dist/index.cjs +6452 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +522 -631
- package/dist/index.js +8 -75
- package/dist/index.js.map +1 -1
- package/index.js +1 -1
- package/package.json +24 -10
- package/src/index.ts +12 -174
- package/.husky/pre-commit +0 -3
- package/scripts/apply-json-patch-content-type.js +0 -56
- package/tsconfig.json +0 -27
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
|
-
|
|
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.
|
|
104
|
+
* @version v3.24.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
|
*/
|
|
@@ -478,78 +484,6 @@ export class Api extends HttpClient {
|
|
|
478
484
|
* @response `200` `AuditLogEntryPaginated` OK
|
|
479
485
|
*/
|
|
480
486
|
getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
481
|
-
/**
|
|
482
|
-
* No description
|
|
483
|
-
*
|
|
484
|
-
* @tags AiCanonicalField
|
|
485
|
-
* @name GetAiCanonicalFields
|
|
486
|
-
* @summary Get all canonical fields
|
|
487
|
-
* @request GET:/api/ai/canonical-fields
|
|
488
|
-
* @secure
|
|
489
|
-
* @response `200` `(AiCanonicalField)[]` OK
|
|
490
|
-
*/
|
|
491
|
-
getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "GET", secure: true, format: "json" }, params)),
|
|
492
|
-
/**
|
|
493
|
-
* No description
|
|
494
|
-
*
|
|
495
|
-
* @tags AiCanonicalField
|
|
496
|
-
* @name CreateAiCanonicalField
|
|
497
|
-
* @summary Create canonical field
|
|
498
|
-
* @request POST:/api/ai/canonical-fields
|
|
499
|
-
* @secure
|
|
500
|
-
* @response `201` `AiCanonicalField` Created
|
|
501
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
502
|
-
*/
|
|
503
|
-
createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
504
|
-
/**
|
|
505
|
-
* No description
|
|
506
|
-
*
|
|
507
|
-
* @tags AiCanonicalField
|
|
508
|
-
* @name GetAiCanonicalField
|
|
509
|
-
* @summary Get canonical field by ID
|
|
510
|
-
* @request GET:/api/ai/canonical-fields/{id}
|
|
511
|
-
* @secure
|
|
512
|
-
* @response `200` `AiCanonicalField` OK
|
|
513
|
-
* @response `404` `ProblemDetails` Not Found
|
|
514
|
-
*/
|
|
515
|
-
getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
|
|
516
|
-
/**
|
|
517
|
-
* No description
|
|
518
|
-
*
|
|
519
|
-
* @tags AiCanonicalField
|
|
520
|
-
* @name UpdateAiCanonicalField
|
|
521
|
-
* @summary Update canonical field
|
|
522
|
-
* @request PUT:/api/ai/canonical-fields/{id}
|
|
523
|
-
* @secure
|
|
524
|
-
* @response `200` `AiCanonicalField` OK
|
|
525
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
526
|
-
* @response `404` `ProblemDetails` Not Found
|
|
527
|
-
*/
|
|
528
|
-
updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
529
|
-
/**
|
|
530
|
-
* No description
|
|
531
|
-
*
|
|
532
|
-
* @tags AiCanonicalField
|
|
533
|
-
* @name DeleteAiCanonicalField
|
|
534
|
-
* @summary Delete canonical field
|
|
535
|
-
* @request DELETE:/api/ai/canonical-fields/{id}
|
|
536
|
-
* @secure
|
|
537
|
-
* @response `204` `void` No Content
|
|
538
|
-
* @response `404` `ProblemDetails` Not Found
|
|
539
|
-
*/
|
|
540
|
-
deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "DELETE", secure: true }, params)),
|
|
541
|
-
/**
|
|
542
|
-
* No description
|
|
543
|
-
*
|
|
544
|
-
* @tags AiCanonicalField
|
|
545
|
-
* @name ToggleAiCanonicalField
|
|
546
|
-
* @summary Toggle canonical field active/inactive
|
|
547
|
-
* @request PATCH:/api/ai/canonical-fields/{id}/toggle
|
|
548
|
-
* @secure
|
|
549
|
-
* @response `200` `AiCanonicalField` OK
|
|
550
|
-
* @response `404` `ProblemDetails` Not Found
|
|
551
|
-
*/
|
|
552
|
-
toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
|
|
553
487
|
/**
|
|
554
488
|
* No description
|
|
555
489
|
*
|
|
@@ -3725,7 +3659,6 @@ export class Api extends HttpClient {
|
|
|
3725
3659
|
* @response `200` `BulkLoanFieldOperation` OK
|
|
3726
3660
|
* @response `401` `ProblemDetails` Unauthorized
|
|
3727
3661
|
* @response `403` `ProblemDetails` Forbidden
|
|
3728
|
-
* @response `404` `ProblemDetails` Not Found
|
|
3729
3662
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
3730
3663
|
*/
|
|
3731
3664
|
bulkLoanFieldOperation: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-fields/bulk`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|