tonightpass 0.0.160 → 0.0.162
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/index.d.mts +37 -26
- package/dist/index.d.ts +37 -26
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -247,20 +247,24 @@ type CareerEndpoints = Endpoint<"GET", "/careers/categories", CareersCategory[],
|
|
|
247
247
|
cityNameLike?: string;
|
|
248
248
|
}>;
|
|
249
249
|
|
|
250
|
-
declare enum
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
250
|
+
declare enum ChannelMessageReportReason {
|
|
251
|
+
Dislike = "dislike",
|
|
252
|
+
HarassmentSelf = "harassment_self",
|
|
253
|
+
HarassmentOther = "harassment_other",
|
|
254
|
+
SexualHarassmentSelf = "sexual_harassment_self",
|
|
255
|
+
NudesSelf = "nudes_self",
|
|
256
|
+
SexualContent = "sexual_content",
|
|
257
|
+
ChildInvolved = "child_involved",
|
|
258
|
+
ThreatTarget = "threat_target",
|
|
259
|
+
ViolentContent = "violent_content",
|
|
260
|
+
HateSpeech = "hate_speech",
|
|
261
|
+
Terrorism = "terrorism",
|
|
262
|
+
DrugSale = "drug_sale",
|
|
263
|
+
WeaponSale = "weapon_sale",
|
|
264
|
+
SelfHarmConcern = "self_harm_concern",
|
|
265
|
+
SelfHarmPromotion = "self_harm_promotion",
|
|
266
|
+
Other = "other"
|
|
267
|
+
}
|
|
264
268
|
type ChannelMessageReadByEntry = {
|
|
265
269
|
participant: ChannelParticipant;
|
|
266
270
|
readAt: Date;
|
|
@@ -273,7 +277,7 @@ type ChannelMessage = Base & {
|
|
|
273
277
|
channel: Channel;
|
|
274
278
|
sender: ChannelParticipant;
|
|
275
279
|
content: string;
|
|
276
|
-
attachments:
|
|
280
|
+
attachments: string[];
|
|
277
281
|
isSent: boolean;
|
|
278
282
|
isDelivered: boolean;
|
|
279
283
|
isRead: boolean;
|
|
@@ -283,7 +287,7 @@ type ChannelMessage = Base & {
|
|
|
283
287
|
replyTo?: ChannelMessage;
|
|
284
288
|
reactions?: ChannelMessageReaction[];
|
|
285
289
|
};
|
|
286
|
-
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/@me/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/@me/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/@me/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/@me/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/@me/:channelId/messages/:messageId", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId", void> | Endpoint<"POST", "/channels/@me/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/@me/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"POST", "/channels/@me/:channelId/messages/:messageId/read", void, null> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/read", void, null>;
|
|
290
|
+
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/@me/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/@me/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/@me/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/@me/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/@me/:channelId/messages/:messageId", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId", void> | Endpoint<"POST", "/channels/@me/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/@me/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"POST", "/channels/@me/:channelId/messages/:messageId/read", void, null> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/read", void, null> | Endpoint<"POST", "/channels/@me/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/@me/:channelId/messages/:messageId/report", void, ReportChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/report", void, ReportChannelMessageDto>;
|
|
287
291
|
|
|
288
292
|
declare enum ChannelType {
|
|
289
293
|
Private = "private",
|
|
@@ -801,21 +805,20 @@ declare class AddReactionDto {
|
|
|
801
805
|
emoji: string;
|
|
802
806
|
}
|
|
803
807
|
|
|
804
|
-
declare class CreateAttachmentDto {
|
|
805
|
-
type: AttachmentType;
|
|
806
|
-
url: string;
|
|
807
|
-
filename?: string;
|
|
808
|
-
mimeType?: string;
|
|
809
|
-
}
|
|
810
808
|
declare class CreateChannelMessageDto {
|
|
811
|
-
content
|
|
812
|
-
attachments?:
|
|
809
|
+
content?: string;
|
|
810
|
+
attachments?: string[];
|
|
813
811
|
replyToId?: string;
|
|
814
812
|
}
|
|
815
813
|
|
|
816
814
|
declare class UpdateChannelMessageDto {
|
|
817
815
|
content?: string;
|
|
818
|
-
attachments?:
|
|
816
|
+
attachments?: string[];
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
declare class ReportChannelMessageDto {
|
|
820
|
+
reason: ChannelMessageReportReason;
|
|
821
|
+
description?: string;
|
|
819
822
|
}
|
|
820
823
|
|
|
821
824
|
declare class GeoPointDto implements GeoPoint {
|
|
@@ -1149,6 +1152,10 @@ declare const channels: (client: Client) => {
|
|
|
1149
1152
|
removeReactionByOrganization: (organizationSlug: string, channelId: string, messageId: string, emoji: string) => Promise<void>;
|
|
1150
1153
|
markAsRead: (channelId: string, messageId: string) => Promise<void>;
|
|
1151
1154
|
markAsReadByOrganization: (organizationSlug: string, channelId: string, messageId: string) => Promise<void>;
|
|
1155
|
+
uploadFile: (channelId: string, file: FormData) => Promise<string>;
|
|
1156
|
+
uploadFileByOrganization: (organizationSlug: string, channelId: string, file: FormData) => Promise<string>;
|
|
1157
|
+
report: (channelId: string, messageId: string, data: ReportChannelMessageDto) => Promise<void>;
|
|
1158
|
+
reportByOrganization: (organizationSlug: string, channelId: string, messageId: string, data: ReportChannelMessageDto) => Promise<void>;
|
|
1152
1159
|
};
|
|
1153
1160
|
};
|
|
1154
1161
|
|
|
@@ -1339,6 +1346,10 @@ declare class TonightPass {
|
|
|
1339
1346
|
removeReactionByOrganization: (organizationSlug: string, channelId: string, messageId: string, emoji: string) => Promise<void>;
|
|
1340
1347
|
markAsRead: (channelId: string, messageId: string) => Promise<void>;
|
|
1341
1348
|
markAsReadByOrganization: (organizationSlug: string, channelId: string, messageId: string) => Promise<void>;
|
|
1349
|
+
uploadFile: (channelId: string, file: FormData) => Promise<string>;
|
|
1350
|
+
uploadFileByOrganization: (organizationSlug: string, channelId: string, file: FormData) => Promise<string>;
|
|
1351
|
+
report: (channelId: string, messageId: string, data: ReportChannelMessageDto) => Promise<void>;
|
|
1352
|
+
reportByOrganization: (organizationSlug: string, channelId: string, messageId: string, data: ReportChannelMessageDto) => Promise<void>;
|
|
1342
1353
|
};
|
|
1343
1354
|
};
|
|
1344
1355
|
readonly health: {
|
|
@@ -1448,4 +1459,4 @@ declare class TonightPass {
|
|
|
1448
1459
|
declare const isBrowser: boolean;
|
|
1449
1460
|
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
1450
1461
|
|
|
1451
|
-
export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type
|
|
1462
|
+
export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, ChannelMemberRole, type ChannelMessage, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, ChannelMessageReportReason, type ChannelParticipant, ChannelStatus, ChannelType, Client, type ClientOptions, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type ExchangeRates, type ExcludeBase, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type PublicUser, type QueryParams, REGEX, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, channels, currencies, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
package/dist/index.d.ts
CHANGED
|
@@ -247,20 +247,24 @@ type CareerEndpoints = Endpoint<"GET", "/careers/categories", CareersCategory[],
|
|
|
247
247
|
cityNameLike?: string;
|
|
248
248
|
}>;
|
|
249
249
|
|
|
250
|
-
declare enum
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
250
|
+
declare enum ChannelMessageReportReason {
|
|
251
|
+
Dislike = "dislike",
|
|
252
|
+
HarassmentSelf = "harassment_self",
|
|
253
|
+
HarassmentOther = "harassment_other",
|
|
254
|
+
SexualHarassmentSelf = "sexual_harassment_self",
|
|
255
|
+
NudesSelf = "nudes_self",
|
|
256
|
+
SexualContent = "sexual_content",
|
|
257
|
+
ChildInvolved = "child_involved",
|
|
258
|
+
ThreatTarget = "threat_target",
|
|
259
|
+
ViolentContent = "violent_content",
|
|
260
|
+
HateSpeech = "hate_speech",
|
|
261
|
+
Terrorism = "terrorism",
|
|
262
|
+
DrugSale = "drug_sale",
|
|
263
|
+
WeaponSale = "weapon_sale",
|
|
264
|
+
SelfHarmConcern = "self_harm_concern",
|
|
265
|
+
SelfHarmPromotion = "self_harm_promotion",
|
|
266
|
+
Other = "other"
|
|
267
|
+
}
|
|
264
268
|
type ChannelMessageReadByEntry = {
|
|
265
269
|
participant: ChannelParticipant;
|
|
266
270
|
readAt: Date;
|
|
@@ -273,7 +277,7 @@ type ChannelMessage = Base & {
|
|
|
273
277
|
channel: Channel;
|
|
274
278
|
sender: ChannelParticipant;
|
|
275
279
|
content: string;
|
|
276
|
-
attachments:
|
|
280
|
+
attachments: string[];
|
|
277
281
|
isSent: boolean;
|
|
278
282
|
isDelivered: boolean;
|
|
279
283
|
isRead: boolean;
|
|
@@ -283,7 +287,7 @@ type ChannelMessage = Base & {
|
|
|
283
287
|
replyTo?: ChannelMessage;
|
|
284
288
|
reactions?: ChannelMessageReaction[];
|
|
285
289
|
};
|
|
286
|
-
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/@me/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/@me/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/@me/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/@me/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/@me/:channelId/messages/:messageId", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId", void> | Endpoint<"POST", "/channels/@me/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/@me/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"POST", "/channels/@me/:channelId/messages/:messageId/read", void, null> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/read", void, null>;
|
|
290
|
+
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/@me/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/@me/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/@me/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/@me/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/@me/:channelId/messages/:messageId", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId", void> | Endpoint<"POST", "/channels/@me/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/@me/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"POST", "/channels/@me/:channelId/messages/:messageId/read", void, null> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/read", void, null> | Endpoint<"POST", "/channels/@me/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/@me/:channelId/messages/:messageId/report", void, ReportChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/report", void, ReportChannelMessageDto>;
|
|
287
291
|
|
|
288
292
|
declare enum ChannelType {
|
|
289
293
|
Private = "private",
|
|
@@ -801,21 +805,20 @@ declare class AddReactionDto {
|
|
|
801
805
|
emoji: string;
|
|
802
806
|
}
|
|
803
807
|
|
|
804
|
-
declare class CreateAttachmentDto {
|
|
805
|
-
type: AttachmentType;
|
|
806
|
-
url: string;
|
|
807
|
-
filename?: string;
|
|
808
|
-
mimeType?: string;
|
|
809
|
-
}
|
|
810
808
|
declare class CreateChannelMessageDto {
|
|
811
|
-
content
|
|
812
|
-
attachments?:
|
|
809
|
+
content?: string;
|
|
810
|
+
attachments?: string[];
|
|
813
811
|
replyToId?: string;
|
|
814
812
|
}
|
|
815
813
|
|
|
816
814
|
declare class UpdateChannelMessageDto {
|
|
817
815
|
content?: string;
|
|
818
|
-
attachments?:
|
|
816
|
+
attachments?: string[];
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
declare class ReportChannelMessageDto {
|
|
820
|
+
reason: ChannelMessageReportReason;
|
|
821
|
+
description?: string;
|
|
819
822
|
}
|
|
820
823
|
|
|
821
824
|
declare class GeoPointDto implements GeoPoint {
|
|
@@ -1149,6 +1152,10 @@ declare const channels: (client: Client) => {
|
|
|
1149
1152
|
removeReactionByOrganization: (organizationSlug: string, channelId: string, messageId: string, emoji: string) => Promise<void>;
|
|
1150
1153
|
markAsRead: (channelId: string, messageId: string) => Promise<void>;
|
|
1151
1154
|
markAsReadByOrganization: (organizationSlug: string, channelId: string, messageId: string) => Promise<void>;
|
|
1155
|
+
uploadFile: (channelId: string, file: FormData) => Promise<string>;
|
|
1156
|
+
uploadFileByOrganization: (organizationSlug: string, channelId: string, file: FormData) => Promise<string>;
|
|
1157
|
+
report: (channelId: string, messageId: string, data: ReportChannelMessageDto) => Promise<void>;
|
|
1158
|
+
reportByOrganization: (organizationSlug: string, channelId: string, messageId: string, data: ReportChannelMessageDto) => Promise<void>;
|
|
1152
1159
|
};
|
|
1153
1160
|
};
|
|
1154
1161
|
|
|
@@ -1339,6 +1346,10 @@ declare class TonightPass {
|
|
|
1339
1346
|
removeReactionByOrganization: (organizationSlug: string, channelId: string, messageId: string, emoji: string) => Promise<void>;
|
|
1340
1347
|
markAsRead: (channelId: string, messageId: string) => Promise<void>;
|
|
1341
1348
|
markAsReadByOrganization: (organizationSlug: string, channelId: string, messageId: string) => Promise<void>;
|
|
1349
|
+
uploadFile: (channelId: string, file: FormData) => Promise<string>;
|
|
1350
|
+
uploadFileByOrganization: (organizationSlug: string, channelId: string, file: FormData) => Promise<string>;
|
|
1351
|
+
report: (channelId: string, messageId: string, data: ReportChannelMessageDto) => Promise<void>;
|
|
1352
|
+
reportByOrganization: (organizationSlug: string, channelId: string, messageId: string, data: ReportChannelMessageDto) => Promise<void>;
|
|
1342
1353
|
};
|
|
1343
1354
|
};
|
|
1344
1355
|
readonly health: {
|
|
@@ -1448,4 +1459,4 @@ declare class TonightPass {
|
|
|
1448
1459
|
declare const isBrowser: boolean;
|
|
1449
1460
|
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
1450
1461
|
|
|
1451
|
-
export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type
|
|
1462
|
+
export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, ChannelMemberRole, type ChannelMessage, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, ChannelMessageReportReason, type ChannelParticipant, ChannelStatus, ChannelType, Client, type ClientOptions, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type ExchangeRates, type ExcludeBase, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type PublicUser, type QueryParams, REGEX, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, channels, currencies, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|