@pushwoosh/rpc-v2-http-api-data 0.2.279 → 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/applications_configurations.d.ts +15 -0
- package/data.js +37 -0
- package/package.json +1 -1
|
@@ -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
|
@@ -5989,6 +5989,12 @@ export const data = {
|
|
|
5989
5989
|
"method": "get",
|
|
5990
5990
|
"path": "/api/applications_configurations:sms_providers"
|
|
5991
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
|
+
},
|
|
5992
5998
|
"EnablePlatform": {
|
|
5993
5999
|
"request": "pushwoosh.rpc_v2.applications_configurations.EnablePlatformRequest",
|
|
5994
6000
|
"response": "pushwoosh.rpc_v2.applications_configurations.EnablePlatformResponse",
|
|
@@ -6716,6 +6722,37 @@ export const data = {
|
|
|
6716
6722
|
}
|
|
6717
6723
|
}
|
|
6718
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
|
+
},
|
|
6719
6756
|
"pushwoosh.rpc_v2.applications_controlgroup.ApplicationsControlGroupService": {
|
|
6720
6757
|
"type": "S",
|
|
6721
6758
|
"key": "applicationsControlGroup",
|