@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,119 @@
|
|
|
1
|
+
export interface ApplicationsConfigurationsService {
|
|
2
|
+
Configure(request: ConfigurationRequest): Promise<ConfigurationResponse>;
|
|
3
|
+
EnablePlatform(request: EnablePlatformRequest): Promise<EnablePlatformResponse>;
|
|
4
|
+
}
|
|
5
|
+
export type IOSTokenConfiguration = {
|
|
6
|
+
iosKeyId: string;
|
|
7
|
+
iosTeamId: string;
|
|
8
|
+
iosBundleId: string;
|
|
9
|
+
iosAuthKey: string;
|
|
10
|
+
iosGateway: number;
|
|
11
|
+
};
|
|
12
|
+
export type AndroidConfiguration = {
|
|
13
|
+
androidFramework: string;
|
|
14
|
+
androidFcmServiceAccount: string;
|
|
15
|
+
};
|
|
16
|
+
export type ChromeConfiguration = {
|
|
17
|
+
chromeFcmServiceAccount: string;
|
|
18
|
+
chromeVapidKey: string;
|
|
19
|
+
chromeVapidPrivateKey: string;
|
|
20
|
+
};
|
|
21
|
+
export type EmailConfiguration = {
|
|
22
|
+
emailFromName: string;
|
|
23
|
+
emailFromEmail: string;
|
|
24
|
+
emailReplyName: string;
|
|
25
|
+
emailReplyEmail: string;
|
|
26
|
+
};
|
|
27
|
+
export type XiaomiConfiguration = {
|
|
28
|
+
xiaomiAppId: string;
|
|
29
|
+
xiaomiAppSecret: string;
|
|
30
|
+
xiaomiAppRegion: string;
|
|
31
|
+
xiaomiAppPackageName: string;
|
|
32
|
+
};
|
|
33
|
+
export type HuaweiConfiguration = {
|
|
34
|
+
huaweiAndroidFramework: string;
|
|
35
|
+
huaweiAndroidAppId: string;
|
|
36
|
+
huaweiAndroidAppSecret: string;
|
|
37
|
+
};
|
|
38
|
+
export type SafariConfiguration = {
|
|
39
|
+
safariWebsiteName: string;
|
|
40
|
+
safariWebsiteIcon: string;
|
|
41
|
+
safariAllowedDomains: string[];
|
|
42
|
+
safariUrlTemplate: string;
|
|
43
|
+
safariKeyFile: string;
|
|
44
|
+
safariCertPassword: string;
|
|
45
|
+
};
|
|
46
|
+
export type WindowsConfiguration = {
|
|
47
|
+
wnsPsid: string;
|
|
48
|
+
wnsSecret: string;
|
|
49
|
+
};
|
|
50
|
+
export type AmazonConfiguration = {
|
|
51
|
+
admCid: string;
|
|
52
|
+
admSecret: string;
|
|
53
|
+
admFramework: string;
|
|
54
|
+
};
|
|
55
|
+
export type OSXConfiguration = {
|
|
56
|
+
macosGateway: number;
|
|
57
|
+
macosKeyFile: string;
|
|
58
|
+
macosCertPassword: string;
|
|
59
|
+
macosCertFile: string;
|
|
60
|
+
};
|
|
61
|
+
export type IOSConfiguration = {
|
|
62
|
+
iosGateway: number;
|
|
63
|
+
iosKeyFile: string;
|
|
64
|
+
iosCertPassword: string;
|
|
65
|
+
iosFramework: string;
|
|
66
|
+
};
|
|
67
|
+
export type FirefoxConfiguration = {
|
|
68
|
+
firefoxIsEnabled: boolean;
|
|
69
|
+
firefoxVapidKey: string;
|
|
70
|
+
firefoxVapidPrivateKey: string;
|
|
71
|
+
firefoxFcmServiceAccount: string;
|
|
72
|
+
};
|
|
73
|
+
export type ConfigurationRequest_kind_iosTokenConfiguration = {
|
|
74
|
+
iosTokenConfiguration: IOSTokenConfiguration;
|
|
75
|
+
};
|
|
76
|
+
export type ConfigurationRequest_kind_androidConfiguration = {
|
|
77
|
+
androidConfiguration: AndroidConfiguration;
|
|
78
|
+
};
|
|
79
|
+
export type ConfigurationRequest_kind_chromeConfiguration = {
|
|
80
|
+
chromeConfiguration: ChromeConfiguration;
|
|
81
|
+
};
|
|
82
|
+
export type ConfigurationRequest_kind_emailConfiguration = {
|
|
83
|
+
emailConfiguration: EmailConfiguration;
|
|
84
|
+
};
|
|
85
|
+
export type ConfigurationRequest_kind_xiaomiConfiguration = {
|
|
86
|
+
xiaomiConfiguration: XiaomiConfiguration;
|
|
87
|
+
};
|
|
88
|
+
export type ConfigurationRequest_kind_huaweiConfiguration = {
|
|
89
|
+
huaweiConfiguration: HuaweiConfiguration;
|
|
90
|
+
};
|
|
91
|
+
export type ConfigurationRequest_kind_safariConfiguration = {
|
|
92
|
+
safariConfiguration: SafariConfiguration;
|
|
93
|
+
};
|
|
94
|
+
export type ConfigurationRequest_kind_windowsConfiguration = {
|
|
95
|
+
windowsConfiguration: WindowsConfiguration;
|
|
96
|
+
};
|
|
97
|
+
export type ConfigurationRequest_kind_amazonConfiguration = {
|
|
98
|
+
amazonConfiguration: AmazonConfiguration;
|
|
99
|
+
};
|
|
100
|
+
export type ConfigurationRequest_kind_osxConfiguration = {
|
|
101
|
+
osxConfiguration: OSXConfiguration;
|
|
102
|
+
};
|
|
103
|
+
export type ConfigurationRequest_kind_iosConfiguration = {
|
|
104
|
+
iosConfiguration: IOSConfiguration;
|
|
105
|
+
};
|
|
106
|
+
export type ConfigurationRequest_kind_firefoxConfiguration = {
|
|
107
|
+
firefoxConfiguration: FirefoxConfiguration;
|
|
108
|
+
};
|
|
109
|
+
export type ConfigurationRequest_kind = ConfigurationRequest_kind_iosTokenConfiguration | ConfigurationRequest_kind_androidConfiguration | ConfigurationRequest_kind_chromeConfiguration | ConfigurationRequest_kind_emailConfiguration | ConfigurationRequest_kind_xiaomiConfiguration | ConfigurationRequest_kind_huaweiConfiguration | ConfigurationRequest_kind_safariConfiguration | ConfigurationRequest_kind_windowsConfiguration | ConfigurationRequest_kind_amazonConfiguration | ConfigurationRequest_kind_osxConfiguration | ConfigurationRequest_kind_iosConfiguration | ConfigurationRequest_kind_firefoxConfiguration;
|
|
110
|
+
export type ConfigurationRequest = {
|
|
111
|
+
code?: string;
|
|
112
|
+
} & ConfigurationRequest_kind;
|
|
113
|
+
export type ConfigurationResponse = {};
|
|
114
|
+
export type EnablePlatformRequest = {
|
|
115
|
+
code?: string;
|
|
116
|
+
platform?: number;
|
|
117
|
+
enable?: boolean;
|
|
118
|
+
};
|
|
119
|
+
export type EnablePlatformResponse = {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface ApplicationsGroupsService {
|
|
2
|
+
GetByCode(request: GetApplicationsGroupByCodeRequest): Promise<ApplicationsGroup>;
|
|
3
|
+
List(request: ListApplicationsGroupsRequest): Promise<ListApplicationsGroupsResponse>;
|
|
4
|
+
Create(request: CreateApplicationsGroupRequest): Promise<CreateApplicationsGroupResponse>;
|
|
5
|
+
Update(request: UpdateApplicationsGroupRequest): Promise<UpdateApplicationsGroupResponse>;
|
|
6
|
+
Delete(request: DeleteApplicationsGroupRequest): Promise<DeleteApplicationsGroupResponse>;
|
|
7
|
+
}
|
|
8
|
+
export type ApplicationsGroup_Application = {
|
|
9
|
+
code: string;
|
|
10
|
+
title: string;
|
|
11
|
+
iconUrl: string;
|
|
12
|
+
};
|
|
13
|
+
export type ApplicationsGroup = {
|
|
14
|
+
code: string;
|
|
15
|
+
title: string;
|
|
16
|
+
applications: ApplicationsGroup_Application[];
|
|
17
|
+
};
|
|
18
|
+
export type GetApplicationsGroupByCodeRequest = {
|
|
19
|
+
code?: string;
|
|
20
|
+
};
|
|
21
|
+
export type ListApplicationsGroupsRequest_OrderBy = 'TITLE' | 'CREATED';
|
|
22
|
+
export type ListApplicationsGroupsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
23
|
+
export type ListApplicationsGroupsRequest = {
|
|
24
|
+
page?: number;
|
|
25
|
+
perPage?: number;
|
|
26
|
+
orderBy?: ListApplicationsGroupsRequest_OrderBy;
|
|
27
|
+
orderDirection?: ListApplicationsGroupsRequest_OrderDirection;
|
|
28
|
+
searchByTitle?: string;
|
|
29
|
+
};
|
|
30
|
+
export type ListApplicationsGroupsResponse = {
|
|
31
|
+
applicationsGroups: ApplicationsGroup[];
|
|
32
|
+
page: number;
|
|
33
|
+
perPage: number;
|
|
34
|
+
totalPages: number;
|
|
35
|
+
};
|
|
36
|
+
export type CreateApplicationsGroupRequest = {
|
|
37
|
+
title?: string;
|
|
38
|
+
applications?: string[];
|
|
39
|
+
};
|
|
40
|
+
export type CreateApplicationsGroupResponse = {
|
|
41
|
+
code: string;
|
|
42
|
+
};
|
|
43
|
+
export type UpdateApplicationsGroupRequest = {
|
|
44
|
+
code?: string;
|
|
45
|
+
title?: string;
|
|
46
|
+
applications?: string[];
|
|
47
|
+
};
|
|
48
|
+
export type UpdateApplicationsGroupResponse = {};
|
|
49
|
+
export type DeleteApplicationsGroupRequest = {
|
|
50
|
+
code?: string;
|
|
51
|
+
};
|
|
52
|
+
export type DeleteApplicationsGroupResponse = {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Duration } from './commonTypes';
|
|
2
|
+
export interface ApplicationsInfoService {
|
|
3
|
+
GetPlatformsInfo(request: GetPlatformsInfoRequest): Promise<GetPlatformsInfoResponse>;
|
|
4
|
+
}
|
|
5
|
+
export type GetPlatformsInfoRequest = {
|
|
6
|
+
applications?: string[];
|
|
7
|
+
};
|
|
8
|
+
export type GetPlatformsInfoResponse = {
|
|
9
|
+
applicationsPlatformsInfo: ApplicationPlatformsInfo[];
|
|
10
|
+
};
|
|
11
|
+
export type ApplicationPlatformsInfo_PlatformInfo = {
|
|
12
|
+
isConfigured: boolean;
|
|
13
|
+
isActive: boolean;
|
|
14
|
+
deactivationDate: Date;
|
|
15
|
+
deactivationReason: string;
|
|
16
|
+
certificateTimeLeft: Duration;
|
|
17
|
+
properties: Record<string, string>;
|
|
18
|
+
};
|
|
19
|
+
export type ApplicationPlatformsInfo = {
|
|
20
|
+
application: string;
|
|
21
|
+
platforms: Record<number, ApplicationPlatformsInfo_PlatformInfo>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface CampaignsService {
|
|
2
|
+
Get(request: GetCampaignRequest): Promise<GetCampaignResponse>;
|
|
3
|
+
Create(request: CreateCampaignRequest): Promise<CreateCampaignResponse>;
|
|
4
|
+
Update(request: UpdateCampaignRequest): Promise<UpdateCampaignResponse>;
|
|
5
|
+
List(request: ListCampaignsRequest): Promise<ListCampaignsResponse>;
|
|
6
|
+
Delete(request: DeleteCampaignRequest): Promise<DeleteCampaignResponse>;
|
|
7
|
+
}
|
|
8
|
+
export type Campaign = {
|
|
9
|
+
code: string;
|
|
10
|
+
application: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
export type GetCampaignRequest = {
|
|
15
|
+
code?: string;
|
|
16
|
+
};
|
|
17
|
+
export type GetCampaignResponse = {
|
|
18
|
+
campaign: Campaign;
|
|
19
|
+
};
|
|
20
|
+
export type CreateCampaignRequest = {
|
|
21
|
+
application?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
};
|
|
25
|
+
export type CreateCampaignResponse = {
|
|
26
|
+
campaign: Campaign;
|
|
27
|
+
};
|
|
28
|
+
export type UpdateCampaignRequest = {
|
|
29
|
+
code?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
};
|
|
33
|
+
export type UpdateCampaignResponse = {};
|
|
34
|
+
export type ListCampaignsRequest_OrderBy = 'NAME' | 'CREATED';
|
|
35
|
+
export type ListCampaignsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
36
|
+
export type ListCampaignsRequest = {
|
|
37
|
+
application?: string;
|
|
38
|
+
orderBy?: ListCampaignsRequest_OrderBy;
|
|
39
|
+
orderDirection?: ListCampaignsRequest_OrderDirection;
|
|
40
|
+
page?: number;
|
|
41
|
+
perPage?: number;
|
|
42
|
+
search?: string;
|
|
43
|
+
codes?: string[];
|
|
44
|
+
};
|
|
45
|
+
export type ListCampaignsResponse = {
|
|
46
|
+
campaigns: Campaign[];
|
|
47
|
+
page: number;
|
|
48
|
+
perPage: number;
|
|
49
|
+
total: number;
|
|
50
|
+
};
|
|
51
|
+
export type DeleteCampaignRequest = {
|
|
52
|
+
code?: string;
|
|
53
|
+
};
|
|
54
|
+
export type DeleteCampaignResponse = {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface CategoriesService {
|
|
2
|
+
List(request: ListCategoriesRequest): Promise<ListCategoriesResponse>;
|
|
3
|
+
}
|
|
4
|
+
export type ListCategoriesRequest_OrderBy = 'NAME' | 'CREATED';
|
|
5
|
+
export type ListCategoriesRequest_OrderDirection = 'ASC' | 'DESC';
|
|
6
|
+
export type ListCategoriesRequest = {
|
|
7
|
+
application?: string;
|
|
8
|
+
orderBy?: ListCategoriesRequest_OrderBy;
|
|
9
|
+
orderDirection?: ListCategoriesRequest_OrderDirection;
|
|
10
|
+
page?: number;
|
|
11
|
+
perPage?: number;
|
|
12
|
+
searchByName?: string;
|
|
13
|
+
};
|
|
14
|
+
export type ListCategoriesResponse = {
|
|
15
|
+
categories: string[];
|
|
16
|
+
page: number;
|
|
17
|
+
perPage: number;
|
|
18
|
+
total: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface CustomerJourneyService {
|
|
2
|
+
GetDeviceEntries(request: GetDeviceEntriesRequest): Promise<GetDeviceEntriesResponse>;
|
|
3
|
+
}
|
|
4
|
+
export type GetDeviceEntriesRequest = {
|
|
5
|
+
hwid?: string;
|
|
6
|
+
searchByName?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
perPage?: number;
|
|
9
|
+
application?: string;
|
|
10
|
+
};
|
|
11
|
+
export type GetDeviceEntriesResponse_JourneyEntry_Status = 'EXITED' | 'ERROR' | 'STILL_IN_JOURNEY';
|
|
12
|
+
export type GetDeviceEntriesResponse_JourneyEntry_CampaignType = 'UNKNOWN' | 'MIXED' | 'TRIGGER_BASED' | 'AUDIENCE_BASED' | 'API_BASED';
|
|
13
|
+
export type GetDeviceEntriesResponse_JourneyEntry = {
|
|
14
|
+
journeyUuid: string;
|
|
15
|
+
title: string;
|
|
16
|
+
status: GetDeviceEntriesResponse_JourneyEntry_Status;
|
|
17
|
+
type: GetDeviceEntriesResponse_JourneyEntry_CampaignType;
|
|
18
|
+
state: number;
|
|
19
|
+
enterTime: Date;
|
|
20
|
+
leaveTime: Date;
|
|
21
|
+
};
|
|
22
|
+
export type GetDeviceEntriesResponse = {
|
|
23
|
+
entries: GetDeviceEntriesResponse_JourneyEntry[];
|
|
24
|
+
page: number;
|
|
25
|
+
perPage: number;
|
|
26
|
+
totalPages: number;
|
|
27
|
+
totalJourneys: number;
|
|
28
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export interface DeeplinksService {
|
|
2
|
+
List(request: ListDeeplinksRequest): Promise<ListDeeplinksResponse>;
|
|
3
|
+
Get(request: GetDeeplinkRequest): Promise<GetDeeplinkResponse>;
|
|
4
|
+
Create(request: CreateDeeplinkRequest): Promise<CreateDeeplinkResponse>;
|
|
5
|
+
Update(request: UpdateDeeplinkRequest): Promise<UpdateDeeplinkResponse>;
|
|
6
|
+
Delete(request: DeleteDeeplinkRequest): Promise<DeleteDeeplinkResponse>;
|
|
7
|
+
}
|
|
8
|
+
export type ListDeeplinksRequest_OrderBy = 'NAME' | 'CREATED';
|
|
9
|
+
export type ListDeeplinksRequest_OrderDirection = 'ASC' | 'DESC';
|
|
10
|
+
export type ListDeeplinksRequest = {
|
|
11
|
+
application?: string;
|
|
12
|
+
orderBy?: ListDeeplinksRequest_OrderBy;
|
|
13
|
+
orderDirection?: ListDeeplinksRequest_OrderDirection;
|
|
14
|
+
page?: number;
|
|
15
|
+
perPage?: number;
|
|
16
|
+
searchByName?: string;
|
|
17
|
+
};
|
|
18
|
+
export type Deeplink = {
|
|
19
|
+
name: string;
|
|
20
|
+
code: string;
|
|
21
|
+
template: string;
|
|
22
|
+
system: boolean;
|
|
23
|
+
created: Date;
|
|
24
|
+
};
|
|
25
|
+
export type ListDeeplinksResponse = {
|
|
26
|
+
deeplinks: Deeplink[];
|
|
27
|
+
page: number;
|
|
28
|
+
perPage: number;
|
|
29
|
+
total: number;
|
|
30
|
+
};
|
|
31
|
+
export type GetDeeplinkRequest = {
|
|
32
|
+
code?: string;
|
|
33
|
+
};
|
|
34
|
+
export type GetDeeplinkResponse = {
|
|
35
|
+
deeplink: Deeplink;
|
|
36
|
+
};
|
|
37
|
+
export type CreateDeeplinkRequest = {
|
|
38
|
+
application?: string;
|
|
39
|
+
name?: string;
|
|
40
|
+
template?: string;
|
|
41
|
+
system?: boolean;
|
|
42
|
+
};
|
|
43
|
+
export type CreateDeeplinkResponse = {
|
|
44
|
+
deeplink: Deeplink;
|
|
45
|
+
};
|
|
46
|
+
export type UpdateDeeplinkRequest = {
|
|
47
|
+
code?: string;
|
|
48
|
+
name?: string;
|
|
49
|
+
template?: string;
|
|
50
|
+
};
|
|
51
|
+
export type UpdateDeeplinkResponse = {};
|
|
52
|
+
export type DeleteDeeplinkRequest = {
|
|
53
|
+
code?: string;
|
|
54
|
+
};
|
|
55
|
+
export type DeleteDeeplinkResponse = {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface EmailsConfigurationsService {
|
|
2
|
+
GetDomains(request: GetDomainsRequest): Promise<GetDomainsResponse>;
|
|
3
|
+
UpdateDomainStatuses(request: UpdateDomainStatusesRequest): Promise<UpdateDomainStatusesResponse>;
|
|
4
|
+
AddDomain(request: AddDomainRequest): Promise<AddDomainResponse>;
|
|
5
|
+
DeleteDomain(request: DeleteDomainRequest): Promise<DeleteDomainResponse>;
|
|
6
|
+
}
|
|
7
|
+
export type Domain_CName = {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
status: string;
|
|
11
|
+
};
|
|
12
|
+
export type Domain = {
|
|
13
|
+
name: string;
|
|
14
|
+
statusDkim: string;
|
|
15
|
+
statusSpf: string;
|
|
16
|
+
statusDmarc: string;
|
|
17
|
+
cnamesAmazon: Domain_CName[];
|
|
18
|
+
cnames: Domain_CName[];
|
|
19
|
+
};
|
|
20
|
+
export type AddDomainRequest = {
|
|
21
|
+
name?: string;
|
|
22
|
+
application?: string;
|
|
23
|
+
};
|
|
24
|
+
export type AddDomainResponse = {};
|
|
25
|
+
export type GetDomainsRequest = {
|
|
26
|
+
application?: string;
|
|
27
|
+
};
|
|
28
|
+
export type GetDomainsResponse = {
|
|
29
|
+
emailDomains: Domain[];
|
|
30
|
+
};
|
|
31
|
+
export type UpdateDomainStatusesRequest = {
|
|
32
|
+
application?: string;
|
|
33
|
+
};
|
|
34
|
+
export type UpdateDomainStatusesResponse = {};
|
|
35
|
+
export type DeleteDomainRequest = {
|
|
36
|
+
application?: string;
|
|
37
|
+
domain?: string;
|
|
38
|
+
};
|
|
39
|
+
export type DeleteDomainResponse = {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
export interface EventsService {
|
|
2
|
+
Get(request: GetEventRequest): Promise<Event>;
|
|
3
|
+
List(request: ListEventsRequest): Promise<ListEventsResponse>;
|
|
4
|
+
Create(request: CreateEventRequest): Promise<CreateEventResponse>;
|
|
5
|
+
Update(request: UpdateEventRequest): Promise<UpdateEventResponse>;
|
|
6
|
+
Delete(request: DeleteEventRequest): Promise<DeleteEventResponse>;
|
|
7
|
+
GetAttributeValues(request: GetAttributeValuesRequest): Promise<GetAttributeValuesResponse>;
|
|
8
|
+
GetTriggeredCount(request: GetTriggeredCountRequest): Promise<GetTriggeredCountResponse>;
|
|
9
|
+
GetDetailedStatistics(request: GetDetailedStatisticsRequest): Promise<GetDetailedStatisticsResponse>;
|
|
10
|
+
GetTotalStatistics(request: GetTotalStatisticsRequest): Promise<GetTotalStatisticsResponse>;
|
|
11
|
+
}
|
|
12
|
+
export type GetEventRequest = {
|
|
13
|
+
application?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
};
|
|
16
|
+
export type EventAttribute_Type = 'UNKNOWN' | 'INTEGER' | 'STRING' | 'LIST' | 'DATE' | 'BOOLEAN' | 'PRICE';
|
|
17
|
+
export type EventAttribute = {
|
|
18
|
+
name: string;
|
|
19
|
+
type: EventAttribute_Type;
|
|
20
|
+
};
|
|
21
|
+
export type Event = {
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
attributes: EventAttribute[];
|
|
25
|
+
canDelete: boolean;
|
|
26
|
+
storeDays: number;
|
|
27
|
+
};
|
|
28
|
+
export type ListEventsRequest_OrderBy = 'NAME' | 'CREATED';
|
|
29
|
+
export type ListEventsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
30
|
+
export type ListEventsRequest = {
|
|
31
|
+
application?: string;
|
|
32
|
+
searchByName?: string;
|
|
33
|
+
orderBy?: ListEventsRequest_OrderBy;
|
|
34
|
+
orderDirection?: ListEventsRequest_OrderDirection;
|
|
35
|
+
page?: number;
|
|
36
|
+
perPage?: number;
|
|
37
|
+
};
|
|
38
|
+
export type ListEventsResponse = {
|
|
39
|
+
events: Event[];
|
|
40
|
+
page: number;
|
|
41
|
+
perPage: number;
|
|
42
|
+
totalPages: number;
|
|
43
|
+
total: number;
|
|
44
|
+
};
|
|
45
|
+
export type CreateEventRequest = {
|
|
46
|
+
name?: string;
|
|
47
|
+
application?: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
attributes?: EventAttribute[];
|
|
50
|
+
};
|
|
51
|
+
export type CreateEventResponse = {
|
|
52
|
+
name: string;
|
|
53
|
+
};
|
|
54
|
+
export type UpdateEventRequest = {
|
|
55
|
+
name?: string;
|
|
56
|
+
application?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
attributes?: EventAttribute[];
|
|
59
|
+
};
|
|
60
|
+
export type UpdateEventResponse = {};
|
|
61
|
+
export type DeleteEventRequest = {
|
|
62
|
+
name?: string;
|
|
63
|
+
application?: string;
|
|
64
|
+
};
|
|
65
|
+
export type DeleteEventResponse = {};
|
|
66
|
+
export type GetAttributeValuesRequest = {
|
|
67
|
+
application?: string;
|
|
68
|
+
event?: string;
|
|
69
|
+
attribute?: string;
|
|
70
|
+
skip?: number;
|
|
71
|
+
limit?: number;
|
|
72
|
+
search?: string;
|
|
73
|
+
};
|
|
74
|
+
export type GetAttributeValuesResponse = {
|
|
75
|
+
total: number;
|
|
76
|
+
values: string[];
|
|
77
|
+
};
|
|
78
|
+
export type GetTriggeredCountRequest = {
|
|
79
|
+
application?: string;
|
|
80
|
+
events?: string[];
|
|
81
|
+
};
|
|
82
|
+
export type GetTriggeredCountResponse_Count = {
|
|
83
|
+
totalTriggered: number;
|
|
84
|
+
uniqueTriggered: number;
|
|
85
|
+
};
|
|
86
|
+
export type GetTriggeredCountResponse = {
|
|
87
|
+
count: Record<string, GetTriggeredCountResponse_Count>;
|
|
88
|
+
};
|
|
89
|
+
export type TimeInterval = 'TIME_INTERVAL_UNSPECIFIED' | 'HOUR' | 'DAY' | 'WEEK' | 'MONTH';
|
|
90
|
+
export type ListOfValues = {
|
|
91
|
+
values: string[];
|
|
92
|
+
};
|
|
93
|
+
export type Value_kind_string = {
|
|
94
|
+
string: string;
|
|
95
|
+
};
|
|
96
|
+
export type Value_kind_integer = {
|
|
97
|
+
integer: number;
|
|
98
|
+
};
|
|
99
|
+
export type Value_kind_float = {
|
|
100
|
+
float: number;
|
|
101
|
+
};
|
|
102
|
+
export type Value_kind_bool = {
|
|
103
|
+
bool: boolean;
|
|
104
|
+
};
|
|
105
|
+
export type Value_kind_list = {
|
|
106
|
+
list: ListOfValues;
|
|
107
|
+
};
|
|
108
|
+
export type Value_kind_timestamp = {
|
|
109
|
+
timestamp: Date;
|
|
110
|
+
};
|
|
111
|
+
export type Value_kind = Value_kind_string | Value_kind_integer | Value_kind_float | Value_kind_bool | Value_kind_list | Value_kind_timestamp;
|
|
112
|
+
export type Value = {} & Value_kind;
|
|
113
|
+
export type AttributeCondition_Operator = 'OPERATOR_UNSPECIFIED' | 'EQ' | 'NOT_EQ' | 'GTE' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN';
|
|
114
|
+
export type AttributeCondition = {
|
|
115
|
+
name: string;
|
|
116
|
+
operator: AttributeCondition_Operator;
|
|
117
|
+
values: Value[];
|
|
118
|
+
};
|
|
119
|
+
export type GetDetailedStatisticsRequest = {
|
|
120
|
+
application?: string;
|
|
121
|
+
name?: string;
|
|
122
|
+
dateFrom?: Date;
|
|
123
|
+
dateTo?: Date;
|
|
124
|
+
interval?: TimeInterval;
|
|
125
|
+
attributeConditions?: AttributeCondition[];
|
|
126
|
+
};
|
|
127
|
+
export type GetDetailedStatisticsResponse_TriggeredCount = {
|
|
128
|
+
timestamp: Date;
|
|
129
|
+
triggeredCount: number;
|
|
130
|
+
};
|
|
131
|
+
export type GetDetailedStatisticsResponse = {
|
|
132
|
+
metrics: GetDetailedStatisticsResponse_TriggeredCount[];
|
|
133
|
+
};
|
|
134
|
+
export type GetTotalStatisticsRequest = {
|
|
135
|
+
application?: string;
|
|
136
|
+
events?: string[];
|
|
137
|
+
dateFrom?: Date;
|
|
138
|
+
dateTo?: Date;
|
|
139
|
+
messageCode?: string;
|
|
140
|
+
campaign?: string;
|
|
141
|
+
};
|
|
142
|
+
export type GetTotalStatisticsResponse_EventTriggeredCount = {
|
|
143
|
+
event: string;
|
|
144
|
+
triggeredCount: number;
|
|
145
|
+
uniqTriggeredCount: number;
|
|
146
|
+
};
|
|
147
|
+
export type GetTotalStatisticsResponse = {
|
|
148
|
+
metrics: GetTotalStatisticsResponse_EventTriggeredCount[];
|
|
149
|
+
};
|