rettiwt-api 1.0.9 → 1.1.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/dist/index.d.ts CHANGED
@@ -12,3 +12,5 @@ export declare const Rettiwt: (cookie?: string) => {
12
12
  };
13
13
  export { User } from './types/data/User';
14
14
  export { Tweet, TweetEntities, TweetFilter } from './types/data/Tweet';
15
+ export { Cursor, CursoredData } from './types/data/Service';
16
+ export { AuthenticationErrors, ValidationErrors, DataErrors } from './types/data/Errors';
package/dist/index.js CHANGED
@@ -1,6 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
2
13
  exports.__esModule = true;
3
- exports.Rettiwt = void 0;
14
+ exports.DataErrors = exports.ValidationErrors = exports.AuthenticationErrors = exports.Cursor = exports.Rettiwt = void 0;
4
15
  // SERVICES
5
16
  var AuthService_1 = require("./services/AuthService");
6
17
  var UserService_1 = require("./services/data/UserService");
@@ -22,4 +33,10 @@ var Rettiwt = function (cookie) {
22
33
  };
23
34
  };
24
35
  exports.Rettiwt = Rettiwt;
36
+ var Service_1 = require("./types/data/Service");
37
+ __createBinding(exports, Service_1, "Cursor");
38
+ var Errors_1 = require("./types/data/Errors");
39
+ __createBinding(exports, Errors_1, "AuthenticationErrors");
40
+ __createBinding(exports, Errors_1, "ValidationErrors");
41
+ __createBinding(exports, Errors_1, "DataErrors");
25
42
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,WAAW;AACX,sDAAqD;AACrD,2DAA0D;AAC1D,6DAA4D;AAC5D,qEAAoE;AAEpE;;;GAGG;AACI,IAAM,OAAO,GAAG,UAAC,MAAmB;IAAnB,uBAAA,EAAA,WAAmB;IACvC,mEAAmE;IACnE,IAAM,IAAI,GAAgB,IAAI,yBAAW,CAAC,MAAM,CAAC,CAAC;IAElD,oEAAoE;IACpE,OAAO;QACH,KAAK,EAAE,IAAI,yBAAW,CAAC,IAAI,CAAC;QAC5B,MAAM,EAAE,IAAI,2BAAY,CAAC,IAAI,CAAC;QAC9B,OAAO,EAAE,IAAI,+BAAc,EAAE;KAChC,CAAC;AACN,CAAC,CAAA;AAVY,QAAA,OAAO,WAUnB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,WAAW;AACX,sDAAqD;AACrD,2DAA0D;AAC1D,6DAA4D;AAC5D,qEAAoE;AAEpE;;;GAGG;AACI,IAAM,OAAO,GAAG,UAAC,MAAmB;IAAnB,uBAAA,EAAA,WAAmB;IACvC,mEAAmE;IACnE,IAAM,IAAI,GAAgB,IAAI,yBAAW,CAAC,MAAM,CAAC,CAAC;IAElD,oEAAoE;IACpE,OAAO;QACH,KAAK,EAAE,IAAI,yBAAW,CAAC,IAAI,CAAC;QAC5B,MAAM,EAAE,IAAI,2BAAY,CAAC,IAAI,CAAC;QAC9B,OAAO,EAAE,IAAI,+BAAc,EAAE;KAChC,CAAC;AACN,CAAC,CAAA;AAVY,QAAA,OAAO,WAUnB;AAKD,gDAA4D;AAAnD,8CAAM;AACf,8CAAyF;AAAhF,2DAAoB;AAAE,uDAAgB;AAAE,iDAAU"}
@@ -16,8 +16,8 @@ export declare class Cursor {
16
16
  * @summary Stores cursored data that is returned by services
17
17
  */
18
18
  export interface CursoredData<Type> {
19
- list?: Type[];
20
- next?: Cursor;
19
+ list: Type[];
20
+ next: Cursor;
21
21
  }
22
22
  /**
23
23
  * @summary Stores the data context from where data is to be fetched
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rettiwt-api",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "An API for fetching data from TwitterAPI, without any rate limits!",
package/src/index.ts CHANGED
@@ -22,4 +22,6 @@ export const Rettiwt = (cookie: string = '') => {
22
22
 
23
23
  // Exporting additional types
24
24
  export { User } from './types/data/User';
25
- export { Tweet, TweetEntities, TweetFilter } from './types/data/Tweet';
25
+ export { Tweet, TweetEntities, TweetFilter } from './types/data/Tweet';
26
+ export { Cursor, CursoredData } from './types/data/Service';
27
+ export { AuthenticationErrors, ValidationErrors, DataErrors } from './types/data/Errors';
@@ -24,8 +24,8 @@ export class Cursor {
24
24
  * @summary Stores cursored data that is returned by services
25
25
  */
26
26
  export interface CursoredData<Type> {
27
- list?: Type[]; // To store the list data
28
- next?: Cursor; // To store the information about cursor to the next batch
27
+ list: Type[]; // To store the list data
28
+ next: Cursor; // To store the information about cursor to the next batch
29
29
  }
30
30
 
31
31
  /**