@pushwoosh/rpc-v2-http-api-data 0.2.477 → 0.2.479
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 +51 -0
- package/events.d.ts +4 -2
- package/fb_messenger_presets.d.ts +10 -0
- package/line_presets.d.ts +10 -0
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -16343,6 +16343,9 @@ export const data = {
|
|
|
16343
16343
|
"events": {
|
|
16344
16344
|
"type": "pushwoosh.rpc_v2.events.ConversionEvent",
|
|
16345
16345
|
"array": true
|
|
16346
|
+
},
|
|
16347
|
+
"configured": {
|
|
16348
|
+
"type": "boolean"
|
|
16346
16349
|
}
|
|
16347
16350
|
}
|
|
16348
16351
|
},
|
|
@@ -19589,6 +19592,30 @@ export const data = {
|
|
|
19589
19592
|
},
|
|
19590
19593
|
"updated": {
|
|
19591
19594
|
"type": "Date"
|
|
19595
|
+
},
|
|
19596
|
+
"localizedQuickReplies": {
|
|
19597
|
+
"type": "pushwoosh.rpc_v2.fb_messenger_presets.FbMessengerQuickReplies",
|
|
19598
|
+
"mapKeyType": "string"
|
|
19599
|
+
}
|
|
19600
|
+
}
|
|
19601
|
+
},
|
|
19602
|
+
"pushwoosh.rpc_v2.fb_messenger_presets.FbMessengerQuickReplies": {
|
|
19603
|
+
"type": "I",
|
|
19604
|
+
"fields": {
|
|
19605
|
+
"items": {
|
|
19606
|
+
"type": "pushwoosh.rpc_v2.fb_messenger_presets.FbMessengerQuickReply",
|
|
19607
|
+
"array": true
|
|
19608
|
+
}
|
|
19609
|
+
}
|
|
19610
|
+
},
|
|
19611
|
+
"pushwoosh.rpc_v2.fb_messenger_presets.FbMessengerQuickReply": {
|
|
19612
|
+
"type": "I",
|
|
19613
|
+
"fields": {
|
|
19614
|
+
"id": {
|
|
19615
|
+
"type": "string"
|
|
19616
|
+
},
|
|
19617
|
+
"title": {
|
|
19618
|
+
"type": "string"
|
|
19592
19619
|
}
|
|
19593
19620
|
}
|
|
19594
19621
|
},
|
|
@@ -25289,6 +25316,30 @@ export const data = {
|
|
|
25289
25316
|
},
|
|
25290
25317
|
"managedBy": {
|
|
25291
25318
|
"type": "string"
|
|
25319
|
+
},
|
|
25320
|
+
"localizedQuickReplies": {
|
|
25321
|
+
"type": "pushwoosh.rpc_v2.line_presets.LineQuickReplies",
|
|
25322
|
+
"mapKeyType": "string"
|
|
25323
|
+
}
|
|
25324
|
+
}
|
|
25325
|
+
},
|
|
25326
|
+
"pushwoosh.rpc_v2.line_presets.LineQuickReplies": {
|
|
25327
|
+
"type": "I",
|
|
25328
|
+
"fields": {
|
|
25329
|
+
"items": {
|
|
25330
|
+
"type": "pushwoosh.rpc_v2.line_presets.LineQuickReply",
|
|
25331
|
+
"array": true
|
|
25332
|
+
}
|
|
25333
|
+
}
|
|
25334
|
+
},
|
|
25335
|
+
"pushwoosh.rpc_v2.line_presets.LineQuickReply": {
|
|
25336
|
+
"type": "I",
|
|
25337
|
+
"fields": {
|
|
25338
|
+
"id": {
|
|
25339
|
+
"type": "string"
|
|
25340
|
+
},
|
|
25341
|
+
"title": {
|
|
25342
|
+
"type": "string"
|
|
25292
25343
|
}
|
|
25293
25344
|
}
|
|
25294
25345
|
},
|
package/events.d.ts
CHANGED
|
@@ -335,8 +335,10 @@ export type ConversionEvent = {
|
|
|
335
335
|
isDefault: boolean;
|
|
336
336
|
};
|
|
337
337
|
export type ConversionEvents = {
|
|
338
|
-
/** Events counted as conversions
|
|
338
|
+
/** Events counted as conversions. PW_Conversion is always first, listed even before it exists (configured is false then). */
|
|
339
339
|
events: ConversionEvent[];
|
|
340
|
+
/** The application counts conversions: PW_Conversion exists or another event is a conversion, saved by the user or mapped automatically by post-event-api. False until then. */
|
|
341
|
+
configured: boolean;
|
|
340
342
|
};
|
|
341
343
|
/**
|
|
342
344
|
* RevenueSuggestion is a revenue mapping found by the cron but not enabled yet: the event
|
|
@@ -372,6 +374,6 @@ export type GetConversionEventsRequest = {
|
|
|
372
374
|
export type SaveConversionEventsRequest = {
|
|
373
375
|
/** Application code (format XXXXX-XXXXX). */
|
|
374
376
|
application?: string;
|
|
375
|
-
/** Full replacement of the application's conversion events; events left out stop counting. */
|
|
377
|
+
/** Full replacement of the application's conversion events; events left out stop counting. Saving creates PW_Conversion when the application has none, so an empty list still sets conversions up. */
|
|
376
378
|
events?: ConversionEvent[];
|
|
377
379
|
};
|
|
@@ -16,6 +16,16 @@ export type FbMessengerPreset = {
|
|
|
16
16
|
managedBy: string;
|
|
17
17
|
created: Date;
|
|
18
18
|
updated: Date;
|
|
19
|
+
/** Reply buttons per language as of the last save; a journey branches on their ids. */
|
|
20
|
+
localizedQuickReplies: Record<string, FbMessengerQuickReplies>;
|
|
21
|
+
};
|
|
22
|
+
export type FbMessengerQuickReplies = {
|
|
23
|
+
items: FbMessengerQuickReply[];
|
|
24
|
+
};
|
|
25
|
+
/** One reply button: the id comes back in the postback when it is tapped, the title is what the person sees. */
|
|
26
|
+
export type FbMessengerQuickReply = {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
19
29
|
};
|
|
20
30
|
export type ListFbMessengerPresetsRequest = {
|
|
21
31
|
/** Application code (XXXXX-XXXXX) whose Messenger presets to list. */
|
package/line_presets.d.ts
CHANGED
|
@@ -83,6 +83,16 @@ export type LinePreset = {
|
|
|
83
83
|
* A managed preset rejects Update and Delete; edit the chat preset instead.
|
|
84
84
|
*/
|
|
85
85
|
managedBy: string;
|
|
86
|
+
/** Output only: reply buttons per language as of the last save; a journey branches on their ids. */
|
|
87
|
+
localizedQuickReplies: Record<string, LineQuickReplies>;
|
|
88
|
+
};
|
|
89
|
+
export type LineQuickReplies = {
|
|
90
|
+
items: LineQuickReply[];
|
|
91
|
+
};
|
|
92
|
+
/** One reply button: the id comes back in the postback when it is tapped, the title is what the person sees. */
|
|
93
|
+
export type LineQuickReply = {
|
|
94
|
+
id: string;
|
|
95
|
+
title: string;
|
|
86
96
|
};
|
|
87
97
|
export type ListLinePresetsResponse = {
|
|
88
98
|
presets: LinePreset[];
|