tonightpass 0.0.191 → 0.0.192
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 +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -84,7 +84,7 @@ type UserPostMedia = {
|
|
|
84
84
|
thumbnailUrl?: string;
|
|
85
85
|
duration?: number;
|
|
86
86
|
};
|
|
87
|
-
type UserPostMediaEndpoints = Endpoint<"POST", "/users/@me/posts/media",
|
|
87
|
+
type UserPostMediaEndpoints = Endpoint<"POST", "/users/@me/posts/media", string, FormData>;
|
|
88
88
|
|
|
89
89
|
declare class CreateUserPostRepostDto$1 {
|
|
90
90
|
comment?: string;
|
|
@@ -1425,7 +1425,7 @@ declare const users: (client: Client) => {
|
|
|
1425
1425
|
create: (data: CreateUserPostDto) => Promise<UserPost>;
|
|
1426
1426
|
update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
|
|
1427
1427
|
delete: (postId: string) => Promise<void>;
|
|
1428
|
-
uploadMedia: (file: FormData) => Promise<
|
|
1428
|
+
uploadMedia: (file: FormData) => Promise<string>;
|
|
1429
1429
|
views: {
|
|
1430
1430
|
record: (username: string, postId: string) => Promise<boolean>;
|
|
1431
1431
|
};
|
|
@@ -1439,7 +1439,7 @@ declare const users: (client: Client) => {
|
|
|
1439
1439
|
postsReposts: {
|
|
1440
1440
|
getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
|
|
1441
1441
|
getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
|
|
1442
|
-
create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost |
|
|
1442
|
+
create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost | null>;
|
|
1443
1443
|
delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
|
|
1444
1444
|
};
|
|
1445
1445
|
};
|
|
@@ -1644,7 +1644,7 @@ declare class TonightPass {
|
|
|
1644
1644
|
create: (data: CreateUserPostDto) => Promise<UserPost>;
|
|
1645
1645
|
update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
|
|
1646
1646
|
delete: (postId: string) => Promise<void>;
|
|
1647
|
-
uploadMedia: (file: FormData) => Promise<
|
|
1647
|
+
uploadMedia: (file: FormData) => Promise<string>;
|
|
1648
1648
|
views: {
|
|
1649
1649
|
record: (username: string, postId: string) => Promise<boolean>;
|
|
1650
1650
|
};
|
|
@@ -1658,7 +1658,7 @@ declare class TonightPass {
|
|
|
1658
1658
|
postsReposts: {
|
|
1659
1659
|
getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
|
|
1660
1660
|
getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
|
|
1661
|
-
create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost |
|
|
1661
|
+
create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost | null>;
|
|
1662
1662
|
delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
|
|
1663
1663
|
};
|
|
1664
1664
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ type UserPostMedia = {
|
|
|
84
84
|
thumbnailUrl?: string;
|
|
85
85
|
duration?: number;
|
|
86
86
|
};
|
|
87
|
-
type UserPostMediaEndpoints = Endpoint<"POST", "/users/@me/posts/media",
|
|
87
|
+
type UserPostMediaEndpoints = Endpoint<"POST", "/users/@me/posts/media", string, FormData>;
|
|
88
88
|
|
|
89
89
|
declare class CreateUserPostRepostDto$1 {
|
|
90
90
|
comment?: string;
|
|
@@ -1425,7 +1425,7 @@ declare const users: (client: Client) => {
|
|
|
1425
1425
|
create: (data: CreateUserPostDto) => Promise<UserPost>;
|
|
1426
1426
|
update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
|
|
1427
1427
|
delete: (postId: string) => Promise<void>;
|
|
1428
|
-
uploadMedia: (file: FormData) => Promise<
|
|
1428
|
+
uploadMedia: (file: FormData) => Promise<string>;
|
|
1429
1429
|
views: {
|
|
1430
1430
|
record: (username: string, postId: string) => Promise<boolean>;
|
|
1431
1431
|
};
|
|
@@ -1439,7 +1439,7 @@ declare const users: (client: Client) => {
|
|
|
1439
1439
|
postsReposts: {
|
|
1440
1440
|
getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
|
|
1441
1441
|
getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
|
|
1442
|
-
create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost |
|
|
1442
|
+
create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost | null>;
|
|
1443
1443
|
delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
|
|
1444
1444
|
};
|
|
1445
1445
|
};
|
|
@@ -1644,7 +1644,7 @@ declare class TonightPass {
|
|
|
1644
1644
|
create: (data: CreateUserPostDto) => Promise<UserPost>;
|
|
1645
1645
|
update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
|
|
1646
1646
|
delete: (postId: string) => Promise<void>;
|
|
1647
|
-
uploadMedia: (file: FormData) => Promise<
|
|
1647
|
+
uploadMedia: (file: FormData) => Promise<string>;
|
|
1648
1648
|
views: {
|
|
1649
1649
|
record: (username: string, postId: string) => Promise<boolean>;
|
|
1650
1650
|
};
|
|
@@ -1658,7 +1658,7 @@ declare class TonightPass {
|
|
|
1658
1658
|
postsReposts: {
|
|
1659
1659
|
getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
|
|
1660
1660
|
getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
|
|
1661
|
-
create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost |
|
|
1661
|
+
create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost | null>;
|
|
1662
1662
|
delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
|
|
1663
1663
|
};
|
|
1664
1664
|
};
|