@matech/thebigpos-sdk 3.20.0 → 3.21.0-dev-7189

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.20.0
104
+ * @version v3.21.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
  */
@@ -363,30 +369,6 @@ export class Api extends HttpClient {
363
369
  * @response `409` `ProblemDetails` Conflict
364
370
  */
365
371
  deleteAiPrompt: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "DELETE", query: query, secure: true }, params)),
366
- /**
367
- * No description
368
- *
369
- * @tags AiAdminPrompt
370
- * @name GetAiTools
371
- * @summary List available agent tools and their settings schema
372
- * @request GET:/api/ai/prompts/tools
373
- * @secure
374
- * @response `200` `(AiToolCatalogItem)[]` OK
375
- */
376
- getAiTools: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/tools`, method: "GET", secure: true, format: "json" }, params)),
377
- /**
378
- * No description
379
- *
380
- * @tags AiAdminPrompt
381
- * @name UpdateAiPromptTools
382
- * @summary Replace the prompt's agent tool configuration
383
- * @request PUT:/api/ai/prompts/{id}/tools
384
- * @secure
385
- * @response `200` `AiPrompt` OK
386
- * @response `400` `ProblemDetails` Bad Request
387
- * @response `404` `ProblemDetails` Not Found
388
- */
389
- updateAiPromptTools: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}/tools`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
390
372
  /**
391
373
  * No description
392
374
  *