@pushwoosh/rpc-v2-http-api-data 0.2.200 → 0.2.201

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,81 @@
1
+ import { RpcMethod } from './commonTypes';
2
+ export type appInboxPresetsService_List = RpcMethod<ListAppInboxPresetsRequest, ListAppInboxPresetsResponse>;
3
+ export type appInboxPresetsService_Get = RpcMethod<GetAppInboxPresetRequest, GetAppInboxPresetResponse>;
4
+ export type appInboxPresetsService_Create = RpcMethod<CreateAppInboxPresetRequest, CreateAppInboxPresetResponse>;
5
+ export type appInboxPresetsService_Update = RpcMethod<UpdateAppInboxPresetRequest, UpdateAppInboxPresetResponse>;
6
+ export type appInboxPresetsService_Delete = RpcMethod<DeleteAppInboxPresetRequest, DeleteAppInboxPresetResponse>;
7
+ export interface appInboxPresetsService {
8
+ List: appInboxPresetsService_List;
9
+ Get: appInboxPresetsService_Get;
10
+ Create: appInboxPresetsService_Create;
11
+ Update: appInboxPresetsService_Update;
12
+ Delete: appInboxPresetsService_Delete;
13
+ }
14
+ export type ListAppInboxPresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
15
+ export type ListAppInboxPresetsRequest_OrderDirection = 'ASC' | 'DESC';
16
+ export type ListAppInboxPresetsRequest = {
17
+ application?: string;
18
+ orderBy?: ListAppInboxPresetsRequest_OrderBy;
19
+ orderDirection?: ListAppInboxPresetsRequest_OrderDirection;
20
+ page?: number;
21
+ perPage?: number;
22
+ searchByName?: string;
23
+ searchByCategory?: string[];
24
+ };
25
+ export type AppInboxPresetOpenAction = {
26
+ type: string;
27
+ url: string;
28
+ deepLinkCode: string;
29
+ deepLinkParams: Record<string, string>;
30
+ richMediaCode: string;
31
+ };
32
+ export type AppInboxPresetLocale = {
33
+ title: string;
34
+ body: string;
35
+ iconUrl: string;
36
+ bannerUrl: string;
37
+ openAction: AppInboxPresetOpenAction;
38
+ customData: object;
39
+ };
40
+ export type AppInboxPreset = {
41
+ name: string;
42
+ code: string;
43
+ categories: string[];
44
+ localizedContent: Record<string, AppInboxPresetLocale>;
45
+ created: Date;
46
+ updated: Date;
47
+ };
48
+ export type ListAppInboxPresetsResponse = {
49
+ presets: AppInboxPreset[];
50
+ page: number;
51
+ perPage: number;
52
+ total: number;
53
+ };
54
+ export type GetAppInboxPresetRequest = {
55
+ code?: string;
56
+ };
57
+ export type GetAppInboxPresetResponse = {
58
+ preset: AppInboxPreset;
59
+ };
60
+ export type CreateAppInboxPresetRequest = {
61
+ application?: string;
62
+ name?: string;
63
+ categories?: string[];
64
+ localizedContent?: Record<string, AppInboxPresetLocale>;
65
+ };
66
+ export type CreateAppInboxPresetResponse = {
67
+ preset: AppInboxPreset;
68
+ };
69
+ export type UpdateAppInboxPresetRequest = {
70
+ code?: string;
71
+ name?: string;
72
+ categories?: string[];
73
+ localizedContent?: Record<string, AppInboxPresetLocale>;
74
+ };
75
+ export type UpdateAppInboxPresetResponse = {
76
+ preset: AppInboxPreset;
77
+ };
78
+ export type DeleteAppInboxPresetRequest = {
79
+ code?: string;
80
+ };
81
+ export type DeleteAppInboxPresetResponse = {};
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
3
+ export {};
@@ -19,7 +19,12 @@ export type ApplicationPlatformsInfo_PlatformInfo = {
19
19
  certificateTimeLeft: Duration;
20
20
  properties: Record<string, string>;
21
21
  };
