@exonmedia/adtech 0.1.22
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/contracts/index.d.ts +1 -0
- package/contracts/index.esm.js +28 -0
- package/contracts/src/index.d.ts +3 -0
- package/contracts/src/internal/type-utils.d.ts +1 -0
- package/contracts/src/task-results-poller.types.d.ts +9 -0
- package/contracts/src/types/content-generation.types.d.ts +30 -0
- package/contracts/src/types/index.d.ts +2 -0
- package/contracts/src/types/upload.types.d.ts +24 -0
- package/contracts/src/user-upload-message.types.d.ts +15 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/package.json +19 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./contracts/src/index";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var UPLOAD_MODE = {
|
|
2
|
+
KEYWORDS: 'keywords',
|
|
3
|
+
ADGROUPS: 'adgroups',
|
|
4
|
+
CAMPAIGNS: 'campaigns'
|
|
5
|
+
};
|
|
6
|
+
var CAMPAIGN_STRUCTURE = {
|
|
7
|
+
AUTO: 'auto',
|
|
8
|
+
NEW: 'new',
|
|
9
|
+
UPDATE_SPECIFIC: 'update_specific'
|
|
10
|
+
};
|
|
11
|
+
var CAMPAIGN_CATEGORY = {
|
|
12
|
+
DEPARTMENT: 'department',
|
|
13
|
+
SUBCATEGORY: 'subcategory'
|
|
14
|
+
};
|
|
15
|
+
var MATCH_TYPE = {
|
|
16
|
+
EXACT: 'exact',
|
|
17
|
+
BROAD: 'broad',
|
|
18
|
+
PHRASE: 'phrase'
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var CONTENT_GENERATION_STATUS = {
|
|
22
|
+
PENDING: 'pending',
|
|
23
|
+
COMPLETED: 'completed',
|
|
24
|
+
PARTIAL: 'partial',
|
|
25
|
+
FAILED: 'failed'
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { CAMPAIGN_CATEGORY, CAMPAIGN_STRUCTURE, CONTENT_GENERATION_STATUS, MATCH_TYPE, UPLOAD_MODE };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ObjectValues<T> = T[keyof T];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ObjectValues } from '../internal/type-utils';
|
|
2
|
+
export declare const CONTENT_GENERATION_STATUS: {
|
|
3
|
+
readonly PENDING: "pending";
|
|
4
|
+
readonly COMPLETED: "completed";
|
|
5
|
+
readonly PARTIAL: "partial";
|
|
6
|
+
readonly FAILED: "failed";
|
|
7
|
+
};
|
|
8
|
+
export type ContentGenerationStatus = ObjectValues<typeof CONTENT_GENERATION_STATUS>;
|
|
9
|
+
export type ContentGenerationSitelink = {
|
|
10
|
+
headline: string;
|
|
11
|
+
descriptions: string[];
|
|
12
|
+
};
|
|
13
|
+
export type ContentGenerationModel = {
|
|
14
|
+
adgroupName: string;
|
|
15
|
+
headlines?: string[];
|
|
16
|
+
descriptions?: string[];
|
|
17
|
+
images?: string[];
|
|
18
|
+
callouts?: string[];
|
|
19
|
+
snippets?: string[];
|
|
20
|
+
descriptionsKeywordInsertion?: string[];
|
|
21
|
+
sitelinks?: ContentGenerationSitelink[];
|
|
22
|
+
};
|
|
23
|
+
export type DynamoContentGenerationRecord = {
|
|
24
|
+
key: string;
|
|
25
|
+
generatedFields?: ContentGenerationModel;
|
|
26
|
+
result?: string;
|
|
27
|
+
status: ContentGenerationStatus;
|
|
28
|
+
updatedAt: number;
|
|
29
|
+
createdAt: number;
|
|
30
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ObjectValues } from '../internal/type-utils';
|
|
2
|
+
export declare const UPLOAD_MODE: {
|
|
3
|
+
readonly KEYWORDS: "keywords";
|
|
4
|
+
readonly ADGROUPS: "adgroups";
|
|
5
|
+
readonly CAMPAIGNS: "campaigns";
|
|
6
|
+
};
|
|
7
|
+
export type UploadMode = ObjectValues<typeof UPLOAD_MODE>;
|
|
8
|
+
export declare const CAMPAIGN_STRUCTURE: {
|
|
9
|
+
readonly AUTO: "auto";
|
|
10
|
+
readonly NEW: "new";
|
|
11
|
+
readonly UPDATE_SPECIFIC: "update_specific";
|
|
12
|
+
};
|
|
13
|
+
export type CampaignStructure = ObjectValues<typeof CAMPAIGN_STRUCTURE>;
|
|
14
|
+
export declare const CAMPAIGN_CATEGORY: {
|
|
15
|
+
readonly DEPARTMENT: "department";
|
|
16
|
+
readonly SUBCATEGORY: "subcategory";
|
|
17
|
+
};
|
|
18
|
+
export type CampaignCategory = ObjectValues<typeof CAMPAIGN_CATEGORY>;
|
|
19
|
+
export declare const MATCH_TYPE: {
|
|
20
|
+
readonly EXACT: "exact";
|
|
21
|
+
readonly BROAD: "broad";
|
|
22
|
+
readonly PHRASE: "phrase";
|
|
23
|
+
};
|
|
24
|
+
export type MatchType = ObjectValues<typeof MATCH_TYPE>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CampaignCategory, CampaignStructure, UploadMode } from './types';
|
|
2
|
+
export type UserUploadMessagePayload = {
|
|
3
|
+
title: string;
|
|
4
|
+
mode: UploadMode;
|
|
5
|
+
defluff: boolean;
|
|
6
|
+
searchVolumeFilterEnabled: boolean;
|
|
7
|
+
domainId: string;
|
|
8
|
+
adgroupsCreator: boolean;
|
|
9
|
+
uploadedFilePath?: string;
|
|
10
|
+
username?: string;
|
|
11
|
+
campaignStructure?: CampaignStructure;
|
|
12
|
+
campaignCategory?: CampaignCategory;
|
|
13
|
+
keywordsCreator?: number;
|
|
14
|
+
uploadNotes?: string;
|
|
15
|
+
};
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './contracts/index.d.ts';
|
package/index.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './contracts/index.esm.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@exonmedia/adtech",
|
|
3
|
+
"version": "0.1.22",
|
|
4
|
+
"description": "Shared contracts for Adtech Platform",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./index.esm.js",
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./index.d.ts",
|
|
12
|
+
"default": "./index.esm.js"
|
|
13
|
+
},
|
|
14
|
+
"./contracts": {
|
|
15
|
+
"types": "./contracts/index.d.ts",
|
|
16
|
+
"default": "./contracts/index.esm.js"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|