@pushwoosh/rpc-v2-http-api-data 0.1.651 → 0.1.653

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.
@@ -0,0 +1,87 @@
1
+ export interface AutopushesService {
2
+ List(request: ListRequest): Promise<ListResponse>;
3
+ Delete(request: DeleteRequest): Promise<DeleteResponse>;
4
+ Get(request: GetRequest): Promise<GetResponse>;
5
+ Create(request: CreateRequest): Promise<CreateResponse>;
6
+ Update(request: UpdateRequest): Promise<UpdateResponse>;
7
+ }
8
+ export type Schedule = {
9
+ stopSendDate: Date;
10
+ time: string;
11
+ daysOfWeek: string[];
12
+ daysOfMonth: string[];
13
+ };
14
+ export type Capping = {
15
+ count: number;
16
+ days: number;
17
+ };
18
+ export type Autopush = {
19
+ code: string;
20
+ name: string;
21
+ description: string;
22
+ preset: string;
23
+ filter: string;
24
+ application: string;
25
+ campaign: string;
26
+ useUserTimezone: boolean;
27
+ content: string;
28
+ schedule: Schedule;
29
+ capping: Capping;
30
+ created: Date;
31
+ };
32
+ export type ListRequest_OrderBy = 'NAME' | 'CREATED';
33
+ export type ListRequest_OrderDirection = 'ASC' | 'DESC';
34
+ export type ListRequest = {
35
+ application?: string;
36
+ page?: number;
37
+ perPage?: number;
38
+ orderBy?: ListRequest_OrderBy;
39
+ orderDirection?: ListRequest_OrderDirection;
40
+ searchByName?: string;
41
+ searchByCode?: string;
42
+ };
43
+ export type ListResponse = {
44
+ autopushes: Autopush[];
45
+ page: number;
46
+ perPage: number;
47
+ total: number;
48
+ };
49
+ export type DeleteRequest = {
50
+ code?: string;
51
+ };
52
+ export type DeleteResponse = {};
53
+ export type GetRequest = {
54
+ code?: string;
55
+ application?: string;
56
+ };
57
+ export type GetResponse = {
58
+ autopush: Autopush;
59
+ };
60
+ export type CreateRequest = {
61
+ name?: string;
62
+ description?: string;
63
+ preset?: string;
64
+ filter?: string;
65
+ application?: string;
66
+ campaign?: string;
67
+ useUserTimezone?: boolean;
68
+ schedule?: Schedule;
69
+ capping?: Capping;
70
+ };
71
+ export type CreateResponse = {
72
+ autopush: Autopush;
73
+ };
74
+ export type UpdateRequest = {
75
+ code?: string;
76
+ name?: string;
77
+ description?: string;
78
+ preset?: string;
79
+ filter?: string;
80
+ campaign?: string;
81
+ useUserTimezone?: boolean;
82
+ schedule?: Schedule;
83
+ capping?: Capping;
84
+ };
85
+ export type UpdateResponse = {
86
+ autopush: Autopush;
87
+ };
package/autopushes.js ADDED
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};
package/data.js CHANGED
@@ -2818,6 +2818,282 @@ export const data = {
2818
2818
  }
2819
2819
  }
2820
2820
  },