22
+ export type ApplicationPlatformsInfo_AppInboxInfo = {
23
+ available: boolean;
24
+ integrated: boolean;
25
+ };
22
26
  export type ApplicationPlatformsInfo = {
23
27
  application: string;
24
28
  platforms: Record<number, ApplicationPlatformsInfo_PlatformInfo>;
29
+ appInbox: ApplicationPlatformsInfo_AppInboxInfo;
25
30
  };
package/data.js CHANGED
@@ -4888,6 +4888,253 @@ export const data = {
4888
4888
  "type": "I",
4889
4889
  "fields": {}
4890
4890
  },
4891
+ "pushwoosh.rpc_v2.app_inbox_presets.appInboxPresetsService": {
4892
+ "type": "S",
4893
+ "key": "appInboxPresets",
4894
+ "methods": {
4895
+ "List": {
4896
+ "request": "pushwoosh.rpc_v2.app_inbox_presets.ListAppInboxPresetsRequest",
4897
+ "response": "pushwoosh.rpc_v2.app_inbox_presets.ListAppInboxPresetsResponse",
4898
+ "method": "get",
4899
+ "path": "/api/app_inbox_presets"
4900
+ },
4901
+ "Get": {
4902
+ "request": "pushwoosh.rpc_v2.app_inbox_presets.GetAppInboxPresetRequest",
4903
+ "response": "pushwoosh.rpc_v2.app_inbox_presets.GetAppInboxPresetResponse",
4904
+ "method": "get",
4905
+ "path": "/api/app_inbox_presets/{code}"
4906
+ },
4907
+ "Create": {
4908
+ "request": "pushwoosh.rpc_v2.app_inbox_presets.CreateAppInboxPresetRequest",
4909
+ "response": "pushwoosh.rpc_v2.app_inbox_presets.CreateAppInboxPresetResponse",
4910
+ "method": "post",
4911
+ "path": "/api/app_inbox_presets"
4912
+ },
4913
+ "Update": {
4914
+ "request": "pushwoosh.rpc_v2.app_inbox_presets.UpdateAppInboxPresetRequest",
4915
+ "response": "pushwoosh.rpc_v2.app_inbox_presets.UpdateAppInboxPresetResponse",
4916
+ "method": "put",
4917
+ "path": "/api/app_inbox_presets/{code}"
4918
+ },
4919
+ "Delete": {
4920
+ "request": "pushwoosh.rpc_v2.app_inbox_presets.DeleteAppInboxPresetRequest",
4921
+ "response": "pushwoosh.rpc_v2.app_inbox_presets.DeleteAppInboxPresetResponse",
4922
+ "method": "delete",
4923
+ "path": "/api/app_inbox_presets/{code}"
4924
+ }
4925
+ }
4926
+ },
4927
+ "pushwoosh.rpc_v2.app_inbox_presets.ListAppInboxPresetsRequest.OrderBy": {
4928
+ "type": "E",
4929
+ "values": [
4930
+ "NAME",
4931
+ "CREATED",
4932
+ "UPDATED"
4933
+ ]
4934
+ },
4935
+ "pushwoosh.rpc_v2.app_inbox_presets.ListAppInboxPresetsRequest.OrderDirection": {
4936
+ "type": "E",
4937
+ "values": [
4938
+ "ASC",
4939
+ "DESC"
4940
+ ]
4941
+ },
4942
+ "pushwoosh.rpc_v2.app_inbox_presets.ListAppInboxPresetsRequest": {
4943
+ "type": "I",
4944
+ "fields": {
4945
+ "application": {
4946
+ "type": "string"
4947
+ },
4948
+ "orderBy": {
4949
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.ListAppInboxPresetsRequest.OrderBy"
4950
+ },
4951
+ "orderDirection": {
4952
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.ListAppInboxPresetsRequest.OrderDirection"
4953
+ },
4954
+ "page": {
4955
+ "type": "number"
4956
+ },
4957
+ "perPage": {
4958
+ "type": "number"
4959
+ },
4960
+ "searchByName": {
4961
+ "type": "string"
4962
+ },
4963
+ "searchByCategory": {
4964
+ "type": "string",
4965
+ "array": true
4966
+ }
4967
+ }
4968
+ },
4969
+ "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetOpenAction": {
4970
+ "type": "I",
4971
+ "fields": {
4972
+ "type": {
4973
+ "type": "string"
4974
+ },
4975
+ "url": {
4976
+ "type": "string"
4977
+ },
4978
+ "deepLinkCode": {
4979
+ "type": "string"
4980
+ },
4981
+ "deepLinkParams": {
4982
+ "type": "string",
4983
+ "mapKeyType": "string"
4984
+ },
4985
+ "richMediaCode": {
4986
+ "type": "string"
4987
+ }
4988
+ }
4989
+ },
4990
+ "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetLocale": {
4991
+ "type": "I",
4992
+ "fields": {
4993
+ "title": {
4994
+ "type": "string"
4995
+ },
4996
+ "body": {
4997
+ "type": "string"
4998
+ },
4999
+ "iconUrl": {
5000
+ "type": "string"
5001
+ },
5002
+ "bannerUrl": {
5003
+ "type": "string"
5004
+ },
5005
+ "openAction": {
5006
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetOpenAction"
5007
+ },
5008
+ "customData": {
5009
+ "type": "object"
5010
+ }
5011
+ }
5012
+ },
5013
+ "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPreset": {
5014
+ "type": "I",
5015
+ "fields": {
5016
+ "name": {
5017
+ "type": "string"
5018
+ },
5019
+ "code": {
5020
+ "type": "string"
5021
+ },
5022
+ "categories": {
5023
+ "type": "string",
5024
+ "array": true
5025
+ },
5026
+ "localizedContent": {
5027
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetLocale",
5028
+ "mapKeyType": "string"
5029
+ },
5030
+ "created": {
5031
+ "type": "Date"
5032
+ },
5033
+ "updated": {
5034
+ "type": "Date"
5035
+ }
5036
+ }
5037
+ },
5038
+ "pushwoosh.rpc_v2.app_inbox_presets.ListAppInboxPresetsResponse": {
5039
+ "type": "I",
5040
+ "fields": {
5041
+ "presets": {
5042
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPreset",
5043
+ "array": true
5044
+ },
5045
+ "page": {
5046
+ "type": "number"
5047
+ },
5048
+ "perPage": {
5049
+ "type": "number"
5050
+ },
5051
+ "total": {
5052
+ "type": "number"
5053
+ }
5054
+ }
5055
+ },
5056
+ "pushwoosh.rpc_v2.app_inbox_presets.GetAppInboxPresetRequest": {
5057
+ "type": "I",
5058
+ "fields": {
5059
+ "code": {
5060
+ "type": "string"
5061
+ }
5062
+ }
5063
+ },
5064
+ "pushwoosh.rpc_v2.app_inbox_presets.GetAppInboxPresetResponse": {
5065
+ "type": "I",
5066
+ "fields": {
5067
+ "preset": {
5068
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPreset"
5069
+ }
5070
+ }
5071
+ },
5072
+ "pushwoosh.rpc_v2.app_inbox_presets.CreateAppInboxPresetRequest": {
5073
+ "type": "I",
5074
+ "fields": {
5075
+ "application": {
5076
+ "type": "string"
5077
+ },
5078
+ "name": {
5079
+ "type": "string"
5080
+ },
5081
+ "categories": {
5082
+ "type": "string",
5083
+ "array": true
5084
+ },
5085
+ "localizedContent": {
5086
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetLocale",
5087
+ "mapKeyType": "string"
5088
+ }
5089
+ }
5090
+ },
5091
+ "pushwoosh.rpc_v2.app_inbox_presets.CreateAppInboxPresetResponse": {
5092
+ "type": "I",
5093
+ "fields": {
5094
+ "preset": {
5095
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPreset"
5096
+ }
5097
+ }
5098
+ },
5099
+ "pushwoosh.rpc_v2.app_inbox_presets.UpdateAppInboxPresetRequest": {
5100
+ "type": "I",
5101
+ "fields": {
5102
+ "code": {
5103
+ "type": "string"
5104
+ },
5105
+ "name": {
5106
+ "type": "string"
5107
+ },
5108
+ "categories": {
5109
+ "type": "string",
5110
+ "array": true
5111
+ },
5112
+ "localizedContent": {
5113
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetLocale",
5114
+ "mapKeyType": "string"
5115
+ }
5116
+ }
5117
+ },
5118
+ "pushwoosh.rpc_v2.app_inbox_presets.UpdateAppInboxPresetResponse": {
5119
+ "type": "I",
5120
+ "fields": {
5121
+ "preset": {
5122
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPreset"
5123
+ }
5124
+ }
5125
+ },
5126
+ "pushwoosh.rpc_v2.app_inbox_presets.DeleteAppInboxPresetRequest": {
5127
+ "type": "I",
5128
+ "fields": {
5129
+ "code": {
5130
+ "type": "string"
5131
+ }
5132
+ }
5133
+ },
5134
+ "pushwoosh.rpc_v2.app_inbox_presets.DeleteAppInboxPresetResponse": {
5135
+ "type": "I",
5136
+ "fields": {}
5137
+ },
4891
5138
  "pushwoosh.rpc_v2.applications.ApplicationsService": {
4892
5139
  "type": "S",
4893
5140
  "key": "applications",
@@ -6952,6 +7199,17 @@ export const data = {
6952
7199
  }
6953
7200
  }
