@pushwoosh/rpc-v2-http-api-data 0.1.650 → 0.1.652
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 +101 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/subscription_prompt.d.ts +31 -0
- package/subscription_prompt.js +2 -0
package/data.js
CHANGED
|
@@ -19844,6 +19844,107 @@ export const data = {
|
|
|
19844
19844
|
}
|
|
19845
19845
|
}
|
|
19846
19846
|
},
|
|
19847
|
+
"pushwoosh.rpc_v2.subscription_prompt.SubscriptionPromptService": {
|
|
19848
|
+
"type": "S",
|
|
19849
|
+
"key": "subscriptionPrompt",
|
|
19850
|
+
"methods": {
|
|
19851
|
+
"GetUseCase": {
|
|
19852
|
+
"request": "pushwoosh.rpc_v2.subscription_prompt.GetUseCaseRequest",
|
|
19853
|
+
"response": "pushwoosh.rpc_v2.subscription_prompt.GetUseCaseResponse",
|
|
19854
|
+
"method": "get",
|
|
19855
|
+
"path": "/api/subscription_prompt/use_case"
|
|
19856
|
+
},
|
|
19857
|
+
"SetUseCase": {
|
|
19858
|
+
"request": "pushwoosh.rpc_v2.subscription_prompt.SetUseCaseRequest",
|
|
19859
|
+
"response": "pushwoosh.rpc_v2.subscription_prompt.SetUseCaseResponse",
|
|
19860
|
+
"method": "post",
|
|
19861
|
+
"path": "/api/subscription_prompt/use_case"
|
|
19862
|
+
},
|
|
19863
|
+
"GetWidget": {
|
|
19864
|
+
"request": "pushwoosh.rpc_v2.subscription_prompt.GetWidgetRequest",
|
|
19865
|
+
"response": "pushwoosh.rpc_v2.subscription_prompt.GetWidgetResponse",
|
|
19866
|
+
"method": "get",
|
|
19867
|
+
"path": "/api/subscription_prompt/widget"
|
|
19868
|
+
},
|
|
19869
|
+
"SetWidget": {
|
|
19870
|
+
"request": "pushwoosh.rpc_v2.subscription_prompt.SetWidgetRequest",
|
|
19871
|
+
"response": "pushwoosh.rpc_v2.subscription_prompt.SetWidgetResponse",
|
|
19872
|
+
"method": "post",
|
|
19873
|
+
"path": "/api/subscription_prompt/widget"
|
|
19874
|
+
}
|
|
19875
|
+
}
|
|
19876
|
+
},
|
|
19877
|
+
"pushwoosh.rpc_v2.subscription_prompt.GetUseCaseRequest": {
|
|
19878
|
+
"type": "I",
|
|
19879
|
+
"fields": {
|
|
19880
|
+
"applicationCode": {
|
|
19881
|
+
"type": "string"
|
|
19882
|
+
}
|
|
19883
|
+
}
|
|
19884
|
+
},
|
|
19885
|
+
"pushwoosh.rpc_v2.subscription_prompt.GetUseCaseResponse": {
|
|
19886
|
+
"type": "I",
|
|
19887
|
+
"fields": {
|
|
19888
|
+
"useCase": {
|
|
19889
|
+
"type": "string"
|
|
19890
|
+
}
|
|
19891
|
+
}
|
|
19892
|
+
},
|
|
19893
|
+
"pushwoosh.rpc_v2.subscription_prompt.SetUseCaseRequest": {
|
|
19894
|
+
"type": "I",
|
|
19895
|
+
"fields": {
|
|
19896
|
+
"applicationCode": {
|
|
19897
|
+
"type": "string"
|
|
19898
|
+
},
|
|
19899
|
+
"useCase": {
|
|
19900
|
+
"type": "string"
|
|
19901
|
+
}
|
|
19902
|
+
}
|
|
19903
|
+
},
|
|
19904
|
+
"pushwoosh.rpc_v2.subscription_prompt.SetUseCaseResponse": {
|
|
19905
|
+
"type": "I",
|
|
19906
|
+
"fields": {}
|
|
19907
|
+
},
|
|
19908
|
+
"pushwoosh.rpc_v2.subscription_prompt.GetWidgetRequest": {
|
|
19909
|
+
"type": "I",
|
|
19910
|
+
"fields": {
|
|
19911
|
+
"applicationCode": {
|
|
19912
|
+
"type": "string"
|
|
19913
|
+
}
|
|
19914
|
+
}
|
|
19915
|
+
},
|
|
19916
|
+
"pushwoosh.rpc_v2.subscription_prompt.GetWidgetResponse": {
|
|
19917
|
+
"type": "I",
|
|
19918
|
+
"fields": {
|
|
19919
|
+
"code": {
|
|
19920
|
+
"type": "string"
|
|
19921
|
+
},
|
|
19922
|
+
"type": {
|
|
19923
|
+
"type": "string"
|
|
19924
|
+
},
|
|
19925
|
+
"params": {
|
|
19926
|
+
"type": "object"
|
|
19927
|
+
}
|
|
19928
|
+
}
|
|
19929
|
+
},
|
|
19930
|
+
"pushwoosh.rpc_v2.subscription_prompt.SetWidgetRequest": {
|
|
19931
|
+
"type": "I",
|
|
19932
|
+
"fields": {
|
|
19933
|
+
"applicationCode": {
|
|
19934
|
+
"type": "string"
|
|
19935
|
+
},
|
|
19936
|
+
"type": {
|
|
19937
|
+
"type": "string"
|
|
19938
|
+
},
|
|
19939
|
+
"params": {
|
|
19940
|
+
"type": "object"
|
|
19941
|
+
}
|
|
19942
|
+
}
|
|
19943
|
+
},
|
|
19944
|
+
"pushwoosh.rpc_v2.subscription_prompt.SetWidgetResponse": {
|
|
19945
|
+
"type": "I",
|
|
19946
|
+
"fields": {}
|
|
19947
|
+
},
|
|
19847
19948
|
"pushwoosh.rpc_v2.tags.TagsService": {
|
|
19848
19949
|
"type": "S",
|
|
19849
19950
|
"key": "tags",
|
package/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ import { SendRateService as pushwoosh_rpc_v2_send_rate_SendRateService } from '.
|
|
|
40
40
|
import { smsPresetsService as pushwoosh_rpc_v2_sms_presets_smsPresetsService } from './sms_presets';
|
|
41
41
|
import { StatisticsDashboardsService as pushwoosh_rpc_v2_statistics_dashboards_StatisticsDashboardsService } from './statistics_dashboards';
|
|
42
42
|
import { StatisticsDashboardsWidgetsService as pushwoosh_rpc_v2_statistics_dashboards_widgets_StatisticsDashboardsWidgetsService } from './statistics_dashboards_widgets';
|
|
43
|
+
import { SubscriptionPromptService as pushwoosh_rpc_v2_subscription_prompt_SubscriptionPromptService } from './subscription_prompt';
|
|
43
44
|
import { TagsService as pushwoosh_rpc_v2_tags_TagsService } from './tags';
|
|
44
45
|
import { TestDevicesService as pushwoosh_rpc_v2_test_devices_TestDevicesService } from './test_devices';
|
|
45
46
|
import { UsersService as pushwoosh_rpc_v2_users_UsersService } from './users';
|
|
@@ -89,6 +90,7 @@ export type API = {
|
|
|
89
90
|
smsPresets: pushwoosh_rpc_v2_sms_presets_smsPresetsService;
|
|
90
91
|
statisticsDashboards: pushwoosh_rpc_v2_statistics_dashboards_StatisticsDashboardsService;
|
|
91
92
|
statisticsDashboardsWidgets: pushwoosh_rpc_v2_statistics_dashboards_widgets_StatisticsDashboardsWidgetsService;
|
|
93
|
+
subscriptionPrompt: pushwoosh_rpc_v2_subscription_prompt_SubscriptionPromptService;
|
|
92
94
|
tags: pushwoosh_rpc_v2_tags_TagsService;
|
|
93
95
|
testDevices: pushwoosh_rpc_v2_test_devices_TestDevicesService;
|
|
94
96
|
users: pushwoosh_rpc_v2_users_UsersService;
|
package/package.json
CHANGED
|
@@ -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 = {};
|