@8ms/helpers 1.2.2 → 1.2.4
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/api/ApiResponse.d.ts +1 -1
- package/api/isError.d.ts +1 -1
- package/api/isSuccess.d.ts +1 -1
- package/api/response.d.ts +1 -1
- package/api/states.d.ts +1 -1
- package/atInternet/request.d.ts +1 -1
- package/aws/athenaExpress/initClient.d.ts +1 -1
- package/aws/athenaExpress/query.d.ts +1 -1
- package/aws/getConfig.d.ts +1 -1
- package/aws/glue/initClient.d.ts +1 -1
- package/aws/glue/invoke.d.ts +1 -1
- package/aws/lambda/getHandlerPath.d.ts +1 -1
- package/aws/lambda/initClient.d.ts +1 -1
- package/aws/lambda/invoke.d.ts +1 -1
- package/aws/s3/copyFile.d.ts +2 -2
- package/aws/s3/deleteFile.d.ts +1 -1
- package/aws/s3/deleteFiles.d.ts +1 -1
- package/aws/s3/deleteFolder.d.ts +1 -1
- package/aws/s3/getGlueJson.d.ts +1 -1
- package/aws/s3/getPresignedPost.d.ts +2 -2
- package/aws/s3/getSignedUrl.d.ts +1 -1
- package/aws/s3/initClient.d.ts +1 -1
- package/aws/s3/isFileExists.d.ts +1 -1
- package/aws/s3/listFiles.d.ts +1 -1
- package/aws/s3/listFolders.d.ts +1 -1
- package/aws/s3/moveFile.d.ts +1 -1
- package/aws/s3/readBuffer.d.ts +2 -2
- package/aws/s3/readFile.d.ts +3 -3
- package/aws/s3/writeFile.d.ts +1 -1
- package/aws/s3/writePresignedPost.d.ts +1 -1
- package/aws/s3/writeUrlContents.d.ts +1 -1
- package/aws/s3cache/cache.d.ts +1 -1
- package/aws/s3cache/getCache.d.ts +1 -1
- package/aws/s3cache/getKey.d.ts +1 -1
- package/aws/s3cache/saveCache.d.ts +1 -1
- package/aws/s3cache/updateCache.d.ts +1 -1
- package/aws/ses/SimpleEmail.d.ts +1 -1
- package/aws/ses/initClient.d.ts +1 -1
- package/aws/sqs/addToQueue.d.ts +2 -2
- package/aws/sqs/deleteFromQueue.d.ts +1 -1
- package/aws/sqs/initClient.d.ts +1 -1
- package/aws/ssm/getParameter.d.ts +1 -1
- package/aws/ssm/initClient.d.ts +1 -1
- package/axios/get.d.ts +1 -1
- package/axios/post.d.ts +1 -1
- package/crud/actions.d.ts +1 -1
- package/date/date.d.ts +1 -1
- package/date/duration.d.ts +1 -1
- package/date/financialYear.d.ts +1 -1
- package/date/financialYearWeek.d.ts +1 -1
- package/date/format.d.ts +1 -1
- package/date/getDate.d.ts +1 -1
- package/date/getFinancialYear.d.ts +1 -1
- package/date/getFinancialYearWeeks.d.ts +1 -1
- package/date/getLastWeek.d.ts +1 -1
- package/date/getMax.d.ts +1 -1
- package/date/getMidnight.d.ts +1 -1
- package/date/getMin.d.ts +1 -1
- package/date/getMonday.d.ts +1 -1
- package/date/getNumber.d.ts +1 -1
- package/date/getSunday.d.ts +1 -1
- package/date/getThisWeek.d.ts +1 -1
- package/date/getTimeZoned.d.ts +1 -1
- package/date/getToday.d.ts +1 -1
- package/date/getTwoWeeksAgo.d.ts +1 -1
- package/date/getWeeksAgo.d.ts +1 -1
- package/date/getYesterday.d.ts +1 -1
- package/date/predefinedTimeframes.d.ts +1 -1
- package/date/timeframe.d.ts +1 -1
- package/deepcrawl/api/buildRequest.d.ts +1 -1
- package/deepcrawl/api/filter.d.ts +1 -1
- package/deepcrawl/api/getData.d.ts +1 -1
- package/deepcrawl/api/initClient.d.ts +1 -1
- package/deepcrawl/api/orders.d.ts +1 -1
- package/deepcrawl/graphql/getData.d.ts +1 -1
- package/deepcrawl/graphql/initClient.d.ts +1 -1
- package/environment/environments.d.ts +1 -1
- package/environment/platforms.d.ts +1 -1
- package/eskimi/campaign.d.ts +1 -1
- package/eskimi/getAccessToken.d.ts +1 -1
- package/global/forceUpdate.d.ts +1 -1
- package/global/init.d.ts +1 -1
- package/global/read.d.ts +1 -1
- package/google/bigQuery/IsTableExists.d.ts +1 -1
- package/google/bigQuery/createTable.d.ts +1 -1
- package/google/bigQuery/initClient.d.ts +1 -1
- package/google/bigQuery/loadData.d.ts +1 -1
- package/google/bigQuery/query.d.ts +1 -1
- package/google/getConfig.d.ts +2 -2
- package/google/keywordPlanner/countries.d.ts +1 -1
- package/google/keywordPlanner/months.d.ts +1 -1
- package/google/keywordPlanner/networks.d.ts +1 -1
- package/google/keywordPlanner/request.d.ts +1 -1
- package/google/keywordPlanner/response.d.ts +3 -3
- package/google/sheets/getAssociatedData.d.ts +1 -1
- package/google/sheets/getBatchData.d.ts +2 -2
- package/google/sheets/initClient.d.ts +1 -1
- package/google/storage/copyToCloud.d.ts +1 -1
- package/google/storage/initClient.d.ts +1 -1
- package/google/storage/writeFile.d.ts +1 -1
- package/googleAds/getCustomer.d.ts +1 -1
- package/googleAds/initClient.d.ts +2 -2
- package/initClients.d.ts +1 -1
- package/littleWarden/getUrlStatus.d.ts +1 -1
- package/littleWarden/states.d.ts +1 -1
- package/myTarget/getAccessToken.d.ts +1 -1
- package/nextAuth/states.d.ts +1 -1
- package/number/getRounded.d.ts +1 -1
- package/object/replaceKeys.d.ts +1 -1
- package/package.json +46 -50
- package/snapchat/getAccessToken.d.ts +1 -1
- package/string/getStrippedTags.d.ts +9 -0
- package/string/getStrippedTags.js +18 -0
- package/string/getUnescaped.d.ts +1 -1
- package/swr/isData.js +1 -1
- package/swr/isError.js +1 -1
- package/url/buildUrl.d.ts +1 -1
- package/url/url.d.ts +1 -1
- package/util/defaultTo.d.ts +1 -1
- package/util/isUndefined.d.ts +1 -1
- package/webWorker/states.d.ts +1 -1
package/api/ApiResponse.d.ts
CHANGED
package/api/isError.d.ts
CHANGED
package/api/isSuccess.d.ts
CHANGED
package/api/response.d.ts
CHANGED
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
|
|
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;
|
package/atInternet/request.d.ts
CHANGED
package/aws/getConfig.d.ts
CHANGED
package/aws/glue/initClient.d.ts
CHANGED
package/aws/glue/invoke.d.ts
CHANGED
package/aws/lambda/invoke.d.ts
CHANGED
package/aws/s3/copyFile.d.ts
CHANGED
package/aws/s3/deleteFile.d.ts
CHANGED
package/aws/s3/deleteFiles.d.ts
CHANGED
package/aws/s3/deleteFolder.d.ts
CHANGED
package/aws/s3/getGlueJson.d.ts
CHANGED
package/aws/s3/getSignedUrl.d.ts
CHANGED
package/aws/s3/initClient.d.ts
CHANGED
package/aws/s3/isFileExists.d.ts
CHANGED
package/aws/s3/listFiles.d.ts
CHANGED
package/aws/s3/listFolders.d.ts
CHANGED
package/aws/s3/moveFile.d.ts
CHANGED
package/aws/s3/readBuffer.d.ts
CHANGED
package/aws/s3/readFile.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
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
|
|
17
|
+
export type ReadFileResponse = Modified & {
|
|
18
18
|
body: any;
|
|
19
19
|
};
|
|
20
20
|
export declare const readFileDefault: ReadFileResponse;
|
|
21
|
-
|
|
21
|
+
type ReadFile = {
|
|
22
22
|
bucket: string;
|
|
23
23
|
key: string;
|
|
24
24
|
isJson?: boolean;
|
package/aws/s3/writeFile.d.ts
CHANGED
package/aws/s3cache/cache.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import durationComparisons from '../../date/durationComparisons';
|
|
2
2
|
import durations from '../../date/durations';
|
|
3
|
-
export
|
|
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;
|
package/aws/s3cache/getKey.d.ts
CHANGED
package/aws/ses/SimpleEmail.d.ts
CHANGED
package/aws/ses/initClient.d.ts
CHANGED
package/aws/sqs/addToQueue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
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
|
-
|
|
16
|
+
type AddToQueue = {
|
|
17
17
|
data: any;
|
|
18
18
|
dedupeId: string;
|
|
19
19
|
groupId?: string;
|
package/aws/sqs/initClient.d.ts
CHANGED
package/aws/ssm/initClient.d.ts
CHANGED
package/axios/get.d.ts
CHANGED
package/axios/post.d.ts
CHANGED
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
|
|
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
package/date/duration.d.ts
CHANGED
package/date/financialYear.d.ts
CHANGED
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
|
-
|
|
4
|
+
type Format = GetTimeZoned & GetMidnight & {
|
|
5
5
|
dateFormat?: string;
|
|
6
6
|
input: DateType;
|
|
7
7
|
};
|
package/date/getDate.d.ts
CHANGED
package/date/getLastWeek.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GetMidnight } from './getMidnight';
|
|
2
2
|
import { GetTimeZoned } from './getTimeZoned';
|
|
3
3
|
import { Timeframe } from './timeframe';
|
|
4
|
-
|
|
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
|
-
|
|
4
|
+
type GetMax = GetTimeZoned & GetMidnight & {
|
|
5
5
|
input: DateType;
|
|
6
6
|
max: DateType;
|
|
7
7
|
};
|
package/date/getMidnight.d.ts
CHANGED
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
|
-
|
|
4
|
+
type GetMin = GetTimeZoned & GetMidnight & {
|
|
5
5
|
input: DateType;
|
|
6
6
|
min: DateType;
|
|
7
7
|
};
|
package/date/getMonday.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
|
-
|
|
4
|
+
type GetMonday = GetTimeZoned & GetMidnight & {
|
|
5
5
|
input?: DateType;
|
|
6
6
|
weeksAgo: number;
|
|
7
7
|
};
|
package/date/getNumber.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
|
-
|
|
4
|
+
type GetNumber = GetTimeZoned & GetMidnight & {
|
|
5
5
|
input: DateType;
|
|
6
6
|
};
|
|
7
7
|
/**
|
package/date/getSunday.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
|
-
|
|
4
|
+
type GetSunday = GetTimeZoned & GetMidnight & {
|
|
5
5
|
input?: DateType;
|
|
6
6
|
weeksAgo: number;
|
|
7
7
|
};
|
package/date/getThisWeek.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GetMidnight } from './getMidnight';
|
|
2
2
|
import { GetTimeZoned } from './getTimeZoned';
|
|
3
3
|
import { Timeframe } from './timeframe';
|
|
4
|
-
|
|
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.
|
package/date/getTimeZoned.d.ts
CHANGED
package/date/getToday.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetMidnight } from './getMidnight';
|
|
2
2
|
import { GetTimeZoned } from './getTimeZoned';
|
|
3
|
-
|
|
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.
|
package/date/getTwoWeeksAgo.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GetMidnight } from './getMidnight';
|
|
2
2
|
import { GetTimeZoned } from './getTimeZoned';
|
|
3
3
|
import { Timeframe } from './timeframe';
|
|
4
|
-
|
|
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.
|
package/date/getWeeksAgo.d.ts
CHANGED
package/date/getYesterday.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetMidnight } from './getMidnight';
|
|
2
2
|
import { GetTimeZoned } from './getTimeZoned';
|
|
3
|
-
|
|
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
|
|
7
|
+
export type PredefinedTimeframes = typeof predefinedTimeframes.NONE | typeof predefinedTimeframes.CUSTOM | typeof predefinedTimeframes.LAST_WEEK | typeof predefinedTimeframes.THIS_WEEK;
|
package/date/timeframe.d.ts
CHANGED