Skip to content

Commit

Permalink
Merge branch 'master' of github.com:plhery/node-twitter-api-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
alkihis committed May 20, 2022
2 parents 6fed5ea + 66822a6 commit 857e3cc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.12.1
------
- Fix: missing id prop of TweetEntityMentionV2 #274 (@lima-eduardo)
- Fix: add place_id to SendTweetV1Params #287 (@viniciuskneves)

1.12.0
------
- Feat: Update plugin API to support response overloading on error #248
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twitter-api-v2",
"version": "1.12.0",
"version": "1.12.1",
"description": "Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/types/v1/tweet.v1.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export interface SendTweetV1Params extends AskTweetV1Params {
enable_dmcommands?: BooleanString;
fail_dmcommands?: BooleanString;
card_uri?: string;
place_id?: string;
}

export type TUploadTypeV1 = 'mp4' | 'longmp4' | 'gif' | 'jpg' | 'png' | 'srt' | 'webp';
Expand Down
4 changes: 2 additions & 2 deletions src/types/v2/spaces.v2.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { TypeOrArrayOf } from '../shared.types';
import type { DataMetaAndIncludeV2, DataV2 } from './shared.v2.types';
import type { DataAndIncludeV2, DataMetaAndIncludeV2 } from './shared.v2.types';
import type { TTweetv2UserField } from './tweet.v2.types';
import type { UsersV2Params, UsersV2Result, UserV2 } from './user.v2.types';

Expand Down Expand Up @@ -33,7 +33,7 @@ export interface SpaceV2BuyersParams extends Partial<UsersV2Params> {}

type SpaceV2Includes = { users?: UserV2[] };

export type SpaceV2SingleResult = DataV2<SpaceV2>;
export type SpaceV2SingleResult = DataAndIncludeV2<SpaceV2, SpaceV2Includes>;
export type SpaceV2LookupResult = DataMetaAndIncludeV2<SpaceV2[], { result_count: number }, SpaceV2Includes>;
export type SpaceV2BuyersResult = UsersV2Result;

Expand Down
1 change: 1 addition & 0 deletions src/types/v2/tweet.definition.v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export interface TweetEntityMentionV2 {
start: number;
end: number;
username: string;
id: string;
}

export interface TweetEntitiesV2 {
Expand Down

0 comments on commit 857e3cc

Please sign in to comment.