@parra/parra-js-sdk 0.3.418 → 0.3.420
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 +36 -34
- package/dist/ParraAPI.js +4 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -448,6 +448,13 @@ export interface TenantUserRoleStub {
|
|
448
448
|
name: string;
|
449
449
|
key: string;
|
450
450
|
}
|
451
|
+
export interface TenantUserPermissionStub {
|
452
|
+
id: string;
|
453
|
+
permission_id: string;
|
454
|
+
role_id?: string;
|
455
|
+
name: string;
|
456
|
+
key: string;
|
457
|
+
}
|
451
458
|
export interface TenantUserCollectionStub {
|
452
459
|
id: string;
|
453
460
|
created_at: string;
|
@@ -458,6 +465,7 @@ export interface TenantUserCollectionStub {
|
|
458
465
|
avatar?: ImageAssetStub | null;
|
459
466
|
verified: boolean;
|
460
467
|
roles?: Array<TenantUserRoleStub> | null;
|
468
|
+
permissions?: Array<TenantUserPermissionStub> | null;
|
461
469
|
identity?: string | null;
|
462
470
|
username?: string | null;
|
463
471
|
email?: string | null;
|
@@ -489,6 +497,7 @@ export interface TenantUserDataStub {
|
|
489
497
|
avatar?: ImageAssetStub | null;
|
490
498
|
verified: boolean;
|
491
499
|
roles?: Array<TenantUserRoleStub> | null;
|
500
|
+
permissions?: Array<TenantUserPermissionStub> | null;
|
492
501
|
identity?: string | null;
|
493
502
|
username?: string | null;
|
494
503
|
email?: string | null;
|
@@ -520,6 +529,7 @@ export interface TenantUser {
|
|
520
529
|
avatar?: ImageAssetStub | null;
|
521
530
|
verified: boolean;
|
522
531
|
roles?: Array<TenantUserRoleStub> | null;
|
532
|
+
permissions?: Array<TenantUserPermissionStub> | null;
|
523
533
|
identity?: string | null;
|
524
534
|
username?: string | null;
|
525
535
|
email?: string | null;
|
@@ -558,13 +568,6 @@ export interface AuthToken {
|
|
558
568
|
refresh_token?: string;
|
559
569
|
scope?: string;
|
560
570
|
}
|
561
|
-
export interface UploadImageRequestBody {
|
562
|
-
image: File;
|
563
|
-
}
|
564
|
-
export interface UploadImageWithGroupRequestBody {
|
565
|
-
image: File;
|
566
|
-
group: string;
|
567
|
-
}
|
568
571
|
export interface ImageAsset {
|
569
572
|
id: string;
|
570
573
|
created_at: string;
|
@@ -580,6 +583,13 @@ export interface ImageAsset {
|
|
580
583
|
blur_hash?: string | null;
|
581
584
|
thumbnails?: ImageAssetThumbnails | null;
|
582
585
|
}
|
586
|
+
export interface UploadImageRequestBody {
|
587
|
+
image: File;
|
588
|
+
}
|
589
|
+
export interface UploadImageWithGroupRequestBody {
|
590
|
+
image: File;
|
591
|
+
group: string;
|
592
|
+
}
|
583
593
|
export interface CreateContentCardRequestBody {
|
584
594
|
background_image: File;
|
585
595
|
title: string;
|
@@ -995,6 +1005,17 @@ export interface ChannelMember {
|
|
995
1005
|
type: ChannelMemberType;
|
996
1006
|
roles: Array<ChannelMemberRole>;
|
997
1007
|
}
|
1008
|
+
export interface Message {
|
1009
|
+
id: string;
|
1010
|
+
created_at: string;
|
1011
|
+
updated_at: string;
|
1012
|
+
deleted_at?: string | null;
|
1013
|
+
tenant_id: string;
|
1014
|
+
channel_id: string;
|
1015
|
+
member_id: string;
|
1016
|
+
user?: TenantUserStub | null;
|
1017
|
+
content: string;
|
1018
|
+
}
|
998
1019
|
export interface Channel {
|
999
1020
|
id: string;
|
1000
1021
|
created_at: string;
|
@@ -1036,17 +1057,6 @@ export interface MessageCollectionResponse {
|
|
1036
1057
|
export interface CreateMessageRequestBody {
|
1037
1058
|
content: string;
|
1038
1059
|
}
|
1039
|
-
export interface Message {
|
1040
|
-
id: string;
|
1041
|
-
created_at: string;
|
1042
|
-
updated_at: string;
|
1043
|
-
deleted_at?: string | null;
|
1044
|
-
tenant_id: string;
|
1045
|
-
channel_id: string;
|
1046
|
-
member_id: string;
|
1047
|
-
user?: TenantUserStub | null;
|
1048
|
-
content: string;
|
1049
|
-
}
|
1050
1060
|
export interface FlagMessageRequestBody {
|
1051
1061
|
reason?: string | null;
|
1052
1062
|
}
|
@@ -1316,19 +1326,15 @@ export interface UpdateCreatorUpdateTemplateRequestBody {
|
|
1316
1326
|
post_visibility?: CreatorUpdateVisibilityType;
|
1317
1327
|
attachment_visibility?: CreatorUpdateVisibilityType;
|
1318
1328
|
}
|
1319
|
-
export interface CreateCreatorAttachmentAttachmentRequestBody {
|
1320
|
-
id: string;
|
1321
|
-
size: Size;
|
1322
|
-
url: string;
|
1323
|
-
blur_hash?: string | null;
|
1324
|
-
thumbnails?: ImageAssetThumbnails | null;
|
1325
|
-
}
|
1326
1329
|
export interface CreateCreatorUpdateRequestBody {
|
1327
1330
|
publish?: boolean | null;
|
1328
1331
|
template_id?: string | null;
|
1329
1332
|
title?: string | null;
|
1330
1333
|
body?: string | null;
|
1331
|
-
|
1334
|
+
attachment_ids?: Array<string> | null;
|
1335
|
+
entitlement_id?: string | null;
|
1336
|
+
post_visibility?: CreatorUpdateVisibilityType | null;
|
1337
|
+
attachment_visibility?: CreatorUpdateVisibilityType | null;
|
1332
1338
|
}
|
1333
1339
|
export declare enum CreatorUpdateStatus {
|
1334
1340
|
draft = "draft",
|
@@ -2263,13 +2269,6 @@ export interface Board {
|
|
2263
2269
|
description?: string | null;
|
2264
2270
|
components?: Array<BoardComponent>;
|
2265
2271
|
}
|
2266
|
-
export interface CreateTicketAttachmentRequestBody {
|
2267
|
-
id: string;
|
2268
|
-
size: Size;
|
2269
|
-
url: string;
|
2270
|
-
blur_hash?: string | null;
|
2271
|
-
thumbnails?: ImageAssetThumbnails | null;
|
2272
|
-
}
|
2273
2272
|
export interface UpdateTicketChecklistItemRequestBody {
|
2274
2273
|
title?: string;
|
2275
2274
|
description?: string | null;
|
@@ -2295,7 +2294,7 @@ export interface CreateTicketRequestBody {
|
|
2295
2294
|
estimated_start_date?: string | null;
|
2296
2295
|
estimated_completion_date?: string | null;
|
2297
2296
|
icon?: TicketIcon;
|
2298
|
-
|
2297
|
+
attachment_ids?: Array<string>;
|
2299
2298
|
is_featured: boolean;
|
2300
2299
|
featured_title?: string | null;
|
2301
2300
|
featured_description?: string | null;
|
@@ -4333,6 +4332,9 @@ declare class ParraAPI {
|
|
4333
4332
|
checkAuthorization: (body: CheckAuthorizationRequestBody, options?: Options) => Promise<CheckAuthorization>;
|
4334
4333
|
getUserInfo: (options?: Options) => Promise<UserInfoResponse>;
|
4335
4334
|
getParraAuthToken: (options?: Options) => Promise<AuthToken>;
|
4335
|
+
listImageAssetsForTenantById: (tenant_id: string, query?: {
|
4336
|
+
ids?: string;
|
4337
|
+
}, options?: Options) => Promise<Array<ImageAsset>>;
|
4336
4338
|
uploadImageAssetForTenantById: (tenant_id: string, body: UploadImageWithGroupRequestBody, options?: Options) => Promise<ImageAsset>;
|
4337
4339
|
uploadAvatarForUser: (body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
|
4338
4340
|
uploadAvatarForTenantUser: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
|
package/dist/ParraAPI.js
CHANGED
@@ -468,6 +468,10 @@ var ParraAPI = /** @class */ (function () {
|
|
468
468
|
if (options === void 0) { options = {}; }
|
469
469
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/parra/auth/token"), __assign({ method: "post" }, options));
|
470
470
|
};
|
471
|
+
this.listImageAssetsForTenantById = function (tenant_id, query, options) {
|
472
|
+
if (options === void 0) { options = {}; }
|
473
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/assets/images"), __assign({ method: "get", query: query }, options));
|
474
|
+
};
|
471
475
|
this.uploadImageAssetForTenantById = function (tenant_id, body, options) {
|
472
476
|
if (options === void 0) { options = {}; }
|
473
477
|
var formData = new FormData();
|