@parra/parra-js-sdk 0.3.440 → 0.3.442
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 +71 -23
- package/dist/ParraAPI.js +40 -8
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1075,7 +1075,7 @@ export declare enum ChatChannelType {
|
|
1075
1075
|
}
|
1076
1076
|
export declare enum ChatChannelStatus {
|
1077
1077
|
active = "active",
|
1078
|
-
|
1078
|
+
locked = "locked",
|
1079
1079
|
archived = "archived"
|
1080
1080
|
}
|
1081
1081
|
export interface TenantUserStub {
|
@@ -1105,6 +1105,17 @@ export interface ChannelMember {
|
|
1105
1105
|
type: ChannelMemberType;
|
1106
1106
|
roles: Array<ChannelMemberRole>;
|
1107
1107
|
}
|
1108
|
+
export declare enum AttachmentType {
|
1109
|
+
image = "image"
|
1110
|
+
}
|
1111
|
+
export interface MessageAttachment {
|
1112
|
+
id: string;
|
1113
|
+
created_at: string;
|
1114
|
+
updated_at: string;
|
1115
|
+
deleted_at?: string | null;
|
1116
|
+
type: AttachmentType;
|
1117
|
+
image?: ImageAssetStub;
|
1118
|
+
}
|
1108
1119
|
export interface Message {
|
1109
1120
|
id: string;
|
1110
1121
|
created_at: string;
|
@@ -1115,6 +1126,7 @@ export interface Message {
|
|
1115
1126
|
member_id: string;
|
1116
1127
|
user?: TenantUserStub | null;
|
1117
1128
|
content: string;
|
1129
|
+
attachments?: Array<MessageAttachment>;
|
1118
1130
|
}
|
1119
1131
|
export interface Channel {
|
1120
1132
|
id: string;
|
@@ -1127,16 +1139,6 @@ export interface Channel {
|
|
1127
1139
|
apns?: CreateApnsChannelRequestBody;
|
1128
1140
|
inbox?: CreateInboxChannelRequestBody;
|
1129
1141
|
}
|
1130
|
-
export interface ChannelCollectionResponse {
|
1131
|
-
page: number;
|
1132
|
-
page_count: number;
|
1133
|
-
page_size: number;
|
1134
|
-
total_count: number;
|
1135
|
-
data: Array<Channel>;
|
1136
|
-
}
|
1137
|
-
export interface UpdateChatChannelRequestBody {
|
1138
|
-
status?: ChatChannelStatus;
|
1139
|
-
}
|
1140
1142
|
export interface MessageCollectionStub {
|
1141
1143
|
id: string;
|
1142
1144
|
created_at: string;
|
@@ -1154,8 +1156,13 @@ export interface MessageCollectionResponse {
|
|
1154
1156
|
total_count: number;
|
1155
1157
|
data: Array<MessageCollectionStub>;
|
1156
1158
|
}
|
1159
|
+
export interface CreateMessageAttachment {
|
1160
|
+
type: AttachmentType;
|
1161
|
+
image_asset_id?: string;
|
1162
|
+
}
|
1157
1163
|
export interface CreateMessageRequestBody {
|
1158
1164
|
content: string;
|
1165
|
+
attachments?: Array<CreateMessageAttachment>;
|
1159
1166
|
}
|
1160
1167
|
export interface FlagMessageRequestBody {
|
1161
1168
|
reason?: string | null;
|
@@ -1431,6 +1438,8 @@ export declare enum CreatorUpdateChannelType {
|
|
1431
1438
|
}
|
1432
1439
|
export interface CreatorUpdateChannelFeedData {
|
1433
1440
|
feed_view_id: string;
|
1441
|
+
feed_item_reactions_disabled: boolean;
|
1442
|
+
feed_item_comments_disabled: boolean;
|
1434
1443
|
}
|
1435
1444
|
export interface CreatorUpdateChannelNotificationData {
|
1436
1445
|
notification_template_id: string;
|
@@ -1493,6 +1502,7 @@ export interface CreatorUpdateGiveawayWinnerResponse {
|
|
1493
1502
|
winning_user?: TenantUserStub;
|
1494
1503
|
message: string;
|
1495
1504
|
total_entries: number;
|
1505
|
+
criteria: CreatorUpdateGiveawayCriteria;
|
1496
1506
|
}
|
1497
1507
|
export interface ScheduleCreatorUpdateRequestBody {
|
1498
1508
|
schedule_at: string;
|
@@ -1627,6 +1637,10 @@ export interface ReactionOptionGroup {
|
|
1627
1637
|
description?: string | null;
|
1628
1638
|
options: Array<ReactionOption>;
|
1629
1639
|
}
|
1640
|
+
export interface TenantUserNameStub {
|
1641
|
+
id: string;
|
1642
|
+
name: string;
|
1643
|
+
}
|
1630
1644
|
export interface ReactionSummary {
|
1631
1645
|
id: string;
|
1632
1646
|
name: string;
|
@@ -1635,6 +1649,7 @@ export interface ReactionSummary {
|
|
1635
1649
|
count: number;
|
1636
1650
|
first_reaction_at: string;
|
1637
1651
|
reaction_id?: string | null;
|
1652
|
+
users: Array<TenantUserNameStub>;
|
1638
1653
|
}
|
1639
1654
|
export interface CommentSummary {
|
1640
1655
|
disabled: boolean;
|
@@ -2755,13 +2770,9 @@ export interface InboxItemCollectionResponse {
|
|
2755
2770
|
export interface ReadInboxItemsRequestBody {
|
2756
2771
|
item_ids: Array<string>;
|
2757
2772
|
}
|
2758
|
-
export interface UpdateNotificationTemplateRequestBody {
|
2759
|
-
name: string;
|
2760
|
-
description?: string | null;
|
2761
|
-
topic_id?: string | null;
|
2762
|
-
}
|
2763
2773
|
export interface CreateNotificationTemplateRequestBody {
|
2764
2774
|
name: string;
|
2775
|
+
key: string;
|
2765
2776
|
description?: string | null;
|
2766
2777
|
topic_id?: string | null;
|
2767
2778
|
}
|
@@ -2828,6 +2839,7 @@ export interface NotificationTemplate {
|
|
2828
2839
|
updated_at: string;
|
2829
2840
|
deleted_at?: string | null;
|
2830
2841
|
name: string;
|
2842
|
+
key: string;
|
2831
2843
|
description?: string | null;
|
2832
2844
|
topic_id?: string | null;
|
2833
2845
|
tenant_id: string;
|
@@ -2841,6 +2853,12 @@ export interface NotificationTemplateCollectionResponse {
|
|
2841
2853
|
total_count: number;
|
2842
2854
|
data: Array<NotificationTemplate>;
|
2843
2855
|
}
|
2856
|
+
export interface UpdateNotificationTemplateRequestBody {
|
2857
|
+
name?: string;
|
2858
|
+
key?: string;
|
2859
|
+
description?: string | null;
|
2860
|
+
topic_id?: string | null;
|
2861
|
+
}
|
2844
2862
|
export interface UpdateChannelRequestBody {
|
2845
2863
|
name: string;
|
2846
2864
|
description?: string | null;
|
@@ -4013,6 +4031,25 @@ export interface AddRolesToUserRequestBody {
|
|
4013
4031
|
role_id?: string | null;
|
4014
4032
|
role_ids?: Array<string> | null;
|
4015
4033
|
}
|
4034
|
+
export declare enum TenantUserMetricType {
|
4035
|
+
total = "total",
|
4036
|
+
new = "new",
|
4037
|
+
dau = "dau"
|
4038
|
+
}
|
4039
|
+
export interface TenantUserMetricsQuery {
|
4040
|
+
start_at: string;
|
4041
|
+
end_at: string;
|
4042
|
+
metric: TenantUserMetricType;
|
4043
|
+
}
|
4044
|
+
export interface TenantUserMetricsData {
|
4045
|
+
date?: string;
|
4046
|
+
value?: number;
|
4047
|
+
}
|
4048
|
+
export interface TenantUserMetrics {
|
4049
|
+
message?: string | null;
|
4050
|
+
query: TenantUserMetricsQuery;
|
4051
|
+
data: Array<TenantUserMetricsData>;
|
4052
|
+
}
|
4016
4053
|
export interface UpdateTenantUserRequestBody {
|
4017
4054
|
identity?: string | null;
|
4018
4055
|
name?: string | null;
|
@@ -4516,13 +4553,17 @@ declare class ParraAPI {
|
|
4516
4553
|
updateProductEntitlement: (tenant_id: string, product_id: string, product_entitlement_id: string, body?: UpdateProductEntitlementRequestBody, options?: Options) => Promise<ProductEntitlement>;
|
4517
4554
|
deleteProductEntitlement: (tenant_id: string, product_id: string, product_entitlement_id: string, options?: Options) => Promise<Response>;
|
4518
4555
|
createChatChannel: (tenant_id: string, body?: CreateChatChannelRequestBody, options?: Options) => Promise<Channel>;
|
4519
|
-
|
4556
|
+
listChatChannels: (tenant_id: string, query?: {
|
4520
4557
|
type?: string;
|
4521
|
-
|
4522
|
-
|
4523
|
-
|
4524
|
-
|
4558
|
+
}, options?: Options) => Promise<Array<Channel>>;
|
4559
|
+
getChatChannel: (tenant_id: string, channel_id: string, query?: {
|
4560
|
+
last_message_id?: string;
|
4561
|
+
}, options?: Options) => Promise<Channel>;
|
4525
4562
|
deleteChatChannel: (tenant_id: string, channel_id: string, options?: Options) => Promise<Response>;
|
4563
|
+
listMembersForChatChannel: (tenant_id: string, channel_id: string, options?: Options) => Promise<Array<ChannelMember>>;
|
4564
|
+
lockChatChannel: (tenant_id: string, channel_id: string, options?: Options) => Promise<Channel>;
|
4565
|
+
unlockChatChannel: (tenant_id: string, channel_id: string, options?: Options) => Promise<Channel>;
|
4566
|
+
leaveChatChannel: (tenant_id: string, channel_id: string, options?: Options) => Promise<Response>;
|
4526
4567
|
paginateMessagesForChatChannel: (tenant_id: string, channel_id: string, query?: {
|
4527
4568
|
limit?: number;
|
4528
4569
|
offset?: number;
|
@@ -4626,6 +4667,7 @@ declare class ParraAPI {
|
|
4626
4667
|
}, options?: Options) => Promise<FeedItemCollectionResponse>;
|
4627
4668
|
updateFeedItem: (tenant_id: string, feed_id_or_slug: string, feed_item_id: string, body?: UpdateFeedItemRequestBody, options?: Options) => Promise<FeedItem>;
|
4628
4669
|
deleteFeedItem: (tenant_id: string, feed_id_or_slug: string, feed_item_id: string, options?: Options) => Promise<Response>;
|
4670
|
+
getFeedItem: (tenant_id: string, feed_item_id: string, options?: Options) => Promise<FeedItem>;
|
4629
4671
|
addCommentToFeedItem: (tenant_id: string, feed_item_id: string, body: CreateCommentRequestBody, options?: Options) => Promise<Comment>;
|
4630
4672
|
paginateCommentsForFeedItem: (tenant_id: string, feed_item_id: string, query?: {
|
4631
4673
|
limit?: number;
|
@@ -4854,7 +4896,7 @@ declare class ParraAPI {
|
|
4854
4896
|
archived?: boolean;
|
4855
4897
|
}, options?: Options) => Promise<InboxItemCollectionResponse>;
|
4856
4898
|
readInboxItemsForTenantUser: (tenant_id: string, user_id: string, body: ReadInboxItemsRequestBody, options?: Options) => Promise<Response>;
|
4857
|
-
createNotificationTemplate: (tenant_id: string, body
|
4899
|
+
createNotificationTemplate: (tenant_id: string, body: CreateNotificationTemplateRequestBody, options?: Options) => Promise<NotificationTemplate>;
|
4858
4900
|
paginateNotificationTemplatesForTenantById: (tenant_id: string, query?: {
|
4859
4901
|
$select?: string;
|
4860
4902
|
$top?: number;
|
@@ -4867,7 +4909,7 @@ declare class ParraAPI {
|
|
4867
4909
|
getNotificationTemplateById: (tenant_id: string, notification_template_id: string, query?: {
|
4868
4910
|
include?: string;
|
4869
4911
|
}, options?: Options) => Promise<NotificationTemplate>;
|
4870
|
-
updateNotificationTemplateById: (tenant_id: string, notification_template_id: string, body
|
4912
|
+
updateNotificationTemplateById: (tenant_id: string, notification_template_id: string, body?: UpdateNotificationTemplateRequestBody, options?: Options) => Promise<NotificationTemplate>;
|
4871
4913
|
deleteNotificationTemplateById: (tenant_id: string, notification_template_id: string, options?: Options) => Promise<Response>;
|
4872
4914
|
createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body: CreateChannelRequestBody, options?: Options) => Promise<Channel>;
|
4873
4915
|
updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body: UpdateChannelRequestBody, options?: Options) => Promise<Channel>;
|
@@ -4996,6 +5038,12 @@ declare class ParraAPI {
|
|
4996
5038
|
deleteRoleById: (tenant_id: string, role_id: string, options?: Options) => Promise<Response>;
|
4997
5039
|
addRolesToUser: (tenant_id: string, user_id: string, body?: AddRolesToUserRequestBody, options?: Options) => Promise<Response>;
|
4998
5040
|
removeRoleFromUser: (tenant_id: string, user_id: string, user_role_id: string, options?: Options) => Promise<Response>;
|
5041
|
+
getUsersMetricsForTenantById: (tenant_id: string, query?: {
|
5042
|
+
start_at?: string;
|
5043
|
+
end_at?: string;
|
5044
|
+
metric?: string;
|
5045
|
+
include_anonymous?: boolean;
|
5046
|
+
}, options?: Options) => Promise<TenantUserMetrics>;
|
4999
5047
|
getUserForTenantById: (tenant_id: string, user_id: string, query?: {
|
5000
5048
|
include?: string;
|
5001
5049
|
}, options?: Options) => Promise<TenantUser>;
|
package/dist/ParraAPI.js
CHANGED
@@ -11,8 +11,8 @@ var __assign = (this && this.__assign) || function () {
|
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
|
-
exports.
|
15
|
-
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = void 0;
|
14
|
+
exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.ReactionType = exports.FeedItemType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.PaywallIapType = exports.AppPaywallType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
15
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.SsoProvider = void 0;
|
16
16
|
var TicketType;
|
17
17
|
(function (TicketType) {
|
18
18
|
TicketType["bug"] = "bug";
|
@@ -163,7 +163,7 @@ var ChatChannelType;
|
|
163
163
|
var ChatChannelStatus;
|
164
164
|
(function (ChatChannelStatus) {
|
165
165
|
ChatChannelStatus["active"] = "active";
|
166
|
-
ChatChannelStatus["
|
166
|
+
ChatChannelStatus["locked"] = "locked";
|
167
167
|
ChatChannelStatus["archived"] = "archived";
|
168
168
|
})(ChatChannelStatus || (exports.ChatChannelStatus = ChatChannelStatus = {}));
|
169
169
|
var ChannelMemberType;
|
@@ -178,6 +178,10 @@ var ChannelMemberRole;
|
|
178
178
|
ChannelMemberRole["member"] = "member";
|
179
179
|
ChannelMemberRole["guest"] = "guest";
|
180
180
|
})(ChannelMemberRole || (exports.ChannelMemberRole = ChannelMemberRole = {}));
|
181
|
+
var AttachmentType;
|
182
|
+
(function (AttachmentType) {
|
183
|
+
AttachmentType["image"] = "image";
|
184
|
+
})(AttachmentType || (exports.AttachmentType = AttachmentType = {}));
|
181
185
|
var CreatorUpdateTopic;
|
182
186
|
(function (CreatorUpdateTopic) {
|
183
187
|
CreatorUpdateTopic["giveaway"] = "giveaway";
|
@@ -438,6 +442,12 @@ var IntegrationScope;
|
|
438
442
|
IntegrationScope["collection"] = "collection";
|
439
443
|
IntegrationScope["resource"] = "resource";
|
440
444
|
})(IntegrationScope || (exports.IntegrationScope = IntegrationScope = {}));
|
445
|
+
var TenantUserMetricType;
|
446
|
+
(function (TenantUserMetricType) {
|
447
|
+
TenantUserMetricType["total"] = "total";
|
448
|
+
TenantUserMetricType["new"] = "new";
|
449
|
+
TenantUserMetricType["dau"] = "dau";
|
450
|
+
})(TenantUserMetricType || (exports.TenantUserMetricType = TenantUserMetricType = {}));
|
441
451
|
var MailTemplateType;
|
442
452
|
(function (MailTemplateType) {
|
443
453
|
MailTemplateType["accountCreated"] = "account-created";
|
@@ -761,20 +771,34 @@ var ParraAPI = /** @class */ (function () {
|
|
761
771
|
"content-type": "application/json",
|
762
772
|
} }, options));
|
763
773
|
};
|
764
|
-
this.
|
774
|
+
this.listChatChannels = function (tenant_id, query, options) {
|
765
775
|
if (options === void 0) { options = {}; }
|
766
776
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels"), __assign({ method: "get", query: query }, options));
|
767
777
|
};
|
768
|
-
this.
|
778
|
+
this.getChatChannel = function (tenant_id, channel_id, query, options) {
|
769
779
|
if (options === void 0) { options = {}; }
|
770
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id), __assign({ method: "
|
771
|
-
"content-type": "application/json",
|
772
|
-
} }, options));
|
780
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id), __assign({ method: "get", query: query }, options));
|
773
781
|
};
|
774
782
|
this.deleteChatChannel = function (tenant_id, channel_id, options) {
|
775
783
|
if (options === void 0) { options = {}; }
|
776
784
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id), __assign({ method: "delete" }, options));
|
777
785
|
};
|
786
|
+
this.listMembersForChatChannel = function (tenant_id, channel_id, options) {
|
787
|
+
if (options === void 0) { options = {}; }
|
788
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/members"), __assign({ method: "get" }, options));
|
789
|
+
};
|
790
|
+
this.lockChatChannel = function (tenant_id, channel_id, options) {
|
791
|
+
if (options === void 0) { options = {}; }
|
792
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/lock"), __assign({ method: "post" }, options));
|
793
|
+
};
|
794
|
+
this.unlockChatChannel = function (tenant_id, channel_id, options) {
|
795
|
+
if (options === void 0) { options = {}; }
|
796
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/unlock"), __assign({ method: "post" }, options));
|
797
|
+
};
|
798
|
+
this.leaveChatChannel = function (tenant_id, channel_id, options) {
|
799
|
+
if (options === void 0) { options = {}; }
|
800
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/leave"), __assign({ method: "post" }, options));
|
801
|
+
};
|
778
802
|
this.paginateMessagesForChatChannel = function (tenant_id, channel_id, query, options) {
|
779
803
|
if (options === void 0) { options = {}; }
|
780
804
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/messages"), __assign({ method: "get", query: query }, options));
|
@@ -1031,6 +1055,10 @@ var ParraAPI = /** @class */ (function () {
|
|
1031
1055
|
if (options === void 0) { options = {}; }
|
1032
1056
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items/").concat(feed_item_id), __assign({ method: "delete" }, options));
|
1033
1057
|
};
|
1058
|
+
this.getFeedItem = function (tenant_id, feed_item_id, options) {
|
1059
|
+
if (options === void 0) { options = {}; }
|
1060
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id), __assign({ method: "get" }, options));
|
1061
|
+
};
|
1034
1062
|
this.addCommentToFeedItem = function (tenant_id, feed_item_id, body, options) {
|
1035
1063
|
if (options === void 0) { options = {}; }
|
1036
1064
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/comments"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
@@ -1961,6 +1989,10 @@ var ParraAPI = /** @class */ (function () {
|
|
1961
1989
|
if (options === void 0) { options = {}; }
|
1962
1990
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/roles/").concat(user_role_id), __assign({ method: "delete" }, options));
|
1963
1991
|
};
|
1992
|
+
this.getUsersMetricsForTenantById = function (tenant_id, query, options) {
|
1993
|
+
if (options === void 0) { options = {}; }
|
1994
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/metrics"), __assign({ method: "get", query: query }, options));
|
1995
|
+
};
|
1964
1996
|
this.getUserForTenantById = function (tenant_id, user_id, query, options) {
|
1965
1997
|
if (options === void 0) { options = {}; }
|
1966
1998
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), __assign({ method: "get", query: query }, options));
|