ad2app-lib 1.0.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/README.md +37 -0
- package/dist/api/apiDriver.d.ts +16 -0
- package/dist/api/apiDriver.js +40 -0
- package/dist/api/apiUtils.d.ts +0 -0
- package/dist/api/apiUtils.js +31 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +18 -0
- package/dist/api/utils.d.ts +7 -0
- package/dist/api/utils.js +34 -0
- package/dist/types/I_Agency.d.ts +9 -0
- package/dist/types/I_Agency.js +12 -0
- package/dist/types/I_Campaign.d.ts +76 -0
- package/dist/types/I_Campaign.js +176 -0
- package/dist/types/I_CampaignCollaborationMethod.d.ts +11 -0
- package/dist/types/I_CampaignCollaborationMethod.js +30 -0
- package/dist/types/I_CampaignDeadline.d.ts +29 -0
- package/dist/types/I_CampaignDeadline.js +80 -0
- package/dist/types/I_CampaignGoal.d.ts +11 -0
- package/dist/types/I_CampaignGoal.js +30 -0
- package/dist/types/I_Influencer.d.ts +37 -0
- package/dist/types/I_Influencer.js +87 -0
- package/dist/types/I_InfluencersCategories.d.ts +26 -0
- package/dist/types/I_InfluencersCategories.js +72 -0
- package/dist/types/I_InfluencersLists.d.ts +68 -0
- package/dist/types/I_InfluencersLists.js +95 -0
- package/dist/types/I_InfluencersProperties.d.ts +40 -0
- package/dist/types/I_InfluencersProperties.js +95 -0
- package/dist/types/I_Item.d.ts +11 -0
- package/dist/types/I_Item.js +17 -0
- package/dist/types/I_List.d.ts +8 -0
- package/dist/types/I_List.js +11 -0
- package/dist/types/I_Offer.d.ts +63 -0
- package/dist/types/I_Offer.js +79 -0
- package/dist/types/I_PaginatedList.d.ts +10 -0
- package/dist/types/I_PaginatedList.js +13 -0
- package/dist/types/I_Pagination.d.ts +7 -0
- package/dist/types/I_Pagination.js +12 -0
- package/dist/types/I_Queue.d.ts +25 -0
- package/dist/types/I_Queue.js +54 -0
- package/dist/types/I_Report.d.ts +11 -0
- package/dist/types/I_Report.js +14 -0
- package/dist/types/I_ResponseMessage.d.ts +6 -0
- package/dist/types/I_ResponseMessage.js +10 -0
- package/dist/types/I_SM_Platform.d.ts +4 -0
- package/dist/types/I_SM_Platform.js +8 -0
- package/dist/types/I_ScrapperLog.d.ts +15 -0
- package/dist/types/I_ScrapperLog.js +9 -0
- package/dist/types/I_Scrappers.d.ts +35 -0
- package/dist/types/I_Scrappers.js +11 -0
- package/dist/types/I_ScrappingAccount.d.ts +10 -0
- package/dist/types/I_ScrappingAccount.js +6 -0
- package/dist/types/I_ScrappingMachine.d.ts +29 -0
- package/dist/types/I_ScrappingMachine.js +46 -0
- package/dist/types/I_ScrappingMachineProcess.d.ts +22 -0
- package/dist/types/I_ScrappingMachineProcess.js +46 -0
- package/dist/types/I_ScrappingServiceMessages.d.ts +31 -0
- package/dist/types/I_ScrappingServiceMessages.js +2 -0
- package/dist/types/I_TIkTokRaports.d.ts +8 -0
- package/dist/types/I_TIkTokRaports.js +38 -0
- package/dist/types/I_Tag.d.ts +10 -0
- package/dist/types/I_Tag.js +12 -0
- package/dist/types/I_TikTokPost.d.ts +45 -0
- package/dist/types/I_TikTokPost.js +47 -0
- package/dist/types/I_TikTokReport.d.ts +11 -0
- package/dist/types/I_TikTokReport.js +14 -0
- package/dist/types/I_TikTokUser.d.ts +53 -0
- package/dist/types/I_TikTokUser.js +97 -0
- package/dist/types/I_User.d.ts +35 -0
- package/dist/types/I_User.js +76 -0
- package/dist/types/I_UserTikTokStatistic.d.ts +13 -0
- package/dist/types/I_UserTikTokStatistic.js +16 -0
- package/dist/types/T_FetchStatus.d.ts +1 -0
- package/dist/types/T_FetchStatus.js +2 -0
- package/dist/types/global.d.ts +9 -0
- package/dist/types/global.js +2 -0
- package/dist/types/index.d.ts +31 -0
- package/dist/types/index.js +47 -0
- package/dist/utils/array.d.ts +3 -0
- package/dist/utils/array.js +12 -0
- package/dist/utils/cookies.d.ts +0 -0
- package/dist/utils/cookies.js +13 -0
- package/dist/utils/date.d.ts +5 -0
- package/dist/utils/date.js +19 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.js +22 -0
- package/dist/utils/promise.d.ts +1 -0
- package/dist/utils/promise.js +6 -0
- package/dist/utils/string.d.ts +1 -0
- package/dist/utils/string.js +5 -0
- package/dist/utils/types.d.ts +5 -0
- package/dist/utils/types.js +2 -0
- package/dist/utils/variable.d.ts +2 -0
- package/dist/utils/variable.js +11 -0
- package/index.ts +5 -0
- package/package.json +41 -0
- package/src/api/apiDriver.ts +65 -0
- package/src/api/index.ts +2 -0
- package/src/api/utils.ts +38 -0
- package/src/types/I_Agency.ts +16 -0
- package/src/types/I_Campaign.ts +171 -0
- package/src/types/I_CampaignCollaborationMethod.ts +20 -0
- package/src/types/I_CampaignDeadline.ts +65 -0
- package/src/types/I_CampaignGoal.ts +20 -0
- package/src/types/I_Influencer.ts +93 -0
- package/src/types/I_InfluencersCategories.ts +52 -0
- package/src/types/I_InfluencersLists.ts +104 -0
- package/src/types/I_InfluencersProperties.ts +83 -0
- package/src/types/I_Item.ts +19 -0
- package/src/types/I_List.ts +14 -0
- package/src/types/I_Offer.ts +105 -0
- package/src/types/I_PaginatedList.ts +17 -0
- package/src/types/I_Pagination.ts +13 -0
- package/src/types/I_Queue.ts +40 -0
- package/src/types/I_ResponseMessage.ts +11 -0
- package/src/types/I_SM_Platform.ts +4 -0
- package/src/types/I_ScrapperLog.ts +17 -0
- package/src/types/I_Scrappers.ts +34 -0
- package/src/types/I_ScrappingAccount.ts +11 -0
- package/src/types/I_ScrappingMachine.ts +47 -0
- package/src/types/I_ScrappingMachineProcess.ts +36 -0
- package/src/types/I_ScrappingServiceMessages.ts +38 -0
- package/src/types/I_TIkTokRaports.ts +20 -0
- package/src/types/I_Tag.ts +12 -0
- package/src/types/I_TikTokPost.ts +64 -0
- package/src/types/I_TikTokReport.ts +20 -0
- package/src/types/I_TikTokUser.ts +108 -0
- package/src/types/I_User.ts +57 -0
- package/src/types/I_UserTikTokStatistic.ts +25 -0
- package/src/types/T_FetchStatus.ts +1 -0
- package/src/types/global.ts +10 -0
- package/src/types/index.ts +31 -0
- package/src/utils/array.ts +15 -0
- package/src/utils/cookies.ts +16 -0
- package/src/utils/date.ts +14 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/promise.ts +3 -0
- package/src/utils/string.ts +1 -0
- package/src/utils/types.ts +9 -0
- package/src/utils/variable.ts +7 -0
- package/tsconfig.json +14 -0
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# ad2app library
|
|
2
|
+
|
|
3
|
+
General use package for ad2app related projects.
|
|
4
|
+
In here, you will find types and utils. Updating was never that easy.
|
|
5
|
+
|
|
6
|
+
## First steps
|
|
7
|
+
|
|
8
|
+
To begin, install all dependencies and build the project.
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
npm install
|
|
12
|
+
npm run build
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Propagating library
|
|
16
|
+
|
|
17
|
+
To be able to use ad2app-link in other npm projects, you must first link this project to your local npm repository
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
npm link
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Then, you should be good to go to link this project to any other project. e.g. for frontend:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
npm link ad2app-lib
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Propagating changes
|
|
30
|
+
|
|
31
|
+
Whenever you have to update your package, simply run
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
npm run build
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Thanks to the npm linkage, this will cause automatic propagation to all the other packages.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FetchParams } from '../types';
|
|
2
|
+
type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
|
|
3
|
+
interface DriverConfig {
|
|
4
|
+
apiUrl: string;
|
|
5
|
+
getHeaders?: () => HeadersInit;
|
|
6
|
+
}
|
|
7
|
+
export declare function configureApiDriver(config: DriverConfig): void;
|
|
8
|
+
export declare function fetchCall<T, Q>(path: string, fetchParams?: FetchParams<Q>, method?: HttpMethod): Promise<T>;
|
|
9
|
+
export declare function apiDriver(): {
|
|
10
|
+
get: <T, Q>(path: string, params?: FetchParams<Q>) => Promise<T>;
|
|
11
|
+
post: <T, Q>(path: string, params?: FetchParams<Q>) => Promise<T>;
|
|
12
|
+
put: <T, Q>(path: string, params?: FetchParams<Q>) => Promise<T>;
|
|
13
|
+
patch: <T, Q>(path: string, params?: FetchParams<Q>) => Promise<T>;
|
|
14
|
+
delete: <T, Q>(path: string, params?: FetchParams<Q>) => Promise<T>;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.configureApiDriver = configureApiDriver;
|
|
4
|
+
exports.fetchCall = fetchCall;
|
|
5
|
+
exports.apiDriver = apiDriver;
|
|
6
|
+
const utils_1 = require("./utils");
|
|
7
|
+
let CONFIG;
|
|
8
|
+
function configureApiDriver(config) {
|
|
9
|
+
CONFIG = config;
|
|
10
|
+
}
|
|
11
|
+
async function fetchCall(path, fetchParams, method = 'get') {
|
|
12
|
+
const headers = CONFIG.getHeaders?.() || {};
|
|
13
|
+
const query = {};
|
|
14
|
+
Object.entries(fetchParams?.query || {}).forEach(([key, val]) => {
|
|
15
|
+
query[key] = Array.isArray(val) ? JSON.stringify(val) : val;
|
|
16
|
+
});
|
|
17
|
+
const queryString = (0, utils_1.createQueryString)({ ...fetchParams, query });
|
|
18
|
+
const fullPath = (0, utils_1.insertParams)((0, utils_1.concatApiPaths)(CONFIG.apiUrl, path) + queryString, fetchParams?.params);
|
|
19
|
+
const init = {
|
|
20
|
+
method,
|
|
21
|
+
headers,
|
|
22
|
+
};
|
|
23
|
+
if (fetchParams?.body) {
|
|
24
|
+
init.body = JSON.stringify(fetchParams.body);
|
|
25
|
+
headers['Content-Type'] = 'application/json';
|
|
26
|
+
}
|
|
27
|
+
const res = await fetch(fullPath, init);
|
|
28
|
+
if (!res.ok)
|
|
29
|
+
throw new Error(JSON.stringify(await res.json()));
|
|
30
|
+
return res.json();
|
|
31
|
+
}
|
|
32
|
+
function apiDriver() {
|
|
33
|
+
return {
|
|
34
|
+
get: (path, params) => fetchCall(path, params, 'get'),
|
|
35
|
+
post: (path, params) => fetchCall(path, params, 'post'),
|
|
36
|
+
put: (path, params) => fetchCall(path, params, 'put'),
|
|
37
|
+
patch: (path, params) => fetchCall(path, params, 'patch'),
|
|
38
|
+
delete: (path, params) => fetchCall(path, params, 'delete'),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// import { FetchParams } from "./apiDriver";
|
|
2
|
+
// const apiUrl = process.env.REACT_APP_API_URL;
|
|
3
|
+
// export const concatApiPaths = (endpoint: string) => apiUrl + "/" + endpoint;
|
|
4
|
+
// export const createQueryString = <T>(fetchParams?: FetchParams<T>) => {
|
|
5
|
+
// return fetchParams?.query
|
|
6
|
+
// ? "?" + new URLSearchParams(fetchParams.query as URLSearchParams).toString()
|
|
7
|
+
// : "";
|
|
8
|
+
// };
|
|
9
|
+
// export const extractParams = (path: string): string[] => {
|
|
10
|
+
// return path
|
|
11
|
+
// .split("/")
|
|
12
|
+
// .filter((segment) => segment.startsWith(":"))
|
|
13
|
+
// .map((segment) => segment.substring(1));
|
|
14
|
+
// };
|
|
15
|
+
// export const insertParams = (
|
|
16
|
+
// path: string,
|
|
17
|
+
// params?: { [key: string]: string | number }
|
|
18
|
+
// ): string => {
|
|
19
|
+
// if (!params) {
|
|
20
|
+
// return path;
|
|
21
|
+
// }
|
|
22
|
+
// const paramNames = extractParams(path);
|
|
23
|
+
// paramNames.forEach((paramName) => {
|
|
24
|
+
// if (params[paramName] !== undefined) {
|
|
25
|
+
// path = path.replace(`:${paramName}`, String(params[paramName]));
|
|
26
|
+
// } else {
|
|
27
|
+
// throw new Error(`Missing value for parameter: ${paramName}`);
|
|
28
|
+
// }
|
|
29
|
+
// });
|
|
30
|
+
// return path;
|
|
31
|
+
// };
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./apiDriver"), exports);
|
|
18
|
+
__exportStar(require("./utils"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FetchParams } from '../types';
|
|
2
|
+
export declare const concatApiPaths: (apiUrl: string, endpoint: string) => string;
|
|
3
|
+
export declare const createQueryString: <T>(fetchParams?: FetchParams<T>) => string;
|
|
4
|
+
export declare const extractParams: (path: string) => string[];
|
|
5
|
+
export declare const insertParams: (path: string, params?: {
|
|
6
|
+
[key: string]: string | number;
|
|
7
|
+
}) => string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.insertParams = exports.extractParams = exports.createQueryString = exports.concatApiPaths = void 0;
|
|
4
|
+
const concatApiPaths = (apiUrl, endpoint) => apiUrl + '/' + endpoint;
|
|
5
|
+
exports.concatApiPaths = concatApiPaths;
|
|
6
|
+
const createQueryString = (fetchParams) => {
|
|
7
|
+
return fetchParams?.query
|
|
8
|
+
? '?' + new URLSearchParams(fetchParams.query).toString()
|
|
9
|
+
: '';
|
|
10
|
+
};
|
|
11
|
+
exports.createQueryString = createQueryString;
|
|
12
|
+
const extractParams = (path) => {
|
|
13
|
+
return path
|
|
14
|
+
.split('/')
|
|
15
|
+
.filter((segment) => segment.startsWith(':'))
|
|
16
|
+
.map((segment) => segment.substring(1));
|
|
17
|
+
};
|
|
18
|
+
exports.extractParams = extractParams;
|
|
19
|
+
const insertParams = (path, params) => {
|
|
20
|
+
if (!params) {
|
|
21
|
+
return path;
|
|
22
|
+
}
|
|
23
|
+
const paramNames = (0, exports.extractParams)(path);
|
|
24
|
+
paramNames.forEach((paramName) => {
|
|
25
|
+
if (params[paramName] !== undefined) {
|
|
26
|
+
path = path.replace(`:${paramName}`, String(params[paramName]));
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
throw new Error(`Missing value for parameter: ${paramName}`);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return path;
|
|
33
|
+
};
|
|
34
|
+
exports.insertParams = insertParams;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.I_Agency = void 0;
|
|
4
|
+
class I_Agency {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
this.id = data?.id ?? null;
|
|
7
|
+
this.name = data?.name ?? null;
|
|
8
|
+
this.offers = data?.offers ?? null;
|
|
9
|
+
this.users = data?.users ?? null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.I_Agency = I_Agency;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { I_CampaignGoal } from "./I_CampaignGoal";
|
|
2
|
+
import { I_CampaignCollaborationMethod } from "./I_CampaignCollaborationMethod";
|
|
3
|
+
import { I_Influencer } from "./I_Influencer";
|
|
4
|
+
import { I_InfluencersList } from "./I_InfluencersLists";
|
|
5
|
+
import { I_CampaignDeadline } from "./I_CampaignDeadline";
|
|
6
|
+
declare class I_Brief {
|
|
7
|
+
brand: string;
|
|
8
|
+
campaignTags: string;
|
|
9
|
+
budgetFrom: number;
|
|
10
|
+
budgetTo: number;
|
|
11
|
+
viewsFrom: number;
|
|
12
|
+
viewsTo: number;
|
|
13
|
+
maxInfluencersQuantity: number;
|
|
14
|
+
minInfluencersQuantity: number;
|
|
15
|
+
campaignCollaborationMethods: I_CampaignCollaborationMethod[];
|
|
16
|
+
campaignGoals: I_CampaignGoal[];
|
|
17
|
+
constructor(data?: Partial<I_Brief>);
|
|
18
|
+
}
|
|
19
|
+
export declare class I_Campaign {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
brief: I_Brief;
|
|
23
|
+
influencersList: {
|
|
24
|
+
id: I_InfluencersList["id"];
|
|
25
|
+
name: I_InfluencersList["name"];
|
|
26
|
+
influencers: I_Influencer[];
|
|
27
|
+
};
|
|
28
|
+
deadlines: I_CampaignDeadline[];
|
|
29
|
+
startDate: Date;
|
|
30
|
+
endDate: Date;
|
|
31
|
+
isDraft: boolean;
|
|
32
|
+
constructor(data?: Partial<I_Campaign>);
|
|
33
|
+
}
|
|
34
|
+
export declare class I_CreateCampaignDTO {
|
|
35
|
+
name: string;
|
|
36
|
+
}
|
|
37
|
+
export declare class I_CreateInfluencersListForCampaignDTO {
|
|
38
|
+
campaignId: string;
|
|
39
|
+
influencers: I_Influencer[];
|
|
40
|
+
}
|
|
41
|
+
export declare class I_GetCampaignDTO {
|
|
42
|
+
id: string;
|
|
43
|
+
constructor(data: Partial<I_GetCampaignDTO>);
|
|
44
|
+
}
|
|
45
|
+
export declare class I_GetAgencyCampaignsDTO {
|
|
46
|
+
}
|
|
47
|
+
export declare class I_FindCampaignsDTO {
|
|
48
|
+
name: string;
|
|
49
|
+
}
|
|
50
|
+
export declare class I_EditCampaignDTO {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
brand: string;
|
|
54
|
+
budgetFrom: number;
|
|
55
|
+
budgetTo: number;
|
|
56
|
+
viewsFrom: number;
|
|
57
|
+
viewsTo: number;
|
|
58
|
+
campaignTags: string;
|
|
59
|
+
campaignGoals: I_CampaignGoal[];
|
|
60
|
+
campaignCollaborationMethods: I_CampaignCollaborationMethod[];
|
|
61
|
+
minInfluencersQuantity: number;
|
|
62
|
+
maxInfluencersQuantity: number;
|
|
63
|
+
startDate: Date;
|
|
64
|
+
endDate: Date;
|
|
65
|
+
constructor(data?: Partial<I_EditCampaignDTO>);
|
|
66
|
+
}
|
|
67
|
+
export declare class I_GenerateInfluencersListForCampaignDTO {
|
|
68
|
+
campaignId: string;
|
|
69
|
+
}
|
|
70
|
+
export declare class I_RegenerateInfluencersListForCampaignDTO {
|
|
71
|
+
campaignId: string;
|
|
72
|
+
}
|
|
73
|
+
export declare class I_MarkCampaignAsReadyDTO {
|
|
74
|
+
campaignId: string;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.I_MarkCampaignAsReadyDTO = exports.I_RegenerateInfluencersListForCampaignDTO = exports.I_GenerateInfluencersListForCampaignDTO = exports.I_EditCampaignDTO = exports.I_FindCampaignsDTO = exports.I_GetAgencyCampaignsDTO = exports.I_GetCampaignDTO = exports.I_CreateInfluencersListForCampaignDTO = exports.I_CreateCampaignDTO = exports.I_Campaign = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class I_Brief {
|
|
15
|
+
constructor(data) {
|
|
16
|
+
this.brand = data?.brand ?? null;
|
|
17
|
+
this.campaignTags = data?.campaignTags ?? null;
|
|
18
|
+
this.budgetFrom = data?.budgetFrom ?? null;
|
|
19
|
+
this.budgetTo = data?.budgetTo ?? null;
|
|
20
|
+
this.viewsFrom = data?.viewsFrom ?? null;
|
|
21
|
+
this.viewsTo = data?.viewsTo ?? null;
|
|
22
|
+
this.maxInfluencersQuantity = data?.maxInfluencersQuantity ?? null;
|
|
23
|
+
this.minInfluencersQuantity = data?.minInfluencersQuantity ?? null;
|
|
24
|
+
this.campaignGoals = data?.campaignGoals ?? null;
|
|
25
|
+
this.campaignCollaborationMethods =
|
|
26
|
+
data?.campaignCollaborationMethods ?? null;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
class I_Campaign {
|
|
30
|
+
constructor(data) {
|
|
31
|
+
this.id = data?.id ?? null;
|
|
32
|
+
this.name = data?.name ?? null;
|
|
33
|
+
this.brief = data?.brief ?? null;
|
|
34
|
+
this.influencersList = data?.influencersList ?? null;
|
|
35
|
+
this.deadlines = data?.deadlines ?? [];
|
|
36
|
+
this.startDate = data?.startDate ?? null;
|
|
37
|
+
this.endDate = data?.endDate ?? null;
|
|
38
|
+
this.isDraft = data?.isDraft ?? null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.I_Campaign = I_Campaign;
|
|
42
|
+
class I_CreateCampaignDTO {
|
|
43
|
+
}
|
|
44
|
+
exports.I_CreateCampaignDTO = I_CreateCampaignDTO;
|
|
45
|
+
class I_CreateInfluencersListForCampaignDTO {
|
|
46
|
+
}
|
|
47
|
+
exports.I_CreateInfluencersListForCampaignDTO = I_CreateInfluencersListForCampaignDTO;
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], I_CreateInfluencersListForCampaignDTO.prototype, "campaignId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
54
|
+
(0, class_validator_1.IsArray)(),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], I_CreateInfluencersListForCampaignDTO.prototype, "influencers", void 0);
|
|
57
|
+
class I_GetCampaignDTO {
|
|
58
|
+
constructor(data) {
|
|
59
|
+
this.id = data?.id ?? "";
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.I_GetCampaignDTO = I_GetCampaignDTO;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], I_GetCampaignDTO.prototype, "id", void 0);
|
|
67
|
+
class I_GetAgencyCampaignsDTO {
|
|
68
|
+
}
|
|
69
|
+
exports.I_GetAgencyCampaignsDTO = I_GetAgencyCampaignsDTO;
|
|
70
|
+
class I_FindCampaignsDTO {
|
|
71
|
+
}
|
|
72
|
+
exports.I_FindCampaignsDTO = I_FindCampaignsDTO;
|
|
73
|
+
class I_EditCampaignDTO {
|
|
74
|
+
constructor(data) {
|
|
75
|
+
this.id = data?.id ?? null;
|
|
76
|
+
this.name = data?.name ?? null;
|
|
77
|
+
this.campaignGoals = data?.campaignGoals ?? [];
|
|
78
|
+
this.brand = data?.brand ?? null;
|
|
79
|
+
this.budgetFrom = Number(data?.budgetFrom) ?? null;
|
|
80
|
+
this.budgetTo = Number(data?.budgetTo) ?? null;
|
|
81
|
+
this.viewsFrom = Number(data?.viewsFrom) ?? null;
|
|
82
|
+
this.viewsTo = Number(data?.viewsTo) ?? null;
|
|
83
|
+
this.campaignTags = data?.campaignTags ?? null;
|
|
84
|
+
this.campaignCollaborationMethods =
|
|
85
|
+
data?.campaignCollaborationMethods ?? [];
|
|
86
|
+
this.minInfluencersQuantity = Number(data?.minInfluencersQuantity) ?? null;
|
|
87
|
+
this.maxInfluencersQuantity = Number(data?.maxInfluencersQuantity) ?? null;
|
|
88
|
+
this.startDate = data?.startDate ?? null;
|
|
89
|
+
this.endDate = data?.endDate ?? null;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.I_EditCampaignDTO = I_EditCampaignDTO;
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], I_EditCampaignDTO.prototype, "id", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_validator_1.IsString)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], I_EditCampaignDTO.prototype, "name", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], I_EditCampaignDTO.prototype, "brand", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
107
|
+
(0, class_validator_1.IsNumber)(),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], I_EditCampaignDTO.prototype, "budgetFrom", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
112
|
+
(0, class_validator_1.IsNumber)(),
|
|
113
|
+
__metadata("design:type", Number)
|
|
114
|
+
], I_EditCampaignDTO.prototype, "budgetTo", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
117
|
+
(0, class_validator_1.IsNumber)(),
|
|
118
|
+
__metadata("design:type", Number)
|
|
119
|
+
], I_EditCampaignDTO.prototype, "viewsFrom", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
122
|
+
(0, class_validator_1.IsNumber)(),
|
|
123
|
+
__metadata("design:type", Number)
|
|
124
|
+
], I_EditCampaignDTO.prototype, "viewsTo", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
127
|
+
(0, class_validator_1.IsString)(),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], I_EditCampaignDTO.prototype, "campaignTags", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, class_validator_1.IsArray)(),
|
|
132
|
+
__metadata("design:type", Array)
|
|
133
|
+
], I_EditCampaignDTO.prototype, "campaignGoals", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, class_validator_1.IsArray)(),
|
|
136
|
+
__metadata("design:type", Array)
|
|
137
|
+
], I_EditCampaignDTO.prototype, "campaignCollaborationMethods", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
140
|
+
(0, class_validator_1.IsNumber)(),
|
|
141
|
+
__metadata("design:type", Number)
|
|
142
|
+
], I_EditCampaignDTO.prototype, "minInfluencersQuantity", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
145
|
+
(0, class_validator_1.IsNumber)(),
|
|
146
|
+
__metadata("design:type", Number)
|
|
147
|
+
], I_EditCampaignDTO.prototype, "maxInfluencersQuantity", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
150
|
+
__metadata("design:type", Date)
|
|
151
|
+
], I_EditCampaignDTO.prototype, "startDate", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
154
|
+
__metadata("design:type", Date)
|
|
155
|
+
], I_EditCampaignDTO.prototype, "endDate", void 0);
|
|
156
|
+
class I_GenerateInfluencersListForCampaignDTO {
|
|
157
|
+
}
|
|
158
|
+
exports.I_GenerateInfluencersListForCampaignDTO = I_GenerateInfluencersListForCampaignDTO;
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
161
|
+
__metadata("design:type", String)
|
|
162
|
+
], I_GenerateInfluencersListForCampaignDTO.prototype, "campaignId", void 0);
|
|
163
|
+
class I_RegenerateInfluencersListForCampaignDTO {
|
|
164
|
+
}
|
|
165
|
+
exports.I_RegenerateInfluencersListForCampaignDTO = I_RegenerateInfluencersListForCampaignDTO;
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
168
|
+
__metadata("design:type", String)
|
|
169
|
+
], I_RegenerateInfluencersListForCampaignDTO.prototype, "campaignId", void 0);
|
|
170
|
+
class I_MarkCampaignAsReadyDTO {
|
|
171
|
+
}
|
|
172
|
+
exports.I_MarkCampaignAsReadyDTO = I_MarkCampaignAsReadyDTO;
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], I_MarkCampaignAsReadyDTO.prototype, "campaignId", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class I_CampaignCollaborationMethod {
|
|
2
|
+
id: string;
|
|
3
|
+
value: string;
|
|
4
|
+
constructor(data?: Partial<I_CampaignCollaborationMethod>);
|
|
5
|
+
}
|
|
6
|
+
export declare class I_CreateCampaignCollaborationMethodDTO {
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class I_FindCampaignCollaborationMethodDTO {
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.I_FindCampaignCollaborationMethodDTO = exports.I_CreateCampaignCollaborationMethodDTO = exports.I_CampaignCollaborationMethod = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class I_CampaignCollaborationMethod {
|
|
15
|
+
constructor(data) {
|
|
16
|
+
this.id = data?.id ?? "";
|
|
17
|
+
this.value = data?.value ?? "";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.I_CampaignCollaborationMethod = I_CampaignCollaborationMethod;
|
|
21
|
+
class I_CreateCampaignCollaborationMethodDTO {
|
|
22
|
+
}
|
|
23
|
+
exports.I_CreateCampaignCollaborationMethodDTO = I_CreateCampaignCollaborationMethodDTO;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], I_CreateCampaignCollaborationMethodDTO.prototype, "value", void 0);
|
|
28
|
+
class I_FindCampaignCollaborationMethodDTO {
|
|
29
|
+
}
|
|
30
|
+
exports.I_FindCampaignCollaborationMethodDTO = I_FindCampaignCollaborationMethodDTO;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { I_OfferStatus } from "./I_Offer";
|
|
2
|
+
export declare class I_CampaignDeadline {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
date: Date;
|
|
6
|
+
isConfirmed: boolean;
|
|
7
|
+
isReadyToConfirm: boolean;
|
|
8
|
+
constructor(data?: Partial<I_CampaignDeadline>);
|
|
9
|
+
}
|
|
10
|
+
export declare class I_CreateCampaignDeadlineDTO {
|
|
11
|
+
name: string;
|
|
12
|
+
campaignId: string;
|
|
13
|
+
ruleType?: I_OfferStatus;
|
|
14
|
+
}
|
|
15
|
+
export declare class I_GetCampaignDeadlinesDTO {
|
|
16
|
+
campaignId: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class I_GetCampaignDeadlineDTO {
|
|
19
|
+
deadlineId: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class I_EditCampaignDeadlineDTO {
|
|
22
|
+
deadlineId: string;
|
|
23
|
+
date: Date;
|
|
24
|
+
}
|
|
25
|
+
export declare class I_EditCampaignDeadlinesDTO {
|
|
26
|
+
[key: string]: Date | string;
|
|
27
|
+
campaignId: string;
|
|
28
|
+
constructor(data?: Partial<I_EditCampaignDeadlinesDTO>);
|
|
29
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.I_EditCampaignDeadlinesDTO = exports.I_EditCampaignDeadlineDTO = exports.I_GetCampaignDeadlineDTO = exports.I_GetCampaignDeadlinesDTO = exports.I_CreateCampaignDeadlineDTO = exports.I_CampaignDeadline = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const I_Offer_1 = require("./I_Offer");
|
|
15
|
+
class I_CampaignDeadline {
|
|
16
|
+
constructor(data) {
|
|
17
|
+
this.id = data?.id ?? null;
|
|
18
|
+
this.name = data?.name ?? null;
|
|
19
|
+
this.date = data?.date ?? null;
|
|
20
|
+
this.isConfirmed = data?.isConfirmed ?? null;
|
|
21
|
+
this.isReadyToConfirm = data?.isReadyToConfirm ?? null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.I_CampaignDeadline = I_CampaignDeadline;
|
|
25
|
+
class I_CreateCampaignDeadlineDTO {
|
|
26
|
+
}
|
|
27
|
+
exports.I_CreateCampaignDeadlineDTO = I_CreateCampaignDeadlineDTO;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], I_CreateCampaignDeadlineDTO.prototype, "name", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], I_CreateCampaignDeadlineDTO.prototype, "campaignId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], I_CreateCampaignDeadlineDTO.prototype, "ruleType", void 0);
|
|
40
|
+
class I_GetCampaignDeadlinesDTO {
|
|
41
|
+
}
|
|
42
|
+
exports.I_GetCampaignDeadlinesDTO = I_GetCampaignDeadlinesDTO;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], I_GetCampaignDeadlinesDTO.prototype, "campaignId", void 0);
|
|
47
|
+
class I_GetCampaignDeadlineDTO {
|
|
48
|
+
}
|
|
49
|
+
exports.I_GetCampaignDeadlineDTO = I_GetCampaignDeadlineDTO;
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], I_GetCampaignDeadlineDTO.prototype, "deadlineId", void 0);
|
|
54
|
+
class I_EditCampaignDeadlineDTO {
|
|
55
|
+
}
|
|
56
|
+
exports.I_EditCampaignDeadlineDTO = I_EditCampaignDeadlineDTO;
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], I_EditCampaignDeadlineDTO.prototype, "deadlineId", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], I_EditCampaignDeadlineDTO.prototype, "date", void 0);
|
|
65
|
+
class I_EditCampaignDeadlinesDTO {
|
|
66
|
+
constructor(data) {
|
|
67
|
+
this.campaignId = data?.campaignId ?? null;
|
|
68
|
+
Object.entries(data || {}).forEach(([key, value]) => {
|
|
69
|
+
if (key !== "startDate" && key !== "endDate") {
|
|
70
|
+
this[key] = value;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.I_EditCampaignDeadlinesDTO = I_EditCampaignDeadlinesDTO;
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], I_EditCampaignDeadlinesDTO.prototype, "campaignId", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class I_CampaignGoal {
|
|
2
|
+
id: string;
|
|
3
|
+
value: string;
|
|
4
|
+
constructor(data?: Partial<I_CampaignGoal>);
|
|
5
|
+
}
|
|
6
|
+
export declare class I_CreateCampaignGoalDTO {
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class I_FindCampaignGoalsDTO {
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.I_FindCampaignGoalsDTO = exports.I_CreateCampaignGoalDTO = exports.I_CampaignGoal = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class I_CampaignGoal {
|
|
15
|
+
constructor(data) {
|
|
16
|
+
this.id = data?.id ?? "";
|
|
17
|
+
this.value = data?.value ?? "";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.I_CampaignGoal = I_CampaignGoal;
|
|
21
|
+
class I_CreateCampaignGoalDTO {
|
|
22
|
+
}
|
|
23
|
+
exports.I_CreateCampaignGoalDTO = I_CreateCampaignGoalDTO;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], I_CreateCampaignGoalDTO.prototype, "value", void 0);
|
|
28
|
+
class I_FindCampaignGoalsDTO {
|
|
29
|
+
}
|
|
30
|
+
exports.I_FindCampaignGoalsDTO = I_FindCampaignGoalsDTO;
|