rettiwt-api 1.3.1 → 1.4.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.
Files changed (40) hide show
  1. package/.github/workflows/{build-docs.yml → documentation.yml} +2 -3
  2. package/.github/workflows/{publish-to-npm.yml → publish.yml} +4 -9
  3. package/dist/graphql/queries/RootQuery.js +6 -1
  4. package/dist/graphql/queries/RootQuery.js.map +1 -1
  5. package/dist/graphql/resolvers/TweetResolver.js +2 -12
  6. package/dist/graphql/resolvers/TweetResolver.js.map +1 -1
  7. package/dist/graphql/types/UserTypes.js.map +1 -1
  8. package/dist/services/data/TweetService.js +2 -3
  9. package/dist/services/data/TweetService.js.map +1 -1
  10. package/docs/classes/AccountService.html +17 -17
  11. package/docs/classes/AuthCookie.html +7 -7
  12. package/docs/classes/AuthService.html +7 -7
  13. package/docs/classes/CacheService.html +7 -7
  14. package/docs/classes/Cursor.html +3 -3
  15. package/docs/classes/CursoredData.html +4 -4
  16. package/docs/classes/FetcherService.html +9 -9
  17. package/docs/classes/Tweet.html +14 -14
  18. package/docs/classes/TweetEntities.html +6 -6
  19. package/docs/classes/TweetFilter.html +24 -14
  20. package/docs/classes/TweetListArgs.html +4 -4
  21. package/docs/classes/TweetService.html +11 -11
  22. package/docs/classes/User.html +16 -16
  23. package/docs/classes/UserListArgs.html +4 -4
  24. package/docs/classes/UserService.html +12 -12
  25. package/docs/enums/HttpMethods.html +3 -3
  26. package/docs/functions/Rettiwt.html +1 -1
  27. package/docs/interfaces/IAuthCookie.html +5 -5
  28. package/docs/interfaces/ICursor.html +2 -2
  29. package/docs/interfaces/ICursoredData.html +3 -3
  30. package/docs/interfaces/IDataContext.html +4 -4
  31. package/docs/interfaces/IListArgs.html +3 -3
  32. package/docs/interfaces/ITweet.html +13 -13
  33. package/docs/interfaces/ITweetEntities.html +5 -5
  34. package/docs/interfaces/ITweetFilter.html +2 -2
  35. package/docs/interfaces/IUser.html +15 -15
  36. package/package.json +2 -2
  37. package/src/graphql/queries/RootQuery.ts +7 -1
  38. package/src/graphql/resolvers/TweetResolver.ts +1 -13
  39. package/src/graphql/types/UserTypes.ts +0 -1
  40. package/src/services/data/TweetService.ts +1 -2
@@ -1,6 +1,5 @@
1
1
  // PACKAGE
2
2
  import { GraphQLBoolean, GraphQLObjectType, GraphQLString, GraphQLInt, GraphQLList, GraphQLUnionType, GraphQLType } from 'graphql';
3
- import { TweetFilter } from 'rettiwt-core';
4
3
 
5
4
  // TYPES
6
5
  import { Tweet, TweetList } from './TweetTypes'
@@ -56,11 +56,10 @@ export class TweetService extends FetcherService {
56
56
  }
57
57
 
58
58
  // Objectifying parameters
59
- let filter: TweetFilter = new TweetFilter(query);
60
59
  let args: TweetListArgs = new TweetListArgs(count, cursor);
61
60
 
62
61
  // Preparing the URL
63
- const url: string = new Url(EResourceType.TWEET_SEARCH, { filter: filter.toString(), count: args.count, cursor: args.cursor }).toString();
62
+ const url: string = new Url(EResourceType.TWEET_SEARCH, { filter: query, count: args.count, cursor: args.cursor }).toString();
64
63
 
65
64
  // Getting the raw data
66
65
  let res = await this.request<ITweetSearchResponse>(url).then(res => res.data);