@parra/parra-js-sdk 0.2.154 → 0.3.0
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/dist/ParraAPI.d.ts +59 -59
- package/package.json +2 -3
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -179,6 +179,18 @@ export interface Tenant {
|
|
|
179
179
|
entitlements?: Array<Entitlement> | null;
|
|
180
180
|
metrics?: TenantMetrics | null;
|
|
181
181
|
}
|
|
182
|
+
export interface TenantMember {
|
|
183
|
+
id: string;
|
|
184
|
+
created_at: string;
|
|
185
|
+
updated_at: string;
|
|
186
|
+
deleted_at?: string | null;
|
|
187
|
+
name: string;
|
|
188
|
+
is_test: boolean;
|
|
189
|
+
parent_tenant_id?: string | null;
|
|
190
|
+
entitlements?: Array<Entitlement> | null;
|
|
191
|
+
metrics?: TenantMetrics | null;
|
|
192
|
+
scopes: Array<string>;
|
|
193
|
+
}
|
|
182
194
|
export declare type TenantListResponse = Array<Tenant>;
|
|
183
195
|
export interface TenantCollectionResponse {
|
|
184
196
|
page: number;
|
|
@@ -1000,7 +1012,7 @@ export interface UpdateApnsChannelRequestBody {
|
|
|
1000
1012
|
push_type: ApnsPushType;
|
|
1001
1013
|
expiration?: string | null;
|
|
1002
1014
|
collapse_id?: string | null;
|
|
1003
|
-
priority?: number
|
|
1015
|
+
priority?: number;
|
|
1004
1016
|
payload: object;
|
|
1005
1017
|
}
|
|
1006
1018
|
export interface CreateApnsChannelRequestBody {
|
|
@@ -1009,7 +1021,7 @@ export interface CreateApnsChannelRequestBody {
|
|
|
1009
1021
|
push_type: ApnsPushType;
|
|
1010
1022
|
expiration?: string | null;
|
|
1011
1023
|
collapse_id?: string | null;
|
|
1012
|
-
priority?: number
|
|
1024
|
+
priority?: number;
|
|
1013
1025
|
payload: object;
|
|
1014
1026
|
}
|
|
1015
1027
|
export interface ApnsChannel {
|
|
@@ -1022,9 +1034,25 @@ export interface ApnsChannel {
|
|
|
1022
1034
|
push_type: ApnsPushType;
|
|
1023
1035
|
expiration?: string | null;
|
|
1024
1036
|
collapse_id?: string | null;
|
|
1025
|
-
priority?: number
|
|
1037
|
+
priority?: number;
|
|
1026
1038
|
payload: object;
|
|
1027
1039
|
}
|
|
1040
|
+
export interface UpdateInboxChannelRequestBody {
|
|
1041
|
+
title: string;
|
|
1042
|
+
description?: string | null;
|
|
1043
|
+
}
|
|
1044
|
+
export interface CreateInboxChannelRequestBody {
|
|
1045
|
+
title: string;
|
|
1046
|
+
description?: string | null;
|
|
1047
|
+
}
|
|
1048
|
+
export interface InboxChannel {
|
|
1049
|
+
id: string;
|
|
1050
|
+
created_at: string;
|
|
1051
|
+
updated_at: string;
|
|
1052
|
+
deleted_at?: string | null;
|
|
1053
|
+
title: string;
|
|
1054
|
+
description?: string | null;
|
|
1055
|
+
}
|
|
1028
1056
|
export interface UpdateApnsConfigurationRequestBody {
|
|
1029
1057
|
name: string;
|
|
1030
1058
|
description?: string | null;
|
|
@@ -1052,23 +1080,26 @@ export declare enum ChannelType {
|
|
|
1052
1080
|
export interface UpdateChannelRequestBody {
|
|
1053
1081
|
name: string;
|
|
1054
1082
|
description?: string | null;
|
|
1055
|
-
apns?:
|
|
1083
|
+
apns?: UpdateApnsChannelRequestBody;
|
|
1084
|
+
inbox?: UpdateInboxChannelRequestBody;
|
|
1056
1085
|
}
|
|
1057
1086
|
export interface CreateChannelRequestBody {
|
|
1087
|
+
type: ChannelType;
|
|
1058
1088
|
name: string;
|
|
1059
1089
|
description?: string | null;
|
|
1060
1090
|
apns?: CreateApnsChannelRequestBody;
|
|
1061
|
-
|
|
1091
|
+
inbox?: CreateInboxChannelRequestBody;
|
|
1062
1092
|
}
|
|
1063
1093
|
export interface Channel {
|
|
1064
1094
|
id: string;
|
|
1065
1095
|
created_at: string;
|
|
1066
1096
|
updated_at: string;
|
|
1067
1097
|
deleted_at?: string | null;
|
|
1098
|
+
type: ChannelType;
|
|
1068
1099
|
name: string;
|
|
1069
1100
|
description?: string | null;
|
|
1070
1101
|
apns?: CreateApnsChannelRequestBody;
|
|
1071
|
-
|
|
1102
|
+
inbox?: CreateInboxChannelRequestBody;
|
|
1072
1103
|
}
|
|
1073
1104
|
export interface CreateDeviceRequestBody {
|
|
1074
1105
|
platform: string;
|
|
@@ -1079,57 +1110,6 @@ export interface CreateDeviceRequestBody {
|
|
|
1079
1110
|
manufacturer?: string | null;
|
|
1080
1111
|
model?: string | null;
|
|
1081
1112
|
}
|
|
1082
|
-
export interface NotificationRecipient {
|
|
1083
|
-
user_id?: string | null;
|
|
1084
|
-
}
|
|
1085
|
-
export interface CreateNotificationRequestBody {
|
|
1086
|
-
type?: string;
|
|
1087
|
-
title: string;
|
|
1088
|
-
subtitle?: string | null;
|
|
1089
|
-
body?: string | null;
|
|
1090
|
-
image_url?: string | null;
|
|
1091
|
-
data?: object | null;
|
|
1092
|
-
action?: object | null;
|
|
1093
|
-
deduplication_id?: string | null;
|
|
1094
|
-
group_id?: string | null;
|
|
1095
|
-
visible?: boolean;
|
|
1096
|
-
silent?: boolean;
|
|
1097
|
-
content_available?: boolean;
|
|
1098
|
-
expires_at?: string | null;
|
|
1099
|
-
recipients: Array<NotificationRecipient>;
|
|
1100
|
-
}
|
|
1101
|
-
export interface NotificationResponse {
|
|
1102
|
-
type?: string;
|
|
1103
|
-
title: string;
|
|
1104
|
-
subtitle?: string | null;
|
|
1105
|
-
body?: string | null;
|
|
1106
|
-
image_url?: string | null;
|
|
1107
|
-
data?: object | null;
|
|
1108
|
-
action?: object | null;
|
|
1109
|
-
deduplication_id?: string | null;
|
|
1110
|
-
group_id?: string | null;
|
|
1111
|
-
visible?: boolean;
|
|
1112
|
-
silent?: boolean;
|
|
1113
|
-
content_available?: boolean;
|
|
1114
|
-
expires_at?: string | null;
|
|
1115
|
-
user_id?: string | null;
|
|
1116
|
-
id: string;
|
|
1117
|
-
created_at: string;
|
|
1118
|
-
updated_at: string;
|
|
1119
|
-
deleted_at: string | null;
|
|
1120
|
-
viewed_at?: string | null;
|
|
1121
|
-
version?: string;
|
|
1122
|
-
}
|
|
1123
|
-
export interface NotificationCollectionResponse {
|
|
1124
|
-
page: number;
|
|
1125
|
-
page_count: number;
|
|
1126
|
-
page_size: number;
|
|
1127
|
-
total_count: number;
|
|
1128
|
-
data: Array<NotificationResponse>;
|
|
1129
|
-
}
|
|
1130
|
-
export interface ReadNotificationsRequestBody {
|
|
1131
|
-
notification_ids: Array<string>;
|
|
1132
|
-
}
|
|
1133
1113
|
export interface UpdateNotificationTemplateRequestBody {
|
|
1134
1114
|
name: string;
|
|
1135
1115
|
description?: string | null;
|
|
@@ -1156,11 +1136,31 @@ export interface NotificationTemplateCollectionResponse {
|
|
|
1156
1136
|
data: Array<NotificationTemplate>;
|
|
1157
1137
|
}
|
|
1158
1138
|
export declare type NotificationTemplateListResponse = Array<NotificationTemplate>;
|
|
1139
|
+
export interface NotificationRecipient {
|
|
1140
|
+
user_id?: string;
|
|
1141
|
+
data?: object | null;
|
|
1142
|
+
}
|
|
1143
|
+
export interface SendNotificationApnsChannelOverrides {
|
|
1144
|
+
expiration?: string | null;
|
|
1145
|
+
collapse_id?: string | null;
|
|
1146
|
+
priority?: number;
|
|
1147
|
+
}
|
|
1148
|
+
export interface SendNotificationInboxChannelOverrides {
|
|
1149
|
+
title: string;
|
|
1150
|
+
description?: string | null;
|
|
1151
|
+
}
|
|
1152
|
+
export interface SendNotificationChannels {
|
|
1153
|
+
apns?: SendNotificationApnsChannelOverrides;
|
|
1154
|
+
inbox?: SendNotificationInboxChannelOverrides;
|
|
1155
|
+
}
|
|
1156
|
+
export interface SendNotificationForTemplateRequestBody {
|
|
1157
|
+
recipients: Array<NotificationRecipient>;
|
|
1158
|
+
data?: object | null;
|
|
1159
|
+
channels?: SendNotificationChannels;
|
|
1160
|
+
}
|
|
1159
1161
|
export interface CreatePushTokenRequestBody {
|
|
1160
|
-
application_id: string;
|
|
1161
1162
|
type: string;
|
|
1162
1163
|
token: string;
|
|
1163
|
-
device: CreateDeviceRequestBody;
|
|
1164
1164
|
}
|
|
1165
1165
|
export interface UserResponse {
|
|
1166
1166
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parra/parra-js-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"typescript": "^4.6.4"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@parra/http-client": "0.
|
|
26
|
-
"isomorphic-fetch": "^3.0.0"
|
|
25
|
+
"@parra/http-client": "0.5.1"
|
|
27
26
|
}
|
|
28
27
|
}
|