@pushwoosh/rpc-v2-http-api-data 0.1.780 → 0.1.782

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 CHANGED
@@ -1576,10 +1576,6 @@ export const data = {
1576
1576
  "content": {
1577
1577
  "type": "string",
1578
1578
  "optional": true
1579
- },
1580
- "actionLink": {
1581
- "type": "string",
1582
- "optional": true
1583
1579
  }
1584
1580
  },
1585
1581
  "oneofs": {}
@@ -1701,12 +1697,7 @@ export const data = {
1701
1697
  "optional": true
1702
1698
  },
1703
1699
  "meta": {
1704
- "type": "object",
1705
- "optional": true
1706
- },
1707
- "actionLink": {
1708
- "type": "string",
1709
- "optional": true
1700
+ "type": "object"
1710
1701
  }
1711
1702
  },
1712
1703
  "oneofs": {}
@@ -1756,8 +1747,7 @@ export const data = {
1756
1747
  "optional": true
1757
1748
  },
1758
1749
  "meta": {
1759
- "type": "object",
1760
- "optional": true
1750
+ "type": "object"
1761
1751
  }
1762
1752
  },
1763
1753
  "oneofs": {}
@@ -8791,8 +8781,7 @@ export const data = {
8791
8781
  "link_clicked_devices",
8792
8782
  "event_triggered_devices",
8793
8783
  "send_with_error_devices",
8794
- "send_with_email_error_devices",
8795
- "not_opened_devices"
8784
+ "send_with_email_error_devices"
8796
8785
  ]
8797
8786
  },
8798
8787
  "pushwoosh.export_messages.v2.CreateSegmentFromMessageArgs.EmailErrorType": {
@@ -11853,6 +11842,103 @@ export const data = {
11853
11842
  }
11854
11843
  }
11855
11844
  },
