@8ms/helpers 1.2.2 → 1.2.3

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 (119) hide show
  1. package/api/ApiResponse.d.ts +1 -1
  2. package/api/isError.d.ts +1 -1
  3. package/api/isSuccess.d.ts +1 -1
  4. package/api/response.d.ts +1 -1
  5. package/api/states.d.ts +1 -1
  6. package/atInternet/request.d.ts +1 -1
  7. package/aws/athenaExpress/initClient.d.ts +1 -1
  8. package/aws/athenaExpress/query.d.ts +1 -1
  9. package/aws/getConfig.d.ts +1 -1
  10. package/aws/glue/initClient.d.ts +1 -1
  11. package/aws/glue/invoke.d.ts +1 -1
  12. package/aws/lambda/getHandlerPath.d.ts +1 -1
  13. package/aws/lambda/initClient.d.ts +1 -1
  14. package/aws/lambda/invoke.d.ts +1 -1
  15. package/aws/s3/copyFile.d.ts +2 -2
  16. package/aws/s3/deleteFile.d.ts +1 -1
  17. package/aws/s3/deleteFiles.d.ts +1 -1
  18. package/aws/s3/deleteFolder.d.ts +1 -1
  19. package/aws/s3/getGlueJson.d.ts +1 -1
  20. package/aws/s3/getPresignedPost.d.ts +2 -2
  21. package/aws/s3/getSignedUrl.d.ts +1 -1
  22. package/aws/s3/initClient.d.ts +1 -1
  23. package/aws/s3/isFileExists.d.ts +1 -1
  24. package/aws/s3/listFiles.d.ts +1 -1
  25. package/aws/s3/listFolders.d.ts +1 -1
  26. package/aws/s3/moveFile.d.ts +1 -1
  27. package/aws/s3/readBuffer.d.ts +2 -2
  28. package/aws/s3/readFile.d.ts +3 -3
  29. package/aws/s3/writeFile.d.ts +1 -1
  30. package/aws/s3/writePresignedPost.d.ts +1 -1
  31. package/aws/s3/writeUrlContents.d.ts +1 -1
  32. package/aws/s3cache/cache.d.ts +1 -1
  33. package/aws/s3cache/getCache.d.ts +1 -1
  34. package/aws/s3cache/getKey.d.ts +1 -1
  35. package/aws/s3cache/saveCache.d.ts +1 -1
  36. package/aws/s3cache/updateCache.d.ts +1 -1
  37. package/aws/ses/SimpleEmail.d.ts +1 -1
  38. package/aws/ses/initClient.d.ts +1 -1
  39. package/aws/sqs/addToQueue.d.ts +2 -2
  40. package/aws/sqs/deleteFromQueue.d.ts +1 -1
  41. package/aws/sqs/initClient.d.ts +1 -1
  42. package/aws/ssm/getParameter.d.ts +1 -1
  43. package/aws/ssm/initClient.d.ts +1 -1
  44. package/axios/get.d.ts +1 -1
  45. package/axios/post.d.ts +1 -1
  46. package/crud/actions.d.ts +1 -1
  47. package/date/date.d.ts +1 -1
  48. package/date/duration.d.ts +1 -1
  49. package/date/financialYear.d.ts +1 -1
  50. package/date/financialYearWeek.d.ts +1 -1
  51. package/date/format.d.ts +1 -1
  52. package/date/getDate.d.ts +1 -1
  53. package/date/getFinancialYear.d.ts +1 -1
  54. package/date/getFinancialYearWeeks.d.ts +1 -1
  55. package/date/getLastWeek.d.ts +1 -1
  56. package/date/getMax.d.ts +1 -1
  57. package/date/getMidnight.d.ts +1 -1
  58. package/date/getMin.d.ts +1 -1
  59. package/date/getMonday.d.ts +1 -1
  60. package/date/getNumber.d.ts +1 -1
  61. package/date/getSunday.d.ts +1 -1
  62. package/date/getThisWeek.d.ts +1 -1
  63. package/date/getTimeZoned.d.ts +1 -1
  64. package/date/getToday.d.ts +1 -1
  65. package/date/getTwoWeeksAgo.d.ts +1 -1
  66. package/date/getWeeksAgo.d.ts +1 -1
  67. package/date/getYesterday.d.ts +1 -1
  68. package/date/predefinedTimeframes.d.ts +1 -1
  69. package/date/timeframe.d.ts +1 -1
  70. package/deepcrawl/api/buildRequest.d.ts +1 -1
  71. package/deepcrawl/api/filter.d.ts +1 -1
  72. package/deepcrawl/api/getData.d.ts +1 -1
  73. package/deepcrawl/api/initClient.d.ts +1 -1
  74. package/deepcrawl/api/orders.d.ts +1 -1
  75. package/deepcrawl/graphql/getData.d.ts +1 -1
  76. package/deepcrawl/graphql/initClient.d.ts +1 -1
  77. package/environment/environments.d.ts +1 -1
  78. package/environment/platforms.d.ts +1 -1
  79. package/eskimi/campaign.d.ts +1 -1
  80. package/eskimi/getAccessToken.d.ts +1 -1
  81. package/global/forceUpdate.d.ts +1 -1
  82. package/global/init.d.ts +1 -1
  83. package/global/read.d.ts +1 -1
  84. package/google/bigQuery/IsTableExists.d.ts +1 -1
  85. package/google/bigQuery/createTable.d.ts +1 -1
  86. package/google/bigQuery/initClient.d.ts +1 -1
  87. package/google/bigQuery/loadData.d.ts +1 -1
  88. package/google/bigQuery/query.d.ts +1 -1
  89. package/google/getConfig.d.ts +2 -2
  90. package/google/keywordPlanner/countries.d.ts +1 -1
  91. package/google/keywordPlanner/months.d.ts +1 -1
  92. package/google/keywordPlanner/networks.d.ts +1 -1
  93. package/google/keywordPlanner/request.d.ts +1 -1
  94. package/google/keywordPlanner/response.d.ts +3 -3
  95. package/google/sheets/getAssociatedData.d.ts +1 -1
  96. package/google/sheets/getBatchData.d.ts +2 -2
  97. package/google/sheets/initClient.d.ts +1 -1
  98. package/google/storage/copyToCloud.d.ts +1 -1
  99. package/google/storage/initClient.d.ts +1 -1
  100. package/google/storage/writeFile.d.ts +1 -1
  101. package/googleAds/getCustomer.d.ts +1 -1
  102. package/googleAds/initClient.d.ts +2 -2
  103. package/initClients.d.ts +1 -1
  104. package/littleWarden/getUrlStatus.d.ts +1 -1
  105. package/littleWarden/states.d.ts +1 -1
  106. package/myTarget/getAccessToken.d.ts +1 -1
  107. package/nextAuth/states.d.ts +1 -1
  108. package/number/getRounded.d.ts +1 -1
  109. package/object/replaceKeys.d.ts +1 -1
  110. package/package.json +45 -50
  111. package/snapchat/getAccessToken.d.ts +1 -1
  112. package/string/getStrippedTags.d.ts +9 -0
  113. package/string/getStrippedTags.js +18 -0
  114. package/string/getUnescaped.d.ts +1 -1
  115. package/url/buildUrl.d.ts +1 -1
  116. package/url/url.d.ts +1 -1
  117. package/util/defaultTo.d.ts +1 -1
  118. package/util/isUndefined.d.ts +1 -1
  119. package/webWorker/states.d.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  import { Response } from './response';