6954
7201
  },
7202
+ "pushwoosh.rpc_v2.applications_info.ApplicationPlatformsInfo.AppInboxInfo": {
7203
+ "type": "I",
7204
+ "fields": {
7205
+ "available": {
7206
+ "type": "boolean"
7207
+ },
7208
+ "integrated": {
7209
+ "type": "boolean"
7210
+ }
7211
+ }
7212
+ },
6955
7213
  "pushwoosh.rpc_v2.applications_info.ApplicationPlatformsInfo": {
6956
7214
  "type": "I",
6957
7215
  "fields": {
@@ -6961,6 +7219,9 @@ export const data = {
6961
7219
  "platforms": {
6962
7220
  "type": "pushwoosh.rpc_v2.applications_info.ApplicationPlatformsInfo.PlatformInfo",
6963
7221
  "mapKeyType": "number"
7222
+ },
7223
+ "appInbox": {
7224
+ "type": "pushwoosh.rpc_v2.applications_info.ApplicationPlatformsInfo.AppInboxInfo"
6964
7225
  }
6965
7226
  }
6966
7227
  },
@@ -14574,6 +14835,9 @@ export const data = {
14574
14835
  },
14575
14836
  "whatsApp": {
14576
14837
  "type": "pushwoosh.rpc_v2.frequency_capping.Capping"
14838
+ },
14839
+ "appInbox": {
14840
+ "type": "pushwoosh.rpc_v2.frequency_capping.Capping"
14577
14841
  }
14578
14842
  }