11845
+ "pushwoosh.rpc_v2.media_files.MediaFilesService": {
11846
+ "type": "S",
11847
+ "key": "mediaFiles",
11848
+ "methods": {
11849
+ "List": {
11850
+ "request": "pushwoosh.rpc_v2.media_files.ListMediaFilesRequest",
11851
+ "response": "pushwoosh.rpc_v2.media_files.ListMediaFilesResponse",
11852
+ "method": "get",
11853
+ "path": "/api/media/files"
11854
+ }
11855
+ }
11856
+ },
11857
+ "pushwoosh.rpc_v2.media_files.ListMediaFilesRequest": {
11858
+ "type": "I",
11859
+ "fields": {
11860
+ "application": {
11861
+ "type": "string"
11862
+ },
11863
+ "page": {
11864
+ "type": "number"
11865
+ },
11866
+ "perPage": {
11867
+ "type": "number"
11868
+ }
11869
+ }
11870
+ },
11871
+ "pushwoosh.rpc_v2.media_files.ListMediaFilesResponse": {
11872
+ "type": "I",
11873
+ "fields": {
11874
+ "files": {
11875
+ "type": "pushwoosh.rpc_v2.media_files.MediaFile",
11876
+ "array": true
11877
+ },
11878
+ "page": {
11879
+ "type": "number"
11880
+ },
11881
+ "perPage": {
11882
+ "type": "number"
11883
+ },
11884
+ "total": {
11885
+ "type": "number"
11886
+ }
11887
+ }
11888
+ },
11889
+ "pushwoosh.rpc_v2.media_files.MediaFile.ImageMeta": {
11890
+ "type": "I",
11891
+ "fields": {
11892
+ "width": {
11893
+ "type": "number"
11894
+ },
11895
+ "height": {
11896
+ "type": "number"
11897
+ },
11898
+ "thumbnailUrl": {
11899
+ "type": "string"
11900
+ },
11901
+ "thumbnailWidth": {
11902
+ "type": "number"
11903
+ },
11904
+ "thumbnailHeight": {
11905
+ "type": "number"
11906
+ }
11907
+ }
11908
+ },
11909
+ "pushwoosh.rpc_v2.media_files.MediaFile": {
11910
+ "type": "I",
11911
+ "fields": {
11912
+ "uuid": {
11913
+ "type": "string"
11914
+ },
11915
+ "filename": {
11916
+ "type": "string"
11917
+ },
11918
+ "url": {
11919
+ "type": "string"
11920
+ },
11921
+ "fileSize": {
11922
+ "type": "number"
11923
+ },
11924
+ "mimeType": {
11925
+ "type": "string"
11926
+ },
11927
+ "createdAt": {
11928
+ "type": "Date"
11929
+ },
11930
+ "imageMeta": {
11931
+ "type": "pushwoosh.rpc_v2.media_files.MediaFile.ImageMeta"
11932
+ }
11933
+ },
11934
+ "oneofs": {
11935
+ "meta": {
11936
+ "oneof": [
11937
+ "imageMeta"
11938
+ ]
11939
+ }
11940
+ }
11941
+ },
11856
11942
  "pushwoosh.rpc_v2.messages.MessagesService": {
11857
11943
  "type": "S",
11858
11944
  "key": "messages",
package/index.d.ts CHANGED
@@ -37,6 +37,7 @@ import { InternalAlertsService as pushwoosh_rpc_v2_internal_alerts_InternalAlert
37
37
  import { IOSCategoriesService as pushwoosh_rpc_v2_ios_categories_IOSCategoriesService } from './ios_categories';
38
38
  import { KakaoPresetsService as pushwoosh_rpc_v2_kakao_presets_KakaoPresetsService } from './kakao_presets';
39
39
  import { linePresetsService as pushwoosh_rpc_v2_line_presets_linePresetsService } from './line_presets';
40
+ import { MediaFilesService as pushwoosh_rpc_v2_media_files_MediaFilesService } from './media_files';
40
41
  import { MessagesService as pushwoosh_rpc_v2_messages_MessagesService } from './messages';
41
42
  import { FiltersCrudService as pushwoosh_objects_filters_v1_FiltersCrudService } from './pushwoosh_objects_filters_v1';
42
43
  import { RestrictionValuesCrudService as pushwoosh_objects_restrictionValues_v1_RestrictionValuesCrudService } from './pushwoosh_objects_restrictionValues_v1';
@@ -96,6 +97,7 @@ export type API = {
96
97
  iOSCategories: pushwoosh_rpc_v2_ios_categories_IOSCategoriesService;
97
98
  kakaoPresets: pushwoosh_rpc_v2_kakao_presets_KakaoPresetsService;
98
99
  linePresets: pushwoosh_rpc_v2_line_presets_linePresetsService;
100
+ mediaFiles: pushwoosh_rpc_v2_media_files_MediaFilesService;
99
101
  messages: pushwoosh_rpc_v2_messages_MessagesService;
100
102
  filtersCrud: pushwoosh_objects_filters_v1_FiltersCrudService;
101
103
  restrictionValuesCrud: pushwoosh_objects_restrictionValues_v1_RestrictionValuesCrudService;
@@ -0,0 +1,35 @@
1
+ export interface MediaFilesService {
2
+ List(request: ListMediaFilesRequest): Promise<ListMediaFilesResponse>;
3
+ }
4
+ export type ListMediaFilesRequest = {
5
+ application?: string;
6
+ page?: number;
7
+ perPage?: number;
8
+ };
9
+ export type ListMediaFilesResponse = {
10
+ files: MediaFile[];
11
+ page: number;
12
+ perPage: number;
13
+ total: number;
14
+ };
15
+ export type MediaFile_ImageMeta = {
16
+ width: number;
17
+ height: number;
18
+ thumbnailUrl: string;
19
+ thumbnailWidth: number;
20
+ thumbnailHeight: number;
21
+ };
22
+ export type MediaFile_meta_imageMeta = {
23
+ type: 'imageMeta';
24
+ data: MediaFile_ImageMeta;
25
+ };
26
+ export type MediaFile_meta = MediaFile_meta_imageMeta;
27
+ export type MediaFile = {
28
+ uuid: string;
29
+ filename: string;
30
+ url: string;
31
+ fileSize: number;
32
+ mimeType: string;
33
+ createdAt: Date;
34
+ meta: MediaFile_meta;
35
+ };
package/media_files.js ADDED
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.780",
3
+ "version": "0.1.782",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -7,7 +7,6 @@ export interface AlertsService {
7
7
  export type AlertBanner = {
8
8
  type: AlertType;
9
9
  content?: string;
10
- actionLink?: string;
11
10
  };
12
11
  export type AlertEmail = {
13
12
  to: string;
@@ -39,8 +38,7 @@ export type ListResponse_Alert = {
39
38
  uuid: string;
40
39
  accountId: number;
41
40
  applicationId?: number;
42
- meta?: object;
43
- actionLink?: string;
41
+ meta: object;
44
42
  };
45
43
  export type ListResponse = {
46
44
  alerts: ListResponse_Alert[];
@@ -602,7 +602,7 @@ export type ExportMessageErrorsDevicesArgs = {
602
602
  export type ExportMessageErrorsDevicesResult = {
603
603
  file: string;
604
604
  };
605
- export type CreateSegmentFromMessageArgs_Type = 'send_devices' | 'delivered_devices' | 'opened_devices' | 'link_clicked_devices' | 'event_triggered_devices' | 'send_with_error_devices' | 'send_with_email_error_devices' | 'not_opened_devices';
605
+ export type CreateSegmentFromMessageArgs_Type = 'send_devices' | 'delivered_devices' | 'opened_devices' | 'link_clicked_devices' | 'event_triggered_devices' | 'send_with_error_devices' | 'send_with_email_error_devices';
606
606
  export type CreateSegmentFromMessageArgs_EmailErrorType = 'complaints' | 'soft_bounces' | 'hard_bounces';
607
607
  export type CreateSegmentFromMessageArgs = {
608
608
  messageId: number;