@parra/parra-js-sdk 0.3.566 → 0.3.568
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 +8 -0
- package/dist/ParraAPI.js +10 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -55,6 +55,7 @@ export interface ImageAssetStub {
|
|
55
55
|
size: Size;
|
56
56
|
url: string;
|
57
57
|
blur_hash?: string | null;
|
58
|
+
alt_text?: string | null;
|
58
59
|
thumbnails?: ImageAssetThumbnails | null;
|
59
60
|
}
|
60
61
|
export interface TicketFeatured {
|
@@ -124,6 +125,7 @@ export interface ReleaseHeader {
|
|
124
125
|
size: Size;
|
125
126
|
url: string;
|
126
127
|
blur_hash?: string | null;
|
128
|
+
alt_text?: string | null;
|
127
129
|
thumbnails?: ImageAssetThumbnails | null;
|
128
130
|
}
|
129
131
|
export declare enum ReleaseType {
|
@@ -610,6 +612,7 @@ export interface ImageAsset {
|
|
610
612
|
group: string;
|
611
613
|
file_type: string;
|
612
614
|
mime_type: string;
|
615
|
+
alt_text?: string | null;
|
613
616
|
blur_hash?: string | null;
|
614
617
|
thumbnails?: ImageAssetThumbnails | null;
|
615
618
|
}
|
@@ -634,6 +637,9 @@ export interface UploadImageWithGroupRequestBody {
|
|
634
637
|
group: string;
|
635
638
|
}
|
636
639
|
export type UploadImageAssetRequestBody = UploadImageWithGroupRequestBody;
|
640
|
+
export interface UpdateImageAssetRequestBody {
|
641
|
+
alt_text: string | null;
|
642
|
+
}
|
637
643
|
export declare enum ContentCardActionType {
|
638
644
|
link = "link",
|
639
645
|
feedbackForm = "feedback_form"
|
@@ -6424,6 +6430,8 @@ declare class ParraAPI {
|
|
6424
6430
|
file_type?: string;
|
6425
6431
|
}, options?: Options) => Promise<ImageAssetCollectionResponse>;
|
6426
6432
|
uploadImageAssetForTenantById: (tenant_id: string, body?: UploadImageAssetRequestBody, options?: Options) => Promise<ImageAsset>;
|
6433
|
+
updateImageAssetForTenantById: (tenant_id: string, image_asset_id: string, body: UpdateImageAssetRequestBody, options?: Options) => Promise<ImageAsset>;
|
6434
|
+
deleteImageAssetForTenantById: (tenant_id: string, image_asset_id: string, options?: Options) => Promise<Response>;
|
6427
6435
|
uploadAvatarForUser: (body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
|
6428
6436
|
uploadAvatarForTenantUser: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
|
6429
6437
|
uploadIconForTenantApplication: (tenant_id: string, application_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
package/dist/ParraAPI.js
CHANGED
@@ -703,6 +703,16 @@ var ParraAPI = /** @class */ (function () {
|
|
703
703
|
});
|
704
704
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/assets/images"), method: "post", body: formData, headers: {} }, options));
|
705
705
|
};
|
706
|
+
this.updateImageAssetForTenantById = function (tenant_id, image_asset_id, body, options) {
|
707
|
+
if (options === void 0) { options = {}; }
|
708
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/assets/images/").concat(image_asset_id), method: "put", body: JSON.stringify(body), headers: {
|
709
|
+
"content-type": "application/json",
|
710
|
+
} }, options));
|
711
|
+
};
|
712
|
+
this.deleteImageAssetForTenantById = function (tenant_id, image_asset_id, options) {
|
713
|
+
if (options === void 0) { options = {}; }
|
714
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/assets/images/").concat(image_asset_id), method: "delete" }, options));
|
715
|
+
};
|
706
716
|
this.uploadAvatarForUser = function (body, options) {
|
707
717
|
if (options === void 0) { options = {}; }
|
708
718
|
var formData = new FormData();
|