14579
14843
  },
@@ -14613,6 +14877,9 @@ export const data = {
14613
14877
  },
14614
14878
  "whatsApp": {
14615
14879
  "type": "pushwoosh.rpc_v2.frequency_capping.Capping"
14880
+ },
14881
+ "appInbox": {
14882
+ "type": "pushwoosh.rpc_v2.frequency_capping.Capping"
14616
14883
  }
14617
14884
  }
14618
14885
  },
@@ -14644,6 +14911,9 @@ export const data = {
14644
14911
  },
14645
14912
  "whatsApp": {
14646
14913
  "type": "pushwoosh.rpc_v2.frequency_capping.Capping"
14914
+ },
14915
+ "appInbox": {
14916
+ "type": "pushwoosh.rpc_v2.frequency_capping.Capping"
14647
14917
  }
14648
14918
  }
14649
14919
  },
@@ -3,7 +3,7 @@ export type FrequencyCappingService_Get = RpcMethod<GetFrequencyCappingRequest,
3
3
  export type FrequencyCappingService_Update = RpcMethod<UpdateFrequencyCappingRequest, UpdateFrequencyCappingResponse>;
4
4
  export type FrequencyCappingService_Create = RpcMethod<CreateFrequencyCappingRequest, CreateFrequencyCappingResponse>;
