@parra/parra-js-sdk 0.3.392 → 0.3.393
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/ParraAPI.js +6 -3
- package/package.json +1 -1
package/dist/ParraAPI.js
CHANGED
|
@@ -483,9 +483,12 @@ var ParraAPI = /** @class */ (function () {
|
|
|
483
483
|
};
|
|
484
484
|
this.createContentCard = function (tenant_id, body, options) {
|
|
485
485
|
if (options === void 0) { options = {}; }
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
486
|
+
var formData = new FormData();
|
|
487
|
+
Object.entries(body).forEach(function (_a) {
|
|
488
|
+
var key = _a[0], value = _a[1];
|
|
489
|
+
formData.append(key, value);
|
|
490
|
+
});
|
|
491
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), __assign({ method: "post", body: formData, headers: {} }, options));
|
|
489
492
|
};
|
|
490
493
|
this.paginateContentCards = function (tenant_id, query, options) {
|
|
491
494
|
if (options === void 0) { options = {}; }
|