@parra/parra-js-sdk 0.3.624 → 0.3.625
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.d.ts +1 -1
- package/dist/ParraAPI.js +7 -4
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -7029,7 +7029,7 @@ declare class ParraAPI {
|
|
7029
7029
|
limit?: number;
|
7030
7030
|
offset?: number;
|
7031
7031
|
}, options?: Options) => Promise<ContentCardCollectionResponse>;
|
7032
|
-
|
7032
|
+
uploadSiteIcon: (tenant_id: string, site_id: string, site_icon_type: string, site_icon_size: number, body: UploadImageRequestBody, options?: Options) => Promise<SiteIcon>;
|
7033
7033
|
deleteSiteIcon: (tenant_id: string, site_id: string, site_icon_type: string, site_icon_size: number, options?: Options) => Promise<Response>;
|
7034
7034
|
updateBackgroundImageForContentCardById: (tenant_id: string, content_card_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ContentCard>;
|
7035
7035
|
uploadAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
package/dist/ParraAPI.js
CHANGED
@@ -823,11 +823,14 @@ var ParraAPI = /** @class */ (function () {
|
|
823
823
|
if (options === void 0) { options = {}; }
|
824
824
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), method: "get", query: query }, options));
|
825
825
|
};
|
826
|
-
this.
|
826
|
+
this.uploadSiteIcon = function (tenant_id, site_id, site_icon_type, site_icon_size, body, options) {
|
827
827
|
if (options === void 0) { options = {}; }
|
828
|
-
|
829
|
-
|
830
|
-
|
828
|
+
var formData = new FormData();
|
829
|
+
Object.entries(body).forEach(function (_a) {
|
830
|
+
var key = _a[0], value = _a[1];
|
831
|
+
formData.append(key, value);
|
832
|
+
});
|
833
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/sites/").concat(site_id, "/icons/").concat(site_icon_type, "/").concat(site_icon_size), method: "post", body: formData, headers: {} }, options));
|
831
834
|
};
|
832
835
|
this.deleteSiteIcon = function (tenant_id, site_id, site_icon_type, site_icon_size, options) {
|
833
836
|
if (options === void 0) { options = {}; }
|