@pushwoosh/rpc-v2-http-api-data 0.1.652 → 0.1.654
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/autopushes.d.ts +87 -0
- package/autopushes.js +2 -0
- package/data.js +276 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
package/autopushes.d.ts
ADDED
|
@@ -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
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",
|
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';
|
|
@@ -61,6 +62,7 @@ export type API = {
|
|
|
61
62
|
applicationsConfigurations: pushwoosh_rpc_v2_applications_configurations_ApplicationsConfigurationsService;
|
|
62
63
|
applicationsGroups: pushwoosh_rpc_v2_applications_groups_ApplicationsGroupsService;
|
|
63
64
|
applicationsInfo: pushwoosh_rpc_v2_applications_info_ApplicationsInfoService;
|
|
65
|
+
autopushes: pushwoosh_rpc_v2_autopushes_AutopushesService;
|
|
64
66
|
campaigns: pushwoosh_rpc_v2_campaigns_CampaignsService;
|
|
65
67
|
categories: pushwoosh_rpc_v2_categories_CategoriesService;
|
|
66
68
|
messaging: pushwoosh_channels_messagingApi_v2_MessagingService;
|