@matech/thebigpos-sdk 3.22.0-pr-5850-7345 → 3.23.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/.husky/pre-commit +3 -0
- package/README.md +0 -39
- package/dist/index.d.ts +630 -521
- package/dist/index.js +74 -8
- package/dist/index.js.map +1 -1
- package/index.js +1 -1
- package/package.json +10 -24
- package/scripts/apply-json-patch-content-type.js +56 -0
- package/src/index.ts +173 -11
- package/tsconfig.json +27 -0
- package/dist/index.cjs +0 -6453
- package/dist/index.cjs.map +0 -7
package/dist/index.js
CHANGED
|
@@ -86,13 +86,7 @@ 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
|
-
|
|
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;
|
|
89
|
+
const isFileType = formItem instanceof Blob || formItem instanceof File;
|
|
96
90
|
formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
|
|
97
91
|
}
|
|
98
92
|
return formData;
|
|
@@ -101,7 +95,7 @@ export class HttpClient {
|
|
|
101
95
|
}
|
|
102
96
|
/**
|
|
103
97
|
* @title The Big POS API
|
|
104
|
-
* @version v3.
|
|
98
|
+
* @version v3.23.0
|
|
105
99
|
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
106
100
|
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
107
101
|
*/
|
|
@@ -484,6 +478,78 @@ export class Api extends HttpClient {
|
|
|
484
478
|
* @response `200` `AuditLogEntryPaginated` OK
|
|
485
479
|
*/
|
|
486
480
|
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)),
|
|
487
553
|
/**
|
|
488
554
|
* No description
|
|
489
555
|
*
|