@pushwoosh/rpc-v2-http-api-data 0.2.58 → 0.2.60
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 +34 -1
- package/events.d.ts +18 -0
- package/package.json +1 -1
- package/pushwoosh_rpc_segments_v3.d.ts +4 -0
package/data.js
CHANGED
|
@@ -8293,6 +8293,23 @@ export const data = {
|
|
|
8293
8293
|
}
|
|
8294
8294
|
}
|
|
8295
8295
|
},
|
|
8296
|
+
"pushwoosh.rpc_v2.events.RevenueMapping": {
|
|
8297
|
+
"type": "I",
|
|
8298
|
+
"fields": {
|
|
8299
|
+
"valueAttr": {
|
|
8300
|
+
"type": "string"
|
|
8301
|
+
},
|
|
8302
|
+
"currencyAttr": {
|
|
8303
|
+
"type": "string"
|
|
8304
|
+
},
|
|
8305
|
+
"transactionIdAttr": {
|
|
8306
|
+
"type": "string"
|
|
8307
|
+
},
|
|
8308
|
+
"productIdAttr": {
|
|
8309
|
+
"type": "string"
|
|
8310
|
+
}
|
|
8311
|
+
}
|
|
8312
|
+
},
|
|
8296
8313
|
"pushwoosh.rpc_v2.events.Event": {
|
|
8297
8314
|
"type": "I",
|
|
8298
8315
|
"fields": {
|
|
@@ -8311,6 +8328,12 @@ export const data = {
|
|
|
8311
8328
|
},
|
|
8312
8329
|
"storeDays": {
|
|
8313
8330
|
"type": "number"
|
|
8331
|
+
},
|
|
8332
|
+
"trackRevenue": {
|
|
8333
|
+
"type": "boolean"
|
|
8334
|
+
},
|
|
8335
|
+
"revenueMapping": {
|
|
8336
|
+
"type": "pushwoosh.rpc_v2.events.RevenueMapping"
|
|
8314
8337
|
}
|
|
8315
8338
|
}
|
|
8316
8339
|
},
|
|
@@ -8348,6 +8371,9 @@ export const data = {
|
|
|
8348
8371
|
},
|
|
8349
8372
|
"perPage": {
|
|
8350
8373
|
"type": "number"
|
|
8374
|
+
},
|
|
8375
|
+
"trackRevenueOnly": {
|
|
8376
|
+
"type": "boolean"
|
|
8351
8377
|
}
|
|
8352
8378
|
}
|
|
8353
8379
|
},
|
|
@@ -8387,6 +8413,9 @@ export const data = {
|
|
|
8387
8413
|
"attributes": {
|
|
8388
8414
|
"type": "pushwoosh.rpc_v2.events.EventAttribute",
|
|
8389
8415
|
"array": true
|
|
8416
|
+
},
|
|
8417
|
+
"revenueMapping": {
|
|
8418
|
+
"type": "pushwoosh.rpc_v2.events.RevenueMapping"
|
|
8390
8419
|
}
|
|
8391
8420
|
}
|
|
8392
8421
|
},
|
|
@@ -8413,6 +8442,9 @@ export const data = {
|
|
|
8413
8442
|
"attributes": {
|
|
8414
8443
|
"type": "pushwoosh.rpc_v2.events.EventAttribute",
|
|
8415
8444
|
"array": true
|
|
8445
|
+
},
|
|
8446
|
+
"revenueMapping": {
|
|
8447
|
+
"type": "pushwoosh.rpc_v2.events.RevenueMapping"
|
|
8416
8448
|
}
|
|
8417
8449
|
}
|
|
8418
8450
|
},
|
|
@@ -23960,7 +23992,8 @@ export const data = {
|
|
|
23960
23992
|
"FILTER_EXPRESSION_HIGH_SPEED_TAGS_ONLY",
|
|
23961
23993
|
"FILTER_EXPRESSION_HIGH_SPEED_NO_DAYS_AGO",
|
|
23962
23994
|
"FILTER_EXPRESSION_INVALID_COUNTRY_TAG_VALUE",
|
|
23963
|
-
"FILTER_EXPRESSION_INVALID_LANGUAGE_TAG_VALUE"
|
|
23995
|
+
"FILTER_EXPRESSION_INVALID_LANGUAGE_TAG_VALUE",
|
|
23996
|
+
"FILTER_EXPRESSION_EXTERNAL_SEGMENT_NOT_ALLOWED"
|
|
23964
23997
|
],
|
|
23965
23998
|
"valuesArgs": {
|
|
23966
23999
|
"NAME_TOO_LONG": [
|
package/events.d.ts
CHANGED
|
@@ -28,12 +28,25 @@ export type EventAttribute = {
|
|
|
28
28
|
name: string;
|
|
29
29
|
type: EventAttribute_Type;
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* RevenueMapping maps a source event's attributes onto the normalized
|
|
33
|
+
* PW_Conversion revenue slots. Each field holds the name of the source
|
|
34
|
+
* event attribute that feeds the corresponding slot (empty = not mapped).
|
|
35
|
+
*/
|
|
36
|
+
export type RevenueMapping = {
|
|
37
|
+
valueAttr: string;
|
|
38
|
+
currencyAttr: string;
|
|
39
|
+
transactionIdAttr: string;
|
|
40
|
+
productIdAttr: string;
|
|
41
|
+
};
|
|
31
42
|
export type Event = {
|
|
32
43
|
name: string;
|
|
33
44
|
description: string;
|
|
34
45
|
attributes: EventAttribute[];
|
|
35
46
|
canDelete: boolean;
|
|
36
47
|
storeDays: number;
|
|
48
|
+
trackRevenue: boolean;
|
|
49
|
+
revenueMapping: RevenueMapping;
|
|
37
50
|
};
|
|
38
51
|
export type ListEventsRequest_OrderBy = 'NAME' | 'CREATED';
|
|
39
52
|
export type ListEventsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
@@ -45,6 +58,8 @@ export type ListEventsRequest = {
|
|
|
45
58
|
orderDirection?: ListEventsRequest_OrderDirection;
|
|
46
59
|
page?: number;
|
|
47
60
|
perPage?: number;
|
|
61
|
+
/** when true, return only revenue-mapped events */
|
|
62
|
+
trackRevenueOnly?: boolean;
|
|
48
63
|
};
|
|
49
64
|
export type ListEventsResponse = {
|
|
50
65
|
events: Event[];
|
|
@@ -58,6 +73,7 @@ export type CreateEventRequest = {
|
|
|
58
73
|
application?: string;
|
|
59
74
|
description?: string;
|
|
60
75
|
attributes?: EventAttribute[];
|
|
76
|
+
revenueMapping?: RevenueMapping;
|
|
61
77
|
};
|
|
62
78
|
export type CreateEventResponse = {
|
|
63
79
|
name: string;
|
|
@@ -69,6 +85,8 @@ export type UpdateEventRequest = {
|
|
|
69
85
|
description?: string;
|
|
70
86
|
/** new event attributes */
|
|
71
87
|
attributes?: EventAttribute[];
|
|
88
|
+
/** revenue slot mapping (nil = leave unchanged, empty = clear) */
|
|
89
|
+
revenueMapping?: RevenueMapping;
|
|
72
90
|
};
|
|
73
91
|
export type UpdateEventResponse = {};
|
|
74
92
|
export type DeleteEventRequest = {
|
package/package.json
CHANGED
|
@@ -78,6 +78,10 @@ export type SegmentsService_Create_FieldViolations = {
|
|
|
78
78
|
args: {
|
|
79
79
|
value: string;
|
|
80
80
|
};
|
|
81
|
+
} | {
|
|
82
|
+
reason: 'FILTER_EXPRESSION_EXTERNAL_SEGMENT_NOT_ALLOWED';
|
|
83
|
+
field: string;
|
|
84
|
+
description: string;
|
|
81
85
|
};
|
|
82
86
|
export type SegmentsService_Delete_FailedPreconditions = {
|
|
83
87
|
type: 'FP_DELETE_UNSPECIFIED';
|