@pushwoosh/rpc-v2-http-api-data 0.1.394
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/commonTypes.d.ts +1 -0
- package/commonTypes.js +2 -0
- package/data-bundle.js +1 -0
- package/data.d.ts +2 -0
- package/data.js +16898 -0
- package/google_api.d.ts +33 -0
- package/google_api.js +2 -0
- package/google_protobuf.d.ts +251 -0
- package/google_protobuf.js +2 -0
- package/index.d.ts +81 -0
- package/index.js +2 -0
- package/package.json +18 -0
- package/pushwoosh_channels_messagingApi_v2.d.ts +365 -0
- package/pushwoosh_channels_messagingApi_v2.js +2 -0
- package/pushwoosh_objects_filters_v1.d.ts +1223 -0
- package/pushwoosh_objects_filters_v1.js +2 -0
- package/pushwoosh_objects_restrictionValues_v1.d.ts +1694 -0
- package/pushwoosh_objects_restrictionValues_v1.js +2 -0
- package/pushwoosh_rpc_v2_account_groups.d.ts +46 -0
- package/pushwoosh_rpc_v2_account_groups.js +2 -0
- package/pushwoosh_rpc_v2_account_invites.d.ts +28 -0
- package/pushwoosh_rpc_v2_account_invites.js +2 -0
- package/pushwoosh_rpc_v2_accounts.d.ts +268 -0
- package/pushwoosh_rpc_v2_accounts.js +2 -0
- package/pushwoosh_rpc_v2_accounts_get_auth_info.d.ts +90 -0
- package/pushwoosh_rpc_v2_accounts_get_auth_info.js +2 -0
- package/pushwoosh_rpc_v2_api_tokens.d.ts +109 -0
- package/pushwoosh_rpc_v2_api_tokens.js +2 -0
- package/pushwoosh_rpc_v2_applications.d.ts +98 -0
- package/pushwoosh_rpc_v2_applications.js +2 -0
- package/pushwoosh_rpc_v2_applications_configurations.d.ts +119 -0
- package/pushwoosh_rpc_v2_applications_configurations.js +2 -0
- package/pushwoosh_rpc_v2_applications_groups.d.ts +52 -0
- package/pushwoosh_rpc_v2_applications_groups.js +2 -0
- package/pushwoosh_rpc_v2_applications_info.d.ts +22 -0
- package/pushwoosh_rpc_v2_applications_info.js +2 -0
- package/pushwoosh_rpc_v2_campaigns.d.ts +54 -0
- package/pushwoosh_rpc_v2_campaigns.js +2 -0
- package/pushwoosh_rpc_v2_categories.d.ts +19 -0
- package/pushwoosh_rpc_v2_categories.js +2 -0
- package/pushwoosh_rpc_v2_customer_journey.d.ts +28 -0
- package/pushwoosh_rpc_v2_customer_journey.js +2 -0
- package/pushwoosh_rpc_v2_deeplinks.d.ts +55 -0
- package/pushwoosh_rpc_v2_deeplinks.js +2 -0
- package/pushwoosh_rpc_v2_devices.d.ts +11 -0
- package/pushwoosh_rpc_v2_devices.js +2 -0
- package/pushwoosh_rpc_v2_emails_configurations.d.ts +39 -0
- package/pushwoosh_rpc_v2_emails_configurations.js +2 -0
- package/pushwoosh_rpc_v2_events.d.ts +149 -0
- package/pushwoosh_rpc_v2_events.js +2 -0
- package/pushwoosh_rpc_v2_filters.d.ts +138 -0
- package/pushwoosh_rpc_v2_filters.js +2 -0
- package/pushwoosh_rpc_v2_frequency_capping.d.ts +39 -0
- package/pushwoosh_rpc_v2_frequency_capping.js +2 -0
- package/pushwoosh_rpc_v2_geozones.d.ts +96 -0
- package/pushwoosh_rpc_v2_geozones.js +2 -0
- package/pushwoosh_rpc_v2_geozones_clusters.d.ts +40 -0
- package/pushwoosh_rpc_v2_geozones_clusters.js +2 -0
- package/pushwoosh_rpc_v2_integrations.d.ts +42 -0
- package/pushwoosh_rpc_v2_integrations.js +2 -0
- package/pushwoosh_rpc_v2_messages.d.ts +139 -0
- package/pushwoosh_rpc_v2_messages.js +2 -0
- package/pushwoosh_rpc_v2_presets.d.ts +139 -0
- package/pushwoosh_rpc_v2_presets.js +2 -0
- package/pushwoosh_rpc_v2_referral_partners.d.ts +66 -0
- package/pushwoosh_rpc_v2_referral_partners.js +2 -0
- package/pushwoosh_rpc_v2_restrictions.d.ts +8 -0
- package/pushwoosh_rpc_v2_restrictions.js +2 -0
- package/pushwoosh_rpc_v2_rich_medias.d.ts +189 -0
- package/pushwoosh_rpc_v2_rich_medias.js +2 -0
- package/pushwoosh_rpc_v2_segment_statistics.d.ts +21 -0
- package/pushwoosh_rpc_v2_segment_statistics.js +2 -0
- package/pushwoosh_rpc_v2_sms_presets.d.ts +60 -0
- package/pushwoosh_rpc_v2_sms_presets.js +2 -0
- package/pushwoosh_rpc_v2_statistics_dashboards.d.ts +47 -0
- package/pushwoosh_rpc_v2_statistics_dashboards.js +2 -0
- package/pushwoosh_rpc_v2_statistics_dashboards_widgets.d.ts +59 -0
- package/pushwoosh_rpc_v2_statistics_dashboards_widgets.js +2 -0
- package/pushwoosh_rpc_v2_tags.d.ts +67 -0
- package/pushwoosh_rpc_v2_tags.js +2 -0
- package/pushwoosh_rpc_v2_test_devices.d.ts +41 -0
- package/pushwoosh_rpc_v2_test_devices.js +2 -0
- package/pushwoosh_rpc_v2_users.d.ts +34 -0
- package/pushwoosh_rpc_v2_users.js +2 -0
- package/pushwoosh_rpc_v2_whatsapp.d.ts +22 -0
- package/pushwoosh_rpc_v2_whatsapp.js +2 -0
- package/pushwoosh_rpc_v2_whatsapp_presets.d.ts +34 -0
- package/pushwoosh_rpc_v2_whatsapp_presets.js +2 -0
- package/types.d.ts +46 -0
- package/types.js +1 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { FilterExpression as pushwoosh_objects_filters_v1_FilterExpression } from './pushwoosh_objects_filters_v1';
|
|
2
|
+
export interface FiltersService {
|
|
3
|
+
List(request: ListFiltersRequest): Promise<ListFiltersResponse>;
|
|
4
|
+
Get(request: GetFilterRequest): Promise<Filter>;
|
|
5
|
+
Create(request: CreateFilterRequest): Promise<CreateFilterResponse>;
|
|
6
|
+
Clone(request: CloneFilterRequest): Promise<CloneFilterResponse>;
|
|
7
|
+
Update(request: UpdateFilterRequest): Promise<UpdateFilterResponse>;
|
|
8
|
+
Delete(request: DeleteFilterRequest): Promise<DeleteFilterResponse>;
|
|
9
|
+
GetCountryCities(request: GetCountryCitiesRequest): Promise<GetCountryCitiesResponse>;
|
|
10
|
+
GetCitiesByHashes(request: GetCitiesByHashesRequest): Promise<GetCitiesByHashesResponse>;
|
|
11
|
+
CompileFilter(request: CompileFilterRequest): Promise<CompileFilterResponse>;
|
|
12
|
+
GetSeglang(request: GetSeglangRequest): Promise<GetSeglangResponse>;
|
|
13
|
+
GetMatchedSegments(request: GetMatchedSegmentsRequest): Promise<GetMatchedSegmentsResponse>;
|
|
14
|
+
}
|
|
15
|
+
export type ListFiltersRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
16
|
+
export type ListFiltersRequest_OrderDirection = 'ASC' | 'DESC';
|
|
17
|
+
export type ListFiltersRequest = {
|
|
18
|
+
application?: string;
|
|
19
|
+
searchByName?: string;
|
|
20
|
+
highSpeedOnly?: boolean;
|
|
21
|
+
codes?: string[];
|
|
22
|
+
orderBy?: ListFiltersRequest_OrderBy;
|
|
23
|
+
orderDirection?: ListFiltersRequest_OrderDirection;
|
|
24
|
+
page?: number;
|
|
25
|
+
perPage?: number;
|
|
26
|
+
};
|
|
27
|
+
export type Filter_Compiling = {
|
|
28
|
+
size: number;
|
|
29
|
+
reachable: number;
|
|
30
|
+
calculationStatus: string;
|
|
31
|
+
calculationProgress: number;
|
|
32
|
+
csvPath: string;
|
|
33
|
+
calculationDate: Date;
|
|
34
|
+
totalMobile: number;
|
|
35
|
+
totalWeb: number;
|
|
36
|
+
totalEmail: number;
|
|
37
|
+
totalSms: number;
|
|
38
|
+
totalWhatsapp: number;
|
|
39
|
+
};
|
|
40
|
+
export type Filter_type_compiling = {
|
|
41
|
+
compiling: Filter_Compiling;
|
|
42
|
+
};
|
|
43
|
+
export type Filter_type_empty = {
|
|
44
|
+
empty: {};
|
|
45
|
+
};
|
|
46
|
+
export type Filter_type = Filter_type_compiling | Filter_type_empty;
|
|
47
|
+
export type Filter = {
|
|
48
|
+
name: string;
|
|
49
|
+
code: string;
|
|
50
|
+
filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
|
|
51
|
+
seglang: string;
|
|
52
|
+
highspeedApplication: string;
|
|
53
|
+
highspeedReady: boolean;
|
|
54
|
+
highspeedSubscribersTotal: number;
|
|
55
|
+
hasRightAceModify: boolean;
|
|
56
|
+
} & Filter_type;
|
|
57
|
+
export type ListFiltersResponse = {
|
|
58
|
+
filters: Filter[];
|
|
59
|
+
page: number;
|
|
60
|
+
perPage: number;
|
|
61
|
+
totalPages: number;
|
|
62
|
+
totalFilters: number;
|
|
63
|
+
};
|
|
64
|
+
export type GetFilterRequest = {
|
|
65
|
+
application?: string;
|
|
66
|
+
filter?: string;
|
|
67
|
+
};
|
|
68
|
+
export type CreateFilterRequest = {
|
|
69
|
+
name?: string;
|
|
70
|
+
filterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
71
|
+
highspeedApplication?: string;
|
|
72
|
+
expirationDate?: string;
|
|
73
|
+
};
|
|
74
|
+
export type CreateFilterResponse = {
|
|
75
|
+
filter: string;
|
|
76
|
+
};
|
|
77
|
+
export type CloneFilterRequest = {
|
|
78
|
+
newName?: string;
|
|
79
|
+
filter?: string;
|
|
80
|
+
};
|
|
81
|
+
export type CloneFilterResponse = {
|
|
82
|
+
filter: string;
|
|
83
|
+
};
|
|
84
|
+
export type UpdateFilterRequest = {
|
|
85
|
+
filter?: string;
|
|
86
|
+
name?: string;
|
|
87
|
+
filterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
88
|
+
};
|
|
89
|
+
export type UpdateFilterResponse = {};
|
|
90
|
+
export type DeleteFilterRequest = {
|
|
91
|
+
filter?: string;
|
|
92
|
+
};
|
|
93
|
+
export type DeleteFilterResponse = {};
|
|
94
|
+
export type GetCountryCitiesRequest = {
|
|
95
|
+
searchByName?: string;
|
|
96
|
+
};
|
|
97
|
+
export type GetCountryCitiesResponse_City = {
|
|
98
|
+
hash: string;
|
|
99
|
+
name: string;
|
|
100
|
+
latitude: number;
|
|
101
|
+
longitude: number;
|
|
102
|
+
subscribers: number;
|
|
103
|
+
};
|
|
104
|
+
export type GetCountryCitiesResponse = {
|
|
105
|
+
cities: GetCountryCitiesResponse_City[];
|
|
106
|
+
};
|
|
107
|
+
export type GetCitiesByHashesRequest = {
|
|
108
|
+
hashes?: string[];
|
|
109
|
+
};
|
|
110
|
+
export type GetCitiesByHashesResponse = {
|
|
111
|
+
cities: GetCountryCitiesResponse_City[];
|
|
112
|
+
};
|
|
113
|
+
export type CompileFilterRequest = {
|
|
114
|
+
application?: string;
|
|
115
|
+
filter?: string;
|
|
116
|
+
exportCsv?: boolean;
|
|
117
|
+
};
|
|
118
|
+
export type CompileFilterResponse = {};
|
|
119
|
+
export type GetSeglangRequest = {
|
|
120
|
+
filterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
121
|
+
};
|
|
122
|
+
export type GetSeglangResponse = {
|
|
123
|
+
seglang: string;
|
|
124
|
+
};
|
|
125
|
+
export type GetMatchedSegmentsRequest = {
|
|
126
|
+
application?: string;
|
|
127
|
+
hwid?: string;
|
|
128
|
+
page?: number;
|
|
129
|
+
perPage?: number;
|
|
130
|
+
searchByName?: string;
|
|
131
|
+
};
|
|
132
|
+
export type GetMatchedSegmentsResponse = {
|
|
133
|
+
filters: Filter[];
|
|
134
|
+
page: number;
|
|
135
|
+
perPage: number;
|
|
136
|
+
totalPages: number;
|
|
137
|
+
totalFilters: number;
|
|
138
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface FrequencyCappingService {
|
|
2
|
+
Get(request: GetFrequencyCappingRequest): Promise<FrequencyCapping>;
|
|
3
|
+
Update(request: UpdateFrequencyCappingRequest): Promise<UpdateFrequencyCappingResponse>;
|
|
4
|
+
Create(request: CreateFrequencyCappingRequest): Promise<CreateFrequencyCappingResponse>;
|
|
5
|
+
}
|
|
6
|
+
export type Capping = {
|
|
7
|
+
count: number;
|
|
8
|
+
days: number;
|
|
9
|
+
};
|
|
10
|
+
export type FrequencyCapping = {
|
|
11
|
+
push: Capping;
|
|
12
|
+
email: Capping;
|
|
13
|
+
sms: Capping;
|
|
14
|
+
inApp: Capping;
|
|
15
|
+
};
|
|
16
|
+
export type GetFrequencyCappingRequest = {
|
|
17
|
+
application?: string;
|
|
18
|
+
};
|
|
19
|
+
export type GetFrequencyCappingResponse = {
|
|
20
|
+
frequencyCapping: FrequencyCapping;
|
|
21
|
+
};
|
|
22
|
+
export type CreateFrequencyCappingRequest = {
|
|
23
|
+
application?: string;
|
|
24
|
+
push?: Capping;
|
|
25
|
+
email?: Capping;
|
|
26
|
+
sms?: Capping;
|
|
27
|
+
inApp?: Capping;
|
|
28
|
+
};
|
|
29
|
+
export type CreateFrequencyCappingResponse = {
|
|
30
|
+
frequencyCapping: FrequencyCapping;
|
|
31
|
+
};
|
|
32
|
+
export type UpdateFrequencyCappingRequest = {
|
|
33
|
+
application?: string;
|
|
34
|
+
push?: Capping;
|
|
35
|
+
email?: Capping;
|
|
36
|
+
sms?: Capping;
|
|
37
|
+
inApp?: Capping;
|
|
38
|
+
};
|
|
39
|
+
export type UpdateFrequencyCappingResponse = {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Duration } from './commonTypes';
|
|
2
|
+
export interface GeozonesService {
|
|
3
|
+
Create(request: CreateGeozonesRequest): Promise<CreateGeozonesResponse>;
|
|
4
|
+
Update(request: UpdateGeozonesRequest): Promise<UpdateGeozonesResponse>;
|
|
5
|
+
List(request: ListGeozonesRequest): Promise<ListGeozonesResponse>;
|
|
6
|
+
Delete(request: DeleteGeozonesRequest): Promise<DeleteGeozonesResponse>;
|
|
7
|
+
}
|
|
8
|
+
export type TimeInterval = {
|
|
9
|
+
start: string;
|
|
10
|
+
end: string;
|
|
11
|
+
};
|
|
12
|
+
export type Ranges = {
|
|
13
|
+
intervals: TimeInterval[];
|
|
14
|
+
};
|
|
15
|
+
export type Timetable = {
|
|
16
|
+
timezone: number;
|
|
17
|
+
ranges: Record<string, Ranges>;
|
|
18
|
+
};
|
|
19
|
+
export type Properties = {
|
|
20
|
+
iosSound: boolean;
|
|
21
|
+
userdata: string;
|
|
22
|
+
remotePage: string;
|
|
23
|
+
inboxExpireDays: number;
|
|
24
|
+
inboxIcon: string;
|
|
25
|
+
};
|
|
26
|
+
export type Geozone = {
|
|
27
|
+
code: string;
|
|
28
|
+
application: string;
|
|
29
|
+
name: string;
|
|
30
|
+
content: Record<string, string>;
|
|
31
|
+
lat: number;
|
|
32
|
+
lng: number;
|
|
33
|
+
cooldown: Duration;
|
|
34
|
+
range: number;
|
|
35
|
+
isActive: boolean;
|
|
36
|
+
cluster: string;
|
|
37
|
+
preset: string;
|
|
38
|
+
campaign: string;
|
|
39
|
+
timetable: Timetable;
|
|
40
|
+
properties: Properties;
|
|
41
|
+
};
|
|
42
|
+
export type CreateGeozonesRequest = {
|
|
43
|
+
application?: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
content?: Record<string, string>;
|
|
46
|
+
lat?: number;
|
|
47
|
+
lng?: number;
|
|
48
|
+
cooldown?: Duration;
|
|
49
|
+
range?: number;
|
|
50
|
+
cluster?: string;
|
|
51
|
+
preset?: string;
|
|
52
|
+
campaign?: string;
|
|
53
|
+
timetable?: Timetable;
|
|
54
|
+
properties?: Properties;
|
|
55
|
+
};
|
|
56
|
+
export type CreateGeozonesResponse = {
|
|
57
|
+
geozone: Geozone;
|
|
58
|
+
};
|
|
59
|
+
export type UpdateGeozonesRequest = {
|
|
60
|
+
code?: string;
|
|
61
|
+
name?: string;
|
|
62
|
+
content?: Record<string, string>;
|
|
63
|
+
lat?: number;
|
|
64
|
+
lng?: number;
|
|
65
|
+
cooldown?: Duration;
|
|
66
|
+
range?: number;
|
|
67
|
+
status?: boolean;
|
|
68
|
+
cluster?: string;
|
|
69
|
+
preset?: string;
|
|
70
|
+
campaign?: string;
|
|
71
|
+
timetable?: Timetable;
|
|
72
|
+
properties?: Properties;
|
|
73
|
+
};
|
|
74
|
+
export type UpdateGeozonesResponse = {
|
|
75
|
+
geozone: Geozone;
|
|
76
|
+
};
|
|
77
|
+
export type ListGeozonesRequest_OrderBy = 'NAME' | 'CREATED';
|
|
78
|
+
export type ListGeozonesRequest_OrderDirection = 'ASC' | 'DESC';
|
|
79
|
+
export type ListGeozonesRequest = {
|
|
80
|
+
application?: string;
|
|
81
|
+
orderBy?: ListGeozonesRequest_OrderBy;
|
|
82
|
+
orderDirection?: ListGeozonesRequest_OrderDirection;
|
|
83
|
+
page?: number;
|
|
84
|
+
perPage?: number;
|
|
85
|
+
};
|
|
86
|
+
export type ListGeozonesResponse = {
|
|
87
|
+
geozones: Geozone[];
|
|
88
|
+
page: number;
|
|
89
|
+
perPage: number;
|
|
90
|
+
total: number;
|
|
91
|
+
};
|
|
92
|
+
export type DeleteGeozonesRequest = {
|
|
93
|
+
application?: string;
|
|
94
|
+
code?: string;
|
|
95
|
+
};
|
|
96
|
+
export type DeleteGeozonesResponse = {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Duration } from './commonTypes';
|
|
2
|
+
export interface GeozonesClustersService {
|
|
3
|
+
Create(request: CreateGeozonesClusterRequest): Promise<CreateGeozonesClusterResponse>;
|
|
4
|
+
List(request: ListGeozonesClustersRequest): Promise<ListGeozonesClustersResponse>;
|
|
5
|
+
Delete(request: DeleteGeozonesClusterRequest): Promise<DeleteGeozonesClusterResponse>;
|
|
6
|
+
}
|
|
7
|
+
export type GeozonesCluster = {
|
|
8
|
+
code: string;
|
|
9
|
+
application: string;
|
|
10
|
+
name: string;
|
|
11
|
+
cooldown: Duration;
|
|
12
|
+
geozonesCount: number;
|
|
13
|
+
};
|
|
14
|
+
export type CreateGeozonesClusterRequest = {
|
|
15
|
+
application?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
cooldown?: Duration;
|
|
18
|
+
};
|
|
19
|
+
export type CreateGeozonesClusterResponse = {
|
|
20
|
+
cluster: GeozonesCluster;
|
|
21
|
+
};
|
|
22
|
+
export type ListGeozonesClustersRequest_OrderBy = 'NAME' | 'CREATED';
|
|
23
|
+
export type ListGeozonesClustersRequest_OrderDirection = 'ASC' | 'DESC';
|
|
24
|
+
export type ListGeozonesClustersRequest = {
|
|
25
|
+
application?: string;
|
|
26
|
+
orderBy?: ListGeozonesClustersRequest_OrderBy;
|
|
27
|
+
orderDirection?: ListGeozonesClustersRequest_OrderDirection;
|
|
28
|
+
page?: number;
|
|
29
|
+
perPage?: number;
|
|
30
|
+
};
|
|
31
|
+
export type ListGeozonesClustersResponse = {
|
|
32
|
+
clusters: GeozonesCluster[];
|
|
33
|
+
page: number;
|
|
34
|
+
perPage: number;
|
|
35
|
+
total: number;
|
|
36
|
+
};
|
|
37
|
+
export type DeleteGeozonesClusterRequest = {
|
|
38
|
+
code?: string;
|
|
39
|
+
};
|
|
40
|
+
export type DeleteGeozonesClusterResponse = {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface IntegrationsService {
|
|
2
|
+
GetPropertiesNames(request: GetPropertiesNamesRequest): Promise<GetPropertiesNamesResponse>;
|
|
3
|
+
GetProperties(request: GetPropertiesRequest): Promise<GetPropertiesResponse>;
|
|
4
|
+
CreateProperties(request: CreatePropertiesRequest): Promise<CreatePropertiesResponse>;
|
|
5
|
+
ImportSegmentPiano(request: ImportSegmentPianoRequest): Promise<ImportSegmentPianoResponse>;
|
|
6
|
+
ListIntegrationsConfiguration(request: ListIntegrationsConfigurationRequest): Promise<ListIntegrationsConfigurationResponse>;
|
|
7
|
+
}
|
|
8
|
+
export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK';
|
|
9
|
+
export type GetPropertiesNamesRequest = {
|
|
10
|
+
integration?: Integration;
|
|
11
|
+
};
|
|
12
|
+
export type GetPropertiesNamesResponse = {
|
|
13
|
+
fields: string[];
|
|
14
|
+
};
|
|
15
|
+
export type GetPropertiesRequest = {
|
|
16
|
+
application?: string;
|
|
17
|
+
integration?: Integration;
|
|
18
|
+
};
|
|
19
|
+
export type GetPropertiesResponse = {
|
|
20
|
+
fields: Record<string, string>;
|
|
21
|
+
};
|
|
22
|
+
export type CreatePropertiesRequest = {
|
|
23
|
+
fields?: Record<string, string>;
|
|
24
|
+
application?: string;
|
|
25
|
+
integration?: Integration;
|
|
26
|
+
};
|
|
27
|
+
export type CreatePropertiesResponse = {};
|
|
28
|
+
export type ImportSegmentPianoRequest = {
|
|
29
|
+
application?: string;
|
|
30
|
+
segmentKey?: string;
|
|
31
|
+
};
|
|
32
|
+
export type ImportSegmentPianoResponse = {};
|
|
33
|
+
export type ListIntegrationsConfigurationRequest = {
|
|
34
|
+
application?: string;
|
|
35
|
+
};
|
|
36
|
+
export type ListIntegrationsConfigurationResponse_Configuration = {
|
|
37
|
+
integration: Integration;
|
|
38
|
+
configured: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type ListIntegrationsConfigurationResponse = {
|
|
41
|
+
configurations: ListIntegrationsConfigurationResponse_Configuration[];
|
|
42
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
export interface MessagesService {
|
|
2
|
+
List(request: ListMessagesRequest): Promise<ListMessagesResponse>;
|
|
3
|
+
Get(request: GetMessageRequest): Promise<GetMessageResponse>;
|
|
4
|
+
Cancel(request: CancelMessageRequest): Promise<CancelMessageResponse>;
|
|
5
|
+
Delete(request: DeleteMessageRequest): Promise<DeleteMessageResponse>;
|
|
6
|
+
GetStatistics(request: GetStatisticsRequest): Promise<GetStatisticsResponse>;
|
|
7
|
+
GetLinkClicksStatistics(request: GetLinkClicksStatisticsRequest): Promise<GetLinkClicksStatisticsResponse>;
|
|
8
|
+
GetDeliveryReport(request: GetDeliveryReportRequest): Promise<GetDeliveryReportResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type Type = 'All' | 'Push' | 'Email';
|
|
11
|
+
export type PushInfo = {
|
|
12
|
+
content: string;
|
|
13
|
+
title: string;
|
|
14
|
+
subtitle: string;
|
|
15
|
+
banner: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
};
|
|
18
|
+
export type EmailInfo = {
|
|
19
|
+
subject: string;
|
|
20
|
+
sendFrom: string;
|
|
21
|
+
sendFromName: string;
|
|
22
|
+
};
|
|
23
|
+
export type Message_SchedulingType = 'now' | 'device_tz' | 'custom_tz' | 'optimal_time';
|
|
24
|
+
export type Message_Status = 'status_unknown' | 'creating' | 'waiting' | 'pending' | 'processing' | 'done' | 'canceled' | 'fail';
|
|
25
|
+
export type Message_info_pushInfo = {
|
|
26
|
+
pushInfo: PushInfo;
|
|
27
|
+
};
|
|
28
|
+
export type Message_info_emailInfo = {
|
|
29
|
+
emailInfo: EmailInfo;
|
|
30
|
+
};
|
|
31
|
+
export type Message_info = Message_info_pushInfo | Message_info_emailInfo;
|
|
32
|
+
export type Message = {
|
|
33
|
+
id: number;
|
|
34
|
+
code: string;
|
|
35
|
+
sendDate: Date;
|
|
36
|
+
platforms: number[];
|
|
37
|
+
type: Type;
|
|
38
|
+
preset: string;
|
|
39
|
+
status: Message_Status;
|
|
40
|
+
createdDate: Date;
|
|
41
|
+
properties: Record<string, string>;
|
|
42
|
+
schedulingType: Message_SchedulingType;
|
|
43
|
+
} & Message_info;
|
|
44
|
+
export type ListMessagesRequest_OrderBy = 'NAME' | 'CREATED' | 'SEND_DATE';
|
|
45
|
+
export type ListMessagesRequest_OrderDirection = 'ASC' | 'DESC';
|
|
46
|
+
export type ListMessagesRequest = {
|
|
47
|
+
application?: string;
|
|
48
|
+
orderBy?: ListMessagesRequest_OrderBy;
|
|
49
|
+
orderDirection?: ListMessagesRequest_OrderDirection;
|
|
50
|
+
page?: number;
|
|
51
|
+
perPage?: number;
|
|
52
|
+
search?: string;
|
|
53
|
+
ids?: number[];
|
|
54
|
+
type?: Type;
|
|
55
|
+
};
|
|
56
|
+
export type ListMessagesResponse = {
|
|
57
|
+
messages: Message[];
|
|
58
|
+
page: number;
|
|
59
|
+
perPage: number;
|
|
60
|
+
total: number;
|
|
61
|
+
};
|
|
62
|
+
export type GetMessageRequest = {
|
|
63
|
+
code?: string;
|
|
64
|
+
};
|
|
65
|
+
export type GetMessageResponse = {
|
|
66
|
+
message: Message;
|
|
67
|
+
};
|
|
68
|
+
export type CancelMessageRequest = {
|
|
69
|
+
code?: string;
|
|
70
|
+
};
|
|
71
|
+
export type CancelMessageResponse = {};
|
|
72
|
+
export type DeleteMessageRequest = {
|
|
73
|
+
code?: string;
|
|
74
|
+
};
|
|
75
|
+
export type DeleteMessageResponse = {};
|
|
76
|
+
export type GetStatisticsRequest = {
|
|
77
|
+
application?: string;
|
|
78
|
+
messageCode?: string;
|
|
79
|
+
campaign?: string;
|
|
80
|
+
timestampFrom?: Date;
|
|
81
|
+
timestampTo?: Date;
|
|
82
|
+
};
|
|
83
|
+
export type GetStatisticsResponse_PlatformTimeSeries_Breakdown = {
|
|
84
|
+
platform: string;
|
|
85
|
+
values: number[];
|
|
86
|
+
};
|
|
87
|
+
export type GetStatisticsResponse_PlatformTimeSeries = {
|
|
88
|
+
timestamps: Date[];
|
|
89
|
+
breakdowns: GetStatisticsResponse_PlatformTimeSeries_Breakdown[];
|
|
90
|
+
};
|
|
91
|
+
export type GetStatisticsResponse_Metrics = {
|
|
92
|
+
sends: GetStatisticsResponse_PlatformTimeSeries;
|
|
93
|
+
deliveries: GetStatisticsResponse_PlatformTimeSeries;
|
|
94
|
+
opens: GetStatisticsResponse_PlatformTimeSeries;
|
|
95
|
+
recipients: number;
|
|
96
|
+
};
|
|
97
|
+
export type GetStatisticsResponse = {
|
|
98
|
+
metrics: GetStatisticsResponse_Metrics;
|
|
99
|
+
};
|
|
100
|
+
export type GetLinkClicksStatisticsRequest = {
|
|
101
|
+
application?: string;
|
|
102
|
+
messageCode?: string;
|
|
103
|
+
campaign?: string;
|
|
104
|
+
timestampFrom?: Date;
|
|
105
|
+
timestampTo?: Date;
|
|
106
|
+
};
|
|
107
|
+
export type GetLinkClicksStatisticsResponse_LinkClick_Attributes = {
|
|
108
|
+
attributes: string[];
|
|
109
|
+
clicks: number;
|
|
110
|
+
};
|
|
111
|
+
export type GetLinkClicksStatisticsResponse_LinkClick = {
|
|
112
|
+
link: string;
|
|
113
|
+
clicks: number;
|
|
114
|
+
attributes: GetLinkClicksStatisticsResponse_LinkClick_Attributes[];
|
|
115
|
+
};
|
|
116
|
+
export type GetLinkClicksStatisticsResponse = {
|
|
117
|
+
links: GetLinkClicksStatisticsResponse_LinkClick[];
|
|
118
|
+
totalClicks: number;
|
|
119
|
+
uniqClick: number;
|
|
120
|
+
};
|
|
121
|
+
export type GetDeliveryReportRequest = {
|
|
122
|
+
application?: string;
|
|
123
|
+
messageCode?: string;
|
|
124
|
+
campaign?: string;
|
|
125
|
+
};
|
|
126
|
+
export type GetDeliveryReportResponse_DeliveryReport_ReportError = {
|
|
127
|
+
error: string;
|
|
128
|
+
tooltip: string;
|
|
129
|
+
count: number;
|
|
130
|
+
};
|
|
131
|
+
export type GetDeliveryReportResponse_DeliveryReport = {
|
|
132
|
+
platform: number;
|
|
133
|
+
total: number;
|
|
134
|
+
errors: GetDeliveryReportResponse_DeliveryReport_ReportError[];
|
|
135
|
+
};
|
|
136
|
+
export type GetDeliveryReportResponse = {
|
|
137
|
+
senderErrors: GetDeliveryReportResponse_DeliveryReport[];
|
|
138
|
+
mailErrors: GetDeliveryReportResponse_DeliveryReport;
|
|
139
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Content as pushwoosh_channels_messagingApi_v2_Content } from './pushwoosh_channels_messagingApi_v2';
|
|
2
|
+
export interface presetsService {
|
|
3
|
+
List(request: ListPresetsRequest): Promise<ListPresetsResponse>;
|
|
4
|
+
Get(request: GetPresetRequest): Promise<GetPresetResponse>;
|
|
5
|
+
Create(request: CreatePresetRequest): Promise<CreatePresetResponse>;
|
|
6
|
+
Update(request: UpdatePresetRequest): Promise<UpdatePresetResponse>;
|
|
7
|
+
UpdatePartial(request: UpdatePresetPartialRequest): Promise<UpdatePresetResponse>;
|
|
8
|
+
Clone(request: ClonePresetRequest): Promise<ClonePresetResponse>;
|
|
9
|
+
Delete(request: DeletePresetRequest): Promise<DeletePresetResponse>;
|
|
10
|
+
}
|
|
11
|
+
export type ListPresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
12
|
+
export type ListPresetsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
13
|
+
export type ListPresetsRequest = {
|
|
14
|
+
application?: string;
|
|
15
|
+
orderBy?: ListPresetsRequest_OrderBy;
|
|
16
|
+
orderDirection?: ListPresetsRequest_OrderDirection;
|
|
17
|
+
page?: number;
|
|
18
|
+
perPage?: number;
|
|
19
|
+
searchByName?: string;
|
|
20
|
+
searchByCategory?: string[];
|
|
21
|
+
showHidden?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type Preset = {
|
|
24
|
+
name: string;
|
|
25
|
+
code: string;
|
|
26
|
+
platforms: Record<number, boolean>;
|
|
27
|
+
localizedProperties: Record<string, pushwoosh_channels_messagingApi_v2_Content>;
|
|
28
|
+
localizedTitle: Record<string, string>;
|
|
29
|
+
localizedSubtitle: Record<string, string>;
|
|
30
|
+
localizedContent: Record<string, string>;
|
|
31
|
+
deeplink: string;
|
|
32
|
+
deeplinkParams: Record<string, string>;
|
|
33
|
+
richmedia: string;
|
|
34
|
+
system: boolean;
|
|
35
|
+
url: string;
|
|
36
|
+
inboxImage: string;
|
|
37
|
+
inboxIcon: string;
|
|
38
|
+
categories: string[];
|
|
39
|
+
created: Date;
|
|
40
|
+
updated: Date;
|
|
41
|
+
customData: object;
|
|
42
|
+
isV2: boolean;
|
|
43
|
+
banner: string;
|
|
44
|
+
icon: string;
|
|
45
|
+
journeyUuid: string;
|
|
46
|
+
hidden: boolean;
|
|
47
|
+
};
|
|
48
|
+
export type ListPresetsResponse = {
|
|
49
|
+
presets: Preset[];
|
|
50
|
+
page: number;
|
|
51
|
+
perPage: number;
|
|
52
|
+
total: number;
|
|
53
|
+
};
|
|
54
|
+
export type GetPresetRequest = {
|
|
55
|
+
code?: string;
|
|
56
|
+
};
|
|
57
|
+
export type GetPresetResponse = {
|
|
58
|
+
preset: Preset;
|
|
59
|
+
};
|
|
60
|
+
export type CreatePresetRequest = {
|
|
61
|
+
application?: string;
|
|
62
|
+
name?: string;
|
|
63
|
+
sendType?: string;
|
|
64
|
+
platforms?: Record<number, boolean>;
|
|
65
|
+
localizedProperties?: Record<string, pushwoosh_channels_messagingApi_v2_Content>;
|
|
66
|
+
localizedTitle?: Record<string, string>;
|
|
67
|
+
localizedSubtitle?: Record<string, string>;
|
|
68
|
+
localizedContent?: Record<string, string>;
|
|
69
|
+
deeplink?: string;
|
|
70
|
+
deeplinkParams?: Record<string, string>;
|
|
71
|
+
richmedia?: string;
|
|
72
|
+
system?: boolean;
|
|
73
|
+
url?: string;
|
|
74
|
+
inboxImage?: string;
|
|
75
|
+
inboxIcon?: string;
|
|
76
|
+
customData?: object;
|
|
77
|
+
categories?: string[];
|
|
78
|
+
banner?: string;
|
|
79
|
+
icon?: string;
|
|
80
|
+
journeyUuid?: string;
|
|
81
|
+
hidden?: boolean;
|
|
82
|
+
};
|
|
83
|
+
export type CreatePresetResponse = {
|
|
84
|
+
preset: Preset;
|
|
85
|
+
};
|
|
86
|
+
export type UpdatePresetRequest = {
|
|
87
|
+
code?: string;
|
|
88
|
+
name?: string;
|
|
89
|
+
sendType?: string;
|
|
90
|
+
platforms?: Record<number, boolean>;
|
|
91
|
+
localizedProperties?: Record<string, pushwoosh_channels_messagingApi_v2_Content>;
|
|
92
|
+
localizedTitle?: Record<string, string>;
|
|
93
|
+
localizedSubtitle?: Record<string, string>;
|
|
94
|
+
localizedContent?: Record<string, string>;
|
|
95
|
+
deeplink?: string;
|
|
96
|
+
deeplinkParams?: Record<string, string>;
|
|
97
|
+
richmedia?: string;
|
|
98
|
+
url?: string;
|
|
99
|
+
inboxImage?: string;
|
|
100
|
+
inboxIcon?: string;
|
|
101
|
+
customData?: object;
|
|
102
|
+
categories?: string[];
|
|
103
|
+
banner?: string;
|
|
104
|
+
icon?: string;
|
|
105
|
+
};
|
|
106
|
+
export type UpdatePresetPartialRequest = {
|
|
107
|
+
code?: string;
|
|
108
|
+
name?: string;
|
|
109
|
+
sendType?: string;
|
|
110
|
+
platforms?: Record<number, boolean>;
|
|
111
|
+
localizedProperties?: Record<string, pushwoosh_channels_messagingApi_v2_Content>;
|
|
112
|
+
localizedTitle?: Record<string, string>;
|
|
113
|
+
localizedSubtitle?: Record<string, string>;
|
|
114
|
+
localizedContent?: Record<string, string>;
|
|
115
|
+
deeplink?: string;
|
|
116
|
+
deeplinkParams?: Record<string, string>;
|
|
117
|
+
richmedia?: string;
|
|
118
|
+
url?: string;
|
|
119
|
+
inboxImage?: string;
|
|
120
|
+
inboxIcon?: string;
|
|
121
|
+
customData?: object;
|
|
122
|
+
categories?: string[];
|
|
123
|
+
banner?: string;
|
|
124
|
+
icon?: string;
|
|
125
|
+
};
|
|
126
|
+
export type UpdatePresetResponse = {
|
|
127
|
+
preset: Preset;
|
|
128
|
+
};
|
|
129
|
+
export type ClonePresetRequest = {
|
|
130
|
+
code?: string;
|
|
131
|
+
name?: string;
|
|
132
|
+
};
|
|
133
|
+
export type ClonePresetResponse = {
|
|
134
|
+
preset: Preset;
|
|
135
|
+
};
|
|
136
|
+
export type DeletePresetRequest = {
|
|
137
|
+
code?: string;
|
|
138
|
+
};
|
|
139
|
+
export type DeletePresetResponse = {};
|