@exonmedia/adtech 0.1.22 → 0.1.24
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 -1
- package/contracts/index.esm.js +7 -1
- package/contracts/src/google-ads-accounts/google-ads-accounts.response.d.ts +23 -0
- package/contracts/src/google-ads-accounts/index.d.ts +1 -0
- package/contracts/src/index.d.ts +3 -2
- package/contracts/src/task-results-poller/index.d.ts +2 -0
- package/contracts/src/task-results-poller/task-results-poller.request.d.ts +3 -0
- package/contracts/src/{task-results-poller.types.d.ts → task-results-poller/task-results-poller.response.d.ts} +1 -4
- package/contracts/src/user-uploads/index.d.ts +2 -0
- package/contracts/src/{user-upload-message.types.d.ts → user-uploads/user-uploads.request.d.ts} +5 -2
- package/contracts/src/user-uploads/user-uploads.response.d.ts +62 -0
- package/package.json +1 -1
package/contracts/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./src/index";
|
package/contracts/index.esm.js
CHANGED
|
@@ -25,4 +25,10 @@ var CONTENT_GENERATION_STATUS = {
|
|
|
25
25
|
FAILED: 'failed'
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
var UPLOAD_STATUS = {
|
|
29
|
+
SUCCESS: 'success',
|
|
30
|
+
FAILED: 'failed',
|
|
31
|
+
PENDING: 'pending'
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { CAMPAIGN_CATEGORY, CAMPAIGN_STRUCTURE, CONTENT_GENERATION_STATUS, MATCH_TYPE, UPLOAD_MODE, UPLOAD_STATUS };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface GoogleAdsAccount {
|
|
2
|
+
resourceName: string;
|
|
3
|
+
clientCustomer: string;
|
|
4
|
+
hasClientCustomer: boolean;
|
|
5
|
+
hidden: boolean;
|
|
6
|
+
hasHidden: boolean;
|
|
7
|
+
level: number;
|
|
8
|
+
hasLevel: boolean;
|
|
9
|
+
timeZone: string;
|
|
10
|
+
hasTimeZone: boolean;
|
|
11
|
+
testAccount: boolean;
|
|
12
|
+
hasTestAccount: boolean;
|
|
13
|
+
manager: boolean;
|
|
14
|
+
hasManager: boolean;
|
|
15
|
+
descriptiveName: string;
|
|
16
|
+
hasDescriptiveName: boolean;
|
|
17
|
+
currencyCode: string;
|
|
18
|
+
hasCurrencyCode: boolean;
|
|
19
|
+
id: number;
|
|
20
|
+
hasId: boolean;
|
|
21
|
+
appliedLabels: string[];
|
|
22
|
+
status: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './google-ads-accounts.response';
|
package/contracts/src/index.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type { DynamoContentGenerationRecord } from '
|
|
2
|
-
export type TaskResultsPollerRequest = {
|
|
3
|
-
batchId: string;
|
|
4
|
-
};
|
|
1
|
+
import type { DynamoContentGenerationRecord } from '../types/content-generation.types';
|
|
5
2
|
export type TaskResultsPollerResponse = {
|
|
6
3
|
batchId: string;
|
|
7
4
|
count: number;
|
package/contracts/src/{user-upload-message.types.d.ts → user-uploads/user-uploads.request.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CampaignCategory, CampaignStructure, UploadMode } from '
|
|
1
|
+
import type { CampaignCategory, CampaignStructure, UploadMode, MatchType } from '../types/upload.types';
|
|
2
2
|
export type UserUploadMessagePayload = {
|
|
3
3
|
title: string;
|
|
4
4
|
mode: UploadMode;
|
|
@@ -10,6 +10,9 @@ export type UserUploadMessagePayload = {
|
|
|
10
10
|
username?: string;
|
|
11
11
|
campaignStructure?: CampaignStructure;
|
|
12
12
|
campaignCategory?: CampaignCategory;
|
|
13
|
-
|
|
13
|
+
keywordsPlanner?: number;
|
|
14
14
|
uploadNotes?: string;
|
|
15
|
+
campaignName?: string;
|
|
16
|
+
matchType: MatchType;
|
|
17
|
+
allowAdgroupsDuplication: boolean;
|
|
15
18
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { ObjectValues } from '../internal/type-utils';
|
|
2
|
+
import type { UploadMode, CampaignStructure, CampaignCategory } from '../types/upload.types';
|
|
3
|
+
export declare const UPLOAD_STATUS: {
|
|
4
|
+
readonly SUCCESS: "success";
|
|
5
|
+
readonly FAILED: "failed";
|
|
6
|
+
readonly PENDING: "pending";
|
|
7
|
+
};
|
|
8
|
+
export type UploadStatus = ObjectValues<typeof UPLOAD_STATUS>;
|
|
9
|
+
export interface DomainInfo {
|
|
10
|
+
id: string;
|
|
11
|
+
domainName: string;
|
|
12
|
+
logoUrl: string;
|
|
13
|
+
businessName: string;
|
|
14
|
+
languageCode: string;
|
|
15
|
+
geo: string;
|
|
16
|
+
vertical: string;
|
|
17
|
+
}
|
|
18
|
+
export type GoogleUploadHistory = {
|
|
19
|
+
status: 'failed';
|
|
20
|
+
payloadPath: string;
|
|
21
|
+
error: string;
|
|
22
|
+
} | {
|
|
23
|
+
status: 'success' | 'pending';
|
|
24
|
+
payloadPath: string;
|
|
25
|
+
};
|
|
26
|
+
export interface UserUploadWithDomain {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
29
|
+
domainId: string;
|
|
30
|
+
mode: UploadMode;
|
|
31
|
+
status: UploadStatus;
|
|
32
|
+
username?: string;
|
|
33
|
+
defluff: boolean;
|
|
34
|
+
searchVolumeFilterEnabled: boolean;
|
|
35
|
+
keywordsPlanner?: number;
|
|
36
|
+
adgroupsCreator: boolean;
|
|
37
|
+
uploadedFilePath: string;
|
|
38
|
+
uploadNotes?: string;
|
|
39
|
+
campaignStructure?: CampaignStructure;
|
|
40
|
+
campaignCategory?: CampaignCategory;
|
|
41
|
+
accountName?: string;
|
|
42
|
+
imageGenerationModel?: string;
|
|
43
|
+
textGenerationModel?: string;
|
|
44
|
+
gawUploadsHistory?: GoogleUploadHistory[];
|
|
45
|
+
createdAt?: string;
|
|
46
|
+
updatedAt?: string;
|
|
47
|
+
domain?: DomainInfo;
|
|
48
|
+
}
|
|
49
|
+
export interface PaginatedResult<TItem> {
|
|
50
|
+
items: TItem[];
|
|
51
|
+
total: number;
|
|
52
|
+
page: number;
|
|
53
|
+
limit: number;
|
|
54
|
+
totalPages: number;
|
|
55
|
+
hasNext: boolean;
|
|
56
|
+
hasPrevious: boolean;
|
|
57
|
+
}
|
|
58
|
+
export type PaginatedUserUploadsResult = PaginatedResult<UserUploadWithDomain>;
|
|
59
|
+
export interface TriggerUploadResponse {
|
|
60
|
+
messageId: string | undefined;
|
|
61
|
+
fileKey: string;
|
|
62
|
+
}
|