@pushwoosh/rpc-v2-http-api-data 0.2.212 → 0.2.213

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.
@@ -5,48 +5,72 @@ export type appInboxPresetsService_Create = RpcMethod<CreateAppInboxPresetReques
5
5
  export type appInboxPresetsService_Update = RpcMethod<UpdateAppInboxPresetRequest, UpdateAppInboxPresetResponse>;
6
6
  export type appInboxPresetsService_Delete = RpcMethod<DeleteAppInboxPresetRequest, DeleteAppInboxPresetResponse>;
7
7
  export interface appInboxPresetsService {
8
+ /** Lists one application's App Inbox presets (inbox message templates) with paging, search over name and code, category filter and ordering. Use to browse presets or to find a preset code. */
8
9
  List: appInboxPresetsService_List;
10
+ /** Returns a single App Inbox preset by its preset code: name, categories and the per-locale content. Use after list_app_inbox_presets to inspect one preset. */
9
11
  Get: appInboxPresetsService_Get;
12
+ /** Creates an App Inbox preset under an application from per-locale content; each call yields a fresh preset code. Category names the application does not have yet are created with it. */
10
13
  Create: appInboxPresetsService_Create;
14
+ /** Updates an App Inbox preset by preset code: name, categories and localized content are replaced when given, omitted fields keep their current value. */
11
15
  Update: appInboxPresetsService_Update;
16
+ /** Permanently deletes an App Inbox preset by preset code. Refused while a running or paused journey still sends the preset; irreversible once it goes through. */
12
17
  Delete: appInboxPresetsService_Delete;
13
18
  }
14
19
  export type ListAppInboxPresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
15
20
  export type ListAppInboxPresetsRequest_OrderDirection = 'ASC' | 'DESC';
16
21
  export type ListAppInboxPresetsRequest = {
22
+ /** Application code (format XXXXX-XXXXX) whose presets to list; required. */
17
23
  application?: string;
18
24
  orderBy?: ListAppInboxPresetsRequest_OrderBy;
19
25
  orderDirection?: ListAppInboxPresetsRequest_OrderDirection;
20
26
  page?: number;
27
+ /** Presets per page; 100 when omitted. */
21
28
  perPage?: number;
29
+ /** Free-text search over preset name and preset code. */
22
30
  searchByName?: string;
31
+ /** Restrict the list to presets carrying these category names. */
23
32
  searchByCategory?: string[];
24
33
  };
25
34
  export type AppInboxPresetOpenAction = {
35
+ /** What opens when the message is tapped: "url", "deep_link" or "rich_media". Empty means no action; only the field belonging to the chosen type is read. */
26
36
  type: string;
37
+ /** Target URL for type "url". */
27
38
  url: string;
39
+ /** Deeplink code for type "deep_link". */
28
40
  deepLinkCode: string;
41
+ /** Deeplink parameters for type "deep_link". */
29
42
  deepLinkParams: Record<string, string>;
43
+ /** Rich Media code for type "rich_media". */
30
44
  richMediaCode: string;
31
45
  };
32
46
  export type AppInboxPresetCarouselSlide = {
47
+ /** Absolute https URL of the slide image; required. */
33
48
  imageUrl: string;
34
49
  caption: string;
35
50
  };
36
51
  export type AppInboxPresetLocale = {
52
+ /** Message title; required for every layout except "banner". */
37
53
  title: string;
54
+ /** Message body; required for every layout except "banner". */
38
55
  body: string;
56
+ /** Absolute https icon URL; required for the "classic" layout. */
39
57
  iconUrl: string;
58
+ /** Absolute https image URL; required for the "captioned" and "banner" layouts. */
40
59
  bannerUrl: string;
41
60
  openAction: AppInboxPresetOpenAction;
61
+ /** Arbitrary key-value payload delivered to the app along with the message. */
42
62
  customData: object;
63
+ /** Layout of the inbox message: "classic" (the default when empty), "captioned", "banner" or "carousel". Each layout makes different fields of this message required. */
43
64
  layoutType: string;
65
+ /** Slides of the "carousel" layout: 1 to 10 of them, required for it, ignored otherwise. */
44
66
  carousel: AppInboxPresetCarouselSlide[];
45
67
  };
46
68
  export type AppInboxPreset = {
47
69
  name: string;
70
+ /** Preset code, the identifier the other App Inbox tools take. */
48
71
  code: string;
49
72
  categories: string[];
73
+ /** Content per language code, e.g. "en". */
50
74
  localizedContent: Record<string, AppInboxPresetLocale>;
51
75
  created: Date;
52
76
  updated: Date;
@@ -58,30 +82,39 @@ export type ListAppInboxPresetsResponse = {
58
82
  total: number;
59
83
  };
60
84
  export type GetAppInboxPresetRequest = {
85
+ /** Preset code of the preset to fetch. */
61
86
  code?: string;
62
87
  };
63
88
  export type GetAppInboxPresetResponse = {
64
89
  preset: AppInboxPreset;
65
90
  };
66
91
  export type CreateAppInboxPresetRequest = {
92
+ /** Application code (format XXXXX-XXXXX) to create the preset under; required. */
67
93
  application?: string;
68
94
  name?: string;
95
+ /** Category names to tag the preset with; unknown ones are created on the application. */
69
96
  categories?: string[];
97
+ /** Content per language code, e.g. "en". */
70
98
  localizedContent?: Record<string, AppInboxPresetLocale>;
71
99
  };
72
100
  export type CreateAppInboxPresetResponse = {
73
101
  preset: AppInboxPreset;
74
102
  };
75
103
  export type UpdateAppInboxPresetRequest = {
104
+ /** Preset code of the preset to update. */
76
105
  code?: string;
106
+ /** New preset name; omit to leave unchanged. */
77
107
  name?: string;
108
+ /** Replacement category list; omit to leave unchanged. */
78
109
  categories?: string[];
110
+ /** Replacement content per language code; omit to leave unchanged. */
79
111
  localizedContent?: Record<string, AppInboxPresetLocale>;
80
112
  };
81
113
  export type UpdateAppInboxPresetResponse = {
82
114
  preset: AppInboxPreset;
83
115
  };
84
116
  export type DeleteAppInboxPresetRequest = {
117
+ /** Preset code of the preset to delete. */
85
118
  code?: string;
86
119
  };
87
120
  export type DeleteAppInboxPresetResponse = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.212",
3
+ "version": "0.2.213",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",