2
2
  import { State } from './states';
3
- declare type Constructor = {
3
+ type Constructor = {
4
4
  body?: any;
5
5
  error?: any;
6
6
  state?: State;
package/api/isError.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Response } from './response';
2
- declare type IsSuccess = {
2
+ type IsSuccess = {
3
3
  response: Response;
4
4
  };
5
5
  declare const isError: ({ response }: IsSuccess) => boolean;
@@ -1,5 +1,5 @@
1
1
  import { Response } from './response';
2
- declare type IsSuccess = {
2
+ type IsSuccess = {
3
3
  response: Response;
4
4
  };
5
5
  declare const isSuccess: ({ response }: IsSuccess) => boolean;
package/api/response.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { State } from './states';
2
- export declare type Response = {
2
+ export type Response = {
3
3
  body: any | null;
4
4
  error: string | null;
5
5
  state: State;
package/api/states.d.ts CHANGED
@@ -5,5 +5,5 @@ declare const states: {
5
5
  SUCCESS: string;
6
6
  VALIDATION_ERROR: string;
7
7
  };
8
- export declare type State = typeof states.ERROR | typeof states.IDLE | typeof states.PENDING | typeof states.SUCCESS | typeof states.VALIDATION_ERROR;
8
+ export type State = typeof states.ERROR | typeof states.IDLE | typeof states.PENDING | typeof states.SUCCESS | typeof states.VALIDATION_ERROR;
9
9
  export default states;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The request in the structure required by AT Internet.
3
3
  */
4
- export declare type Request = {
4
+ export type Request = {
5
5
  columns: string[];
6
6
  evo?: {
7
7
  [evoKey: string]: object;
@@ -1,5 +1,5 @@
1
1
  import { Config } from '../getConfig';
2
- declare type InitClient = {
2
+ type InitClient = {
3
3
  config: Config;
4
4
  database: string;
5
5
  s3Bucket: string;
@@ -1,4 +1,4 @@
1
- declare type Query = {
1
+ type Query = {
2
2
  query: string;
3
3
  };
4
4
  /**
@@ -1,4 +1,4 @@
1
- export declare type Config = {
1
+ export type Config = {
2
2
  accessKeyId: string;
3
3
  region: string;
4
4
  secretAccessKey: string;
@@ -1,5 +1,5 @@
1
1
  import { Config } from '../getConfig';
2
- declare type InitClient = {
2
+ type InitClient = {
3
3
  config: Config;
4
4
  };
5
5
  /**
@@ -1,4 +1,4 @@
1
- declare type Invoke = {
1
+ type Invoke = {
2
2
  crawler: string;
3
3
  };
4
4
  /**
@@ -1,4 +1,4 @@
1
- declare type GetHandlerPath = {
1
+ type GetHandlerPath = {
2
2
  input: string;
3
3
  };
4
4
  declare const getHandlerPath: ({ input }: GetHandlerPath) => string;
@@ -1,5 +1,5 @@
1
1
  import { Config } from '../getConfig';
2
- declare type InitClient = {
2
+ type InitClient = {
3
3
  config: Config;
4
4
  };
5
5
  /**
@@ -1,4 +1,4 @@
1
- declare type Invoke = {
1
+ type Invoke = {
2
2
  awaitResponse?: boolean;
3
3
  functionName: string;
4
4
  isJson?: boolean;
@@ -1,8 +1,8 @@
1
- export declare type File = {
1
+ export type File = {
2
2
  bucket: string;
3
3
  key: string;
4
4
  };
5
- declare type CopyFile = {
5
+ type CopyFile = {
6
6
  from: File;
7
7
  to: File;
8
8
  };
@@ -1,4 +1,4 @@
1
- declare type DeleteFile = {
1
+ type DeleteFile = {
2
2
  bucket: string;
3
3
  key: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- declare type DeleteFiles = {
1
+ type DeleteFiles = {
2
2
  bucket: string;
3
3
  keys: string[];
4
4
  };
@@ -1,4 +1,4 @@
1
- declare type DeleteFolder = {
1
+ type DeleteFolder = {
2
2
  bucket: string;
3
3
  folder: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- declare type GetGlueJson = {
1
+ type GetGlueJson = {
2
2
  data: any;
3
3
  };
4
4
  declare const getGlueJson: ({ data }: GetGlueJson) => string;
@@ -1,8 +1,8 @@
1
- declare type PresignedPost = {
1
+ type PresignedPost = {
2
2
  url: string;
3
3
  fields: any;
4
4
  };
5
- declare type GetPresignedPost = {
5
+ type GetPresignedPost = {
6
6
  bucket: string;
7
7
  conditions: any[];
8
8
  expires: number;
@@ -1,5 +1,5 @@
1
1
  import { Response } from '../../api/response';
2
- declare type GetSignedUrl = {
2
+ type GetSignedUrl = {
3
3
  bucket: string;
4
4
  expires: number;
5
5
  key: string;
@@ -1,5 +1,5 @@
1
1
  import { Config } from '../getConfig';
2
- declare type InitClient = {
2
+ type InitClient = {
3
3
  config: Config;
4
4
  };
5
5
  /**
@@ -1,4 +1,4 @@
1
- declare type IsFileExists = {
1
+ type IsFileExists = {
2
2
  bucket: string;
3
3
  key: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- declare type ListFiles = {
1
+ type ListFiles = {
2
2
  bucket: string;
3
3
  folder: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- declare type ListFolders = {
1
+ type ListFolders = {
2
2
  bucket: string;
3
3
  folder: string;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { File } from './copyFile';
2
- declare type MoveFiles = {
2
+ type MoveFiles = {
3
3
  from: File;
4
4
  to: File;
5
5
  };
@@ -1,8 +1,8 @@
1
1
  import { Modified } from './readFile';
2
- export declare type ReadBufferResponse = Modified & {
2
+ export type ReadBufferResponse = Modified & {
3
3
  buffer: any;
4
4
  };
5
- declare type ReadBuffer = {
5
+ type ReadBuffer = {
6
6
  bucket: string;
7
7
  key: string;
8
8
  };
@@ -1,4 +1,4 @@
1
- export declare type Modified = {
1
+ export type Modified = {
2
2
  now: number;
3
3
  modified: {
4
4
  unix: null | number;
@@ -14,11 +14,11 @@ export declare type Modified = {
14
14
  };
15
15
  };
16
16
  };
17
- export declare type ReadFileResponse = Modified & {
17
+ export type ReadFileResponse = Modified & {
18
18
  body: any;
19
19
  };
20
20
  export declare const readFileDefault: ReadFileResponse;
21
- declare type ReadFile = {
21
+ type ReadFile = {
22
22
  bucket: string;
23
23
  key: string;
24
24
  isJson?: boolean;
@@ -1,4 +1,4 @@
1
- declare type WriteFile = {
1
+ type WriteFile = {
2
2
  bucket: string;
3
3
  data: any;
4
4
  key: string;
@@ -1,5 +1,5 @@
1
1
  import { Config } from '../getConfig';
2
- declare type WritePresignedPost = {
2
+ type WritePresignedPost = {
3
3
  bucket: string;
4
4
  config: Config;
5
5
  fields: any;
@@ -1,4 +1,4 @@
1
- declare type WriteUrlContents = {
1
+ type WriteUrlContents = {
2
2
  bucket: string;
3
3
  key: string;
4
4
  url: string;
@@ -1,6 +1,6 @@
1
1
  import durationComparisons from '../../date/durationComparisons';
2
2
  import durations from '../../date/durations';
3
- export declare type Cache = {
3
+ export type Cache = {
4
4
  duration: number;
5
5
  from: typeof durationComparisons.VS_MIDNIGHT | typeof durationComparisons.VS_NOW;
6
6
  timeframe: typeof durations.FOREVER | typeof durations.MONTHS | typeof durations.DAYS | typeof durations.HOURS | typeof durations.MINUTES;
@@ -1,6 +1,6 @@
1
1
  import { Cache } from './cache';
2
2
  import { GetKey } from './getKey';
3
- declare type GetCache = GetKey & {
3
+ type GetCache = GetKey & {
4
4
  bucket: string;
5
5
  cache: Cache;
6
6
  isJson?: boolean;
@@ -1,4 +1,4 @@
1
- export declare type GetKey = {
1
+ export type GetKey = {
2
2
  fileName: any;
3
3
  folder: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- declare type SaveCache = {
1
+ type SaveCache = {
2
2
  bucket: string;
3
3
  data: any;
4
4
  key: string;
@@ -1,5 +1,5 @@
1
1
  import { GetKey } from './getKey';
2
- declare type UpdateCache = GetKey & {
2
+ type UpdateCache = GetKey & {
3
3
  bucket: any;
4
4
  data: any;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import BaseClass from '../../class/BaseClass';
2
- declare type Constructor = {
2
+ type Constructor = {
3
3
  bcc?: string[];
4
4
  cc?: string[];
5
5
  from?: string;
@@ -1,5 +1,5 @@
1
1
  import { Config } from '../getConfig';
2
- declare type InitClient = {
2
+ type InitClient = {
3
3
  config: Config;
4
4
  };
5
5
  /**
@@ -1,4 +1,4 @@
1
- export declare type AddedResponse = {
1
+ export type AddedResponse = {
2
2
  '$metadata': {
3
3
  httpStatusCode: number;
4
4
  requestId: string;
@@ -13,7 +13,7 @@ export declare type AddedResponse = {
13
13
  MessageId: string;
14
14
  SequenceNumber: string;
15
15
  };
16
- declare type AddToQueue = {
16
+ type AddToQueue = {
17
17
  data: any;
18
18
  dedupeId: string;
19
19
  groupId?: string;
@@ -1,5 +1,5 @@
1
1
  import { AddedResponse } from './addToQueue';
2
- declare type DeleteFromQueue = {
2
+ type DeleteFromQueue = {
3
3
  queueUrl: string;
4
4
  recipientHandle: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Config } from '../getConfig';
2
- declare type InitClient = {
2
+ type InitClient = {
3
3
  config: Config;
4
4
  };
5
5
  /**
@@ -1,4 +1,4 @@
1
- declare type GetParameter = {
1
+ type GetParameter = {
2
2
  name: string;
3
3
  withDecryption?: boolean;
4
4
  isJson?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { Config } from '../getConfig';
2
- declare type InitClient = {
2
+ type InitClient = {
3
3
  config: Config;
4
4
  };
5
5
  /**
package/axios/get.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import ApiResponse from '../api/ApiResponse';
2
- export declare type Get = {
2
+ export type Get = {
3
3
  config?: object;
4
4
  url: string;
5
5
  };
package/axios/post.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import ApiResponse from '../api/ApiResponse';
2
- export declare type Post = {
2
+ export type Post = {
3
3
  config?: object;
4
4
  data?: object;
5
5
  url: string;
package/crud/actions.d.ts CHANGED
@@ -4,5 +4,5 @@ export declare const actions: {
4
4
  UPDATE: string;
5
5
  DELETE: string;
6
6
  };
7
- export declare type Action = typeof actions.CREATE | typeof actions.READ | typeof actions.UPDATE | typeof actions.DELETE;
7
+ export type Action = typeof actions.CREATE | typeof actions.READ | typeof actions.UPDATE | typeof actions.DELETE;
8
8
  export default actions;
package/date/date.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * A date can be either a number (YYYYMMDD), string (YYYY-MM-DD) or Date instance.
3
3
  */
4
- export declare type DateType = number | string | Date;
4
+ export type DateType = number | string | Date;
@@ -1,4 +1,4 @@
1
- export declare type Duration = {
1
+ export type Duration = {
2
2
  hours: number;
3
3
  minutes: number;
4
4
  seconds: number;
@@ -1,4 +1,4 @@
1
- export declare type FinancialYear = {
1
+ export type FinancialYear = {
2
2
  end: Date;
3
3
  start: Date;
4
4
  };
@@ -1,4 +1,4 @@
1
- export declare type FinancialYearWeekType = {
1
+ export type FinancialYearWeekType = {
2
2
  end: Date;
3
3
  financialWeek: number;
4
4
  financialYear: number;
package/date/format.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DateType } from './date';
2
2
  import { GetMidnight } from './getMidnight';
3
3
  import { GetTimeZoned } from './getTimeZoned';
4
- declare type Format = GetTimeZoned & GetMidnight & {
4
+ type Format = GetTimeZoned & GetMidnight & {
5
5
  dateFormat?: string;
6
6
  input: DateType;
7
7
  };
package/date/getDate.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DateType } from './date';
2
2
  import { GetMidnight } from './getMidnight';
3
3
  import { GetTimeZoned } from './getTimeZoned';
4
- declare type GetDate = GetTimeZoned & GetMidnight & {
4
+ type GetDate = GetTimeZoned & GetMidnight & {
5
5
  input: DateType;
6
6
  };
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  import { FinancialYear } from './financialYear';
2
- declare type GetFinancialYearType = {
2
+ type GetFinancialYearType = {
3
3
  year?: number;
4
4
  };
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { FinancialYearWeekType } from './financialYearWeek';
2
- declare type GetFinancialYearWeeks = {
2
+ type GetFinancialYearWeeks = {
3
3
  year?: number;
4
4
  };
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { GetMidnight } from './getMidnight';
2
2
  import { GetTimeZoned } from './getTimeZoned';
3
3
  import { Timeframe } from './timeframe';
4
- declare type GetLastWeek = GetTimeZoned & GetMidnight;
4
+ type GetLastWeek = GetTimeZoned & GetMidnight;
5
5
  /**
6
6
  * Return an object of start/end predefined date of Last Week.
7
7
  * Creating a date from scratch (no user input), thus needs to be London time.
package/date/getMax.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DateType } from './date';
2
2
  import { GetMidnight } from './getMidnight';
3
3
  import { GetTimeZoned } from './getTimeZoned';
4
- declare type GetMax = GetTimeZoned & GetMidnight & {
4
+ type GetMax = GetTimeZoned & GetMidnight & {
5
5
  input: DateType;
6
6
  max: DateType;
7
7
  };
@@ -1,4 +1,4 @@
1
- export declare type GetMidnight = {
1
+ export type GetMidnight = {
2
2
  setMidnight?: boolean;
3
3
  };
4
4
  /**
package/date/getMin.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DateType } from './date';
2
2
  import { GetMidnight } from './getMidnight';
3
3
  import { GetTimeZoned } from './getTimeZoned';
4
- declare type GetMin = GetTimeZoned & GetMidnight & {
4
+ type GetMin = GetTimeZoned & GetMidnight & {
5
5
  input: DateType;
6
6
  min: DateType;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { DateType } from './date';
2
2
  import { GetMidnight } from './getMidnight';
3
3
  import { GetTimeZoned } from './getTimeZoned';
4
- declare type GetMonday = GetTimeZoned & GetMidnight & {
4
+ type GetMonday = GetTimeZoned & GetMidnight & {
5
5
  input?: DateType;
6
6
  weeksAgo: number;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { DateType } from './date';
2
2
  import { GetMidnight } from './getMidnight';
3
3
  import { GetTimeZoned } from './getTimeZoned';
4
- declare type GetNumber = GetTimeZoned & GetMidnight & {
4
+ type GetNumber = GetTimeZoned & GetMidnight & {
5
5
  input: DateType;
6
6
  };
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import { DateType } from './date';
2
2
  import { GetMidnight } from './getMidnight';
3
3
  import { GetTimeZoned } from './getTimeZoned';
4
- declare type GetSunday = GetTimeZoned & GetMidnight & {
4
+ type GetSunday = GetTimeZoned & GetMidnight & {
5
5
  input?: DateType;
6
6
  weeksAgo: number;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { GetMidnight } from './getMidnight';
2
2
  import { GetTimeZoned } from './getTimeZoned';
3
3
  import { Timeframe } from './timeframe';
4
- declare type GetThisWeek = GetTimeZoned & GetMidnight;
4
+ type GetThisWeek = GetTimeZoned & GetMidnight;
5
5
  /**
6
6
  * Return an object of start/end predefined date of This Week.
7
7
  * Creating a date from scratch (no user input), thus needs to be London time.
@@ -1,4 +1,4 @@
1
- export declare type GetTimeZoned = {
1
+ export type GetTimeZoned = {
2
2
  setTimeZone?: string | false;
3
3
  };
4
4
  export declare const timeZoneLondon = "Europe/London";
@@ -1,6 +1,6 @@
1
1
  import { GetMidnight } from './getMidnight';
2
2
  import { GetTimeZoned } from './getTimeZoned';
3
- declare type GetToday = GetTimeZoned & GetMidnight;
3
+ type GetToday = GetTimeZoned & GetMidnight;
4
4
  /**
5
5
  * Shortcut to get today's date.
6
6
  * Creating a date from scratch (no user input), thus needs to be London time.
@@ -1,7 +1,7 @@
1
1
  import { GetMidnight } from './getMidnight';
2
2
  import { GetTimeZoned } from './getTimeZoned';
3
3
  import { Timeframe } from './timeframe';
4
- declare type GetTwoWeeksAgo = GetTimeZoned & GetMidnight;
4
+ type GetTwoWeeksAgo = GetTimeZoned & GetMidnight;
5
5
  /**
6
6
  * Return an object of start/end predefined date of Two Weeks Ago.
7
7
  * Creating a date from scratch (no user input), thus needs to be London time.
@@ -1,6 +1,6 @@
1
1
  import { DateType } from './date';
2
2
  import { GetTimeZoned } from './getTimeZoned';
3
- declare type GetWeeksAgo = GetTimeZoned & {
3
+ type GetWeeksAgo = GetTimeZoned & {
4
4
  input: DateType;
5
5
  weeksAgo: number;
6
6
  setMidnight?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { GetMidnight } from './getMidnight';
2
2
  import { GetTimeZoned } from './getTimeZoned';
3
- declare type GetYesterday = GetTimeZoned & GetMidnight;
3
+ type GetYesterday = GetTimeZoned & GetMidnight;
4
4
  /**
5
5
  * Shortcut to get yesterday's date.
6
6
  * Creating a date from scratch (no user input), thus needs to be London time.
@@ -4,4 +4,4 @@ export declare const predefinedTimeframes: {
4
4
  THIS_WEEK: string;
5
5
  LAST_WEEK: string;
6
6
  };
7
- export declare type PredefinedTimeframes = typeof predefinedTimeframes.NONE | typeof predefinedTimeframes.CUSTOM | typeof predefinedTimeframes.LAST_WEEK | typeof predefinedTimeframes.THIS_WEEK;
7
+ export type PredefinedTimeframes = typeof predefinedTimeframes.NONE | typeof predefinedTimeframes.CUSTOM | typeof predefinedTimeframes.LAST_WEEK | typeof predefinedTimeframes.THIS_WEEK;
@@ -2,7 +2,7 @@ import { DateType } from './date';
2
2
  /**
3
3
  * A timeframe has a start and an end date.
4
4
  */
5
- export declare type Timeframe = {
5
+ export type Timeframe = {
6
6
  end: DateType;
7
7
  start: DateType;
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import { Filter } from './filter';
2
2
  import { Order } from './orders';
3
- export declare type Request = {
3
+ export type Request = {
4
4
  crawlId?: number;
5
5
  customPath?: string;
6
6
  filters?: Filter[];
@@ -1,4 +1,4 @@
1
- export declare type Filter = {
1
+ export type Filter = {
2
2
  field: string;
3
3
  operand: string;
4
4
  value: string;
@@ -1,5 +1,5 @@
1
1
  import ApiResponse from '../../api/ApiResponse';
2
- declare type GetData = {
2
+ type GetData = {
3
3
  url: string;
4
4
  };
5
5
  declare const getData: ({ url }: GetData) => Promise<ApiResponse>;
@@ -1,4 +1,4 @@
1
- declare type InitClient = {
1
+ type InitClient = {
2
2
  auth: {
3
3
  apiId: string;
4
4
  apiKey: string;