@8ms/helpers 1.0.23 → 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/api/index.d.ts +5 -4
- package/dist/api/index.js +7 -5
- package/dist/api/response.d.ts +7 -0
- package/dist/api/response.js +9 -0
- package/dist/api/states.d.ts +8 -0
- package/dist/api/states.js +10 -0
- package/dist/api/unexpectedError.d.ts +1 -0
- package/dist/api/unexpectedError.js +4 -0
- package/dist/aws/athenaExpress/getClient.d.ts +2 -2
- package/dist/aws/{types.d.ts → config.d.ts} +1 -1
- package/dist/{api/types.js → aws/config.js} +0 -0
- package/dist/aws/getConfig.d.ts +2 -2
- package/dist/aws/glue/getClient.d.ts +2 -2
- package/dist/aws/index.d.ts +2 -2
- package/dist/aws/lambda/getClient.d.ts +2 -2
- package/dist/aws/s3/getClient.d.ts +2 -2
- package/dist/aws/s3/getSignedUrl.d.ts +2 -2
- package/dist/aws/s3/getSignedUrl.js +17 -6
- package/dist/aws/s3/writePresignedPost.d.ts +4 -4
- package/dist/aws/s3/writePresignedPost.js +14 -3
- package/dist/aws/s3cache/cache.d.ts +6 -0
- package/dist/aws/s3cache/{types.js → cache.js} +0 -0
- package/dist/aws/s3cache/getCache.d.ts +2 -2
- package/dist/aws/s3cache/getKey.d.ts +2 -2
- package/dist/aws/s3cache/index.d.ts +2 -2
- package/dist/aws/s3cache/saveCache.d.ts +2 -2
- package/dist/aws/s3cache/updateCache.d.ts +2 -2
- package/dist/aws/ses/SimpleEmail.d.ts +2 -2
- package/dist/aws/ses/SimpleEmail.js +7 -7
- package/dist/aws/ses/getClient.d.ts +2 -2
- package/dist/aws/ssm/getClient.d.ts +2 -2
- package/dist/axios/get.d.ts +6 -1
- package/dist/axios/get.js +1 -1
- package/dist/axios/index.d.ts +2 -3
- package/dist/axios/post.d.ts +7 -1
- package/dist/axios/post.js +1 -1
- package/dist/crud/index.d.ts +3 -4
- package/dist/crud/index.js +3 -3
- package/dist/crud/states.d.ts +7 -0
- package/dist/crud/{constants.js → states.js} +2 -2
- package/dist/date/date.d.ts +4 -0
- package/dist/{aws/types.js → date/date.js} +0 -0
- package/dist/date/duration.d.ts +5 -0
- package/dist/{axios/types.js → date/duration.js} +0 -0
- package/dist/date/durationComparisons.d.ts +4 -0
- package/dist/date/durationComparisons.js +7 -0
- package/dist/date/durations.d.ts +7 -0
- package/dist/date/durations.js +10 -0
- package/dist/date/financialYear.d.ts +4 -0
- package/dist/{crud/types.js → date/financialYear.js} +0 -0
- package/dist/date/financialYearWeek.d.ts +6 -0
- package/dist/date/{types.js → financialYearWeek.js} +0 -0
- package/dist/date/format.d.ts +1 -1
- package/dist/date/getDate.d.ts +1 -1
- package/dist/date/getFinancialYear.d.ts +1 -1
- package/dist/date/getFinancialYearToDate.d.ts +1 -1
- package/dist/date/getFinancialYearWeeks.d.ts +1 -1
- package/dist/date/getLastWeek.d.ts +1 -1
- package/dist/date/getMax.d.ts +1 -1
- package/dist/date/getMin.d.ts +1 -1
- package/dist/date/getMonday.d.ts +1 -1
- package/dist/date/getNumber.d.ts +1 -1
- package/dist/date/getPredefinedTimeframe.d.ts +3 -2
- package/dist/date/getPredefinedTimeframe.js +4 -4
- package/dist/date/getSunday.d.ts +1 -1
- package/dist/date/getThisWeek.d.ts +1 -1
- package/dist/date/getTwoWeeksAgo.d.ts +1 -1
- package/dist/date/getWeeksAgo.d.ts +1 -1
- package/dist/date/index.d.ts +11 -4
- package/dist/date/index.js +9 -6
- package/dist/date/isLastWeek.d.ts +1 -1
- package/dist/date/isThisWeek.d.ts +1 -1
- package/dist/date/predefinedTimeframes.d.ts +7 -0
- package/dist/date/predefinedTimeframes.js +9 -0
- package/dist/date/timeframe.d.ts +8 -0
- package/dist/{environment/types.js → date/timeframe.js} +0 -0
- package/dist/date/timeframes.d.ts +4 -0
- package/dist/date/timeframes.js +7 -0
- package/dist/environment/environments.d.ts +6 -0
- package/dist/environment/{constants.js → environments.js} +2 -6
- package/dist/environment/getEnvironment.d.ts +4 -3
- package/dist/environment/getEnvironment.js +4 -4
- package/dist/environment/index.d.ts +4 -4
- package/dist/environment/index.js +5 -4
- package/dist/environment/isAws.d.ts +2 -2
- package/dist/environment/isAws.js +2 -2
- package/dist/environment/isDevelopment.d.ts +2 -2
- package/dist/environment/isDevelopment.js +2 -2
- package/dist/environment/isLocalhost.d.ts +2 -2
- package/dist/environment/isProduction.d.ts +2 -2
- package/dist/environment/isProduction.js +2 -2
- package/dist/environment/isStaging.d.ts +2 -2
- package/dist/environment/isStaging.js +2 -2
- package/dist/environment/isVercel.d.ts +2 -2
- package/dist/environment/isVercel.js +2 -2
- package/dist/environment/platforms.d.ts +5 -0
- package/dist/environment/platforms.js +7 -0
- package/dist/eskimi/accessToken.d.ts +9 -0
- package/dist/eskimi/{types.js → accessToken.js} +0 -0
- package/dist/eskimi/ageGroups.d.ts +4 -0
- package/dist/eskimi/ageGroups.js +41 -0
- package/dist/eskimi/{types.d.ts → campaign.d.ts} +0 -0
- package/dist/{google/types.js → eskimi/campaign.js} +0 -0
- package/dist/eskimi/devices.d.ts +4 -0
- package/dist/eskimi/devices.js +13 -0
- package/dist/eskimi/{constants.d.ts → endpoints.d.ts} +1 -13
- package/dist/eskimi/endpoints.js +18 -0
- package/dist/eskimi/genders.d.ts +4 -0
- package/dist/eskimi/genders.js +13 -0
- package/dist/eskimi/getAccessToken.d.ts +1 -9
- package/dist/eskimi/getAgeGroup.js +2 -2
- package/dist/eskimi/getDevice.js +2 -2
- package/dist/eskimi/getGender.js +2 -2
- package/dist/eskimi/index.d.ts +8 -4
- package/dist/eskimi/index.js +9 -6
- package/dist/google/getCredentials.d.ts +18 -1
- package/dist/google/index.d.ts +2 -3
- package/dist/google/sheets/getAuth.d.ts +1 -1
- package/dist/google/sheets/getAuth.js +5 -2
- package/dist/googleAds/{types.d.ts → client.d.ts} +0 -0
- package/dist/googleAds/{types.js → client.js} +0 -0
- package/dist/googleAds/getClient.d.ts +3 -3
- package/dist/googleAds/index.d.ts +1 -1
- package/dist/myTarget/getAccessToken.d.ts +2 -2
- package/dist/nextAuth/{constants.d.ts → authStates.d.ts} +1 -1
- package/dist/nextAuth/{constants.js → authStates.js} +2 -2
- package/dist/nextAuth/index.d.ts +2 -2
- package/dist/nextAuth/index.js +3 -3
- package/dist/snapchat/getAccessToken.d.ts +2 -2
- package/dist/url/buildUrl.d.ts +3 -3
- package/dist/url/index.d.ts +1 -1
- package/dist/url/{types.d.ts → url.d.ts} +0 -0
- package/dist/url/{types.js → url.js} +0 -0
- package/dist/webWorker/index.d.ts +3 -4
- package/dist/webWorker/index.js +3 -3
- package/dist/webWorker/states.d.ts +6 -0
- package/dist/webWorker/{constant.js → states.js} +2 -2
- package/package.json +1 -1
- package/dist/api/constants.d.ts +0 -10
- package/dist/api/constants.js +0 -16
- package/dist/api/types.d.ts +0 -7
- package/dist/aws/s3cache/types.d.ts +0 -6
- package/dist/axios/types.d.ts +0 -13
- package/dist/crud/constants.d.ts +0 -6
- package/dist/crud/types.d.ts +0 -2
- package/dist/date/constants.d.ts +0 -21
- package/dist/date/constants.js +0 -24
- package/dist/date/types.d.ts +0 -28
- package/dist/environment/constants.d.ts +0 -9
- package/dist/environment/types.d.ts +0 -3
- package/dist/eskimi/constants.js +0 -76
- package/dist/google/types.d.ts +0 -18
- package/dist/webWorker/constant.d.ts +0 -5
- package/dist/webWorker/types.d.ts +0 -2
- package/dist/webWorker/types.js +0 -2
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare type GetAccessTokenType = {
|
|
3
|
-
SsmLib: any;
|
|
4
|
-
awsConfig: AwsConfigType;
|
|
5
|
-
force: boolean;
|
|
6
|
-
ssmName: string;
|
|
7
|
-
ssmWithDecryption: boolean;
|
|
8
|
-
ssmIsJson: boolean;
|
|
9
|
-
};
|
|
1
|
+
import { GetAccessTokenType } from './accessToken';
|
|
10
2
|
/**
|
|
11
3
|
* Retrieve the access token from SSM Parameter Store.
|
|
12
4
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAgeGroup = void 0;
|
|
4
|
-
var
|
|
4
|
+
var ageGroups_1 = require("./ageGroups");
|
|
5
5
|
/**
|
|
6
6
|
* Map the Age Group and return the user-friendly string.
|
|
7
7
|
*/
|
|
8
8
|
var getAgeGroup = function (_a) {
|
|
9
9
|
var input = _a.input;
|
|
10
|
-
var matches =
|
|
10
|
+
var matches = ageGroups_1.ageGroups.filter(function (group) { return group.id === input; });
|
|
11
11
|
if (1 === matches.length) {
|
|
12
12
|
return matches[0].name;
|
|
13
13
|
}
|
package/dist/eskimi/getDevice.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
3
|
+
var devices_1 = require("./devices");
|
|
4
4
|
/**
|
|
5
5
|
* Map the Devices and return the user-friendly string.
|
|
6
6
|
*/
|
|
7
7
|
var getDevice = function (_a) {
|
|
8
8
|
var input = _a.input;
|
|
9
|
-
var matches =
|
|
9
|
+
var matches = devices_1.devices.filter(function (device) { return device.id === input; });
|
|
10
10
|
if (1 === matches.length) {
|
|
11
11
|
return matches[0].name;
|
|
12
12
|
}
|
package/dist/eskimi/getGender.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
3
|
+
var genders_1 = require("./genders");
|
|
4
4
|
/**
|
|
5
5
|
* Map the Gender and return the user-friendly string.
|
|
6
6
|
*/
|
|
7
7
|
var getGender = function (_a) {
|
|
8
8
|
var input = _a.input;
|
|
9
|
-
var matches =
|
|
9
|
+
var matches = genders_1.genders.filter(function (gender) { return gender.id === input; });
|
|
10
10
|
if (1 === matches.length) {
|
|
11
11
|
return matches[0].name;
|
|
12
12
|
}
|
package/dist/eskimi/index.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ageGroups } from './ageGroups';
|
|
2
|
+
import { devices } from './devices';
|
|
3
|
+
import { endpoints } from './endpoints';
|
|
4
|
+
import { genders } from './genders';
|
|
2
5
|
import getAccessToken from './getAccessToken';
|
|
3
6
|
import getAgeGroup from './getAgeGroup';
|
|
4
7
|
import getCampaignIds from './getCampaignIds';
|
|
5
8
|
import getDevice from './getDevice';
|
|
6
9
|
import getGender from './getGender';
|
|
7
10
|
import request from './request';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
+
import { GetAccessTokenType } from './accessToken';
|
|
12
|
+
import { CampaignType } from './campaign';
|
|
13
|
+
export type { CampaignType, GetAccessTokenType, };
|
|
14
|
+
export { ageGroups, devices, endpoints, genders, getAccessToken, getAgeGroup, getCampaignIds, getDevice, getGender, request, };
|
package/dist/eskimi/index.js
CHANGED
|
@@ -3,12 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.request = exports.getGender = exports.getDevice = exports.getCampaignIds = exports.getAgeGroup = exports.getAccessToken = exports.
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports, "
|
|
11
|
-
|
|
6
|
+
exports.request = exports.getGender = exports.getDevice = exports.getCampaignIds = exports.getAgeGroup = exports.getAccessToken = exports.genders = exports.endpoints = exports.devices = exports.ageGroups = void 0;
|
|
7
|
+
var ageGroups_1 = require("./ageGroups");
|
|
8
|
+
Object.defineProperty(exports, "ageGroups", { enumerable: true, get: function () { return ageGroups_1.ageGroups; } });
|
|
9
|
+
var devices_1 = require("./devices");
|
|
10
|
+
Object.defineProperty(exports, "devices", { enumerable: true, get: function () { return devices_1.devices; } });
|
|
11
|
+
var endpoints_1 = require("./endpoints");
|
|
12
|
+
Object.defineProperty(exports, "endpoints", { enumerable: true, get: function () { return endpoints_1.endpoints; } });
|
|
13
|
+
var genders_1 = require("./genders");
|
|
14
|
+
Object.defineProperty(exports, "genders", { enumerable: true, get: function () { return genders_1.genders; } });
|
|
12
15
|
var getAccessToken_1 = __importDefault(require("./getAccessToken"));
|
|
13
16
|
exports.getAccessToken = getAccessToken_1.default;
|
|
14
17
|
var getAgeGroup_1 = __importDefault(require("./getAgeGroup"));
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConfigType } from '../aws';
|
|
2
|
+
export declare type GetCredentialsType = {
|
|
3
|
+
SsmLib: any;
|
|
4
|
+
awsConfig: ConfigType;
|
|
5
|
+
parameterName: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type CredentialsType = {
|
|
8
|
+
type: string;
|
|
9
|
+
project_id: string;
|
|
10
|
+
private_key_id: string;
|
|
11
|
+
private_key: string;
|
|
12
|
+
client_email: string;
|
|
13
|
+
client_id: string;
|
|
14
|
+
auth_uri: string;
|
|
15
|
+
token_uri: string;
|
|
16
|
+
auth_provider_x509_cert_url: string;
|
|
17
|
+
client_x509_cert_url: string;
|
|
18
|
+
};
|
|
2
19
|
/**
|
|
3
20
|
* Fetch the data from Parameter Store and return the data ready to be used with Google API.
|
|
4
21
|
*/
|
package/dist/google/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import getCredentials from './getCredentials';
|
|
2
|
-
|
|
3
|
-
export type { CredentialsType, };
|
|
1
|
+
import getCredentials, { CredentialsType, GetCredentialsType } from './getCredentials';
|
|
2
|
+
export type { GetCredentialsType, CredentialsType, };
|
|
4
3
|
export { getCredentials, };
|
|
@@ -35,8 +35,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
38
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var
|
|
42
|
+
var getCredentials_1 = __importDefault(require("../getCredentials"));
|
|
40
43
|
/**
|
|
41
44
|
* Initialise the Google Sheets instance using the separate service method.
|
|
42
45
|
* https://github.com/googleapis/google-api-nodejs-client
|
|
@@ -48,7 +51,7 @@ var getAuth = function (_a) {
|
|
|
48
51
|
var credentials, auth;
|
|
49
52
|
return __generator(this, function (_b) {
|
|
50
53
|
switch (_b.label) {
|
|
51
|
-
case 0: return [4 /*yield*/, (0,
|
|
54
|
+
case 0: return [4 /*yield*/, (0, getCredentials_1.default)({ SsmLib: SsmLib, awsConfig: awsConfig, parameterName: parameterName })];
|
|
52
55
|
case 1:
|
|
53
56
|
credentials = _b.sent();
|
|
54
57
|
auth = new SheetsLib.auth.GoogleAuth({
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ClientType } from './
|
|
1
|
+
import { ConfigType } from '../aws';
|
|
2
|
+
import { ClientType } from './client';
|
|
3
3
|
declare type GetClientType = {
|
|
4
4
|
GoogleAdsLib: any;
|
|
5
5
|
SsmLib: any;
|
|
6
|
-
awsConfig:
|
|
6
|
+
awsConfig: ConfigType;
|
|
7
7
|
parameterName: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.authStates = void 0;
|
|
4
|
+
exports.authStates = {
|
|
5
5
|
AUTHENTICATED: 'authenticated',
|
|
6
6
|
PENDING: 'loading',
|
|
7
7
|
UNAUTHENTICATED: 'unauthenticated',
|
package/dist/nextAuth/index.d.ts
CHANGED
package/dist/nextAuth/index.js
CHANGED
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.isSessionReady = exports.
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(exports, "
|
|
6
|
+
exports.isSessionReady = exports.authStates = void 0;
|
|
7
|
+
var authStates_1 = require("./authStates");
|
|
8
|
+
Object.defineProperty(exports, "authStates", { enumerable: true, get: function () { return authStates_1.authStates; } });
|
|
9
9
|
var isSessionReady_1 = __importDefault(require("./isSessionReady"));
|
|
10
10
|
exports.isSessionReady = isSessionReady_1.default;
|
package/dist/url/buildUrl.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UrlType } from './
|
|
1
|
+
import { PlatformsType } from '../environment/platforms';
|
|
2
|
+
import { UrlType } from './url';
|
|
3
3
|
declare type BuildUrlType = {
|
|
4
4
|
path: string;
|
|
5
|
-
platform:
|
|
5
|
+
platform: PlatformsType;
|
|
6
6
|
url: UrlType;
|
|
7
7
|
};
|
|
8
8
|
/**
|
package/dist/url/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import buildRelative from './buildRelative';
|
|
|
3
3
|
import buildUrl from './buildUrl';
|
|
4
4
|
import isAbsolute from './isAbsolute';
|
|
5
5
|
import isRelative from './isRelative';
|
|
6
|
-
import { UrlType } from './
|
|
6
|
+
import { UrlType } from './url';
|
|
7
7
|
export type { UrlType, };
|
|
8
8
|
export { buildParameters, buildRelative, buildUrl, isAbsolute, isRelative, };
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export { WebWorkerData, };
|
|
1
|
+
import { states, StatesType } from './states';
|
|
2
|
+
export type { StatesType, };
|
|
3
|
+
export { states, };
|
package/dist/webWorker/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.states = void 0;
|
|
4
|
+
var states_1 = require("./states");
|
|
5
|
+
Object.defineProperty(exports, "states", { enumerable: true, get: function () { return states_1.states; } });
|
package/package.json
CHANGED
package/dist/api/constants.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ApiResponseType } from './types';
|
|
2
|
-
export declare const ApiStatus: {
|
|
3
|
-
ERROR: string;
|
|
4
|
-
IDLE: string;
|
|
5
|
-
PENDING: string;
|
|
6
|
-
SUCCESS: string;
|
|
7
|
-
VALIDATION_ERROR: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const ApiPlaceholder: ApiResponseType;
|
|
10
|
-
export declare const UnexpectedError: string;
|
package/dist/api/constants.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnexpectedError = exports.ApiPlaceholder = exports.ApiStatus = void 0;
|
|
4
|
-
exports.ApiStatus = {
|
|
5
|
-
ERROR: 'error',
|
|
6
|
-
IDLE: 'idle',
|
|
7
|
-
PENDING: 'pending',
|
|
8
|
-
SUCCESS: 'success',
|
|
9
|
-
VALIDATION_ERROR: 'validationError',
|
|
10
|
-
};
|
|
11
|
-
exports.ApiPlaceholder = {
|
|
12
|
-
body: null,
|
|
13
|
-
error: null,
|
|
14
|
-
status: exports.ApiStatus.IDLE,
|
|
15
|
-
};
|
|
16
|
-
exports.UnexpectedError = 'An unexpected error occurred, please try again.';
|
package/dist/api/types.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ApiStatus } from './constants';
|
|
2
|
-
export declare type ApiResponseType = {
|
|
3
|
-
body: any | null;
|
|
4
|
-
error: string | null;
|
|
5
|
-
status: ApiStatusType;
|
|
6
|
-
};
|
|
7
|
-
export declare type ApiStatusType = typeof ApiStatus.ERROR | typeof ApiStatus.IDLE | typeof ApiStatus.PENDING | typeof ApiStatus.SUCCESS | typeof ApiStatus.VALIDATION_ERROR;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Duration, DurationComparison } from '../../date';
|
|
2
|
-
export declare type CacheExpiresType = {
|
|
3
|
-
duration: number;
|
|
4
|
-
from: typeof DurationComparison.VS_MIDNIGHT | typeof DurationComparison.VS_NOW;
|
|
5
|
-
timeframe: typeof Duration.FOREVER | typeof Duration.MONTHS | typeof Duration.DAYS | typeof Duration.HOURS | typeof Duration.MINUTES;
|
|
6
|
-
};
|
package/dist/axios/types.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare type GetType = {
|
|
2
|
-
config?: object;
|
|
3
|
-
onError?: Function;
|
|
4
|
-
onSuccess?: Function;
|
|
5
|
-
url: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type PostType = {
|
|
8
|
-
config?: object;
|
|
9
|
-
data?: object;
|
|
10
|
-
onError?: Function;
|
|
11
|
-
onSuccess?: Function;
|
|
12
|
-
url: string;
|
|
13
|
-
};
|
package/dist/crud/constants.d.ts
DELETED
package/dist/crud/types.d.ts
DELETED
package/dist/date/constants.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const Duration: {
|
|
2
|
-
FOREVER: string;
|
|
3
|
-
MONTHS: string;
|
|
4
|
-
DAYS: string;
|
|
5
|
-
HOURS: string;
|
|
6
|
-
MINUTES: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const DurationComparison: {
|
|
9
|
-
VS_NOW: string;
|
|
10
|
-
VS_MIDNIGHT: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const Timeframe: {
|
|
13
|
-
CURRENT: string;
|
|
14
|
-
COMPARISON: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const TimeframePredefined: {
|
|
17
|
-
NONE: string;
|
|
18
|
-
CUSTOM: string;
|
|
19
|
-
THIS_WEEK: string;
|
|
20
|
-
LAST_WEEK: string;
|
|
21
|
-
};
|
package/dist/date/constants.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TimeframePredefined = exports.Timeframe = exports.DurationComparison = exports.Duration = void 0;
|
|
4
|
-
exports.Duration = {
|
|
5
|
-
FOREVER: 'forever',
|
|
6
|
-
MONTHS: 'months',
|
|
7
|
-
DAYS: 'days',
|
|
8
|
-
HOURS: 'hours',
|
|
9
|
-
MINUTES: 'minutes',
|
|
10
|
-
};
|
|
11
|
-
exports.DurationComparison = {
|
|
12
|
-
VS_NOW: 'vsNow',
|
|
13
|
-
VS_MIDNIGHT: 'vsMidnight',
|
|
14
|
-
};
|
|
15
|
-
exports.Timeframe = {
|
|
16
|
-
CURRENT: 'current',
|
|
17
|
-
COMPARISON: 'comparison',
|
|
18
|
-
};
|
|
19
|
-
exports.TimeframePredefined = {
|
|
20
|
-
NONE: 'none',
|
|
21
|
-
CUSTOM: 'custom',
|
|
22
|
-
THIS_WEEK: 'thisWeek',
|
|
23
|
-
LAST_WEEK: 'lastWeek',
|
|
24
|
-
};
|
package/dist/date/types.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { TimeframePredefined } from './constants';
|
|
2
|
-
/**
|
|
3
|
-
* A date can be either a number (YYYYMMDD), string (YYYY-MM-DD) or Date instance.
|
|
4
|
-
*/
|
|
5
|
-
export declare type DateType = number | string | Date;
|
|
6
|
-
export declare type FinancialYearType = {
|
|
7
|
-
end: Date;
|
|
8
|
-
start: Date;
|
|
9
|
-
};
|
|
10
|
-
export declare type FinancialYearWeekType = {
|
|
11
|
-
end: Date;
|
|
12
|
-
financialWeek: number;
|
|
13
|
-
financialYear: number;
|
|
14
|
-
start: Date;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* A timeframe has a start and an end date.
|
|
18
|
-
*/
|
|
19
|
-
export declare type TimeframeType = {
|
|
20
|
-
end: DateType;
|
|
21
|
-
start: DateType;
|
|
22
|
-
};
|
|
23
|
-
export declare type DurationType = {
|
|
24
|
-
hours: number;
|
|
25
|
-
minutes: number;
|
|
26
|
-
seconds: number;
|
|
27
|
-
};
|
|
28
|
-
export declare type TimeframePredefinedType = typeof TimeframePredefined.NONE | typeof TimeframePredefined.CUSTOM | typeof TimeframePredefined.LAST_WEEK | typeof TimeframePredefined.THIS_WEEK;
|
package/dist/eskimi/constants.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Genders = exports.Devices = exports.AgeGroups = exports.Endpoints = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* https://dsp-api.eskimi.com/docs/api/v1/#api-Report-GetCampaignReportByAgeGroups
|
|
6
|
-
*/
|
|
7
|
-
exports.Endpoints = {
|
|
8
|
-
campaign: {
|
|
9
|
-
age: 'https://dsp-api.eskimi.com/api/v1/report/ageGroups/get',
|
|
10
|
-
gender: 'https://dsp-api.eskimi.com/api/v1/report/genders/get',
|
|
11
|
-
list: 'https://dsp-api.eskimi.com/api/v1/campaign/get',
|
|
12
|
-
performance: 'https://dsp-api.eskimi.com/api/v1/report/campaigns/get',
|
|
13
|
-
video: 'https://dsp-api.eskimi.com/api/v1/report/videoCampaigns/get',
|
|
14
|
-
},
|
|
15
|
-
site: {
|
|
16
|
-
list: 'https://dsp-api.eskimi.com/api/v1/report/sites/get',
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
exports.AgeGroups = [
|
|
20
|
-
{
|
|
21
|
-
"id": 0,
|
|
22
|
-
"name": "0-17",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"id": 1,
|
|
26
|
-
"name": "18-24",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"id": 2,
|
|
30
|
-
"name": "25-29",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"id": 3,
|
|
34
|
-
"name": "30-34",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"id": 4,
|
|
38
|
-
"name": "35-39",
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"id": 5,
|
|
42
|
-
"name": "40-44",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"id": 6,
|
|
46
|
-
"name": "45-54",
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"id": 7,
|
|
50
|
-
"name": "55-64",
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"id": 8,
|
|
54
|
-
"name": "65+",
|
|
55
|
-
},
|
|
56
|
-
];
|
|
57
|
-
exports.Devices = [
|
|
58
|
-
{
|
|
59
|
-
"id": 2,
|
|
60
|
-
"name": "Personal Computer",
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"id": 3,
|
|
64
|
-
"name": "Connected TV",
|
|
65
|
-
},
|
|
66
|
-
];
|
|
67
|
-
exports.Genders = [
|
|
68
|
-
{
|
|
69
|
-
"id": 1,
|
|
70
|
-
"name": "Male",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"id": 2,
|
|
74
|
-
"name": "Female",
|
|
75
|
-
},
|
|
76
|
-
];
|
package/dist/google/types.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AwsConfigType } from '../aws';
|
|
2
|
-
export declare type GetCredentialsType = {
|
|
3
|
-
SsmLib: any;
|
|
4
|
-
awsConfig: AwsConfigType;
|
|
5
|
-
parameterName: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type CredentialsType = {
|
|
8
|
-
type: string;
|
|
9
|
-
project_id: string;
|
|
10
|
-
private_key_id: string;
|
|
11
|
-
private_key: string;
|
|
12
|
-
client_email: string;
|
|
13
|
-
client_id: string;
|
|
14
|
-
auth_uri: string;
|
|
15
|
-
token_uri: string;
|
|
16
|
-
auth_provider_x509_cert_url: string;
|
|
17
|
-
client_x509_cert_url: string;
|
|
18
|
-
};
|
package/dist/webWorker/types.js
DELETED