@pushwoosh/rpc-v2-http-api-data 0.1.970 → 0.1.972
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 +228 -0
- package/media_files.d.ts +42 -0
- package/package.json +1 -1
- package/presets.d.ts +52 -0
package/data.js
CHANGED
|
@@ -13489,6 +13489,67 @@ export const data = {
|
|
|
13489
13489
|
"response": "pushwoosh.rpc_v2.media_files.ListMediaFilesResponse",
|
|
13490
13490
|
"method": "get",
|
|
13491
13491
|
"path": "/api/media/files"
|
|
13492
|
+
},
|
|
13493
|
+
"CreateVariant": {
|
|
13494
|
+
"request": "pushwoosh.rpc_v2.media_files.CreateVariantRequest",
|
|
13495
|
+
"response": "pushwoosh.rpc_v2.media_files.CreateVariantResponse",
|
|
13496
|
+
"method": "post",
|
|
13497
|
+
"path": "/api/media/variants"
|
|
13498
|
+
}
|
|
13499
|
+
}
|
|
13500
|
+
},
|
|
13501
|
+
"pushwoosh.rpc_v2.media_files.AspectRatio": {
|
|
13502
|
+
"type": "E",
|
|
13503
|
+
"values": [
|
|
13504
|
+
"ASPECT_RATIO_UNSPECIFIED",
|
|
13505
|
+
"ASPECT_RATIO_1_1",
|
|
13506
|
+
"ASPECT_RATIO_4_3",
|
|
13507
|
+
"ASPECT_RATIO_3_2",
|
|
13508
|
+
"ASPECT_RATIO_4_5",
|
|
13509
|
+
"ASPECT_RATIO_5_4",
|
|
13510
|
+
"ASPECT_RATIO_16_9",
|
|
13511
|
+
"ASPECT_RATIO_16_10",
|
|
13512
|
+
"ASPECT_RATIO_21_9",
|
|
13513
|
+
"ASPECT_RATIO_9_16"
|
|
13514
|
+
]
|
|
13515
|
+
},
|
|
13516
|
+
"pushwoosh.rpc_v2.media_files.CreateVariantRequest": {
|
|
13517
|
+
"type": "I",
|
|
13518
|
+
"fields": {
|
|
13519
|
+
"application": {
|
|
13520
|
+
"type": "string"
|
|
13521
|
+
},
|
|
13522
|
+
"uuid": {
|
|
13523
|
+
"type": "string"
|
|
13524
|
+
},
|
|
13525
|
+
"ratio": {
|
|
13526
|
+
"type": "pushwoosh.rpc_v2.media_files.AspectRatio"
|
|
13527
|
+
},
|
|
13528
|
+
"quality": {
|
|
13529
|
+
"type": "number",
|
|
13530
|
+
"optional": true
|
|
13531
|
+
},
|
|
13532
|
+
"width": {
|
|
13533
|
+
"type": "number"
|
|
13534
|
+
},
|
|
13535
|
+
"height": {
|
|
13536
|
+
"type": "number"
|
|
13537
|
+
}
|
|
13538
|
+
},
|
|
13539
|
+
"oneofs": {
|
|
13540
|
+
"size": {
|
|
13541
|
+
"oneof": [
|
|
13542
|
+
"width",
|
|
13543
|
+
"height"
|
|
13544
|
+
]
|
|
13545
|
+
}
|
|
13546
|
+
}
|
|
13547
|
+
},
|
|
13548
|
+
"pushwoosh.rpc_v2.media_files.CreateVariantResponse": {
|
|
13549
|
+
"type": "I",
|
|
13550
|
+
"fields": {
|
|
13551
|
+
"file": {
|
|
13552
|
+
"type": "pushwoosh.rpc_v2.media_files.MediaFile"
|
|
13492
13553
|
}
|
|
13493
13554
|
}
|
|
13494
13555
|
},
|
|
@@ -13532,6 +13593,10 @@ export const data = {
|
|
|
13532
13593
|
},
|
|
13533
13594
|
"perPage": {
|
|
13534
13595
|
"type": "number"
|
|
13596
|
+
},
|
|
13597
|
+
"parentUuid": {
|
|
13598
|
+
"type": "string",
|
|
13599
|
+
"optional": true
|
|
13535
13600
|
}
|
|
13536
13601
|
}
|
|
13537
13602
|
},
|
|
@@ -13570,6 +13635,9 @@ export const data = {
|
|
|
13570
13635
|
},
|
|
13571
13636
|
"thumbnailHeight": {
|
|
13572
13637
|
"type": "number"
|
|
13638
|
+
},
|
|
13639
|
+
"ratio": {
|
|
13640
|
+
"type": "string"
|
|
13573
13641
|
}
|
|
13574
13642
|
}
|
|
13575
13643
|
},
|
|
@@ -13598,6 +13666,10 @@ export const data = {
|
|
|
13598
13666
|
"type": "string",
|
|
13599
13667
|
"optional": true
|
|
13600
13668
|
},
|
|
13669
|
+
"parentUuid": {
|
|
13670
|
+
"type": "string",
|
|
13671
|
+
"optional": true
|
|
13672
|
+
},
|
|
13601
13673
|
"imageMeta": {
|
|
13602
13674
|
"type": "pushwoosh.rpc_v2.media_files.MediaFile.ImageMeta"
|
|
13603
13675
|
}
|
|
@@ -21206,6 +21278,45 @@ export const data = {
|
|
|
21206
21278
|
},
|
|
21207
21279
|
"geoZones": {
|
|
21208
21280
|
"type": "string"
|
|
21281
|
+
},
|
|
21282
|
+
"sendRate": {
|
|
21283
|
+
"type": "number"
|
|
21284
|
+
},
|
|
21285
|
+
"cappingCount": {
|
|
21286
|
+
"type": "number"
|
|
21287
|
+
},
|
|
21288
|
+
"cappingDays": {
|
|
21289
|
+
"type": "number"
|
|
21290
|
+
},
|
|
21291
|
+
"notificationSentUrl": {
|
|
21292
|
+
"type": "string"
|
|
21293
|
+
},
|
|
21294
|
+
"notificationDeliveredUrl": {
|
|
21295
|
+
"type": "string"
|
|
21296
|
+
},
|
|
21297
|
+
"notificationClickUrl": {
|
|
21298
|
+
"type": "string"
|
|
21299
|
+
},
|
|
21300
|
+
"remotePage": {
|
|
21301
|
+
"type": "string"
|
|
21302
|
+
},
|
|
21303
|
+
"wnsContent": {
|
|
21304
|
+
"type": "string"
|
|
21305
|
+
},
|
|
21306
|
+
"originalUrl": {
|
|
21307
|
+
"type": "string"
|
|
21308
|
+
},
|
|
21309
|
+
"iosSilent": {
|
|
21310
|
+
"type": "boolean"
|
|
21311
|
+
},
|
|
21312
|
+
"androidSilent": {
|
|
21313
|
+
"type": "boolean"
|
|
21314
|
+
},
|
|
21315
|
+
"baiduAndroidSilent": {
|
|
21316
|
+
"type": "boolean"
|
|
21317
|
+
},
|
|
21318
|
+
"huaweiAndroidSilent": {
|
|
21319
|
+
"type": "boolean"
|
|
21209
21320
|
}
|
|
21210
21321
|
}
|
|
21211
21322
|
},
|
|
@@ -21341,6 +21452,45 @@ export const data = {
|
|
|
21341
21452
|
},
|
|
21342
21453
|
"geoZones": {
|
|
21343
21454
|
"type": "string"
|
|
21455
|
+
},
|
|
21456
|
+
"sendRate": {
|
|
21457
|
+
"type": "number"
|
|
21458
|
+
},
|
|
21459
|
+
"cappingCount": {
|
|
21460
|
+
"type": "number"
|
|
21461
|
+
},
|
|
21462
|
+
"cappingDays": {
|
|
21463
|
+
"type": "number"
|
|
21464
|
+
},
|
|
21465
|
+
"notificationSentUrl": {
|
|
21466
|
+
"type": "string"
|
|
21467
|
+
},
|
|
21468
|
+
"notificationDeliveredUrl": {
|
|
21469
|
+
"type": "string"
|
|
21470
|
+
},
|
|
21471
|
+
"notificationClickUrl": {
|
|
21472
|
+
"type": "string"
|
|
21473
|
+
},
|
|
21474
|
+
"remotePage": {
|
|
21475
|
+
"type": "string"
|
|
21476
|
+
},
|
|
21477
|
+
"wnsContent": {
|
|
21478
|
+
"type": "string"
|
|
21479
|
+
},
|
|
21480
|
+
"originalUrl": {
|
|
21481
|
+
"type": "string"
|
|
21482
|
+
},
|
|
21483
|
+
"iosSilent": {
|
|
21484
|
+
"type": "boolean"
|
|
21485
|
+
},
|
|
21486
|
+
"androidSilent": {
|
|
21487
|
+
"type": "boolean"
|
|
21488
|
+
},
|
|
21489
|
+
"baiduAndroidSilent": {
|
|
21490
|
+
"type": "boolean"
|
|
21491
|
+
},
|
|
21492
|
+
"huaweiAndroidSilent": {
|
|
21493
|
+
"type": "boolean"
|
|
21344
21494
|
}
|
|
21345
21495
|
}
|
|
21346
21496
|
},
|
|
@@ -21441,6 +21591,45 @@ export const data = {
|
|
|
21441
21591
|
},
|
|
21442
21592
|
"geoZones": {
|
|
21443
21593
|
"type": "string"
|
|
21594
|
+
},
|
|
21595
|
+
"sendRate": {
|
|
21596
|
+
"type": "number"
|
|
21597
|
+
},
|
|
21598
|
+
"cappingCount": {
|
|
21599
|
+
"type": "number"
|
|
21600
|
+
},
|
|
21601
|
+
"cappingDays": {
|
|
21602
|
+
"type": "number"
|
|
21603
|
+
},
|
|
21604
|
+
"notificationSentUrl": {
|
|
21605
|
+
"type": "string"
|
|
21606
|
+
},
|
|
21607
|
+
"notificationDeliveredUrl": {
|
|
21608
|
+
"type": "string"
|
|
21609
|
+
},
|
|
21610
|
+
"notificationClickUrl": {
|
|
21611
|
+
"type": "string"
|
|
21612
|
+
},
|
|
21613
|
+
"remotePage": {
|
|
21614
|
+
"type": "string"
|
|
21615
|
+
},
|
|
21616
|
+
"wnsContent": {
|
|
21617
|
+
"type": "string"
|
|
21618
|
+
},
|
|
21619
|
+
"originalUrl": {
|
|
21620
|
+
"type": "string"
|
|
21621
|
+
},
|
|
21622
|
+
"iosSilent": {
|
|
21623
|
+
"type": "boolean"
|
|
21624
|
+
},
|
|
21625
|
+
"androidSilent": {
|
|
21626
|
+
"type": "boolean"
|
|
21627
|
+
},
|
|
21628
|
+
"baiduAndroidSilent": {
|
|
21629
|
+
"type": "boolean"
|
|
21630
|
+
},
|
|
21631
|
+
"huaweiAndroidSilent": {
|
|
21632
|
+
"type": "boolean"
|
|
21444
21633
|
}
|
|
21445
21634
|
}
|
|
21446
21635
|
},
|
|
@@ -21522,6 +21711,45 @@ export const data = {
|
|
|
21522
21711
|
},
|
|
21523
21712
|
"geoZones": {
|
|
21524
21713
|
"type": "string"
|
|
21714
|
+
},
|
|
21715
|
+
"sendRate": {
|
|
21716
|
+
"type": "number"
|
|
21717
|
+
},
|
|
21718
|
+
"cappingCount": {
|
|
21719
|
+
"type": "number"
|
|
21720
|
+
},
|
|
21721
|
+
"cappingDays": {
|
|
21722
|
+
"type": "number"
|
|
21723
|
+
},
|
|
21724
|
+
"notificationSentUrl": {
|
|
21725
|
+
"type": "string"
|
|
21726
|
+
},
|
|
21727
|
+
"notificationDeliveredUrl": {
|
|
21728
|
+
"type": "string"
|
|
21729
|
+
},
|
|
21730
|
+
"notificationClickUrl": {
|
|
21731
|
+
"type": "string"
|
|
21732
|
+
},
|
|
21733
|
+
"remotePage": {
|
|
21734
|
+
"type": "string"
|
|
21735
|
+
},
|
|
21736
|
+
"wnsContent": {
|
|
21737
|
+
"type": "string"
|
|
21738
|
+
},
|
|
21739
|
+
"originalUrl": {
|
|
21740
|
+
"type": "string"
|
|
21741
|
+
},
|
|
21742
|
+
"iosSilent": {
|
|
21743
|
+
"type": "boolean"
|
|
21744
|
+
},
|
|
21745
|
+
"androidSilent": {
|
|
21746
|
+
"type": "boolean"
|
|
21747
|
+
},
|
|
21748
|
+
"baiduAndroidSilent": {
|
|
21749
|
+
"type": "boolean"
|
|
21750
|
+
},
|
|
21751
|
+
"huaweiAndroidSilent": {
|
|
21752
|
+
"type": "boolean"
|
|
21525
21753
|
}
|
|
21526
21754
|
}
|
|
21527
21755
|
},
|
package/media_files.d.ts
CHANGED
|
@@ -1,8 +1,41 @@
|
|
|
1
1
|
import { RpcMethod } from './commonTypes';
|
|
2
2
|
export type MediaFilesService_List = RpcMethod<ListMediaFilesRequest, ListMediaFilesResponse>;
|
|
3
|
+
export type MediaFilesService_CreateVariant = RpcMethod<CreateVariantRequest, CreateVariantResponse>;
|
|
3
4
|
export interface MediaFilesService {
|
|
4
5
|
List: MediaFilesService_List;
|
|
6
|
+
/**
|
|
7
|
+
* CreateVariant creates a cropped variant of an existing image for the given
|
|
8
|
+
* aspect ratio. The variant references the original via parent_uuid. Calling
|
|
9
|
+
* it again with the same original and ratio returns the existing variant.
|
|
10
|
+
*/
|
|
11
|
+
CreateVariant: MediaFilesService_CreateVariant;
|
|
5
12
|
}
|
|
13
|
+
/** AspectRatio enumerates the supported aspect ratios for image variants. */
|
|
14
|
+
export type AspectRatio = 'ASPECT_RATIO_UNSPECIFIED' | 'ASPECT_RATIO_1_1' | 'ASPECT_RATIO_4_3' | 'ASPECT_RATIO_3_2' | 'ASPECT_RATIO_4_5' | 'ASPECT_RATIO_5_4' | 'ASPECT_RATIO_16_9' | 'ASPECT_RATIO_16_10' | 'ASPECT_RATIO_21_9' | 'ASPECT_RATIO_9_16';
|
|
15
|
+
export type CreateVariantRequest_size_width = {
|
|
16
|
+
type: 'width';
|
|
17
|
+
data: number;
|
|
18
|
+
};
|
|
19
|
+
export type CreateVariantRequest_size_height = {
|
|
20
|
+
type: 'height';
|
|
21
|
+
data: number;
|
|
22
|
+
};
|
|
23
|
+
export type CreateVariantRequest_size = CreateVariantRequest_size_width | CreateVariantRequest_size_height;
|
|
24
|
+
export type CreateVariantRequest = {
|
|
25
|
+
application?: string;
|
|
26
|
+
/** uuid of the existing original image to derive the variant from. */
|
|
27
|
+
uuid?: string;
|
|
28
|
+
ratio?: AspectRatio;
|
|
29
|
+
/**
|
|
30
|
+
* quality is the JPEG encode quality (1-100). Applies only when the variant
|
|
31
|
+
* is encoded as JPEG (i.e. the original is a JPEG); ignored otherwise.
|
|
32
|
+
*/
|
|
33
|
+
quality?: number;
|
|
34
|
+
size: CreateVariantRequest_size;
|
|
35
|
+
};
|
|
36
|
+
export type CreateVariantResponse = {
|
|
37
|
+
file: MediaFile;
|
|
38
|
+
};
|
|
6
39
|
export type UploadMediaFileRequest = {
|
|
7
40
|
application: string;
|
|
8
41
|
filename: string;
|
|
@@ -17,6 +50,11 @@ export type ListMediaFilesRequest = {
|
|
|
17
50
|
application?: string;
|
|
18
51
|
page?: number;
|
|
19
52
|
perPage?: number;
|
|
53
|
+
/**
|
|
54
|
+
* parent_uuid filters the listing: when set, returns the variants of that
|
|
55
|
+
* original image; when empty, returns only originals (no variants).
|
|
56
|
+
*/
|
|
57
|
+
parentUuid?: string;
|
|
20
58
|
};
|
|
21
59
|
export type ListMediaFilesResponse = {
|
|
22
60
|
files: MediaFile[];
|
|
@@ -30,6 +68,8 @@ export type MediaFile_ImageMeta = {
|
|
|
30
68
|
thumbnailUrl: string;
|
|
31
69
|
thumbnailWidth: number;
|
|
32
70
|
thumbnailHeight: number;
|
|
71
|
+
/** ratio is the aspect ratio of a variant (e.g. "16:9"), empty for originals. */
|
|
72
|
+
ratio: string;
|
|
33
73
|
};
|
|
34
74
|
export type MediaFile_meta_imageMeta = {
|
|
35
75
|
type: 'imageMeta';
|
|
@@ -44,5 +84,7 @@ export type MediaFile = {
|
|
|
44
84
|
mimeType: string;
|
|
45
85
|
createdAt: Date;
|
|
46
86
|
description?: string;
|
|
87
|
+
/** parent_uuid is set on variants and points to the original image's uuid. */
|
|
88
|
+
parentUuid?: string;
|
|
47
89
|
meta: MediaFile_meta;
|
|
48
90
|
};
|
package/package.json
CHANGED
package/presets.d.ts
CHANGED
|
@@ -99,6 +99,19 @@ export type Preset = {
|
|
|
99
99
|
campaignCode: string;
|
|
100
100
|
filterCode: string;
|
|
101
101
|
geoZones: string;
|
|
102
|
+
sendRate: number;
|
|
103
|
+
cappingCount: number;
|
|
104
|
+
cappingDays: number;
|
|
105
|
+
notificationSentUrl: string;
|
|
106
|
+
notificationDeliveredUrl: string;
|
|
107
|
+
notificationClickUrl: string;
|
|
108
|
+
remotePage: string;
|
|
109
|
+
wnsContent: string;
|
|
110
|
+
originalUrl: string;
|
|
111
|
+
iosSilent: boolean;
|
|
112
|
+
androidSilent: boolean;
|
|
113
|
+
baiduAndroidSilent: boolean;
|
|
114
|
+
huaweiAndroidSilent: boolean;
|
|
102
115
|
};
|
|
103
116
|
export type ListPresetsResponse = {
|
|
104
117
|
presets: Preset[];
|
|
@@ -161,6 +174,19 @@ export type CreatePresetRequest = {
|
|
|
161
174
|
campaignCode?: string;
|
|
162
175
|
filterCode?: string;
|
|
163
176
|
geoZones?: string;
|
|
177
|
+
sendRate?: number;
|
|
178
|
+
cappingCount?: number;
|
|
179
|
+
cappingDays?: number;
|
|
180
|
+
notificationSentUrl?: string;
|
|
181
|
+
notificationDeliveredUrl?: string;
|
|
182
|
+
notificationClickUrl?: string;
|
|
183
|
+
remotePage?: string;
|
|
184
|
+
wnsContent?: string;
|
|
185
|
+
originalUrl?: string;
|
|
186
|
+
iosSilent?: boolean;
|
|
187
|
+
androidSilent?: boolean;
|
|
188
|
+
baiduAndroidSilent?: boolean;
|
|
189
|
+
huaweiAndroidSilent?: boolean;
|
|
164
190
|
};
|
|
165
191
|
export type CreatePresetResponse = {
|
|
166
192
|
preset: Preset;
|
|
@@ -210,6 +236,19 @@ export type UpdatePresetRequest = {
|
|
|
210
236
|
campaignCode?: string;
|
|
211
237
|
filterCode?: string;
|
|
212
238
|
geoZones?: string;
|
|
239
|
+
sendRate?: number;
|
|
240
|
+
cappingCount?: number;
|
|
241
|
+
cappingDays?: number;
|
|
242
|
+
notificationSentUrl?: string;
|
|
243
|
+
notificationDeliveredUrl?: string;
|
|
244
|
+
notificationClickUrl?: string;
|
|
245
|
+
remotePage?: string;
|
|
246
|
+
wnsContent?: string;
|
|
247
|
+
originalUrl?: string;
|
|
248
|
+
iosSilent?: boolean;
|
|
249
|
+
androidSilent?: boolean;
|
|
250
|
+
baiduAndroidSilent?: boolean;
|
|
251
|
+
huaweiAndroidSilent?: boolean;
|
|
213
252
|
};
|
|
214
253
|
export type UpdatePresetPartialRequest = {
|
|
215
254
|
code?: string;
|
|
@@ -252,6 +291,19 @@ export type UpdatePresetPartialRequest = {
|
|
|
252
291
|
campaignCode?: string;
|
|
253
292
|
filterCode?: string;
|
|
254
293
|
geoZones?: string;
|
|
294
|
+
sendRate?: number;
|
|
295
|
+
cappingCount?: number;
|
|
296
|
+
cappingDays?: number;
|
|
297
|
+
notificationSentUrl?: string;
|
|
298
|
+
notificationDeliveredUrl?: string;
|
|
299
|
+
notificationClickUrl?: string;
|
|
300
|
+
remotePage?: string;
|
|
301
|
+
wnsContent?: string;
|
|
302
|
+
originalUrl?: string;
|
|
303
|
+
iosSilent?: boolean;
|
|
304
|
+
androidSilent?: boolean;
|
|
305
|
+
baiduAndroidSilent?: boolean;
|
|
306
|
+
huaweiAndroidSilent?: boolean;
|
|
255
307
|
};
|
|
256
308
|
export type UpdatePresetResponse = {
|
|
257
309
|
preset: Preset;
|