5
5
  export interface FrequencyCappingService {
6
- /** Returns the frequency-capping limits configured for an application code XXXXX-XXXXX, per channel (push, email, SMS, in-app, WhatsApp). Use to read current caps before updating them; errors if no capping has been created for the application. */
6
+ /** Returns the frequency-capping limits configured for an application code XXXXX-XXXXX, per channel (push, email, SMS, in-app, WhatsApp, App Inbox). Use to read current caps before updating them; errors if no capping has been created for the application. */
7
7
  Get: FrequencyCappingService_Get;
8
8
  /** Overwrites the per-channel frequency-capping limits of an existing application capping. Use to change caps already created; only the channels present in the request are updated, and it errors if no capping exists yet (use create_frequency_capping first). */
9
9
  Update: FrequencyCappingService_Update;
@@ -26,6 +26,7 @@ export type FrequencyCapping = {
26
26
  sms: Capping;
27
27
  inApp: Capping;
28
28
  whatsApp: Capping;
29
+ appInbox: Capping;
29
30
  };
30
31
  export type GetFrequencyCappingRequest = {
31
32
  /** Application code XXXXX-XXXXX whose capping is read. */
@@ -47,6 +48,8 @@ export type CreateFrequencyCappingRequest = {
47
48
  inApp?: Capping;
48
49
  /** WhatsApp channel cap; omit to leave the channel uncapped. */
49
50
  whatsApp?: Capping;
51
+ /** App Inbox channel cap; omit to leave the channel uncapped. */
52
+ appInbox?: Capping;
50
53
  };
51
54
  export type CreateFrequencyCappingResponse = {
52
55
  frequencyCapping: FrequencyCapping;
@@ -64,5 +67,7 @@ export type UpdateFrequencyCappingRequest = {
64
67
  inApp?: Capping;
65
68
  /** WhatsApp channel cap; omit to leave that channel unchanged. */
66
69
  whatsApp?: Capping;
70
+ /** App Inbox channel cap; omit to leave that channel unchanged. */
71
+ appInbox?: Capping;
67
72
  };
68
73
  export type UpdateFrequencyCappingResponse = {};
package/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import { AccountsService as pushwoosh_rpc_v2_accounts_AccountsService } from './
6
6
  import { AlertsService as pushwoosh_accounts_alerts_v1_AlertsService } from './pushwoosh_accounts_alerts_v1';
7
7
  import { GetAuthInfoService as pushwoosh_rpc_v2_accounts_get_auth_info_GetAuthInfoService } from './accounts_get_auth_info';
8
8
  import { ApiTokensService as pushwoosh_rpc_v2_api_tokens_ApiTokensService } from './api_tokens';
9
+ import { appInboxPresetsService as pushwoosh_rpc_v2_app_inbox_presets_appInboxPresetsService } from './app_inbox_presets';
9
10
  import { ApplicationsService as pushwoosh_rpc_v2_applications_ApplicationsService } from './applications';
10
11
  import { ApplicationEmailFromsService as pushwoosh_rpc_v2_applications_email_froms_ApplicationEmailFromsService } from './applications_email_froms';
11
12
  import { ApplicationSoundsService as pushwoosh_rpc_v2_applications_sounds_ApplicationSoundsService } from './applications_sounds';
@@ -75,6 +76,7 @@ export type API = {
75
76
  alerts: pushwoosh_accounts_alerts_v1_AlertsService;
76
77
  getAuthInfo: pushwoosh_rpc_v2_accounts_get_auth_info_GetAuthInfoService;
77
78
  apiTokens: pushwoosh_rpc_v2_api_tokens_ApiTokensService;
79
+ appInboxPresets: pushwoosh_rpc_v2_app_inbox_presets_appInboxPresetsService;
78
80
  applications: pushwoosh_rpc_v2_applications_ApplicationsService;
79
81
  applicationEmailFroms: pushwoosh_rpc_v2_applications_email_froms_ApplicationEmailFromsService;
80
82
  applicationSounds: pushwoosh_rpc_v2_applications_sounds_ApplicationSoundsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.200",
3
+ "version": "0.2.201",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",