@parra/parra-js-sdk 0.3.416 → 0.3.418
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 +187 -44
- package/dist/ParraAPI.js +84 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -302,6 +302,7 @@ export interface TenantAppInfoStub {
|
|
302
302
|
subdomain?: string | null;
|
303
303
|
is_test: boolean;
|
304
304
|
parent_tenant_id?: string | null;
|
305
|
+
display_name?: string | null;
|
305
306
|
logo?: ImageAssetStub | null;
|
306
307
|
issuer: string;
|
307
308
|
domains: Array<Domain> | null;
|
@@ -752,21 +753,43 @@ export interface AppleSubscription {
|
|
752
753
|
group_level: number;
|
753
754
|
product?: ProductStub | null;
|
754
755
|
}
|
756
|
+
export declare enum AppPaywallType {
|
757
|
+
apple = "apple",
|
758
|
+
parra = "parra"
|
759
|
+
}
|
755
760
|
export interface ApplePaywallMarketingContent {
|
756
761
|
title: string;
|
757
762
|
subtitle?: string | null;
|
758
763
|
product_image: ImageAssetStub | null;
|
759
764
|
}
|
760
|
-
export interface
|
765
|
+
export interface PaywallHeaderSection {
|
766
|
+
id: string;
|
767
|
+
title: string;
|
768
|
+
type: string;
|
769
|
+
description?: string | null;
|
770
|
+
icon?: ImageAssetStub | null;
|
771
|
+
}
|
772
|
+
export interface PaywallOffering {
|
773
|
+
id: string;
|
774
|
+
title: string;
|
775
|
+
}
|
776
|
+
export interface PaywallOfferingSection {
|
777
|
+
id: string;
|
778
|
+
type: string;
|
779
|
+
offerings: Array<PaywallOffering>;
|
780
|
+
}
|
781
|
+
export type PaywallSection = PaywallHeaderSection | PaywallOfferingSection;
|
782
|
+
export interface AppPaywall {
|
761
783
|
id: string;
|
762
784
|
created_at: string;
|
763
785
|
updated_at: string;
|
764
786
|
deleted_at?: string | null;
|
787
|
+
type: AppPaywallType;
|
765
788
|
group_id?: string | null;
|
766
789
|
product_ids?: Array<string> | null;
|
767
790
|
marketing_content?: ApplePaywallMarketingContent | null;
|
791
|
+
sections?: Array<PaywallSection> | null;
|
768
792
|
}
|
769
|
-
export type AppPaywall = ApplePaywall;
|
770
793
|
export interface CreateAppPurchaseRequestBody {
|
771
794
|
apple_receipt?: string;
|
772
795
|
apple_receipts?: Array<string>;
|
@@ -927,6 +950,117 @@ export interface UpdateProductEntitlementRequestBody {
|
|
927
950
|
consumable_quantity?: number | null;
|
928
951
|
update_for_all_existing_entitlements?: boolean | null;
|
929
952
|
}
|
953
|
+
export interface CreatePaidDmChannelRequestBody {
|
954
|
+
type: string;
|
955
|
+
key: string;
|
956
|
+
}
|
957
|
+
export type CreateChatChannelRequestBody = CreatePaidDmChannelRequestBody;
|
958
|
+
export declare enum ChatChannelType {
|
959
|
+
paidDm = "paid_dm",
|
960
|
+
dm = "dm",
|
961
|
+
default = "default",
|
962
|
+
app = "app",
|
963
|
+
group = "group",
|
964
|
+
user = "user"
|
965
|
+
}
|
966
|
+
export declare enum ChatChannelStatus {
|
967
|
+
active = "active",
|
968
|
+
closed = "closed",
|
969
|
+
archived = "archived"
|
970
|
+
}
|
971
|
+
export interface TenantUserStub {
|
972
|
+
id: string;
|
973
|
+
tenant_id: string;
|
974
|
+
name?: string | null;
|
975
|
+
avatar?: ImageAssetStub | null;
|
976
|
+
verified?: boolean | null;
|
977
|
+
roles?: Array<TenantUserRoleStub> | null;
|
978
|
+
}
|
979
|
+
export declare enum ChannelMemberType {
|
980
|
+
tenantUser = "tenant_user",
|
981
|
+
user = "user",
|
982
|
+
bot = "bot"
|
983
|
+
}
|
984
|
+
export declare enum ChannelMemberRole {
|
985
|
+
admin = "admin",
|
986
|
+
member = "member",
|
987
|
+
guest = "guest"
|
988
|
+
}
|
989
|
+
export interface ChannelMember {
|
990
|
+
id: string;
|
991
|
+
created_at: string;
|
992
|
+
updated_at: string;
|
993
|
+
deleted_at?: string | null;
|
994
|
+
user?: TenantUserStub | null;
|
995
|
+
type: ChannelMemberType;
|
996
|
+
roles: Array<ChannelMemberRole>;
|
997
|
+
}
|
998
|
+
export interface Channel {
|
999
|
+
id: string;
|
1000
|
+
created_at: string;
|
1001
|
+
updated_at: string;
|
1002
|
+
deleted_at?: string | null;
|
1003
|
+
type: ChannelType;
|
1004
|
+
name: string;
|
1005
|
+
description?: string | null;
|
1006
|
+
apns?: CreateApnsChannelRequestBody;
|
1007
|
+
inbox?: CreateInboxChannelRequestBody;
|
1008
|
+
}
|
1009
|
+
export interface ChannelCollectionResponse {
|
1010
|
+
page: number;
|
1011
|
+
page_count: number;
|
1012
|
+
page_size: number;
|
1013
|
+
total_count: number;
|
1014
|
+
data: Array<Channel>;
|
1015
|
+
}
|
1016
|
+
export interface UpdateChatChannelRequestBody {
|
1017
|
+
status?: ChatChannelStatus;
|
1018
|
+
}
|
1019
|
+
export interface MessageCollectionStub {
|
1020
|
+
id: string;
|
1021
|
+
created_at: string;
|
1022
|
+
updated_at: string;
|
1023
|
+
deleted_at?: string | null;
|
1024
|
+
tenant_id: string;
|
1025
|
+
channel_id: string;
|
1026
|
+
member_id: string;
|
1027
|
+
content: string;
|
1028
|
+
}
|
1029
|
+
export interface MessageCollectionResponse {
|
1030
|
+
page: number;
|
1031
|
+
page_count: number;
|
1032
|
+
page_size: number;
|
1033
|
+
total_count: number;
|
1034
|
+
data: Array<MessageCollectionStub>;
|
1035
|
+
}
|
1036
|
+
export interface CreateMessageRequestBody {
|
1037
|
+
content: string;
|
1038
|
+
}
|
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
|
+
export interface FlagMessageRequestBody {
|
1051
|
+
reason?: string | null;
|
1052
|
+
}
|
1053
|
+
export interface CreateReactionRequestBody {
|
1054
|
+
option_id: string;
|
1055
|
+
}
|
1056
|
+
export interface Reaction {
|
1057
|
+
id: string;
|
1058
|
+
created_at: string;
|
1059
|
+
updated_at: string;
|
1060
|
+
deleted_at?: string | null;
|
1061
|
+
option_id: string;
|
1062
|
+
user_id: string;
|
1063
|
+
}
|
930
1064
|
export interface AppFaq {
|
931
1065
|
id: string;
|
932
1066
|
created_at: string;
|
@@ -1141,10 +1275,12 @@ export interface CreateCreatorUpdateTemplateRequestBody {
|
|
1141
1275
|
feed_view_id?: string;
|
1142
1276
|
notification_template_id?: string;
|
1143
1277
|
entitlement_id?: string | null;
|
1278
|
+
paywall_context?: string | null;
|
1144
1279
|
post_visibility?: CreatorUpdateVisibilityType;
|
1145
1280
|
attachment_visibility?: CreatorUpdateVisibilityType;
|
1146
1281
|
}
|
1147
1282
|
export interface CreatorUpdateVisibility {
|
1283
|
+
paywall_context?: string | null;
|
1148
1284
|
entitlement_id?: string | null;
|
1149
1285
|
post_visibility: CreatorUpdateVisibilityType;
|
1150
1286
|
attachment_visibility?: CreatorUpdateVisibilityType | null;
|
@@ -1176,6 +1312,7 @@ export interface UpdateCreatorUpdateTemplateRequestBody {
|
|
1176
1312
|
feed_view_id?: string;
|
1177
1313
|
notification_template_id?: string;
|
1178
1314
|
entitlement_id?: string | null;
|
1315
|
+
paywall_context?: string | null;
|
1179
1316
|
post_visibility?: CreatorUpdateVisibilityType;
|
1180
1317
|
attachment_visibility?: CreatorUpdateVisibilityType;
|
1181
1318
|
}
|
@@ -1292,6 +1429,17 @@ export declare enum FeedItemType {
|
|
1292
1429
|
contentCard = "content_card",
|
1293
1430
|
creatorUpdate = "creator_update"
|
1294
1431
|
}
|
1432
|
+
export interface EntitlementStub {
|
1433
|
+
id: string;
|
1434
|
+
title: string;
|
1435
|
+
key: string;
|
1436
|
+
is_consumable: boolean;
|
1437
|
+
is_free: boolean;
|
1438
|
+
}
|
1439
|
+
export interface AppPaywallConfiguration {
|
1440
|
+
context?: string | null;
|
1441
|
+
entitlement?: EntitlementStub;
|
1442
|
+
}
|
1295
1443
|
export interface YoutubeThumbnail {
|
1296
1444
|
url: string;
|
1297
1445
|
width: number;
|
@@ -1327,6 +1475,23 @@ export interface YoutubeVideo {
|
|
1327
1475
|
live_broadcast_content?: string | null;
|
1328
1476
|
statistics?: YoutubeStatistics | null;
|
1329
1477
|
}
|
1478
|
+
export interface AppYoutubeVideo {
|
1479
|
+
id: string;
|
1480
|
+
created_at: string;
|
1481
|
+
updated_at: string;
|
1482
|
+
deleted_at?: string | null;
|
1483
|
+
url: string;
|
1484
|
+
video_id: string;
|
1485
|
+
title: string;
|
1486
|
+
channel_title: string;
|
1487
|
+
channel_id: string;
|
1488
|
+
description?: string;
|
1489
|
+
thumbnails: YoutubeThumbnails;
|
1490
|
+
published_at: string;
|
1491
|
+
live_broadcast_content?: string | null;
|
1492
|
+
statistics?: YoutubeStatistics | null;
|
1493
|
+
paywall?: AppPaywallConfiguration | null;
|
1494
|
+
}
|
1330
1495
|
export interface AppContentCard {
|
1331
1496
|
id: string;
|
1332
1497
|
created_at: string;
|
@@ -1338,17 +1503,6 @@ export interface AppContentCard {
|
|
1338
1503
|
badge?: string | null;
|
1339
1504
|
action?: ContentCardAction | null;
|
1340
1505
|
}
|
1341
|
-
export interface EntitlementStub {
|
1342
|
-
id: string;
|
1343
|
-
title: string;
|
1344
|
-
key: string;
|
1345
|
-
is_consumable: boolean;
|
1346
|
-
is_free: boolean;
|
1347
|
-
}
|
1348
|
-
export interface AppPaywallConfiguration {
|
1349
|
-
context?: string | null;
|
1350
|
-
entitlement?: EntitlementStub;
|
1351
|
-
}
|
1352
1506
|
export interface CreatorUpdateAppStub {
|
1353
1507
|
id: string;
|
1354
1508
|
created_at: string;
|
@@ -1360,7 +1514,7 @@ export interface CreatorUpdateAppStub {
|
|
1360
1514
|
attachments?: Array<CreatorUpdateAttachmentStub>;
|
1361
1515
|
attachment_paywall?: AppPaywallConfiguration | null;
|
1362
1516
|
}
|
1363
|
-
export type FeedItemData =
|
1517
|
+
export type FeedItemData = AppYoutubeVideo | AppContentCard | CreatorUpdateAppStub;
|
1364
1518
|
export declare enum ReactionType {
|
1365
1519
|
emoji = "emoji",
|
1366
1520
|
custom = "custom"
|
@@ -1447,14 +1601,6 @@ export interface UpdateFeedItemRequestBody {
|
|
1447
1601
|
export interface CreateCommentRequestBody {
|
1448
1602
|
body: string;
|
1449
1603
|
}
|
1450
|
-
export interface TenantUserStub {
|
1451
|
-
id: string;
|
1452
|
-
tenant_id: string;
|
1453
|
-
name?: string | null;
|
1454
|
-
avatar?: ImageAssetStub | null;
|
1455
|
-
verified?: boolean | null;
|
1456
|
-
roles?: Array<TenantUserRoleStub> | null;
|
1457
|
-
}
|
1458
1604
|
export interface Comment {
|
1459
1605
|
id: string;
|
1460
1606
|
created_at: string;
|
@@ -1513,17 +1659,6 @@ export interface SubmitCommentReviewRequestBody {
|
|
1513
1659
|
status: SubmitCommentReviewStatus;
|
1514
1660
|
note?: string | null;
|
1515
1661
|
}
|
1516
|
-
export interface CreateReactionRequestBody {
|
1517
|
-
option_id: string;
|
1518
|
-
}
|
1519
|
-
export interface Reaction {
|
1520
|
-
id: string;
|
1521
|
-
created_at: string;
|
1522
|
-
updated_at: string;
|
1523
|
-
deleted_at?: string | null;
|
1524
|
-
option_id: string;
|
1525
|
-
user_id: string;
|
1526
|
-
}
|
1527
1662
|
export interface SubmitFeedbackFormResponseBody {
|
1528
1663
|
}
|
1529
1664
|
export interface FeedbackFormResponse {
|
@@ -2598,17 +2733,6 @@ export interface CreateChannelRequestBody {
|
|
2598
2733
|
apns?: CreateApnsChannelRequestBody;
|
2599
2734
|
inbox?: CreateInboxChannelRequestBody;
|
2600
2735
|
}
|
2601
|
-
export interface Channel {
|
2602
|
-
id: string;
|
2603
|
-
created_at: string;
|
2604
|
-
updated_at: string;
|
2605
|
-
deleted_at?: string | null;
|
2606
|
-
type: ChannelType;
|
2607
|
-
name: string;
|
2608
|
-
description?: string | null;
|
2609
|
-
apns?: CreateApnsChannelRequestBody;
|
2610
|
-
inbox?: CreateInboxChannelRequestBody;
|
2611
|
-
}
|
2612
2736
|
export interface NotificationTemplate {
|
2613
2737
|
id: string;
|
2614
2738
|
created_at: string;
|
@@ -3400,6 +3524,7 @@ export interface Tenant {
|
|
3400
3524
|
subdomain?: string | null;
|
3401
3525
|
is_test: boolean;
|
3402
3526
|
parent_tenant_id?: string | null;
|
3527
|
+
display_name?: string | null;
|
3403
3528
|
logo?: ImageAssetStub | null;
|
3404
3529
|
issuer: string;
|
3405
3530
|
domains: Array<Domain> | null;
|
@@ -3834,6 +3959,7 @@ export interface CreateTenantUserIdentityRequestBody {
|
|
3834
3959
|
}
|
3835
3960
|
export interface UpdateTenantRequestBody {
|
3836
3961
|
name?: string;
|
3962
|
+
display_name?: string | null;
|
3837
3963
|
subdomain?: string | null;
|
3838
3964
|
onboarding_skipped?: boolean;
|
3839
3965
|
onboarding_goal?: TenantOnboardingGoal | null;
|
@@ -4261,6 +4387,23 @@ declare class ParraAPI {
|
|
4261
4387
|
addEntitlementToProduct: (tenant_id: string, product_id: string, body: CreateProductEntitlementRequestBody, options?: Options) => Promise<ProductEntitlement>;
|
4262
4388
|
updateProductEntitlement: (tenant_id: string, product_id: string, product_entitlement_id: string, body?: UpdateProductEntitlementRequestBody, options?: Options) => Promise<ProductEntitlement>;
|
4263
4389
|
deleteProductEntitlement: (tenant_id: string, product_id: string, product_entitlement_id: string, options?: Options) => Promise<Response>;
|
4390
|
+
createChatChannel: (tenant_id: string, body?: CreateChatChannelRequestBody, options?: Options) => Promise<Channel>;
|
4391
|
+
paginateChatChannels: (tenant_id: string, query?: {
|
4392
|
+
type?: string;
|
4393
|
+
limit?: number;
|
4394
|
+
offset?: number;
|
4395
|
+
}, options?: Options) => Promise<ChannelCollectionResponse>;
|
4396
|
+
updateChatChannel: (tenant_id: string, channel_id: string, body?: UpdateChatChannelRequestBody, options?: Options) => Promise<Channel>;
|
4397
|
+
deleteChatChannel: (tenant_id: string, channel_id: string, options?: Options) => Promise<Response>;
|
4398
|
+
paginateMessagesForChatChannel: (tenant_id: string, channel_id: string, query?: {
|
4399
|
+
limit?: number;
|
4400
|
+
offset?: number;
|
4401
|
+
}, options?: Options) => Promise<MessageCollectionResponse>;
|
4402
|
+
createMessageForChatChannel: (tenant_id: string, channel_id: string, body: CreateMessageRequestBody, options?: Options) => Promise<Message>;
|
4403
|
+
deleteChatMessage: (tenant_id: string, message_id: string, options?: Options) => Promise<Response>;
|
4404
|
+
flagChatMessage: (tenant_id: string, message_id: string, body?: FlagMessageRequestBody, options?: Options) => Promise<Response>;
|
4405
|
+
addReactionToChatMessage: (tenant_id: string, message_id: string, body: CreateReactionRequestBody, options?: Options) => Promise<Reaction>;
|
4406
|
+
removeReactionFromChatMessage: (tenant_id: string, message_id: string, reaction_id: string, options?: Options) => Promise<Response>;
|
4264
4407
|
listAppFaqs: (tenant_id: string, application_id: string, query?: {
|
4265
4408
|
app_area_id?: string;
|
4266
4409
|
}, options?: Options) => Promise<AppFaqView>;
|
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 = void 0;
|
14
|
+
exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.SsoProvider = 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.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.FeedbackFormFieldType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.AppPaywallType = exports.SubscriptionStatus = exports.Interval = exports.Currency = 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.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = void 0;
|
16
16
|
var TicketType;
|
17
17
|
(function (TicketType) {
|
18
18
|
TicketType["bug"] = "bug";
|
@@ -119,6 +119,11 @@ var SubscriptionStatus;
|
|
119
119
|
SubscriptionStatus["canceled"] = "canceled";
|
120
120
|
SubscriptionStatus["unpaid"] = "unpaid";
|
121
121
|
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|
122
|
+
var AppPaywallType;
|
123
|
+
(function (AppPaywallType) {
|
124
|
+
AppPaywallType["apple"] = "apple";
|
125
|
+
AppPaywallType["parra"] = "parra";
|
126
|
+
})(AppPaywallType || (exports.AppPaywallType = AppPaywallType = {}));
|
122
127
|
var BillingSourceType;
|
123
128
|
(function (BillingSourceType) {
|
124
129
|
BillingSourceType["stripe"] = "stripe";
|
@@ -129,6 +134,33 @@ var BillingSourceType;
|
|
129
134
|
BillingSourceType["microsoft"] = "microsoft";
|
130
135
|
BillingSourceType["other"] = "other";
|
131
136
|
})(BillingSourceType || (exports.BillingSourceType = BillingSourceType = {}));
|
137
|
+
var ChatChannelType;
|
138
|
+
(function (ChatChannelType) {
|
139
|
+
ChatChannelType["paidDm"] = "paid_dm";
|
140
|
+
ChatChannelType["dm"] = "dm";
|
141
|
+
ChatChannelType["default"] = "default";
|
142
|
+
ChatChannelType["app"] = "app";
|
143
|
+
ChatChannelType["group"] = "group";
|
144
|
+
ChatChannelType["user"] = "user";
|
145
|
+
})(ChatChannelType || (exports.ChatChannelType = ChatChannelType = {}));
|
146
|
+
var ChatChannelStatus;
|
147
|
+
(function (ChatChannelStatus) {
|
148
|
+
ChatChannelStatus["active"] = "active";
|
149
|
+
ChatChannelStatus["closed"] = "closed";
|
150
|
+
ChatChannelStatus["archived"] = "archived";
|
151
|
+
})(ChatChannelStatus || (exports.ChatChannelStatus = ChatChannelStatus = {}));
|
152
|
+
var ChannelMemberType;
|
153
|
+
(function (ChannelMemberType) {
|
154
|
+
ChannelMemberType["tenantUser"] = "tenant_user";
|
155
|
+
ChannelMemberType["user"] = "user";
|
156
|
+
ChannelMemberType["bot"] = "bot";
|
157
|
+
})(ChannelMemberType || (exports.ChannelMemberType = ChannelMemberType = {}));
|
158
|
+
var ChannelMemberRole;
|
159
|
+
(function (ChannelMemberRole) {
|
160
|
+
ChannelMemberRole["admin"] = "admin";
|
161
|
+
ChannelMemberRole["member"] = "member";
|
162
|
+
ChannelMemberRole["guest"] = "guest";
|
163
|
+
})(ChannelMemberRole || (exports.ChannelMemberRole = ChannelMemberRole = {}));
|
132
164
|
var FeedbackFormFieldType;
|
133
165
|
(function (FeedbackFormFieldType) {
|
134
166
|
FeedbackFormFieldType["text"] = "text";
|
@@ -688,6 +720,56 @@ var ParraAPI = /** @class */ (function () {
|
|
688
720
|
if (options === void 0) { options = {}; }
|
689
721
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id, "/entitlements/").concat(product_entitlement_id), __assign({ method: "delete" }, options));
|
690
722
|
};
|
723
|
+
this.createChatChannel = function (tenant_id, body, options) {
|
724
|
+
if (options === void 0) { options = {}; }
|
725
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
726
|
+
"content-type": "application/json",
|
727
|
+
} }, options));
|
728
|
+
};
|
729
|
+
this.paginateChatChannels = function (tenant_id, query, options) {
|
730
|
+
if (options === void 0) { options = {}; }
|
731
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels"), __assign({ method: "get", query: query }, options));
|
732
|
+
};
|
733
|
+
this.updateChatChannel = function (tenant_id, channel_id, body, options) {
|
734
|
+
if (options === void 0) { options = {}; }
|
735
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
|
736
|
+
"content-type": "application/json",
|
737
|
+
} }, options));
|
738
|
+
};
|
739
|
+
this.deleteChatChannel = function (tenant_id, channel_id, options) {
|
740
|
+
if (options === void 0) { options = {}; }
|
741
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id), __assign({ method: "delete" }, options));
|
742
|
+
};
|
743
|
+
this.paginateMessagesForChatChannel = function (tenant_id, channel_id, query, options) {
|
744
|
+
if (options === void 0) { options = {}; }
|
745
|
+
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));
|
746
|
+
};
|
747
|
+
this.createMessageForChatChannel = function (tenant_id, channel_id, body, options) {
|
748
|
+
if (options === void 0) { options = {}; }
|
749
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/messages"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
750
|
+
"content-type": "application/json",
|
751
|
+
} }, options));
|
752
|
+
};
|
753
|
+
this.deleteChatMessage = function (tenant_id, message_id, options) {
|
754
|
+
if (options === void 0) { options = {}; }
|
755
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id), __assign({ method: "delete" }, options));
|
756
|
+
};
|
757
|
+
this.flagChatMessage = function (tenant_id, message_id, body, options) {
|
758
|
+
if (options === void 0) { options = {}; }
|
759
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id, "/flag"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
760
|
+
"content-type": "application/json",
|
761
|
+
}, raw: true }, options));
|
762
|
+
};
|
763
|
+
this.addReactionToChatMessage = function (tenant_id, message_id, body, options) {
|
764
|
+
if (options === void 0) { options = {}; }
|
765
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id, "/reactions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
766
|
+
"content-type": "application/json",
|
767
|
+
} }, options));
|
768
|
+
};
|
769
|
+
this.removeReactionFromChatMessage = function (tenant_id, message_id, reaction_id, options) {
|
770
|
+
if (options === void 0) { options = {}; }
|
771
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id, "/reactions/").concat(reaction_id), __assign({ method: "delete" }, options));
|
772
|
+
};
|
691
773
|
this.listAppFaqs = function (tenant_id, application_id, query, options) {
|
692
774
|
if (options === void 0) { options = {}; }
|
693
775
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/faqs"), __assign({ method: "get", query: query }, options));
|