@xfloor/floor-memory-sdk-ts 1.0.14 → 1.0.15

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @xfloor/floor-memory-sdk-ts@1.0.14
1
+ # @xfloor/floor-memory-sdk-ts@1.0.15
2
2
  A TypeScript SDK client for the appfloor.in API.
3
3
 
4
4
  ### Usage
@@ -244,7 +244,7 @@ and is automatically generated by the
244
244
  [OpenAPI Generator](https://openapi-generator.tech) project:
245
245
 
246
246
  - API version: `1.0.0`
247
- - Package version: `1.0.14`
247
+ - Package version: `1.0.15`
248
248
  - Generator version: `7.18.0`
249
249
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
250
250
 
@@ -17,7 +17,7 @@ export interface EventRequest {
17
17
  inputInfo: string;
18
18
  appId: string;
19
19
  userId: string;
20
- files?: Array<string>;
20
+ files?: Blob;
21
21
  }
22
22
  /**
23
23
  *
@@ -113,6 +113,8 @@ var EventApi = /** @class */ (function (_super) {
113
113
  ];
114
114
  canConsumeForm = runtime.canConsumeForm(consumes);
115
115
  useForm = false;
116
+ // use FormData to transmit files using content-type "multipart/form-data"
117
+ useForm = canConsumeForm;
116
118
  if (useForm) {
117
119
  formParams = new FormData();
118
120
  }
@@ -120,7 +122,7 @@ var EventApi = /** @class */ (function (_super) {
120
122
  formParams = new URLSearchParams();
121
123
  }
122
124
  if (requestParameters['files'] != null) {
123
- formParams.append('files', requestParameters['files'].join(runtime.COLLECTION_FORMATS["csv"]));
125
+ formParams.append('files', requestParameters['files']);
124
126
  }
125
127
  if (requestParameters['inputInfo'] != null) {
126
128
  formParams.append('input_info', requestParameters['inputInfo']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfloor/floor-memory-sdk-ts",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "TypeScript SDK for xFloor Memory APIs (Memory + Registration).",
5
5
  "author": "xFloor",
6
6
  "repository": {