@pushwoosh/rpc-v2-http-api-data 0.1.957 → 0.1.959
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/applications_email_froms.d.ts +38 -0
- package/data.js +137 -0
- package/package.json +1 -1
- package/presets.d.ts +8 -0
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { RpcMethod } from './commonTypes';
|
|
2
2
|
export type ApplicationEmailFromsService_List = RpcMethod<ListRequest, ListResponse>;
|
|
3
3
|
export type ApplicationEmailFromsService_Use = RpcMethod<UseRequest, UseResponse>;
|
|
4
|
+
export type ApplicationEmailFromsService_GetEmailFooter = RpcMethod<GetEmailFooterRequest, GetEmailFooterResponse>;
|
|
5
|
+
export type ApplicationEmailFromsService_SetEmailFooter = RpcMethod<SetEmailFooterRequest, SetEmailFooterResponse>;
|
|
4
6
|
export interface ApplicationEmailFromsService {
|
|
5
7
|
List: ApplicationEmailFromsService_List;
|
|
6
8
|
Use: ApplicationEmailFromsService_Use;
|
|
9
|
+
GetEmailFooter: ApplicationEmailFromsService_GetEmailFooter;
|
|
10
|
+
SetEmailFooter: ApplicationEmailFromsService_SetEmailFooter;
|
|
7
11
|
}
|
|
8
12
|
export type ListRequest = {
|
|
9
13
|
application?: string;
|
|
@@ -16,3 +20,37 @@ export type UseRequest = {
|
|
|
16
20
|
email?: string;
|
|
17
21
|
};
|
|
18
22
|
export type UseResponse = {};
|
|
23
|
+
export type SocialPlatform = 'SOCIAL_PLATFORM_UNSPECIFIED' | 'SOCIAL_PLATFORM_FACEBOOK' | 'SOCIAL_PLATFORM_X' | 'SOCIAL_PLATFORM_INSTAGRAM' | 'SOCIAL_PLATFORM_LINKEDIN' | 'SOCIAL_PLATFORM_YOUTUBE' | 'SOCIAL_PLATFORM_TIKTOK';
|
|
24
|
+
export type AppStorePlatform = 'APP_STORE_PLATFORM_UNSPECIFIED' | 'APP_STORE_PLATFORM_APP_STORE' | 'APP_STORE_PLATFORM_GOOGLE_PLAY';
|
|
25
|
+
export type NavLink = {
|
|
26
|
+
label: string;
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
export type SocialLink = {
|
|
30
|
+
platform: SocialPlatform;
|
|
31
|
+
url: string;
|
|
32
|
+
};
|
|
33
|
+
export type AppBadge = {
|
|
34
|
+
platform: AppStorePlatform;
|
|
35
|
+
url: string;
|
|
36
|
+
};
|
|
37
|
+
export type EmailFooter = {
|
|
38
|
+
companyName: string;
|
|
39
|
+
address: string;
|
|
40
|
+
copyright: string;
|
|
41
|
+
unsubscribeLabel: string;
|
|
42
|
+
links: NavLink[];
|
|
43
|
+
social: SocialLink[];
|
|
44
|
+
appBadges: AppBadge[];
|
|
45
|
+
};
|
|
46
|
+
export type GetEmailFooterRequest = {
|
|
47
|
+
application?: string;
|
|
48
|
+
};
|
|
49
|
+
export type GetEmailFooterResponse = {
|
|
50
|
+
footer: EmailFooter;
|
|
51
|
+
};
|
|
52
|
+
export type SetEmailFooterRequest = {
|
|
53
|
+
application?: string;
|
|
54
|
+
footer?: EmailFooter;
|
|
55
|
+
};
|
|
56
|
+
export type SetEmailFooterResponse = {};
|
package/data.js
CHANGED
|
@@ -3127,6 +3127,18 @@ export const data = {
|
|
|
3127
3127
|
"response": "pushwoosh.rpc_v2.applications.email_froms.UseResponse",
|
|
3128
3128
|
"method": "post",
|
|
3129
3129
|
"path": "/api/application_email_froms"
|
|
3130
|
+
},
|
|
3131
|
+
"GetEmailFooter": {
|
|
3132
|
+
"request": "pushwoosh.rpc_v2.applications.email_froms.GetEmailFooterRequest",
|
|
3133
|
+
"response": "pushwoosh.rpc_v2.applications.email_froms.GetEmailFooterResponse",
|
|
3134
|
+
"method": "get",
|
|
3135
|
+
"path": "/api/application_email_footer/{application}"
|
|
3136
|
+
},
|
|
3137
|
+
"SetEmailFooter": {
|
|
3138
|
+
"request": "pushwoosh.rpc_v2.applications.email_froms.SetEmailFooterRequest",
|
|
3139
|
+
"response": "pushwoosh.rpc_v2.applications.email_froms.SetEmailFooterResponse",
|
|
3140
|
+
"method": "post",
|
|
3141
|
+
"path": "/api/application_email_footer/{application}"
|
|
3130
3142
|
}
|
|
3131
3143
|
}
|
|
3132
3144
|
},
|
|
@@ -3162,6 +3174,119 @@ export const data = {
|
|
|
3162
3174
|
"type": "I",
|
|
3163
3175
|
"fields": {}
|
|
3164
3176
|
},
|
|
3177
|
+
"pushwoosh.rpc_v2.applications.email_froms.SocialPlatform": {
|
|
3178
|
+
"type": "E",
|
|
3179
|
+
"values": [
|
|
3180
|
+
"SOCIAL_PLATFORM_UNSPECIFIED",
|
|
3181
|
+
"SOCIAL_PLATFORM_FACEBOOK",
|
|
3182
|
+
"SOCIAL_PLATFORM_X",
|
|
3183
|
+
"SOCIAL_PLATFORM_INSTAGRAM",
|
|
3184
|
+
"SOCIAL_PLATFORM_LINKEDIN",
|
|
3185
|
+
"SOCIAL_PLATFORM_YOUTUBE",
|
|
3186
|
+
"SOCIAL_PLATFORM_TIKTOK"
|
|
3187
|
+
]
|
|
3188
|
+
},
|
|
3189
|
+
"pushwoosh.rpc_v2.applications.email_froms.AppStorePlatform": {
|
|
3190
|
+
"type": "E",
|
|
3191
|
+
"values": [
|
|
3192
|
+
"APP_STORE_PLATFORM_UNSPECIFIED",
|
|
3193
|
+
"APP_STORE_PLATFORM_APP_STORE",
|
|
3194
|
+
"APP_STORE_PLATFORM_GOOGLE_PLAY"
|
|
3195
|
+
]
|
|
3196
|
+
},
|
|
3197
|
+
"pushwoosh.rpc_v2.applications.email_froms.NavLink": {
|
|
3198
|
+
"type": "I",
|
|
3199
|
+
"fields": {
|
|
3200
|
+
"label": {
|
|
3201
|
+
"type": "string"
|
|
3202
|
+
},
|
|
3203
|
+
"url": {
|
|
3204
|
+
"type": "string"
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
},
|
|
3208
|
+
"pushwoosh.rpc_v2.applications.email_froms.SocialLink": {
|
|
3209
|
+
"type": "I",
|
|
3210
|
+
"fields": {
|
|
3211
|
+
"platform": {
|
|
3212
|
+
"type": "pushwoosh.rpc_v2.applications.email_froms.SocialPlatform"
|
|
3213
|
+
},
|
|
3214
|
+
"url": {
|
|
3215
|
+
"type": "string"
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
},
|
|
3219
|
+
"pushwoosh.rpc_v2.applications.email_froms.AppBadge": {
|
|
3220
|
+
"type": "I",
|
|
3221
|
+
"fields": {
|
|
3222
|
+
"platform": {
|
|
3223
|
+
"type": "pushwoosh.rpc_v2.applications.email_froms.AppStorePlatform"
|
|
3224
|
+
},
|
|
3225
|
+
"url": {
|
|
3226
|
+
"type": "string"
|
|
3227
|
+
}
|
|
3228
|
+
}
|
|
3229
|
+
},
|
|
3230
|
+
"pushwoosh.rpc_v2.applications.email_froms.EmailFooter": {
|
|
3231
|
+
"type": "I",
|
|
3232
|
+
"fields": {
|
|
3233
|
+
"companyName": {
|
|
3234
|
+
"type": "string"
|
|
3235
|
+
},
|
|
3236
|
+
"address": {
|
|
3237
|
+
"type": "string"
|
|
3238
|
+
},
|
|
3239
|
+
"copyright": {
|
|
3240
|
+
"type": "string"
|
|
3241
|
+
},
|
|
3242
|
+
"unsubscribeLabel": {
|
|
3243
|
+
"type": "string"
|
|
3244
|
+
},
|
|
3245
|
+
"links": {
|
|
3246
|
+
"type": "pushwoosh.rpc_v2.applications.email_froms.NavLink",
|
|
3247
|
+
"array": true
|
|
3248
|
+
},
|
|
3249
|
+
"social": {
|
|
3250
|
+
"type": "pushwoosh.rpc_v2.applications.email_froms.SocialLink",
|
|
3251
|
+
"array": true
|
|
3252
|
+
},
|
|
3253
|
+
"appBadges": {
|
|
3254
|
+
"type": "pushwoosh.rpc_v2.applications.email_froms.AppBadge",
|
|
3255
|
+
"array": true
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
},
|
|
3259
|
+
"pushwoosh.rpc_v2.applications.email_froms.GetEmailFooterRequest": {
|
|
3260
|
+
"type": "I",
|
|
3261
|
+
"fields": {
|
|
3262
|
+
"application": {
|
|
3263
|
+
"type": "string"
|
|
3264
|
+
}
|
|
3265
|
+
}
|
|
3266
|
+
},
|
|
3267
|
+
"pushwoosh.rpc_v2.applications.email_froms.GetEmailFooterResponse": {
|
|
3268
|
+
"type": "I",
|
|
3269
|
+
"fields": {
|
|
3270
|
+
"footer": {
|
|
3271
|
+
"type": "pushwoosh.rpc_v2.applications.email_froms.EmailFooter"
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
},
|
|
3275
|
+
"pushwoosh.rpc_v2.applications.email_froms.SetEmailFooterRequest": {
|
|
3276
|
+
"type": "I",
|
|
3277
|
+
"fields": {
|
|
3278
|
+
"application": {
|
|
3279
|
+
"type": "string"
|
|
3280
|
+
},
|
|
3281
|
+
"footer": {
|
|
3282
|
+
"type": "pushwoosh.rpc_v2.applications.email_froms.EmailFooter"
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
},
|
|
3286
|
+
"pushwoosh.rpc_v2.applications.email_froms.SetEmailFooterResponse": {
|
|
3287
|
+
"type": "I",
|
|
3288
|
+
"fields": {}
|
|
3289
|
+
},
|
|
3165
3290
|
"pushwoosh.rpc_v2.applications.sounds.ApplicationSoundsService": {
|
|
3166
3291
|
"type": "S",
|
|
3167
3292
|
"key": "applicationSounds",
|
|
@@ -21051,6 +21176,9 @@ export const data = {
|
|
|
21051
21176
|
"platformProperties": {
|
|
21052
21177
|
"type": "pushwoosh.rpc_v2.presets.PlatformProperties",
|
|
21053
21178
|
"mapKeyType": "string"
|
|
21179
|
+
},
|
|
21180
|
+
"campaignCode": {
|
|
21181
|
+
"type": "string"
|
|
21054
21182
|
}
|
|
21055
21183
|
}
|
|
21056
21184
|
},
|
|
@@ -21177,6 +21305,9 @@ export const data = {
|
|
|
21177
21305
|
"platformProperties": {
|
|
21178
21306
|
"type": "pushwoosh.rpc_v2.presets.PlatformProperties",
|
|
21179
21307
|
"mapKeyType": "string"
|
|
21308
|
+
},
|
|
21309
|
+
"campaignCode": {
|
|
21310
|
+
"type": "string"
|
|
21180
21311
|
}
|
|
21181
21312
|
}
|
|
21182
21313
|
},
|
|
@@ -21268,6 +21399,9 @@ export const data = {
|
|
|
21268
21399
|
"platformProperties": {
|
|
21269
21400
|
"type": "pushwoosh.rpc_v2.presets.PlatformProperties",
|
|
21270
21401
|
"mapKeyType": "string"
|
|
21402
|
+
},
|
|
21403
|
+
"campaignCode": {
|
|
21404
|
+
"type": "string"
|
|
21271
21405
|
}
|
|
21272
21406
|
}
|
|
21273
21407
|
},
|
|
@@ -21340,6 +21474,9 @@ export const data = {
|
|
|
21340
21474
|
},
|
|
21341
21475
|
"icon": {
|
|
21342
21476
|
"type": "string"
|
|
21477
|
+
},
|
|
21478
|
+
"campaignCode": {
|
|
21479
|
+
"type": "string"
|
|
21343
21480
|
}
|
|
21344
21481
|
}
|
|
21345
21482
|
},
|
package/package.json
CHANGED
package/presets.d.ts
CHANGED
|
@@ -88,6 +88,8 @@ export type Preset = {
|
|
|
88
88
|
openAction: pushwoosh_channels_messagingApi_v2_OpenAction;
|
|
89
89
|
openActions: Record<number, pushwoosh_channels_messagingApi_v2_OpenAction>;
|
|
90
90
|
platformProperties: Record<string, PlatformProperties>;
|
|
91
|
+
/** campaign code the preset belongs to (legacy property "campaignCode") */
|
|
92
|
+
campaignCode: string;
|
|
91
93
|
};
|
|
92
94
|
export type ListPresetsResponse = {
|
|
93
95
|
presets: Preset[];
|
|
@@ -146,6 +148,8 @@ export type CreatePresetRequest = {
|
|
|
146
148
|
openAction?: pushwoosh_channels_messagingApi_v2_OpenAction;
|
|
147
149
|
openActions?: Record<number, pushwoosh_channels_messagingApi_v2_OpenAction>;
|
|
148
150
|
platformProperties?: Record<string, PlatformProperties>;
|
|
151
|
+
/** campaign code the preset belongs to (legacy property "campaignCode") */
|
|
152
|
+
campaignCode?: string;
|
|
149
153
|
};
|
|
150
154
|
export type CreatePresetResponse = {
|
|
151
155
|
preset: Preset;
|
|
@@ -191,6 +195,8 @@ export type UpdatePresetRequest = {
|
|
|
191
195
|
openAction?: pushwoosh_channels_messagingApi_v2_OpenAction;
|
|
192
196
|
openActions?: Record<number, pushwoosh_channels_messagingApi_v2_OpenAction>;
|
|
193
197
|
platformProperties?: Record<string, PlatformProperties>;
|
|
198
|
+
/** campaign code the preset belongs to (legacy property "campaignCode") */
|
|
199
|
+
campaignCode?: string;
|
|
194
200
|
};
|
|
195
201
|
export type UpdatePresetPartialRequest = {
|
|
196
202
|
code?: string;
|
|
@@ -229,6 +235,8 @@ export type UpdatePresetPartialRequest = {
|
|
|
229
235
|
banner?: string;
|
|
230
236
|
/** common icon */
|
|
231
237
|
icon?: string;
|
|
238
|
+
/** campaign code the preset belongs to (legacy property "campaignCode") */
|
|
239
|
+
campaignCode?: string;
|
|
232
240
|
};
|
|
233
241
|
export type UpdatePresetResponse = {
|
|
234
242
|
preset: Preset;
|