2821
+ "pushwoosh.rpc_v2.autopushes.AutopushesService": {
2822
+ "type": "S",
2823
+ "key": "autopushes",
2824
+ "methods": {
2825
+ "List": {
2826
+ "request": "pushwoosh.rpc_v2.autopushes.ListRequest",
2827
+ "response": "pushwoosh.rpc_v2.autopushes.ListResponse",
2828
+ "method": "get",
2829
+ "path": "/api/autopushes"
2830
+ },
2831
+ "Delete": {
2832
+ "request": "pushwoosh.rpc_v2.autopushes.DeleteRequest",
2833
+ "response": "pushwoosh.rpc_v2.autopushes.DeleteResponse",
2834
+ "method": "delete",
2835
+ "path": "/api/autopushes/{code}"
2836
+ },
2837
+ "Get": {
2838
+ "request": "pushwoosh.rpc_v2.autopushes.GetRequest",
2839
+ "response": "pushwoosh.rpc_v2.autopushes.GetResponse",
2840
+ "method": "get",
2841
+ "path": "/api/autopushes/{application}/{code}"
2842
+ },
2843
+ "Create": {
2844
+ "request": "pushwoosh.rpc_v2.autopushes.CreateRequest",
2845
+ "response": "pushwoosh.rpc_v2.autopushes.CreateResponse",
2846
+ "method": "post",
2847
+ "path": "/api/autopushes"
2848
+ },
2849
+ "Update": {
2850
+ "request": "pushwoosh.rpc_v2.autopushes.UpdateRequest",
2851
+ "response": "pushwoosh.rpc_v2.autopushes.UpdateResponse",
2852
+ "method": "put",
2853
+ "path": "/api/autopushes/{code}"
2854
+ }
2855
+ }
2856
+ },
2857
+ "pushwoosh.rpc_v2.autopushes.Schedule": {
2858
+ "type": "I",
2859
+ "fields": {
2860
+ "stopSendDate": {
2861
+ "type": "Date"
2862
+ },
2863
+ "time": {
2864
+ "type": "string"
2865
+ },
2866
+ "daysOfWeek": {
2867
+ "type": "string",
2868
+ "array": true
2869
+ },
2870
+ "daysOfMonth": {
2871
+ "type": "string",
2872
+ "array": true
2873
+ }
2874
+ }
2875
+ },
2876
+ "pushwoosh.rpc_v2.autopushes.Capping": {
2877
+ "type": "I",
2878
+ "fields": {
2879
+ "count": {
2880
+ "type": "number"
2881
+ },
2882
+ "days": {
2883
+ "type": "number"
2884
+ }
2885
+ }
2886
+ },
2887
+ "pushwoosh.rpc_v2.autopushes.Autopush": {
2888
+ "type": "I",
2889
+ "fields": {
2890
+ "code": {
2891
+ "type": "string"
2892
+ },
2893
+ "name": {
2894
+ "type": "string"
2895
+ },
2896
+ "description": {
2897
+ "type": "string"
2898
+ },
2899
+ "preset": {
2900
+ "type": "string"
2901
+ },
2902
+ "filter": {
2903
+ "type": "string"
2904
+ },
2905
+ "application": {
2906
+ "type": "string"
2907
+ },
2908
+ "campaign": {
2909
+ "type": "string"
2910
+ },
2911
+ "useUserTimezone": {
2912
+ "type": "boolean"
2913
+ },
2914
+ "content": {
2915
+ "type": "string"
2916
+ },
2917
+ "schedule": {
2918
+ "type": "pushwoosh.rpc_v2.autopushes.Schedule"
2919
+ },
2920
+ "capping": {
2921
+ "type": "pushwoosh.rpc_v2.autopushes.Capping"
2922
+ },
2923
+ "created": {
2924
+ "type": "Date"
2925
+ }
2926
+ }
2927
+ },
2928
+ "pushwoosh.rpc_v2.autopushes.ListRequest.OrderBy": {
2929
+ "type": "E",
2930
+ "values": [
2931
+ "NAME",
2932
+ "CREATED"
2933
+ ]
2934
+ },
2935
+ "pushwoosh.rpc_v2.autopushes.ListRequest.OrderDirection": {
2936
+ "type": "E",
2937
+ "values": [
2938
+ "ASC",
2939
+ "DESC"
2940
+ ]
2941
+ },
2942
+ "pushwoosh.rpc_v2.autopushes.ListRequest": {
2943
+ "type": "I",
2944
+ "fields": {
2945
+ "application": {
2946
+ "type": "string"
2947
+ },
2948
+ "page": {
2949
+ "type": "number"
2950
+ },
2951
+ "perPage": {
2952
+ "type": "number"
2953
+ },
2954
+ "orderBy": {
2955
+ "type": "pushwoosh.rpc_v2.autopushes.ListRequest.OrderBy"
2956
+ },
2957
+ "orderDirection": {
2958
+ "type": "pushwoosh.rpc_v2.autopushes.ListRequest.OrderDirection"
2959
+ },
2960
+ "searchByName": {
2961
+ "type": "string"
2962
+ },
2963
+ "searchByCode": {
2964
+ "type": "string"
2965
+ }
2966
+ }
2967
+ },
2968
+ "pushwoosh.rpc_v2.autopushes.ListResponse": {
2969
+ "type": "I",
2970
+ "fields": {
2971
+ "autopushes": {
2972
+ "type": "pushwoosh.rpc_v2.autopushes.Autopush",
2973
+ "array": true
2974
+ },
2975
+ "page": {
2976
+ "type": "number"
2977
+ },
2978
+ "perPage": {
2979
+ "type": "number"
2980
+ },
2981
+ "total": {
2982
+ "type": "number"
2983
+ }
2984
+ }
2985
+ },
2986
+ "pushwoosh.rpc_v2.autopushes.DeleteRequest": {
2987
+ "type": "I",
2988
+ "fields": {
2989
+ "code": {
2990
+ "type": "string"
2991
+ }
2992
+ }
2993
+ },
2994
+ "pushwoosh.rpc_v2.autopushes.DeleteResponse": {
2995
+ "type": "I",
2996
+ "fields": {}
2997
+ },
2998
+ "pushwoosh.rpc_v2.autopushes.GetRequest": {
2999
+ "type": "I",
3000
+ "fields": {
3001
+ "code": {
3002
+ "type": "string"
3003
+ },
3004
+ "application": {
3005
+ "type": "string"
3006
+ }
3007
+ }
3008
+ },
3009
+ "pushwoosh.rpc_v2.autopushes.GetResponse": {
3010
+ "type": "I",
3011
+ "fields": {
3012
+ "autopush": {
3013
+ "type": "pushwoosh.rpc_v2.autopushes.Autopush"
3014
+ }
3015
+ }
3016
+ },
3017
+ "pushwoosh.rpc_v2.autopushes.CreateRequest": {
3018
+ "type": "I",
3019
+ "fields": {
3020
+ "name": {
3021
+ "type": "string"
3022
+ },
3023
+ "description": {
3024
+ "type": "string"
3025
+ },
3026
+ "preset": {
3027
+ "type": "string"
3028
+ },
3029
+ "filter": {
3030
+ "type": "string"
3031
+ },
3032
+ "application": {
3033
+ "type": "string"
3034
+ },
3035
+ "campaign": {
3036
+ "type": "string"
3037
+ },
3038
+ "useUserTimezone": {
3039
+ "type": "boolean"
3040
+ },
3041
+ "schedule": {
3042
+ "type": "pushwoosh.rpc_v2.autopushes.Schedule"
3043
+ },
3044
+ "capping": {
3045
+ "type": "pushwoosh.rpc_v2.autopushes.Capping"
3046
+ }
3047
+ }
3048
+ },
3049
+ "pushwoosh.rpc_v2.autopushes.CreateResponse": {
3050
+ "type": "I",
3051
+ "fields": {
3052
+ "autopush": {
3053
+ "type": "pushwoosh.rpc_v2.autopushes.Autopush"
3054
+ }
3055
+ }
3056
+ },
3057
+ "pushwoosh.rpc_v2.autopushes.UpdateRequest": {
3058
+ "type": "I",
3059
+ "fields": {
3060
+ "code": {
3061
+ "type": "string"
3062
+ },
3063
+ "name": {
3064
+ "type": "string"
3065
+ },
3066
+ "description": {
3067
+ "type": "string"
3068
+ },
3069
+ "preset": {
3070
+ "type": "string"
3071
+ },
3072
+ "filter": {
3073
+ "type": "string"
3074
+ },
3075
+ "campaign": {
3076
+ "type": "string"
3077
+ },
3078
+ "useUserTimezone": {
3079
+ "type": "boolean"
3080
+ },
3081
+ "schedule": {
3082
+ "type": "pushwoosh.rpc_v2.autopushes.Schedule"
3083
+ },
3084
+ "capping": {
3085
+ "type": "pushwoosh.rpc_v2.autopushes.Capping"
3086
+ }
3087
+ }
3088
+ },
3089
+ "pushwoosh.rpc_v2.autopushes.UpdateResponse": {
3090
+ "type": "I",
3091
+ "fields": {
3092
+ "autopush": {
3093
+ "type": "pushwoosh.rpc_v2.autopushes.Autopush"
3094
+ }
3095
+ }
3096
+ },
2821
3097
  "pushwoosh.rpc_v2.campaigns.CampaignsService": {
2822
3098
  "type": "S",
2823
3099
  "key": "campaigns",
@@ -19844,6 +20120,107 @@ export const data = {
19844
20120
  }
19845
20121
  }
