@pushwoosh/rpc-v2-http-api-data 0.2.278 → 0.2.280
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/accounts.d.ts +6 -0
- package/applications_configurations.d.ts +15 -0
- package/data.js +40 -0
- package/package.json +1 -1
package/accounts.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RpcMethod } from './commonTypes';
|
|
2
|
+
import { DeliveryTrackingState as pushwoosh_rpc_v2_applications_info_DeliveryTrackingState } from './applications_info';
|
|
2
3
|
import { AiBuilderDocument as pushwoosh_aibuilder_v1_AiBuilderDocument } from './pushwoosh_aibuilder_v1';
|
|
3
4
|
export type AccountsService_GetEmailStatisticCount = RpcMethod<GetEmailStatisticCountRequest, GetEmailStatisticCountResponse>;
|
|
4
5
|
export type AccountsService_GetActiveDevicesCount = RpcMethod<GetActiveDevicesCountRequest, GetActiveDevicesCountResponse>;
|
|
@@ -117,6 +118,11 @@ export type GetOnboardingInfoResponse = {
|
|
|
117
118
|
showSurvey: boolean;
|
|
118
119
|
hasActiveSubscription: boolean;
|
|
119
120
|
hasApplication: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Account-wide iOS delivery tracking: OK once any application reports deliveries,
|
|
123
|
+
* UNSPECIFIED when the account has no measured iOS application and the step does not apply.
|
|
124
|
+
*/
|
|
125
|
+
iosDeliveryTracking: pushwoosh_rpc_v2_applications_info_DeliveryTrackingState;
|
|
120
126
|
};
|
|
121
127
|
export type UpdateOnboardingInfoRequest_answer_list = {
|
|
122
128
|
answers: string[];
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { RpcMethod } from './commonTypes';
|
|
2
2
|
export type ApplicationsConfigurationsService_Configure = RpcMethod<ConfigurationRequest, ConfigurationResponse>;
|
|
3
3
|
export type ApplicationsConfigurationsService_ListSmsProviders = RpcMethod<ListSmsProvidersRequest, ListSmsProvidersResponse>;
|
|
4
|
+
export type ApplicationsConfigurationsService_SendTestSms = RpcMethod<SendTestSmsRequest, SendTestSmsResponse>;
|
|
4
5
|
export type ApplicationsConfigurationsService_EnablePlatform = RpcMethod<EnablePlatformRequest, EnablePlatformResponse>;
|
|
5
6
|
export interface ApplicationsConfigurationsService {
|
|
6
7
|
/** Saves the provider credentials for one delivery platform or channel of an application (code XXXXX-XXXXX) — APNs/FCM push keys, an SMS provider, email sender, Telegram/Viber token, Google Wallet, etc. — then enables that platform. Pick the matching kind in the oneof; some providers (Telegram, Huawei) also call the external provider API to register a webhook or validate the token. */
|
|
7
8
|
Configure: ApplicationsConfigurationsService_Configure;
|
|
8
9
|
/** Lists the SMS providers an application can be configured with: the built-in ones and every published provider template from the catalog. A template carries a JSON Schema of the credential form to render, so a provider added to the catalog shows up here without a release. */
|
|
9
10
|
ListSmsProviders: ApplicationsConfigurationsService_ListSmsProviders;
|
|
11
|
+
/** Sends one test SMS from an application (code XXXXX-XXXXX) through the provider it is configured with, and reports what the gateway answered — the status code and, on refusal, the provider's own wording. Use after saving an SMS configuration to check the credentials before a campaign does. */
|
|
12
|
+
SendTestSms: ApplicationsConfigurationsService_SendTestSms;
|
|
10
13
|
/** Enables or disables a single delivery platform (by numeric platform id) for an application (code XXXXX-XXXXX) without touching its stored credentials. Use to toggle a channel on or off; update_platform_configuration already enables a platform after saving its credentials. */
|
|
11
14
|
EnablePlatform: ApplicationsConfigurationsService_EnablePlatform;
|
|
12
15
|
}
|
|
@@ -395,3 +398,15 @@ export type SmsProvider = {
|
|
|
395
398
|
icon: string;
|
|
396
399
|
description: string;
|
|
397
400
|
};
|
|
401
|
+
export type SendTestSmsRequest = {
|
|
402
|
+
code?: string;
|
|
403
|
+
phone?: string;
|
|
404
|
+
text?: string;
|
|
405
|
+
};
|
|
406
|
+
export type SendTestSmsResponse = {
|
|
407
|
+
accepted: boolean;
|
|
408
|
+
statusCode: number;
|
|
409
|
+
status: string;
|
|
410
|
+
/** error carries the gateway's own wording when it refused the send. */
|
|
411
|
+
error: string;
|
|
412
|
+
};
|
package/data.js
CHANGED
|
@@ -1163,6 +1163,9 @@ export const data = {
|
|
|
1163
1163
|
},
|
|
1164
1164
|
"hasApplication": {
|
|
1165
1165
|
"type": "boolean"
|
|
1166
|
+
},
|
|
1167
|
+
"iosDeliveryTracking": {
|
|
1168
|
+
"type": "pushwoosh.rpc_v2.applications_info.DeliveryTrackingState"
|
|
1166
1169
|
}
|
|
1167
1170
|
}
|
|
1168
1171
|
},
|
|
@@ -5986,6 +5989,12 @@ export const data = {
|
|
|
5986
5989
|
"method": "get",
|
|
5987
5990
|
"path": "/api/applications_configurations:sms_providers"
|
|
5988
5991
|
},
|
|
5992
|
+
"SendTestSms": {
|
|
5993
|
+
"request": "pushwoosh.rpc_v2.applications_configurations.SendTestSmsRequest",
|
|
5994
|
+
"response": "pushwoosh.rpc_v2.applications_configurations.SendTestSmsResponse",
|
|
5995
|
+
"method": "post",
|
|
5996
|
+
"path": "/api/applications_configurations:test_sms/{code}"
|
|
5997
|
+
},
|
|
5989
5998
|
"EnablePlatform": {
|
|
5990
5999
|
"request": "pushwoosh.rpc_v2.applications_configurations.EnablePlatformRequest",
|
|
5991
6000
|
"response": "pushwoosh.rpc_v2.applications_configurations.EnablePlatformResponse",
|
|
@@ -6713,6 +6722,37 @@ export const data = {
|
|
|
6713
6722
|
}
|
|
6714
6723
|
}
|
|
6715
6724
|
},
|
|
6725
|
+
"pushwoosh.rpc_v2.applications_configurations.SendTestSmsRequest": {
|
|
6726
|
+
"type": "I",
|
|
6727
|
+
"fields": {
|
|
6728
|
+
"code": {
|
|
6729
|
+
"type": "string"
|
|
6730
|
+
},
|
|
6731
|
+
"phone": {
|
|
6732
|
+
"type": "string"
|
|
6733
|
+
},
|
|
6734
|
+
"text": {
|
|
6735
|
+
"type": "string"
|
|
6736
|
+
}
|
|
6737
|
+
}
|
|
6738
|
+
},
|
|
6739
|
+
"pushwoosh.rpc_v2.applications_configurations.SendTestSmsResponse": {
|
|
6740
|
+
"type": "I",
|
|
6741
|
+
"fields": {
|
|
6742
|
+
"accepted": {
|
|
6743
|
+
"type": "boolean"
|
|
6744
|
+
},
|
|
6745
|
+
"statusCode": {
|
|
6746
|
+
"type": "number"
|
|
6747
|
+
},
|
|
6748
|
+
"status": {
|
|
6749
|
+
"type": "string"
|
|
6750
|
+
},
|
|
6751
|
+
"error": {
|
|
6752
|
+
"type": "string"
|
|
6753
|
+
}
|
|
6754
|
+
}
|
|
6755
|
+
},
|
|
6716
6756
|
"pushwoosh.rpc_v2.applications_controlgroup.ApplicationsControlGroupService": {
|
|
6717
6757
|
"type": "S",
|
|
6718
6758
|
"key": "applicationsControlGroup",
|