@pushwoosh/rpc-v2-http-api-data 0.2.512 → 0.2.513
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/applications.d.ts +52 -0
- package/data.js +116 -0
- package/package.json +1 -1
package/applications.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export type ApplicationsService_GetAccountGroupPermissions = RpcMethod<GetAccoun
|
|
|
13
13
|
export type ApplicationsService_SaveAccountGroupPermissions = RpcMethod<SaveAccountGroupPermissionsRequest, SaveAccountGroupPermissionsResponse>;
|
|
14
14
|
export type ApplicationsService_GetDOIConfig = RpcMethod<GetDOIConfigRequest, GetDOIConfigResponse>;
|
|
15
15
|
export type ApplicationsService_SetDOIConfig = RpcMethod<SetDOIConfigRequest, SetDOIConfigResponse>;
|
|
16
|
+
export type ApplicationsService_GetEmailSunsetPolicy = RpcMethod<GetEmailSunsetPolicyRequest, GetEmailSunsetPolicyResponse>;
|
|
17
|
+
export type ApplicationsService_SetEmailSunsetPolicy = RpcMethod<SetEmailSunsetPolicyRequest, SetEmailSunsetPolicyResponse>;
|
|
16
18
|
export interface ApplicationsService {
|
|
17
19
|
/** Returns one Pushwoosh application by its code (format XXXXX-XXXXX) with platforms, subscriber counts, languages and permissions. Use to inspect a single app; use list_applications to browse many. */
|
|
18
20
|
Get: ApplicationsService_Get;
|
|
@@ -40,6 +42,10 @@ export interface ApplicationsService {
|
|
|
40
42
|
GetDOIConfig: ApplicationsService_GetDOIConfig;
|
|
41
43
|
/** Enables or disables double opt-in (DOI) for an application; enabling for the first time clones the confirmation email preset into the account. Use to require email confirmation before subscribing. */
|
|
42
44
|
SetDOIConfig: ApplicationsService_SetDOIConfig;
|
|
45
|
+
/** Returns the email sunset policy of an application: whether marketing emails skip recipients with no email activity, the inactivity period in days and the activity type. Use before changing it with set_email_sunset_policy. */
|
|
46
|
+
GetEmailSunsetPolicy: ApplicationsService_GetEmailSunsetPolicy;
|
|
47
|
+
/** Turns the email sunset policy of an application on or off and sets its period (30, 90, 180, 365 or 730 days) and activity (click, open or both). Enabled without a period or activity, it takes 180 days and both. Transactional emails are never affected. */
|
|
48
|
+
SetEmailSunsetPolicy: ApplicationsService_SetEmailSunsetPolicy;
|
|
43
49
|
}
|
|
44
50
|
export type ApplicationPlatformSubscribersCount = {
|
|
45
51
|
pushEnabled: number;
|
|
@@ -205,3 +211,49 @@ export type SetDOIConfigRequest = {
|
|
|
205
211
|
enabled?: boolean;
|
|
206
212
|
};
|
|
207
213
|
export type SetDOIConfigResponse = {};
|
|
214
|
+
/** What counts as email activity for the sunset policy. */
|
|
215
|
+
export type EmailSunsetActivityType = 'EMAIL_SUNSET_ACTIVITY_TYPE_UNSPECIFIED' | 'EMAIL_SUNSET_ACTIVITY_TYPE_CLICK' | 'EMAIL_SUNSET_ACTIVITY_TYPE_OPEN' | 'EMAIL_SUNSET_ACTIVITY_TYPE_CLICK_AND_OPEN';
|
|
216
|
+
/** How many marketing emails and users are reached without the sunset policy (total) and with it (sent); skipped is their difference. A user counts as skipped when none of their emails is sent. */
|
|
217
|
+
export type EmailSunsetCounters = {
|
|
218
|
+
totalEmails: number;
|
|
219
|
+
totalUsers: number;
|
|
220
|
+
sentEmails: number;
|
|
221
|
+
sentUsers: number;
|
|
222
|
+
skippedEmails: number;
|
|
223
|
+
skippedUsers: number;
|
|
224
|
+
/** When the counters were last recounted; unset while a recount is pending. */
|
|
225
|
+
updatedAt: Date;
|
|
226
|
+
/** PENDING after the policy is enabled or changed until the recount finishes, DONE once the counters are set. */
|
|
227
|
+
status: EmailSunsetCountersStatus;
|
|
228
|
+
};
|
|
229
|
+
export type EmailSunsetPolicy = {
|
|
230
|
+
/** Whether marketing emails skip recipients without activity within the period. */
|
|
231
|
+
enabled: boolean;
|
|
232
|
+
/** Inactivity period in days: 30, 90, 180, 365 or 730. */
|
|
233
|
+
period: number;
|
|
234
|
+
/** What counts as activity; a recipient without any counts from the First Install tag. */
|
|
235
|
+
activityType: EmailSunsetActivityType;
|
|
236
|
+
/** Counters of the whole application, recounted daily while the policy is enabled; only the status while a recount is pending. */
|
|
237
|
+
counters: EmailSunsetCounters;
|
|
238
|
+
};
|
|
239
|
+
export type EmailSunsetCountersStatus = 'EMAIL_SUNSET_COUNTERS_STATUS_UNSPECIFIED' | 'EMAIL_SUNSET_COUNTERS_STATUS_PENDING' | 'EMAIL_SUNSET_COUNTERS_STATUS_DONE';
|
|
240
|
+
export type GetEmailSunsetPolicyRequest = {
|
|
241
|
+
/** Application code (format XXXXX-XXXXX) whose email sunset policy to fetch. */
|
|
242
|
+
code?: string;
|
|
243
|
+
};
|
|
244
|
+
export type GetEmailSunsetPolicyResponse = {
|
|
245
|
+
policy: EmailSunsetPolicy;
|
|
246
|
+
};
|
|
247
|
+
export type SetEmailSunsetPolicyRequest = {
|
|
248
|
+
/** Application code (format XXXXX-XXXXX) to configure. */
|
|
249
|
+
code?: string;
|
|
250
|
+
/** Whether the policy is on. */
|
|
251
|
+
enabled?: boolean;
|
|
252
|
+
/** Inactivity period in days: 30, 90, 180, 365 or 730; 0 keeps the stored value, or 180 when there is none. */
|
|
253
|
+
period?: number;
|
|
254
|
+
/** What counts as activity; UNSPECIFIED keeps the stored value, or CLICK_AND_OPEN when there is none. */
|
|
255
|
+
activityType?: EmailSunsetActivityType;
|
|
256
|
+
};
|
|
257
|
+
export type SetEmailSunsetPolicyResponse = {
|
|
258
|
+
policy: EmailSunsetPolicy;
|
|
259
|
+
};
|
package/data.js
CHANGED
|
@@ -5620,6 +5620,18 @@ export const data = {
|
|
|
5620
5620
|
"response": "pushwoosh.rpc_v2.applications.SetDOIConfigResponse",
|
|
5621
5621
|
"method": "patch",
|
|
5622
5622
|
"path": "/api/applications/{code}/doi-config"
|
|
5623
|
+
},
|
|
5624
|
+
"GetEmailSunsetPolicy": {
|
|
5625
|
+
"request": "pushwoosh.rpc_v2.applications.GetEmailSunsetPolicyRequest",
|
|
5626
|
+
"response": "pushwoosh.rpc_v2.applications.GetEmailSunsetPolicyResponse",
|
|
5627
|
+
"method": "get",
|
|
5628
|
+
"path": "/api/applications/{code}/email-sunset-policy"
|
|
5629
|
+
},
|
|
5630
|
+
"SetEmailSunsetPolicy": {
|
|
5631
|
+
"request": "pushwoosh.rpc_v2.applications.SetEmailSunsetPolicyRequest",
|
|
5632
|
+
"response": "pushwoosh.rpc_v2.applications.SetEmailSunsetPolicyResponse",
|
|
5633
|
+
"method": "patch",
|
|
5634
|
+
"path": "/api/applications/{code}/email-sunset-policy"
|
|
5623
5635
|
}
|
|
5624
5636
|
}
|
|
5625
5637
|
},
|
|
@@ -6025,6 +6037,110 @@ export const data = {
|
|
|
6025
6037
|
"type": "I",
|
|
6026
6038
|
"fields": {}
|
|
6027
6039
|
},
|
|
6040
|
+
"pushwoosh.rpc_v2.applications.EmailSunsetActivityType": {
|
|
6041
|
+
"type": "E",
|
|
6042
|
+
"values": [
|
|
6043
|
+
"EMAIL_SUNSET_ACTIVITY_TYPE_UNSPECIFIED",
|
|
6044
|
+
"EMAIL_SUNSET_ACTIVITY_TYPE_CLICK",
|
|
6045
|
+
"EMAIL_SUNSET_ACTIVITY_TYPE_OPEN",
|
|
6046
|
+
"EMAIL_SUNSET_ACTIVITY_TYPE_CLICK_AND_OPEN"
|
|
6047
|
+
]
|
|
6048
|
+
},
|
|
6049
|
+
"pushwoosh.rpc_v2.applications.EmailSunsetCounters": {
|
|
6050
|
+
"type": "I",
|
|
6051
|
+
"fields": {
|
|
6052
|
+
"totalEmails": {
|
|
6053
|
+
"type": "number"
|
|
6054
|
+
},
|
|
6055
|
+
"totalUsers": {
|
|
6056
|
+
"type": "number"
|
|
6057
|
+
},
|
|
6058
|
+
"sentEmails": {
|
|
6059
|
+
"type": "number"
|
|
6060
|
+
},
|
|
6061
|
+
"sentUsers": {
|
|
6062
|
+
"type": "number"
|
|
6063
|
+
},
|
|
6064
|
+
"skippedEmails": {
|
|
6065
|
+
"type": "number"
|
|
6066
|
+
},
|
|
6067
|
+
"skippedUsers": {
|
|
6068
|
+
"type": "number"
|
|
6069
|
+
},
|
|
6070
|
+
"updatedAt": {
|
|
6071
|
+
"type": "Date"
|
|
6072
|
+
},
|
|
6073
|
+
"status": {
|
|
6074
|
+
"type": "pushwoosh.rpc_v2.applications.EmailSunsetCountersStatus"
|
|
6075
|
+
}
|
|
6076
|
+
}
|
|
6077
|
+
},
|
|
6078
|
+
"pushwoosh.rpc_v2.applications.EmailSunsetPolicy": {
|
|
6079
|
+
"type": "I",
|
|
6080
|
+
"fields": {
|
|
6081
|
+
"enabled": {
|
|
6082
|
+
"type": "boolean"
|
|
6083
|
+
},
|
|
6084
|
+
"period": {
|
|
6085
|
+
"type": "number"
|
|
6086
|
+
},
|
|
6087
|
+
"activityType": {
|
|
6088
|
+
"type": "pushwoosh.rpc_v2.applications.EmailSunsetActivityType"
|
|
6089
|
+
},
|
|
6090
|
+
"counters": {
|
|
6091
|
+
"type": "pushwoosh.rpc_v2.applications.EmailSunsetCounters"
|
|
6092
|
+
}
|
|
6093
|
+
}
|
|
6094
|
+
},
|
|
6095
|
+
"pushwoosh.rpc_v2.applications.EmailSunsetCountersStatus": {
|
|
6096
|
+
"type": "E",
|
|
6097
|
+
"values": [
|
|
6098
|
+
"EMAIL_SUNSET_COUNTERS_STATUS_UNSPECIFIED",
|
|
6099
|
+
"EMAIL_SUNSET_COUNTERS_STATUS_PENDING",
|
|
6100
|
+
"EMAIL_SUNSET_COUNTERS_STATUS_DONE"
|
|
6101
|
+
]
|
|
6102
|
+
},
|
|
6103
|
+
"pushwoosh.rpc_v2.applications.GetEmailSunsetPolicyRequest": {
|
|
6104
|
+
"type": "I",
|
|
6105
|
+
"fields": {
|
|
6106
|
+
"code": {
|
|
6107
|
+
"type": "string"
|
|
6108
|
+
}
|
|
6109
|
+
}
|
|
6110
|
+
},
|
|
6111
|
+
"pushwoosh.rpc_v2.applications.GetEmailSunsetPolicyResponse": {
|
|
6112
|
+
"type": "I",
|
|
6113
|
+
"fields": {
|
|
6114
|
+
"policy": {
|
|
6115
|
+
"type": "pushwoosh.rpc_v2.applications.EmailSunsetPolicy"
|
|
6116
|
+
}
|
|
6117
|
+
}
|
|
6118
|
+
},
|
|
6119
|
+
"pushwoosh.rpc_v2.applications.SetEmailSunsetPolicyRequest": {
|
|
6120
|
+
"type": "I",
|
|
6121
|
+
"fields": {
|
|
6122
|
+
"code": {
|
|
6123
|
+
"type": "string"
|
|
6124
|
+
},
|
|
6125
|
+
"enabled": {
|
|
6126
|
+
"type": "boolean"
|
|
6127
|
+
},
|
|
6128
|
+
"period": {
|
|
6129
|
+
"type": "number"
|
|
6130
|
+
},
|
|
6131
|
+
"activityType": {
|
|
6132
|
+
"type": "pushwoosh.rpc_v2.applications.EmailSunsetActivityType"
|
|
6133
|
+
}
|
|
6134
|
+
}
|
|
6135
|
+
},
|
|
6136
|
+
"pushwoosh.rpc_v2.applications.SetEmailSunsetPolicyResponse": {
|
|
6137
|
+
"type": "I",
|
|
6138
|
+
"fields": {
|
|
6139
|
+
"policy": {
|
|
6140
|
+
"type": "pushwoosh.rpc_v2.applications.EmailSunsetPolicy"
|
|
6141
|
+
}
|
|
6142
|
+
}
|
|
6143
|
+
},
|
|
6028
6144
|
"pushwoosh.rpc_v2.applications.email_froms.ApplicationEmailFromsService": {
|
|
6029
6145
|
"type": "S",
|
|
6030
6146
|
"key": "applicationEmailFroms",
|