19846
20122
  },
20123
+ "pushwoosh.rpc_v2.subscription_prompt.SubscriptionPromptService": {
20124
+ "type": "S",
20125
+ "key": "subscriptionPrompt",
20126
+ "methods": {
20127
+ "GetUseCase": {
20128
+ "request": "pushwoosh.rpc_v2.subscription_prompt.GetUseCaseRequest",
20129
+ "response": "pushwoosh.rpc_v2.subscription_prompt.GetUseCaseResponse",
20130
+ "method": "get",
20131
+ "path": "/api/subscription_prompt/use_case"
20132
+ },
20133
+ "SetUseCase": {
20134
+ "request": "pushwoosh.rpc_v2.subscription_prompt.SetUseCaseRequest",
20135
+ "response": "pushwoosh.rpc_v2.subscription_prompt.SetUseCaseResponse",
20136
+ "method": "post",
20137
+ "path": "/api/subscription_prompt/use_case"
20138
+ },
20139
+ "GetWidget": {
20140
+ "request": "pushwoosh.rpc_v2.subscription_prompt.GetWidgetRequest",
20141
+ "response": "pushwoosh.rpc_v2.subscription_prompt.GetWidgetResponse",
20142
+ "method": "get",
20143
+ "path": "/api/subscription_prompt/widget"
20144
+ },
20145
+ "SetWidget": {
20146
+ "request": "pushwoosh.rpc_v2.subscription_prompt.SetWidgetRequest",
20147
+ "response": "pushwoosh.rpc_v2.subscription_prompt.SetWidgetResponse",
20148
+ "method": "post",
20149
+ "path": "/api/subscription_prompt/widget"
20150
+ }
20151
+ }
20152
+ },
20153
+ "pushwoosh.rpc_v2.subscription_prompt.GetUseCaseRequest": {
20154
+ "type": "I",
20155
+ "fields": {
20156
+ "applicationCode": {
20157
+ "type": "string"
20158
+ }
20159
+ }
20160
+ },
20161
+ "pushwoosh.rpc_v2.subscription_prompt.GetUseCaseResponse": {
20162
+ "type": "I",
20163
+ "fields": {
20164
+ "useCase": {
20165
+ "type": "string"
20166
+ }
20167
+ }
20168
+ },
20169
+ "pushwoosh.rpc_v2.subscription_prompt.SetUseCaseRequest": {
20170
+ "type": "I",
20171
+ "fields": {
20172
+ "applicationCode": {
20173
+ "type": "string"
20174
+ },
20175
+ "useCase": {
20176
+ "type": "string"
20177
+ }
20178
+ }
20179
+ },
20180
+ "pushwoosh.rpc_v2.subscription_prompt.SetUseCaseResponse": {
20181
+ "type": "I",
20182
+ "fields": {}
20183
+ },
20184
+ "pushwoosh.rpc_v2.subscription_prompt.GetWidgetRequest": {
20185
+ "type": "I",
20186
+ "fields": {
20187
+ "applicationCode": {
20188
+ "type": "string"
20189
+ }
20190
+ }
20191
+ },
20192
+ "pushwoosh.rpc_v2.subscription_prompt.GetWidgetResponse": {
20193
+ "type": "I",
20194
+ "fields": {
20195
+ "code": {
20196
+ "type": "string"
20197
+ },
20198
+ "type": {
20199
+ "type": "string"
20200
+ },
20201
+ "params": {
20202
+ "type": "object"
20203
+ }
20204
+ }
20205
+ },
20206
+ "pushwoosh.rpc_v2.subscription_prompt.SetWidgetRequest": {
20207
+ "type": "I",
20208
+ "fields": {
20209
+ "applicationCode": {
20210
+ "type": "string"
20211
+ },
20212
+ "type": {
20213
+ "type": "string"
20214
+ },
20215
+ "params": {
20216
+ "type": "object"
20217
+ }
20218
+ }
20219
+ },
20220
+ "pushwoosh.rpc_v2.subscription_prompt.SetWidgetResponse": {
20221
+ "type": "I",
20222
+ "fields": {}
20223
+ },
19847
20224
  "pushwoosh.rpc_v2.tags.TagsService": {
19848
20225
  "type": "S",
19849
20226
  "key": "tags",
package/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { ApplicationsAlertsService as pushwoosh_rpc_v2_applications_alerts_Appli
11
11
  import { ApplicationsConfigurationsService as pushwoosh_rpc_v2_applications_configurations_ApplicationsConfigurationsService } from './applications_configurations';
12
12
  import { ApplicationsGroupsService as pushwoosh_rpc_v2_applications_groups_ApplicationsGroupsService } from './applications_groups';
13
13
  import { ApplicationsInfoService as pushwoosh_rpc_v2_applications_info_ApplicationsInfoService } from './applications_info';
14
+ import { AutopushesService as pushwoosh_rpc_v2_autopushes_AutopushesService } from './autopushes';
14
15
  import { CampaignsService as pushwoosh_rpc_v2_campaigns_CampaignsService } from './campaigns';
15
16
  import { CategoriesService as pushwoosh_rpc_v2_categories_CategoriesService } from './categories';
16
17
  import { MessagingService as pushwoosh_channels_messagingApi_v2_MessagingService } from './pushwoosh_channels_messagingApi_v2';
@@ -40,6 +41,7 @@ import { SendRateService as pushwoosh_rpc_v2_send_rate_SendRateService } from '.
40
41
  import { smsPresetsService as pushwoosh_rpc_v2_sms_presets_smsPresetsService } from './sms_presets';
41
42
  import { StatisticsDashboardsService as pushwoosh_rpc_v2_statistics_dashboards_StatisticsDashboardsService } from './statistics_dashboards';
42
43
  import { StatisticsDashboardsWidgetsService as pushwoosh_rpc_v2_statistics_dashboards_widgets_StatisticsDashboardsWidgetsService } from './statistics_dashboards_widgets';
44
+ import { SubscriptionPromptService as pushwoosh_rpc_v2_subscription_prompt_SubscriptionPromptService } from './subscription_prompt';
43
45
  import { TagsService as pushwoosh_rpc_v2_tags_TagsService } from './tags';
44
46
  import { TestDevicesService as pushwoosh_rpc_v2_test_devices_TestDevicesService } from './test_devices';
45
47
  import { UsersService as pushwoosh_rpc_v2_users_UsersService } from './users';
@@ -60,6 +62,7 @@ export type API = {
60
62
  applicationsConfigurations: pushwoosh_rpc_v2_applications_configurations_ApplicationsConfigurationsService;
61
63
  applicationsGroups: pushwoosh_rpc_v2_applications_groups_ApplicationsGroupsService;
62
64
  applicationsInfo: pushwoosh_rpc_v2_applications_info_ApplicationsInfoService;
65
+ autopushes: pushwoosh_rpc_v2_autopushes_AutopushesService;
63
66
  campaigns: pushwoosh_rpc_v2_campaigns_CampaignsService;
64
67
  categories: pushwoosh_rpc_v2_categories_CategoriesService;
65
68
  messaging: pushwoosh_channels_messagingApi_v2_MessagingService;
@@ -89,6 +92,7 @@ export type API = {
89
92
  smsPresets: pushwoosh_rpc_v2_sms_presets_smsPresetsService;
90
93
  statisticsDashboards: pushwoosh_rpc_v2_statistics_dashboards_StatisticsDashboardsService;
91
94
  statisticsDashboardsWidgets: pushwoosh_rpc_v2_statistics_dashboards_widgets_StatisticsDashboardsWidgetsService;
95
+ subscriptionPrompt: pushwoosh_rpc_v2_subscription_prompt_SubscriptionPromptService;
92
96
  tags: pushwoosh_rpc_v2_tags_TagsService;
93
97
  testDevices: pushwoosh_rpc_v2_test_devices_TestDevicesService;
94
98
  users: pushwoosh_rpc_v2_users_UsersService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.651",
3
+ "version": "0.1.653",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -0,0 +1,31 @@
1
+ export interface SubscriptionPromptService {
2
+ GetUseCase(request: GetUseCaseRequest): Promise<GetUseCaseResponse>;
3
+ SetUseCase(request: SetUseCaseRequest): Promise<SetUseCaseResponse>;
4
+ GetWidget(request: GetWidgetRequest): Promise<GetWidgetResponse>;
5
+ SetWidget(request: SetWidgetRequest): Promise<SetWidgetResponse>;
6
+ }
7
+ export type GetUseCaseRequest = {
8
+ applicationCode?: string;
9
+ };
10
+ export type GetUseCaseResponse = {
11
+ useCase: string;
12
+ };
13
+ export type SetUseCaseRequest = {
14
+ applicationCode?: string;
15
+ useCase?: string;
16
+ };
17
+ export type SetUseCaseResponse = {};
18
+ export type GetWidgetRequest = {
19
+ applicationCode?: string;
20
+ };
21
+ export type GetWidgetResponse = {
22
+ code: string;
23
+ type: string;
24
+ params: object;
25
+ };
26
+ export type SetWidgetRequest = {
27
+ applicationCode?: string;
28
+ type?: string;
29
+ params?: object;
30
+ };
31
+ export type SetWidgetResponse = {};
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};