@pushwoosh/rpc-v2-http-api-data 0.1.593 → 0.1.595

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/data.js CHANGED
@@ -18592,6 +18592,126 @@ export const data = {
18592
18592
  }
18593
18593
  }
18594
18594
  },
18595
+ "pushwoosh.rpc_v2.send_rate.SendRateService": {
18596
+ "type": "S",
18597
+ "key": "sendRate",
18598
+ "methods": {
18599
+ "Get": {
18600
+ "request": "pushwoosh.rpc_v2.send_rate.GetSendRateRequest",
18601
+ "response": "pushwoosh.rpc_v2.send_rate.GetSendRateResponse",
18602
+ "method": "get",
18603
+ "path": "/api/send_rate/{application}"
18604
+ },
18605
+ "Update": {
18606
+ "request": "pushwoosh.rpc_v2.send_rate.UpdateSendRateRequest",
18607
+ "response": "pushwoosh.rpc_v2.send_rate.UpdateSendRateResponse",
18608
+ "method": "put",
18609
+ "path": "/api/send_rate/{application}"
18610
+ },
18611
+ "Create": {
18612
+ "request": "pushwoosh.rpc_v2.send_rate.CreateSendRateRequest",
18613
+ "response": "pushwoosh.rpc_v2.send_rate.CreateSendRateResponse",
18614
+ "method": "post",
18615
+ "path": "/api/send_rate"
18616
+ }
18617
+ }
18618
+ },
18619
+ "pushwoosh.rpc_v2.send_rate.Info": {
18620
+ "type": "I",
18621
+ "fields": {
18622
+ "count": {
18623
+ "type": "number"
18624
+ },
18625
+ "seconds": {
18626
+ "type": "number"
18627
+ }
18628
+ }
18629
+ },
18630
+ "pushwoosh.rpc_v2.send_rate.SendRate": {
18631
+ "type": "I",
18632
+ "fields": {
18633
+ "push": {
18634
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18635
+ },
18636
+ "email": {
18637
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18638
+ },
18639
+ "sms": {
18640
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18641
+ },
18642
+ "inApp": {
18643
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18644
+ }
18645
+ }
18646
+ },
18647
+ "pushwoosh.rpc_v2.send_rate.GetSendRateRequest": {
18648
+ "type": "I",
18649
+ "fields": {
18650
+ "application": {
18651
+ "type": "string"
18652
+ }
18653
+ }
18654
+ },
18655
+ "pushwoosh.rpc_v2.send_rate.GetSendRateResponse": {
18656
+ "type": "I",
18657
+ "fields": {
18658
+ "sendRate": {
18659
+ "type": "pushwoosh.rpc_v2.send_rate.SendRate"
18660
+ }
18661
+ }
18662
+ },
18663
+ "pushwoosh.rpc_v2.send_rate.CreateSendRateRequest": {
18664
+ "type": "I",
18665
+ "fields": {
18666
+ "application": {
18667
+ "type": "string"
18668
+ },
18669
+ "push": {
18670
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18671
+ },
18672
+ "email": {
18673
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18674
+ },
18675
+ "sms": {
18676
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18677
+ },
18678
+ "inApp": {
18679
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18680
+ }
18681
+ }
18682
+ },
18683
+ "pushwoosh.rpc_v2.send_rate.CreateSendRateResponse": {
18684
+ "type": "I",
18685
+ "fields": {
18686
+ "sendRate": {
18687
+ "type": "pushwoosh.rpc_v2.send_rate.SendRate"
18688
+ }
18689
+ }
18690
+ },
18691
+ "pushwoosh.rpc_v2.send_rate.UpdateSendRateRequest": {
18692
+ "type": "I",
18693
+ "fields": {
18694
+ "application": {
18695
+ "type": "string"
18696
+ },
18697
+ "push": {
18698
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18699
+ },
18700
+ "email": {
18701
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18702
+ },
18703
+ "sms": {
18704
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18705
+ },
18706
+ "inApp": {
18707
+ "type": "pushwoosh.rpc_v2.send_rate.Info"
18708
+ }
18709
+ }
18710
+ },
18711
+ "pushwoosh.rpc_v2.send_rate.UpdateSendRateResponse": {
18712
+ "type": "I",
18713
+ "fields": {}
18714
+ },
18595
18715
  "pushwoosh.rpc_v2.sms_presets.smsPresetsService": {
18596
18716
  "type": "S",
18597
18717
  "key": "smsPresets",
package/index.d.ts CHANGED
@@ -35,6 +35,7 @@ import { ReferralPartnerService as pushwoosh_rpc_v2_referral_partners_ReferralPa
35
35
  import { RestrictionsService as pushwoosh_rpc_v2_restrictions_RestrictionsService } from './restrictions';
36
36
  import { RichMediaService as pushwoosh_rpc_v2_rich_medias_RichMediaService } from './rich_medias';
37
37
  import { SegmentStatisticsService as pushwoosh_rpc_v2_segment_statistics_SegmentStatisticsService } from './segment_statistics';
38
+ import { SendRateService as pushwoosh_rpc_v2_send_rate_SendRateService } from './send_rate';
38
39
  import { smsPresetsService as pushwoosh_rpc_v2_sms_presets_smsPresetsService } from './sms_presets';
39
40
  import { StatisticsDashboardsService as pushwoosh_rpc_v2_statistics_dashboards_StatisticsDashboardsService } from './statistics_dashboards';
40
41
  import { StatisticsDashboardsWidgetsService as pushwoosh_rpc_v2_statistics_dashboards_widgets_StatisticsDashboardsWidgetsService } from './statistics_dashboards_widgets';
@@ -82,6 +83,7 @@ export type API = {
82
83
  restrictions: pushwoosh_rpc_v2_restrictions_RestrictionsService;
83
84
  richMedia: pushwoosh_rpc_v2_rich_medias_RichMediaService;
84
85
  segmentStatistics: pushwoosh_rpc_v2_segment_statistics_SegmentStatisticsService;
86
+ sendRate: pushwoosh_rpc_v2_send_rate_SendRateService;
85
87
  smsPresets: pushwoosh_rpc_v2_sms_presets_smsPresetsService;
86
88
  statisticsDashboards: pushwoosh_rpc_v2_statistics_dashboards_StatisticsDashboardsService;
87
89
  statisticsDashboardsWidgets: pushwoosh_rpc_v2_statistics_dashboards_widgets_StatisticsDashboardsWidgetsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.593",
3
+ "version": "0.1.595",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/send_rate.d.ts ADDED
@@ -0,0 +1,39 @@
1
+ export interface SendRateService {
2
+ Get(request: GetSendRateRequest): Promise<GetSendRateResponse>;
3
+ Update(request: UpdateSendRateRequest): Promise<UpdateSendRateResponse>;
4
+ Create(request: CreateSendRateRequest): Promise<CreateSendRateResponse>;
5
+ }
6
+ export type Info = {
7
+ count: number;
8
+ seconds: number;
9
+ };
10
+ export type SendRate = {
11
+ push: Info;
12
+ email: Info;
13
+ sms: Info;
14
+ inApp: Info;
15
+ };
16
+ export type GetSendRateRequest = {
17
+ application?: string;
18
+ };
19
+ export type GetSendRateResponse = {
20
+ sendRate: SendRate;
21
+ };
22
+ export type CreateSendRateRequest = {
23
+ application?: string;
24
+ push?: Info;
25
+ email?: Info;
26
+ sms?: Info;
27
+ inApp?: Info;
28
+ };
29
+ export type CreateSendRateResponse = {
30
+ sendRate: SendRate;
31
+ };
32
+ export type UpdateSendRateRequest = {
33
+ application?: string;
34
+ push?: Info;
35
+ email?: Info;
36
+ sms?: Info;
37
+ inApp?: Info;
38
+ };
39
+ export type UpdateSendRateResponse = {};
package/send_rate.js ADDED
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};