rettiwt-api 1.1.7 → 1.2.0
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/.github/workflows/build-docs.yml +22 -21
- package/.github/workflows/publish-to-npm.yml +29 -0
- package/README.md +52 -40
- package/dist/config/env.d.ts +5 -5
- package/dist/config/env.js +8 -8
- package/dist/enums/Errors.d.ts +20 -20
- package/dist/enums/Errors.js +27 -27
- package/dist/enums/HTTP.d.ts +17 -17
- package/dist/enums/HTTP.js +22 -22
- package/dist/graphql/enums/Errors.d.ts +21 -21
- package/dist/graphql/enums/Errors.js +28 -28
- package/dist/graphql/queries/RootQuery.d.ts +4 -4
- package/dist/graphql/queries/RootQuery.js +77 -77
- package/dist/graphql/resolvers/AccountResolver.d.ts +12 -12
- package/dist/graphql/resolvers/AccountResolver.js +83 -83
- package/dist/graphql/resolvers/ResolverBase.d.ts +16 -16
- package/dist/graphql/resolvers/ResolverBase.js +22 -22
- package/dist/graphql/resolvers/TweetResolver.d.ts +46 -46
- package/dist/graphql/resolvers/TweetResolver.js +311 -311
- package/dist/graphql/resolvers/UserResolver.d.ts +48 -48
- package/dist/graphql/resolvers/UserResolver.js +333 -333
- package/dist/graphql/resolvers/UserResolver.js.map +1 -1
- package/dist/graphql/types/Global.d.ts +4 -4
- package/dist/graphql/types/Global.js +12 -12
- package/dist/graphql/types/TweetTypes.d.ts +4 -4
- package/dist/graphql/types/TweetTypes.js +159 -159
- package/dist/graphql/types/UserTypes.d.ts +3 -3
- package/dist/graphql/types/UserTypes.js +136 -136
- package/dist/graphql/types/UserTypes.js.map +1 -1
- package/dist/index.d.ts +43 -43
- package/dist/index.js +70 -70
- package/dist/models/args/TweetFilter.d.ts +65 -59
- package/dist/models/args/TweetFilter.js +120 -100
- package/dist/models/args/TweetFilter.js.map +1 -1
- package/dist/models/args/TweetListArgs.d.ts +21 -21
- package/dist/models/args/TweetListArgs.js +53 -53
- package/dist/models/args/UserListArgs.d.ts +21 -21
- package/dist/models/args/UserListArgs.js +53 -53
- package/dist/models/auth/AuthCookie.d.ts +21 -21
- package/dist/models/auth/AuthCookie.js +32 -32
- package/dist/models/data/CursoredData.d.ts +34 -34
- package/dist/models/data/CursoredData.js +41 -41
- package/dist/models/data/Tweet.d.ts +53 -53
- package/dist/models/data/Tweet.js +103 -103
- package/dist/models/data/User.d.ts +41 -41
- package/dist/models/data/User.js +31 -31
- package/dist/models/errors/DataValidationError.d.ts +20 -20
- package/dist/models/errors/DataValidationError.js +22 -22
- package/dist/server.d.ts +1 -1
- package/dist/server.js +75 -75
- package/dist/services/auth/AccountService.d.ts +83 -88
- package/dist/services/auth/AccountService.js +411 -391
- package/dist/services/auth/AccountService.js.map +1 -1
- package/dist/services/auth/AuthService.d.ts +31 -31
- package/dist/services/auth/AuthService.js +117 -117
- package/dist/services/data/TweetService.d.ts +60 -74
- package/dist/services/data/TweetService.js +251 -254
- package/dist/services/data/TweetService.js.map +1 -1
- package/dist/services/data/UserService.d.ts +71 -87
- package/dist/services/data/UserService.js +287 -296
- package/dist/services/data/UserService.js.map +1 -1
- package/dist/services/helper/Headers.d.ts +19 -19
- package/dist/services/helper/Headers.js +61 -61
- package/dist/services/helper/Parser.d.ts +22 -28
- package/dist/services/helper/Parser.js +83 -104
- package/dist/services/helper/Parser.js.map +1 -1
- package/dist/services/helper/extractors/Tweets.d.ts +32 -32
- package/dist/services/helper/extractors/Tweets.js +263 -263
- package/dist/services/helper/extractors/Users.d.ts +26 -26
- package/dist/services/helper/extractors/Users.js +202 -202
- package/dist/services/helper/payloads/LoginFlows.d.ts +77 -77
- package/dist/services/helper/payloads/LoginFlows.js +91 -91
- package/dist/services/helper/urls/Authentication.d.ts +4 -4
- package/dist/services/helper/urls/Authentication.js +10 -10
- package/dist/services/util/CacheService.d.ts +33 -33
- package/dist/services/util/CacheService.js +95 -95
- package/dist/services/util/FetcherService.d.ts +65 -65
- package/dist/services/util/FetcherService.js +213 -213
- package/dist/twitter/Url.d.ts +22 -0
- package/dist/twitter/Url.js +32 -0
- package/dist/twitter/Url.js.map +1 -0
- package/dist/twitter/enums/Resources.d.ts +15 -0
- package/dist/twitter/enums/Resources.js +21 -0
- package/dist/twitter/enums/Resources.js.map +1 -0
- package/dist/twitter/params/Query.d.ts +67 -0
- package/dist/twitter/params/Query.js +64 -0
- package/dist/twitter/params/Query.js.map +1 -0
- package/dist/twitter/payloads/Args.d.ts +16 -0
- package/dist/twitter/payloads/Args.js +16 -0
- package/dist/twitter/payloads/Args.js.map +1 -0
- package/dist/{types/raw/query/tweet/Engagements.d.ts → twitter/payloads/Features.d.ts} +28 -29
- package/dist/twitter/payloads/Features.js +37 -0
- package/dist/twitter/payloads/Features.js.map +1 -0
- package/dist/twitter/payloads/Variables.d.ts +41 -0
- package/dist/twitter/payloads/Variables.js +64 -0
- package/dist/twitter/payloads/Variables.js.map +1 -0
- package/dist/{types → twitter/types/request}/Query.d.ts +86 -80
- package/dist/{types/data/Tweet.js → twitter/types/request/Query.js} +4 -4
- package/dist/twitter/types/request/Query.js.map +1 -0
- package/dist/{types/raw/data → twitter/types}/tweet/Favouriters.d.ts +164 -164
- package/dist/twitter/types/tweet/Favouriters.js +3 -0
- package/dist/twitter/types/tweet/Favouriters.js.map +1 -0
- package/dist/{types/raw → twitter/types}/tweet/Retweeters.d.ts +171 -171
- package/dist/{types/Trends.js → twitter/types/tweet/Retweeters.js} +3 -3
- package/dist/twitter/types/tweet/Retweeters.js.map +1 -0
- package/dist/{types/raw/data → twitter/types}/tweet/Tweet.d.ts +746 -746
- package/dist/{types/data/User.js → twitter/types/tweet/Tweet.js} +3 -3
- package/dist/twitter/types/tweet/Tweet.js.map +1 -0
- package/dist/{types/raw → twitter/types}/tweet/Tweets.d.ts +386 -386
- package/dist/{types/raw/user/User.js → twitter/types/tweet/Tweets.js} +3 -3
- package/dist/twitter/types/tweet/Tweets.js.map +1 -0
- package/dist/{types/raw → twitter/types}/user/Followers.d.ts +176 -176
- package/dist/{types/interfaces/Rettiwt.js → twitter/types/user/Followers.js} +3 -3
- package/dist/twitter/types/user/Followers.js.map +1 -0
- package/dist/{types/raw → twitter/types}/user/Following.d.ts +176 -176
- package/dist/{types/Query.js → twitter/types/user/Following.js} +3 -3
- package/dist/twitter/types/user/Following.js.map +1 -0
- package/dist/{types/raw/data → twitter/types}/user/Likes.d.ts +1059 -1059
- package/dist/{types/interfaces/User.js → twitter/types/user/Likes.js} +3 -3
- package/dist/twitter/types/user/Likes.js.map +1 -0
- package/dist/{types/raw → twitter/types}/user/Tweets.d.ts +1512 -1512
- package/dist/twitter/types/user/Tweets.js +3 -0
- package/dist/twitter/types/user/Tweets.js.map +1 -0
- package/dist/{types/raw → twitter/types}/user/User.d.ts +117 -117
- package/dist/{types/raw/data → twitter/types}/user/User.js +2 -2
- package/dist/{types/data → twitter/types/user}/User.js.map +1 -1
- package/dist/types/Args.d.ts +38 -38
- package/dist/types/Args.js +4 -4
- package/dist/types/Authentication.d.ts +55 -55
- package/dist/types/Authentication.js +5 -5
- package/dist/types/Resolvers.d.ts +15 -15
- package/dist/types/Resolvers.js +2 -2
- package/dist/types/Rettiwt.d.ts +16 -16
- package/dist/types/Rettiwt.js +2 -2
- package/dist/types/Service.d.ts +22 -22
- package/dist/types/Service.js +4 -4
- package/dist/types/Tweet.d.ts +46 -46
- package/dist/types/Tweet.js +2 -2
- package/dist/types/User.d.ts +35 -35
- package/dist/types/User.js +2 -2
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +64 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1280 -0
- package/docs/classes/AccountService.html +286 -0
- package/docs/classes/AuthCookie.html +146 -0
- package/docs/classes/AuthService.html +147 -0
- package/docs/classes/CacheService.html +157 -0
- package/docs/classes/Cursor.html +102 -0
- package/docs/classes/CursoredData.html +126 -0
- package/docs/classes/DataValidationError.html +119 -0
- package/docs/classes/FetcherService.html +225 -0
- package/docs/classes/Tweet.html +210 -0
- package/docs/classes/TweetEntities.html +128 -0
- package/docs/classes/TweetFilter.html +221 -0
- package/docs/classes/TweetListArgs.html +118 -0
- package/docs/classes/TweetService.html +319 -0
- package/docs/classes/User.html +230 -0
- package/docs/classes/UserListArgs.html +118 -0
- package/docs/classes/UserService.html +355 -0
- package/docs/enums/HttpMethods.html +74 -0
- package/docs/functions/Rettiwt.html +99 -0
- package/docs/index.html +158 -0
- package/docs/interfaces/IAuthCookie.html +104 -0
- package/docs/interfaces/ICursor.html +77 -0
- package/docs/interfaces/ICursoredData.html +93 -0
- package/docs/interfaces/IDataContext.html +91 -0
- package/docs/interfaces/IListArgs.html +87 -0
- package/docs/interfaces/ITweet.html +176 -0
- package/docs/interfaces/ITweetEntities.html +104 -0
- package/docs/interfaces/ITweetFilter.html +158 -0
- package/docs/interfaces/IUser.html +194 -0
- package/docs/modules.html +109 -0
- package/package.json +2 -2
- package/src/graphql/resolvers/UserResolver.ts +4 -4
- package/src/graphql/types/UserTypes.ts +1 -1
- package/src/models/args/TweetFilter.ts +25 -4
- package/src/models/data/Tweet.ts +1 -1
- package/src/models/data/User.ts +1 -1
- package/src/services/auth/AccountService.ts +79 -53
- package/src/services/data/TweetService.ts +35 -65
- package/src/services/data/UserService.ts +42 -48
- package/src/services/helper/Parser.ts +3 -24
- package/src/services/helper/extractors/Tweets.ts +4 -4
- package/src/services/helper/extractors/Users.ts +5 -5
- package/src/services/util/FetcherService.ts +4 -4
- package/src/twitter/Url.ts +37 -0
- package/src/twitter/enums/Resources.ts +15 -0
- package/src/twitter/params/Query.ts +100 -0
- package/src/twitter/payloads/Args.ts +21 -0
- package/src/twitter/payloads/Features.ts +33 -0
- package/src/twitter/payloads/Variables.ts +73 -0
- package/src/twitter/types/request/Query.ts +91 -0
- package/src/{types/raw → twitter/types}/user/Tweets.ts +1747 -1747
- package/src/types/Args.ts +1 -1
- package/dist/Test.d.ts +0 -0
- package/dist/Test.js +0 -2
- package/dist/Test.js.map +0 -1
- package/dist/endpoints/Endpoints.d.ts +0 -14
- package/dist/endpoints/Endpoints.js +0 -20
- package/dist/endpoints/Endpoints.js.map +0 -1
- package/dist/endpoints/Url.d.ts +0 -5
- package/dist/endpoints/Url.js +0 -12
- package/dist/endpoints/Url.js.map +0 -1
- package/dist/enums/Endpoints.d.ts +0 -25
- package/dist/enums/Endpoints.js +0 -31
- package/dist/enums/Endpoints.js.map +0 -1
- package/dist/graphql/types/Errors.d.ts +0 -20
- package/dist/graphql/types/Errors.js +0 -28
- package/dist/graphql/types/Errors.js.map +0 -1
- package/dist/middlewares/Authentication.d.ts +0 -0
- package/dist/middlewares/Authentication.js +0 -2
- package/dist/middlewares/Authentication.js.map +0 -1
- package/dist/models/data/DataValidationError.d.ts +0 -18
- package/dist/models/data/DataValidationError.js +0 -21
- package/dist/models/data/DataValidationError.js.map +0 -1
- package/dist/models/data/Errors.d.ts +0 -18
- package/dist/models/data/Errors.js +0 -21
- package/dist/models/data/Errors.js.map +0 -1
- package/dist/models/data/Service.d.ts +0 -33
- package/dist/models/data/Service.js +0 -41
- package/dist/models/data/Service.js.map +0 -1
- package/dist/models/graphql/Global.d.ts +0 -4
- package/dist/models/graphql/Global.js +0 -13
- package/dist/models/graphql/Global.js.map +0 -1
- package/dist/models/graphql/TweetTypes.d.ts +0 -6
- package/dist/models/graphql/TweetTypes.js +0 -156
- package/dist/models/graphql/TweetTypes.js.map +0 -1
- package/dist/models/graphql/UserTypes.d.ts +0 -3
- package/dist/models/graphql/UserTypes.js +0 -139
- package/dist/models/graphql/UserTypes.js.map +0 -1
- package/dist/models/query/Variables.d.ts +0 -2
- package/dist/models/query/Variables.js +0 -10
- package/dist/models/query/Variables.js.map +0 -1
- package/dist/queries/RootQuery.d.ts +0 -4
- package/dist/queries/RootQuery.js +0 -70
- package/dist/queries/RootQuery.js.map +0 -1
- package/dist/requests/Url.d.ts +0 -5
- package/dist/requests/Url.js +0 -12
- package/dist/requests/Url.js.map +0 -1
- package/dist/requests/payloads/Variables.d.ts +0 -23
- package/dist/requests/payloads/Variables.js +0 -24
- package/dist/requests/payloads/Variables.js.map +0 -1
- package/dist/resolvers/AccountResolver.d.ts +0 -12
- package/dist/resolvers/AccountResolver.js +0 -84
- package/dist/resolvers/AccountResolver.js.map +0 -1
- package/dist/resolvers/ResolverBase.d.ts +0 -5
- package/dist/resolvers/ResolverBase.js +0 -11
- package/dist/resolvers/ResolverBase.js.map +0 -1
- package/dist/resolvers/TweetResolver.d.ts +0 -54
- package/dist/resolvers/TweetResolver.js +0 -332
- package/dist/resolvers/TweetResolver.js.map +0 -1
- package/dist/resolvers/UserResolver.d.ts +0 -38
- package/dist/resolvers/UserResolver.js +0 -253
- package/dist/resolvers/UserResolver.js.map +0 -1
- package/dist/services/AuthService.d.ts +0 -22
- package/dist/services/AuthService.js +0 -106
- package/dist/services/AuthService.js.map +0 -1
- package/dist/services/CacheService.d.ts +0 -30
- package/dist/services/CacheService.js +0 -93
- package/dist/services/CacheService.js.map +0 -1
- package/dist/services/FetcherService.d.ts +0 -61
- package/dist/services/FetcherService.js +0 -209
- package/dist/services/FetcherService.js.map +0 -1
- package/dist/services/accounts/AccountService.d.ts +0 -65
- package/dist/services/accounts/AccountService.js +0 -336
- package/dist/services/accounts/AccountService.js.map +0 -1
- package/dist/services/accounts/LoginFlows.d.ts +0 -77
- package/dist/services/accounts/LoginFlows.js +0 -92
- package/dist/services/accounts/LoginFlows.js.map +0 -1
- package/dist/services/auth/LoginFlows.d.ts +0 -77
- package/dist/services/auth/LoginFlows.js +0 -92
- package/dist/services/auth/LoginFlows.js.map +0 -1
- package/dist/services/data/TrendService.d.ts +0 -17
- package/dist/services/data/TrendService.js +0 -116
- package/dist/services/data/TrendService.js.map +0 -1
- package/dist/services/data/UserAccountService.d.ts +0 -42
- package/dist/services/data/UserAccountService.js +0 -239
- package/dist/services/data/UserAccountService.js.map +0 -1
- package/dist/services/helper/Deserializers.d.ts +0 -19
- package/dist/services/helper/Deserializers.js +0 -115
- package/dist/services/helper/Deserializers.js.map +0 -1
- package/dist/services/helper/Extractors.d.ts +0 -104
- package/dist/services/helper/Extractors.js +0 -432
- package/dist/services/helper/Extractors.js.map +0 -1
- package/dist/services/helper/Urls.d.ts +0 -85
- package/dist/services/helper/Urls.js +0 -130
- package/dist/services/helper/Urls.js.map +0 -1
- package/dist/services/helper/deserializers/Tweets.d.ts +0 -12
- package/dist/services/helper/deserializers/Tweets.js +0 -92
- package/dist/services/helper/deserializers/Tweets.js.map +0 -1
- package/dist/services/helper/deserializers/Users.d.ts +0 -7
- package/dist/services/helper/deserializers/Users.js +0 -27
- package/dist/services/helper/deserializers/Users.js.map +0 -1
- package/dist/services/helper/extractors/Trends.d.ts +0 -3
- package/dist/services/helper/extractors/Trends.js +0 -51
- package/dist/services/helper/extractors/Trends.js.map +0 -1
- package/dist/services/helper/urls/Trends.d.ts +0 -7
- package/dist/services/helper/urls/Trends.js +0 -13
- package/dist/services/helper/urls/Trends.js.map +0 -1
- package/dist/services/helper/urls/Tweets.d.ts +0 -32
- package/dist/services/helper/urls/Tweets.js +0 -51
- package/dist/services/helper/urls/Tweets.js.map +0 -1
- package/dist/services/helper/urls/Users.d.ts +0 -38
- package/dist/services/helper/urls/Users.js +0 -76
- package/dist/services/helper/urls/Users.js.map +0 -1
- package/dist/types/HTTP.d.ts +0 -17
- package/dist/types/HTTP.js +0 -23
- package/dist/types/HTTP.js.map +0 -1
- package/dist/types/Query.js.map +0 -1
- package/dist/types/Trends.d.ts +0 -50
- package/dist/types/Trends.js.map +0 -1
- package/dist/types/UserAccount.d.ts +0 -19
- package/dist/types/UserAccount.js +0 -4
- package/dist/types/UserAccount.js.map +0 -1
- package/dist/types/args/TweetFilter.d.ts +0 -54
- package/dist/types/args/TweetFilter.js +0 -96
- package/dist/types/args/TweetFilter.js.map +0 -1
- package/dist/types/args/TweetListArg.d.ts +0 -10
- package/dist/types/args/TweetListArg.js +0 -42
- package/dist/types/args/TweetListArg.js.map +0 -1
- package/dist/types/args/TweetListArgs.d.ts +0 -20
- package/dist/types/args/TweetListArgs.js +0 -52
- package/dist/types/args/TweetListArgs.js.map +0 -1
- package/dist/types/args/UserListArgs.d.ts +0 -16
- package/dist/types/args/UserListArgs.js +0 -48
- package/dist/types/args/UserListArgs.js.map +0 -1
- package/dist/types/data/Errors.d.ts +0 -35
- package/dist/types/data/Errors.js +0 -45
- package/dist/types/data/Errors.js.map +0 -1
- package/dist/types/data/Service.d.ts +0 -43
- package/dist/types/data/Service.js +0 -22
- package/dist/types/data/Service.js.map +0 -1
- package/dist/types/data/Tweet.d.ts +0 -98
- package/dist/types/data/Tweet.js.map +0 -1
- package/dist/types/data/TweetFilter.d.ts +0 -49
- package/dist/types/data/TweetFilter.js +0 -63
- package/dist/types/data/TweetFilter.js.map +0 -1
- package/dist/types/data/User.d.ts +0 -38
- package/dist/types/graphql/Errors.d.ts +0 -15
- package/dist/types/graphql/Errors.js +0 -23
- package/dist/types/graphql/Errors.js.map +0 -1
- package/dist/types/interfaces/Args.d.ts +0 -38
- package/dist/types/interfaces/Args.js +0 -5
- package/dist/types/interfaces/Args.js.map +0 -1
- package/dist/types/interfaces/Authentication.d.ts +0 -40
- package/dist/types/interfaces/Authentication.js +0 -5
- package/dist/types/interfaces/Authentication.js.map +0 -1
- package/dist/types/interfaces/Resolvers.d.ts +0 -14
- package/dist/types/interfaces/Resolvers.js +0 -3
- package/dist/types/interfaces/Resolvers.js.map +0 -1
- package/dist/types/interfaces/Rettiwt.d.ts +0 -16
- package/dist/types/interfaces/Rettiwt.js.map +0 -1
- package/dist/types/interfaces/Service.d.ts +0 -13
- package/dist/types/interfaces/Service.js +0 -3
- package/dist/types/interfaces/Service.js.map +0 -1
- package/dist/types/interfaces/Services.d.ts +0 -13
- package/dist/types/interfaces/Services.js +0 -3
- package/dist/types/interfaces/Services.js.map +0 -1
- package/dist/types/interfaces/Tweet.d.ts +0 -46
- package/dist/types/interfaces/Tweet.js +0 -3
- package/dist/types/interfaces/Tweet.js.map +0 -1
- package/dist/types/interfaces/TweetFilter.d.ts +0 -0
- package/dist/types/interfaces/TweetFilter.js +0 -2
- package/dist/types/interfaces/TweetFilter.js.map +0 -1
- package/dist/types/interfaces/User.d.ts +0 -35
- package/dist/types/interfaces/User.js.map +0 -1
- package/dist/types/raw/auth/Cookie.d.ts +0 -16
- package/dist/types/raw/auth/Cookie.js +0 -3
- package/dist/types/raw/auth/Cookie.js.map +0 -1
- package/dist/types/raw/data/tweet/Favouriters.js +0 -3
- package/dist/types/raw/data/tweet/Favouriters.js.map +0 -1
- package/dist/types/raw/data/tweet/Retweeters.d.ts +0 -171
- package/dist/types/raw/data/tweet/Retweeters.js +0 -3
- package/dist/types/raw/data/tweet/Retweeters.js.map +0 -1
- package/dist/types/raw/data/tweet/Tweet.js +0 -3
- package/dist/types/raw/data/tweet/Tweet.js.map +0 -1
- package/dist/types/raw/data/tweet/Tweets.d.ts +0 -386
- package/dist/types/raw/data/tweet/Tweets.js +0 -3
- package/dist/types/raw/data/tweet/Tweets.js.map +0 -1
- package/dist/types/raw/data/user/Followers.d.ts +0 -176
- package/dist/types/raw/data/user/Followers.js +0 -3
- package/dist/types/raw/data/user/Followers.js.map +0 -1
- package/dist/types/raw/data/user/Following.d.ts +0 -176
- package/dist/types/raw/data/user/Following.js +0 -3
- package/dist/types/raw/data/user/Following.js.map +0 -1
- package/dist/types/raw/data/user/Likes.js +0 -3
- package/dist/types/raw/data/user/Likes.js.map +0 -1
- package/dist/types/raw/data/user/User.d.ts +0 -117
- package/dist/types/raw/data/user/User.js.map +0 -1
- package/dist/types/raw/general/Trends.d.ts +0 -324
- package/dist/types/raw/general/Trends.js +0 -3
- package/dist/types/raw/general/Trends.js.map +0 -1
- package/dist/types/raw/query/tweet/Details.d.ts +0 -80
- package/dist/types/raw/query/tweet/Details.js +0 -5
- package/dist/types/raw/query/tweet/Details.js.map +0 -1
- package/dist/types/raw/query/tweet/Engagements.js +0 -3
- package/dist/types/raw/query/tweet/Engagements.js.map +0 -1
- package/dist/types/raw/query/tweet/Likes.d.ts +0 -29
- package/dist/types/raw/query/tweet/Likes.js +0 -3
- package/dist/types/raw/query/tweet/Likes.js.map +0 -1
- package/dist/types/raw/query/tweet/Retweets.d.ts +0 -29
- package/dist/types/raw/query/tweet/Retweets.js +0 -3
- package/dist/types/raw/query/tweet/Retweets.js.map +0 -1
- package/dist/types/raw/query/tweet/Search.d.ts +0 -40
- package/dist/types/raw/query/tweet/Search.js +0 -3
- package/dist/types/raw/query/tweet/Search.js.map +0 -1
- package/dist/types/raw/query/tweet/TweetDetails.d.ts +0 -34
- package/dist/types/raw/query/tweet/TweetDetails.js +0 -5
- package/dist/types/raw/query/tweet/TweetDetails.js.map +0 -1
- package/dist/types/raw/query/tweet/TweetLike.d.ts +0 -29
- package/dist/types/raw/query/tweet/TweetLike.js +0 -3
- package/dist/types/raw/query/tweet/TweetLike.js.map +0 -1
- package/dist/types/raw/query/tweet/TweetLikes.d.ts +0 -29
- package/dist/types/raw/query/tweet/TweetLikes.js +0 -3
- package/dist/types/raw/query/tweet/TweetLikes.js.map +0 -1
- package/dist/types/raw/query/tweet/TweetRetweets.d.ts +0 -0
- package/dist/types/raw/query/tweet/TweetRetweets.js +0 -2
- package/dist/types/raw/query/tweet/TweetRetweets.js.map +0 -1
- package/dist/types/raw/query/user/Details.d.ts +0 -34
- package/dist/types/raw/query/user/Details.js +0 -3
- package/dist/types/raw/query/user/Details.js.map +0 -1
- package/dist/types/raw/tweet/Favouriters.d.ts +0 -164
- package/dist/types/raw/tweet/Favouriters.js +0 -3
- package/dist/types/raw/tweet/Favouriters.js.map +0 -1
- package/dist/types/raw/tweet/Retweeters.js +0 -3
- package/dist/types/raw/tweet/Retweeters.js.map +0 -1
- package/dist/types/raw/tweet/Tweet.d.ts +0 -746
- package/dist/types/raw/tweet/Tweet.js +0 -3
- package/dist/types/raw/tweet/Tweet.js.map +0 -1
- package/dist/types/raw/tweet/Tweets.js +0 -3
- package/dist/types/raw/tweet/Tweets.js.map +0 -1
- package/dist/types/raw/user/Followers.js +0 -3
- package/dist/types/raw/user/Followers.js.map +0 -1
- package/dist/types/raw/user/Following.js +0 -3
- package/dist/types/raw/user/Following.js.map +0 -1
- package/dist/types/raw/user/Likes.d.ts +0 -1059
- package/dist/types/raw/user/Likes.js +0 -3
- package/dist/types/raw/user/Likes.js.map +0 -1
- package/dist/types/raw/user/Tweets.js +0 -3
- package/dist/types/raw/user/Tweets.js.map +0 -1
- package/dist/types/raw/user/User.js.map +0 -1
- package/dist/types/services/args/TweetFilter.d.ts +0 -50
- package/dist/types/services/args/TweetFilter.js +0 -76
- package/dist/types/services/args/TweetFilter.js.map +0 -1
- package/src/services/helper/urls/Tweets.ts +0 -46
- package/src/services/helper/urls/Users.ts +0 -78
- /package/src/{types/raw → twitter/types}/tweet/Favouriters.ts +0 -0
- /package/src/{types/raw → twitter/types}/tweet/Retweeters.ts +0 -0
- /package/src/{types/raw → twitter/types}/tweet/Tweet.ts +0 -0
- /package/src/{types/raw → twitter/types}/tweet/Tweets.ts +0 -0
- /package/src/{types/raw → twitter/types}/user/Followers.ts +0 -0
- /package/src/{types/raw → twitter/types}/user/Following.ts +0 -0
- /package/src/{types/raw → twitter/types}/user/Likes.ts +0 -0
- /package/src/{types/raw → twitter/types}/user/User.ts +0 -0
package/dist/types/HTTP.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The different types of http status codes
|
|
3
|
-
*
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare enum HttpStatus {
|
|
7
|
-
BadRequest = 400,
|
|
8
|
-
Unauthorized = 401,
|
|
9
|
-
Forbidden = 403,
|
|
10
|
-
NotFound = 404,
|
|
11
|
-
MethodNotAllowed = 405,
|
|
12
|
-
RequestTimeout = 408,
|
|
13
|
-
TooManyRequests = 429,
|
|
14
|
-
InternalServerError = 500,
|
|
15
|
-
BadGateway = 502,
|
|
16
|
-
ServiceUnavailable = 503
|
|
17
|
-
}
|
package/dist/types/HTTP.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.HttpStatus = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* The different types of http status codes
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
var HttpStatus;
|
|
10
|
-
(function (HttpStatus) {
|
|
11
|
-
HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
|
|
12
|
-
HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
|
|
13
|
-
HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
|
|
14
|
-
HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
|
|
15
|
-
HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
16
|
-
HttpStatus[HttpStatus["RequestTimeout"] = 408] = "RequestTimeout";
|
|
17
|
-
HttpStatus[HttpStatus["TooManyRequests"] = 429] = "TooManyRequests";
|
|
18
|
-
HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
|
|
19
|
-
HttpStatus[HttpStatus["BadGateway"] = 502] = "BadGateway";
|
|
20
|
-
HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
21
|
-
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
|
|
22
|
-
;
|
|
23
|
-
//# sourceMappingURL=HTTP.js.map
|
package/dist/types/HTTP.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HTTP.js","sourceRoot":"","sources":["../../src/types/HTTP.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,UAWX;AAXD,WAAY,UAAU;IAClB,yDAAgB,CAAA;IAChB,6DAAkB,CAAA;IAClB,uDAAe,CAAA;IACf,qDAAc,CAAA;IACd,qEAAsB,CAAA;IACtB,iEAAoB,CAAA;IACpB,mEAAqB,CAAA;IACrB,2EAAyB,CAAA;IACzB,yDAAgB,CAAA;IAChB,yEAAwB,CAAA;AAC5B,CAAC,EAXW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAWrB;AAAA,CAAC"}
|
package/dist/types/Query.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../src/types/Query.ts"],"names":[],"mappings":""}
|
package/dist/types/Trends.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A data structure representing a collection of trending topics.
|
|
3
|
-
*
|
|
4
|
-
* @interface Trends
|
|
5
|
-
*
|
|
6
|
-
* @property {trendEntry[]} trendingNow - An array of `trendEntry` objects representing the trending topics.
|
|
7
|
-
* * @property {string} trendCategory - the category the trending topic list are all trending in.
|
|
8
|
-
*/
|
|
9
|
-
export default interface Trends {
|
|
10
|
-
trendingNow: trendEntry[];
|
|
11
|
-
trendCategory: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A data structure representing a trend entry.
|
|
15
|
-
*
|
|
16
|
-
* @interface trendEntry
|
|
17
|
-
*
|
|
18
|
-
* @property {string} name - The name of the trend.
|
|
19
|
-
* @property {number} rank - The rank of the trend.
|
|
20
|
-
* @property {number} approxtweetCount - The approximate number of tweets for the trend.
|
|
21
|
-
* @property {string[]} relatedTopics - An array of related topics for the trend.
|
|
22
|
-
|
|
23
|
-
* @property {string} domainContext - The domain context for the trend. i.e. what category is it specifically trenging on
|
|
24
|
-
*/
|
|
25
|
-
export interface trendEntry {
|
|
26
|
-
name: string;
|
|
27
|
-
rank: number;
|
|
28
|
-
approxtweetCount: number;
|
|
29
|
-
relatedTopics: string[];
|
|
30
|
-
domainContext: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* An enum representing the different trend categories.
|
|
34
|
-
*
|
|
35
|
-
* @enum {string}
|
|
36
|
-
* @constant
|
|
37
|
-
*
|
|
38
|
-
* @property {string} foryou - Trending topics for the user.
|
|
39
|
-
* @property {string} overall - Overall trending topics.
|
|
40
|
-
* @property {string} news - Trending news topics.
|
|
41
|
-
* @property {string} sports - Trending sports topics.
|
|
42
|
-
* @property {string} entertainment - Trending entertainment topics.
|
|
43
|
-
*/
|
|
44
|
-
export declare const enum trendOn {
|
|
45
|
-
foryou = "for-you",
|
|
46
|
-
overall = "trending",
|
|
47
|
-
news = "news-unified",
|
|
48
|
-
sports = "sports-unified",
|
|
49
|
-
entertainment = "entertainment-unified"
|
|
50
|
-
}
|
package/dist/types/Trends.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Trends.js","sourceRoot":"","sources":["../../src/types/Trends.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @summary Stores the complete details of the given user's account
|
|
3
|
-
*/
|
|
4
|
-
export interface User {
|
|
5
|
-
id: string;
|
|
6
|
-
userName: string;
|
|
7
|
-
fullName: string;
|
|
8
|
-
createdAt: string;
|
|
9
|
-
description: string;
|
|
10
|
-
isVerified: boolean;
|
|
11
|
-
favouritesCount: number;
|
|
12
|
-
followersCount: number;
|
|
13
|
-
followingsCount: number;
|
|
14
|
-
statusesCount: number;
|
|
15
|
-
location: string;
|
|
16
|
-
pinnedTweet: string;
|
|
17
|
-
profileBanner: string;
|
|
18
|
-
profileImage: string;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserAccount.js","sourceRoot":"","sources":["../../src/types/UserAccount.ts"],"names":[],"mappings":";AAAA,+EAA+E"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { TweetFilterInterface } from '../interfaces/Args';
|
|
2
|
-
export declare class TweetFilter implements TweetFilterInterface {
|
|
3
|
-
/** The list of words to search. */
|
|
4
|
-
words?: string[];
|
|
5
|
-
/** The list of hashtags to search.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* '#' must be excluded from the hashtag!
|
|
9
|
-
*/
|
|
10
|
-
hashtags?: string[];
|
|
11
|
-
/** The list of usernames whose tweets are to be searched.
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* '@' must be excluded from the username!
|
|
15
|
-
*/
|
|
16
|
-
fromUsers?: string[];
|
|
17
|
-
/** The list of username to whom the tweets to be searched, are adressed.
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* '@' must be excluded from the username!
|
|
21
|
-
*/
|
|
22
|
-
toUsers?: string[];
|
|
23
|
-
/** The list of username mentioned in the tweets to search.
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* '@' must be excluded from the username!
|
|
27
|
-
*/
|
|
28
|
-
mentions?: string[];
|
|
29
|
-
/** The date starting from which tweets are to be searched.
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* Must be in the format YYYY-MM-DD.
|
|
33
|
-
*/
|
|
34
|
-
startDate?: string;
|
|
35
|
-
/** The date upto which tweets are to be searched.
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* Must be in the format YYYY-MM-DD.
|
|
39
|
-
*/
|
|
40
|
-
endDate?: string;
|
|
41
|
-
/** The id of the tweet, after which the tweets are to be searched. */
|
|
42
|
-
sinceId?: string;
|
|
43
|
-
/** The id of the tweet which is quoted in the tweets to search. */
|
|
44
|
-
quoted?: string;
|
|
45
|
-
/** Whether to fetch tweets that are links or not.
|
|
46
|
-
*
|
|
47
|
-
* @defaultValue false
|
|
48
|
-
*/
|
|
49
|
-
links?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* @param filter The incoming filter in JSON format.
|
|
52
|
-
*/
|
|
53
|
-
constructor(filter: TweetFilter);
|
|
54
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
exports.__esModule = true;
|
|
12
|
-
exports.TweetFilter = void 0;
|
|
13
|
-
// PACKAGE
|
|
14
|
-
var class_validator_1 = require("class-validator");
|
|
15
|
-
var Errors_1 = require("../data/Errors");
|
|
16
|
-
var TweetFilter = /** @class */ (function () {
|
|
17
|
-
/**
|
|
18
|
-
* @param filter The incoming filter in JSON format.
|
|
19
|
-
*/
|
|
20
|
-
function TweetFilter(filter) {
|
|
21
|
-
this.endDate = filter.endDate;
|
|
22
|
-
this.fromUsers = filter.fromUsers;
|
|
23
|
-
this.hashtags = filter.hashtags;
|
|
24
|
-
this.links = filter.links;
|
|
25
|
-
this.mentions = filter.mentions;
|
|
26
|
-
this.quoted = filter.quoted;
|
|
27
|
-
this.sinceId = filter.sinceId;
|
|
28
|
-
this.startDate = filter.startDate;
|
|
29
|
-
this.toUsers = filter.toUsers;
|
|
30
|
-
this.words = filter.words;
|
|
31
|
-
// Validating the filter
|
|
32
|
-
var validationResult = (0, class_validator_1.validateSync)(this);
|
|
33
|
-
// If valiation error occured
|
|
34
|
-
if (validationResult.length) {
|
|
35
|
-
throw new Errors_1.DataValidationError(validationResult);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsArray)(),
|
|
40
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
41
|
-
(0, class_validator_1.IsOptional)(),
|
|
42
|
-
__metadata("design:type", Array)
|
|
43
|
-
], TweetFilter.prototype, "words");
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_validator_1.IsArray)(),
|
|
46
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
47
|
-
(0, class_validator_1.IsOptional)(),
|
|
48
|
-
__metadata("design:type", Array)
|
|
49
|
-
], TweetFilter.prototype, "hashtags");
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_validator_1.IsArray)(),
|
|
52
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
53
|
-
(0, class_validator_1.IsOptional)(),
|
|
54
|
-
__metadata("design:type", Array)
|
|
55
|
-
], TweetFilter.prototype, "fromUsers");
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, class_validator_1.IsArray)(),
|
|
58
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
59
|
-
(0, class_validator_1.IsOptional)(),
|
|
60
|
-
__metadata("design:type", Array)
|
|
61
|
-
], TweetFilter.prototype, "toUsers");
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsArray)(),
|
|
64
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
65
|
-
(0, class_validator_1.IsOptional)(),
|
|
66
|
-
__metadata("design:type", Array)
|
|
67
|
-
], TweetFilter.prototype, "mentions");
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, class_validator_1.IsOptional)(),
|
|
70
|
-
(0, class_validator_1.IsDateString)(),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], TweetFilter.prototype, "startDate");
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, class_validator_1.IsOptional)(),
|
|
75
|
-
(0, class_validator_1.IsDateString)(),
|
|
76
|
-
__metadata("design:type", String)
|
|
77
|
-
], TweetFilter.prototype, "endDate");
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, class_validator_1.IsNumberString)(),
|
|
80
|
-
(0, class_validator_1.IsOptional)(),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], TweetFilter.prototype, "sinceId");
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, class_validator_1.IsNumberString)(),
|
|
85
|
-
(0, class_validator_1.IsOptional)(),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], TweetFilter.prototype, "quoted");
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, class_validator_1.IsBoolean)(),
|
|
90
|
-
(0, class_validator_1.IsOptional)(),
|
|
91
|
-
__metadata("design:type", Boolean)
|
|
92
|
-
], TweetFilter.prototype, "links");
|
|
93
|
-
return TweetFilter;
|
|
94
|
-
}());
|
|
95
|
-
exports.TweetFilter = TweetFilter;
|
|
96
|
-
//# sourceMappingURL=TweetFilter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TweetFilter.js","sourceRoot":"","sources":["../../../src/types/args/TweetFilter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,UAAU;AACV,mDAAuH;AAIvH,yCAAqD;AAErD;IAmFI;;OAEG;IACH,qBAAY,MAAmB;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE1B,wBAAwB;QACxB,IAAM,gBAAgB,GAAG,IAAA,8BAAY,EAAC,IAAI,CAAC,CAAC;QAE5C,6BAA6B;QAC7B,IAAI,gBAAgB,CAAC,MAAM,EAAE;YACzB,MAAM,IAAI,4BAAmB,CAAC,gBAAgB,CAAC,CAAC;SACnD;IACL,CAAC;IApGD;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,IAAA,4BAAU,GAAE;;sCACI;IAUjB;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,IAAA,4BAAU,GAAE;;yCACO;IAUpB;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,IAAA,4BAAU,GAAE;;0CACQ;IAUrB;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,IAAA,4BAAU,GAAE;;wCACM;IAUnB;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,IAAA,4BAAU,GAAE;;yCACO;IASpB;QAFC,IAAA,4BAAU,GAAE;QACZ,IAAA,8BAAY,GAAE;;0CACI;IASnB;QAFC,IAAA,4BAAU,GAAE;QACZ,IAAA,8BAAY,GAAE;;wCACE;IAKjB;QAFC,IAAA,gCAAc,GAAE;QAChB,IAAA,4BAAU,GAAE;;wCACI;IAKjB;QAFC,IAAA,gCAAc,GAAE;QAChB,IAAA,4BAAU,GAAE;;uCACG;IAQhB;QAFC,IAAA,2BAAS,GAAE;QACX,IAAA,4BAAU,GAAE;;sCACG;IAyBpB,kBAAC;CAAA,AA1GD,IA0GC;AA1GY,kCAAW"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
exports.__esModule = true;
|
|
12
|
-
exports.TweetListArgs = void 0;
|
|
13
|
-
// PACKAGES
|
|
14
|
-
var class_transformer_1 = require("class-transformer");
|
|
15
|
-
var class_validator_1 = require("class-validator");
|
|
16
|
-
var TweetListArgs = /** @class */ (function () {
|
|
17
|
-
function TweetListArgs() {
|
|
18
|
-
/** The number of data items to fetch.
|
|
19
|
-
*
|
|
20
|
-
* @defaultValue 10
|
|
21
|
-
* @remarks Must be >= 10
|
|
22
|
-
*/
|
|
23
|
-
this.count = 10;
|
|
24
|
-
/** The cursor to the batch of data to fetch. */
|
|
25
|
-
this.cursor = '';
|
|
26
|
-
}
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_transformer_1.Type)(function () { return Number; }),
|
|
29
|
-
(0, class_validator_1.IsInt)(),
|
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
|
31
|
-
(0, class_validator_1.Min)(10),
|
|
32
|
-
__metadata("design:type", Number)
|
|
33
|
-
], TweetListArgs.prototype, "count");
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_validator_1.IsString)(),
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], TweetListArgs.prototype, "cursor");
|
|
39
|
-
return TweetListArgs;
|
|
40
|
-
}());
|
|
41
|
-
exports.TweetListArgs = TweetListArgs;
|
|
42
|
-
//# sourceMappingURL=TweetListArg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TweetListArg.js","sourceRoot":"","sources":["../../../src/types/args/TweetListArg.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,WAAW;AACX,uDAAyC;AACzC,mDAAmE;AAEnE;IAAA;QACI;;;;WAIG;QAKH,UAAK,GAAY,EAAE,CAAC;QAEpB,gDAAgD;QAGhD,WAAM,GAAY,EAAE,CAAC;IACzB,CAAC;IANG;QAJC,IAAA,wBAAI,EAAC,cAAM,OAAA,MAAM,EAAN,CAAM,CAAC;QAClB,IAAA,uBAAK,GAAE;QACP,IAAA,4BAAU,GAAE;QACZ,IAAA,qBAAG,EAAC,EAAE,CAAC;;wCACY;IAKpB;QAFC,IAAA,0BAAQ,GAAE;QACV,IAAA,4BAAU,GAAE;;yCACQ;IACzB,oBAAC;CAAA,AAhBD,IAgBC;AAhBY,sCAAa"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ListArgs } from '../interfaces/Args';
|
|
2
|
-
/**
|
|
3
|
-
* @param count The number of data items to fetch.
|
|
4
|
-
* @param cursor The cursor to the next batch of data.
|
|
5
|
-
*/
|
|
6
|
-
export declare class TweetListArgs implements ListArgs {
|
|
7
|
-
/** The number of data items to fetch.
|
|
8
|
-
*
|
|
9
|
-
* @defaultValue 10
|
|
10
|
-
* @remarks Must be >= 10 and <= 100
|
|
11
|
-
*/
|
|
12
|
-
count: number;
|
|
13
|
-
/** The cursor to the batch of data to fetch. */
|
|
14
|
-
cursor: string;
|
|
15
|
-
/**
|
|
16
|
-
* @param count The number of data items to fetch.
|
|
17
|
-
* @param cursor The cursor to the batch of data to fetch.
|
|
18
|
-
*/
|
|
19
|
-
constructor(count?: number, cursor?: string);
|
|
20
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
exports.__esModule = true;
|
|
12
|
-
exports.TweetListArgs = void 0;
|
|
13
|
-
// PACKAGES
|
|
14
|
-
var class_validator_1 = require("class-validator");
|
|
15
|
-
var Errors_1 = require("../data/Errors");
|
|
16
|
-
/**
|
|
17
|
-
* @param count The number of data items to fetch.
|
|
18
|
-
* @param cursor The cursor to the next batch of data.
|
|
19
|
-
*/
|
|
20
|
-
var TweetListArgs = /** @class */ (function () {
|
|
21
|
-
/**
|
|
22
|
-
* @param count The number of data items to fetch.
|
|
23
|
-
* @param cursor The cursor to the batch of data to fetch.
|
|
24
|
-
*/
|
|
25
|
-
function TweetListArgs(count, cursor) {
|
|
26
|
-
if (count === void 0) { count = 10; }
|
|
27
|
-
if (cursor === void 0) { cursor = ''; }
|
|
28
|
-
this.count = count;
|
|
29
|
-
this.cursor = cursor;
|
|
30
|
-
// Validating the arguments
|
|
31
|
-
var validationResult = (0, class_validator_1.validateSync)(this);
|
|
32
|
-
// If valiation error occured
|
|
33
|
-
if (validationResult.length) {
|
|
34
|
-
throw new Errors_1.DataValidationError(validationResult);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsInt)(),
|
|
39
|
-
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
(0, class_validator_1.Min)(10),
|
|
41
|
-
(0, class_validator_1.Max)(100),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], TweetListArgs.prototype, "count");
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_validator_1.IsString)(),
|
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], TweetListArgs.prototype, "cursor");
|
|
49
|
-
return TweetListArgs;
|
|
50
|
-
}());
|
|
51
|
-
exports.TweetListArgs = TweetListArgs;
|
|
52
|
-
//# sourceMappingURL=TweetListArgs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TweetListArgs.js","sourceRoot":"","sources":["../../../src/types/args/TweetListArgs.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,WAAW;AACX,mDAAsF;AAItF,yCAAqD;AAErD;;;GAGG;AACH;IAiBI;;;OAGG;IACH,uBAAY,KAAkB,EAAE,MAAmB;QAAvC,sBAAA,EAAA,UAAkB;QAAE,uBAAA,EAAA,WAAmB;QAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,2BAA2B;QAC3B,IAAM,gBAAgB,GAAG,IAAA,8BAAY,EAAC,IAAI,CAAC,CAAC;QAE5C,6BAA6B;QAC7B,IAAI,gBAAgB,CAAC,MAAM,EAAE;YACzB,MAAM,IAAI,4BAAmB,CAAC,gBAAgB,CAAC,CAAC;SACnD;IACL,CAAC;IAtBD;QAJC,IAAA,uBAAK,GAAE;QACP,IAAA,4BAAU,GAAE;QACZ,IAAA,qBAAG,EAAC,EAAE,CAAC;QACP,IAAA,qBAAG,EAAC,GAAG,CAAC;;wCACK;IAKd;QAFC,IAAA,0BAAQ,GAAE;QACV,IAAA,4BAAU,GAAE;;yCACE;IAkBnB,oBAAC;CAAA,AAjCD,IAiCC;AAjCY,sCAAa"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ListArgs } from '../interfaces/Args';
|
|
2
|
-
export declare class UserListArgs implements ListArgs {
|
|
3
|
-
/** The number of data items to fetch.
|
|
4
|
-
*
|
|
5
|
-
* @defaultValue 40
|
|
6
|
-
* @remarks Must be >= 40 and <= 100
|
|
7
|
-
*/
|
|
8
|
-
count: number;
|
|
9
|
-
/** The cursor to the batch of data to fetch. */
|
|
10
|
-
cursor: string;
|
|
11
|
-
/**
|
|
12
|
-
* @param count The number of data items to fetch.
|
|
13
|
-
* @param cursor The cursor to the batch of data to fetch.
|
|
14
|
-
*/
|
|
15
|
-
constructor(count?: number, cursor?: string);
|
|
16
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
exports.__esModule = true;
|
|
12
|
-
exports.UserListArgs = void 0;
|
|
13
|
-
// PACKAGES
|
|
14
|
-
var class_validator_1 = require("class-validator");
|
|
15
|
-
var Errors_1 = require("../data/Errors");
|
|
16
|
-
var UserListArgs = /** @class */ (function () {
|
|
17
|
-
/**
|
|
18
|
-
* @param count The number of data items to fetch.
|
|
19
|
-
* @param cursor The cursor to the batch of data to fetch.
|
|
20
|
-
*/
|
|
21
|
-
function UserListArgs(count, cursor) {
|
|
22
|
-
if (count === void 0) { count = 40; }
|
|
23
|
-
if (cursor === void 0) { cursor = ''; }
|
|
24
|
-
this.count = count;
|
|
25
|
-
this.cursor = cursor;
|
|
26
|
-
// Validating the arguments
|
|
27
|
-
var validationResult = (0, class_validator_1.validateSync)(this);
|
|
28
|
-
// If valiation error occured
|
|
29
|
-
if (validationResult.length) {
|
|
30
|
-
throw new Errors_1.DataValidationError(validationResult);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsInt)(),
|
|
35
|
-
(0, class_validator_1.IsOptional)(),
|
|
36
|
-
(0, class_validator_1.Min)(40),
|
|
37
|
-
(0, class_validator_1.Max)(100),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], UserListArgs.prototype, "count");
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], UserListArgs.prototype, "cursor");
|
|
45
|
-
return UserListArgs;
|
|
46
|
-
}());
|
|
47
|
-
exports.UserListArgs = UserListArgs;
|
|
48
|
-
//# sourceMappingURL=UserListArgs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserListArgs.js","sourceRoot":"","sources":["../../../src/types/args/UserListArgs.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,WAAW;AACX,mDAAsF;AAItF,yCAAqD;AAErD;IAiBI;;;OAGG;IACH,sBAAY,KAAkB,EAAE,MAAmB;QAAvC,sBAAA,EAAA,UAAkB;QAAE,uBAAA,EAAA,WAAmB;QAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,2BAA2B;QAC3B,IAAM,gBAAgB,GAAG,IAAA,8BAAY,EAAC,IAAI,CAAC,CAAC;QAE5C,6BAA6B;QAC7B,IAAI,gBAAgB,CAAC,MAAM,EAAE;YACzB,MAAM,IAAI,4BAAmB,CAAC,gBAAgB,CAAC,CAAC;SACnD;IACL,CAAC;IAtBD;QAJC,IAAA,uBAAK,GAAE;QACP,IAAA,4BAAU,GAAE;QACZ,IAAA,qBAAG,EAAC,EAAE,CAAC;QACP,IAAA,qBAAG,EAAC,GAAG,CAAC;;uCACK;IAKd;QAFC,IAAA,0BAAQ,GAAE;QACV,IAAA,4BAAU,GAAE;;wCACE;IAkBnB,mBAAC;CAAA,AAjCD,IAiCC;AAjCY,oCAAY"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Different types of error messages related to authentication.
|
|
3
|
-
*
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare enum AuthenticationErrors {
|
|
7
|
-
NotAuthenticated = "Cannot fetch this data without authentication",
|
|
8
|
-
InvalidEmail = "No Twitter account found for the given email address",
|
|
9
|
-
InvalidUsername = "Incorrect username given for the given Twitter account",
|
|
10
|
-
InvalidPassword = "Incorrect password given for the given Twitter account"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Different types error messages for validation errors.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
|
-
export declare enum ValidationErrors {
|
|
18
|
-
InvalidTweetFilter = "Atleast one of fromUsers/toUsers/mentions/hashtags/words argument is required",
|
|
19
|
-
NoUserIdentification = "Either userName or id must be given",
|
|
20
|
-
InvalidCount = "Invalid count provided"
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Different type of error messages that are returned by services.
|
|
24
|
-
*
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
export declare enum DataErrors {
|
|
28
|
-
UserNotFound = "An account with given username/id was not found",
|
|
29
|
-
TweetNotFound = "A tweet with the given id was not found",
|
|
30
|
-
NoTweetsFound = "No tweets matching the given criteria found",
|
|
31
|
-
NoLikersFound = "No likers found for the tweet with the given id",
|
|
32
|
-
NoRetweetersFound = "No retweeters found for the tweet with the given id",
|
|
33
|
-
NoFollowsFound = "No follow details were found for the user with the given id",
|
|
34
|
-
NoLikedTweetsFound = "No liked tweets were found for the user with the given id"
|
|
35
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.DataErrors = exports.ValidationErrors = exports.AuthenticationErrors = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Different types of error messages related to authentication.
|
|
6
|
-
*
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
var AuthenticationErrors;
|
|
10
|
-
(function (AuthenticationErrors) {
|
|
11
|
-
AuthenticationErrors["NotAuthenticated"] = "Cannot fetch this data without authentication";
|
|
12
|
-
AuthenticationErrors["InvalidEmail"] = "No Twitter account found for the given email address";
|
|
13
|
-
AuthenticationErrors["InvalidUsername"] = "Incorrect username given for the given Twitter account";
|
|
14
|
-
AuthenticationErrors["InvalidPassword"] = "Incorrect password given for the given Twitter account";
|
|
15
|
-
})(AuthenticationErrors = exports.AuthenticationErrors || (exports.AuthenticationErrors = {}));
|
|
16
|
-
;
|
|
17
|
-
/**
|
|
18
|
-
* Different types error messages for validation errors.
|
|
19
|
-
*
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
var ValidationErrors;
|
|
23
|
-
(function (ValidationErrors) {
|
|
24
|
-
ValidationErrors["InvalidTweetFilter"] = "Atleast one of fromUsers/toUsers/mentions/hashtags/words argument is required";
|
|
25
|
-
ValidationErrors["NoUserIdentification"] = "Either userName or id must be given";
|
|
26
|
-
ValidationErrors["InvalidCount"] = "Invalid count provided";
|
|
27
|
-
})(ValidationErrors = exports.ValidationErrors || (exports.ValidationErrors = {}));
|
|
28
|
-
;
|
|
29
|
-
/**
|
|
30
|
-
* Different type of error messages that are returned by services.
|
|
31
|
-
*
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
var DataErrors;
|
|
35
|
-
(function (DataErrors) {
|
|
36
|
-
DataErrors["UserNotFound"] = "An account with given username/id was not found";
|
|
37
|
-
DataErrors["TweetNotFound"] = "A tweet with the given id was not found";
|
|
38
|
-
DataErrors["NoTweetsFound"] = "No tweets matching the given criteria found";
|
|
39
|
-
DataErrors["NoLikersFound"] = "No likers found for the tweet with the given id";
|
|
40
|
-
DataErrors["NoRetweetersFound"] = "No retweeters found for the tweet with the given id";
|
|
41
|
-
DataErrors["NoFollowsFound"] = "No follow details were found for the user with the given id";
|
|
42
|
-
DataErrors["NoLikedTweetsFound"] = "No liked tweets were found for the user with the given id";
|
|
43
|
-
})(DataErrors = exports.DataErrors || (exports.DataErrors = {}));
|
|
44
|
-
;
|
|
45
|
-
//# sourceMappingURL=Errors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../../src/types/data/Errors.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,0FAAkE,CAAA;IAClE,6FAAqE,CAAA;IACrE,kGAA0E,CAAA;IAC1E,kGAA0E,CAAA;AAC9E,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B;AAAA,CAAC;AAEF;;;;GAIG;AACH,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,wHAAoG,CAAA;IACpG,gFAA4D,CAAA;IAC5D,2DAAuC,CAAA;AAC3C,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAAA,CAAC;AAEF;;;;GAIG;AACH,IAAY,UAQX;AARD,WAAY,UAAU;IAClB,8EAAgE,CAAA;IAChE,uEAAyD,CAAA;IACzD,2EAA6D,CAAA;IAC7D,+EAAiE,CAAA;IACjE,uFAAyE,CAAA;IACzE,4FAA8E,CAAA;IAC9E,8FAAgF,CAAA;AACpF,CAAC,EARW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAQrB;AAAA,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { AccountService } from "../../services/accounts/AccountService";
|
|
2
|
-
import { TweetService } from "../../services/data/TweetService";
|
|
3
|
-
import { UserService } from "../../services/data/UserService";
|
|
4
|
-
/**
|
|
5
|
-
* The cursor to the batch of data to be fetched.
|
|
6
|
-
*
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare class Cursor {
|
|
10
|
-
/** The cursor string. */
|
|
11
|
-
value: string;
|
|
12
|
-
/**
|
|
13
|
-
* Initializes a new cursor from the given cursor string.
|
|
14
|
-
*
|
|
15
|
-
* @param cursorStr The string representation of the cursor.
|
|
16
|
-
*/
|
|
17
|
-
constructor(cursorStr: string);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* The data that us fetched batch-wise along with a cursor.
|
|
21
|
-
*
|
|
22
|
-
* @typeParam Type - The type of data present in the list.
|
|
23
|
-
* @public
|
|
24
|
-
*/
|
|
25
|
-
export interface CursoredData<Type> {
|
|
26
|
-
/** The list of data of the given type. */
|
|
27
|
-
list: Type[];
|
|
28
|
-
/** The cursor to the next batch of data. */
|
|
29
|
-
next: Cursor;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* The data context from where data is to be fetched.
|
|
33
|
-
*
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
36
|
-
export interface DataContext {
|
|
37
|
-
/** Handles data related to users. */
|
|
38
|
-
users: UserService;
|
|
39
|
-
/** Handles data related to tweets. */
|
|
40
|
-
tweets: TweetService;
|
|
41
|
-
/** Handles account related operations. */
|
|
42
|
-
account: AccountService;
|
|
43
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Cursor = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* The cursor to the batch of data to be fetched.
|
|
6
|
-
*
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
var Cursor = /** @class */ (function () {
|
|
10
|
-
// MEMBER DATA
|
|
11
|
-
/**
|
|
12
|
-
* Initializes a new cursor from the given cursor string.
|
|
13
|
-
*
|
|
14
|
-
* @param cursorStr The string representation of the cursor.
|
|
15
|
-
*/
|
|
16
|
-
function Cursor(cursorStr) {
|
|
17
|
-
this.value = cursorStr;
|
|
18
|
-
}
|
|
19
|
-
return Cursor;
|
|
20
|
-
}());
|
|
21
|
-
exports.Cursor = Cursor;
|
|
22
|
-
//# sourceMappingURL=Service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Service.js","sourceRoot":"","sources":["../../../src/types/data/Service.ts"],"names":[],"mappings":";;;AAKA;;;;GAIG;AACH;IAKI,cAAc;IACd;;;;OAIG;IACH,gBAAY,SAAiB;QACzB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IAC3B,CAAC;IACL,aAAC;AAAD,CAAC,AAdD,IAcC;AAdY,wBAAM"}
|