@onesignal/node-onesignal 5.13.2 → 5.14.0
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/dist/apis/DefaultApi.d.ts +20 -0
- package/dist/apis/DefaultApi.js +463 -47
- package/dist/models/CreateJourneyRequest.d.ts +28 -0
- package/dist/models/CreateJourneyRequest.js +57 -0
- package/dist/models/Journey.d.ts +38 -0
- package/dist/models/Journey.js +111 -0
- package/dist/models/JourneyAudience.d.ts +24 -0
- package/dist/models/JourneyAudience.js +51 -0
- package/dist/models/JourneyBranch.d.ts +22 -0
- package/dist/models/JourneyBranch.js +39 -0
- package/dist/models/JourneyBranchStats.d.ts +17 -0
- package/dist/models/JourneyBranchStats.js +21 -0
- package/dist/models/JourneyCondition.d.ts +28 -0
- package/dist/models/JourneyCondition.js +69 -0
- package/dist/models/JourneyEarlyExit.d.ts +21 -0
- package/dist/models/JourneyEarlyExit.js +27 -0
- package/dist/models/JourneyEarlyExitRules.d.ts +22 -0
- package/dist/models/JourneyEarlyExitRules.js +39 -0
- package/dist/models/JourneyEarlyExitRulesOnEvent.d.ts +17 -0
- package/dist/models/JourneyEarlyExitRulesOnEvent.js +21 -0
- package/dist/models/JourneyEarlyExitRulesOnSegment.d.ts +17 -0
- package/dist/models/JourneyEarlyExitRulesOnSegment.js +21 -0
- package/dist/models/JourneyEventAttribute.d.ts +20 -0
- package/dist/models/JourneyEventAttribute.js +33 -0
- package/dist/models/JourneyListAudience.d.ts +18 -0
- package/dist/models/JourneyListAudience.js +21 -0
- package/dist/models/JourneyListItem.d.ts +32 -0
- package/dist/models/JourneyListItem.js +87 -0
- package/dist/models/JourneyListResponse.d.ts +20 -0
- package/dist/models/JourneyListResponse.js +33 -0
- package/dist/models/JourneyMessageStats.d.ts +19 -0
- package/dist/models/JourneyMessageStats.js +21 -0
- package/dist/models/JourneyNode.d.ts +40 -0
- package/dist/models/JourneyNode.js +117 -0
- package/dist/models/JourneyNodeStats.d.ts +23 -0
- package/dist/models/JourneyNodeStats.js +45 -0
- package/dist/models/JourneyReentryRules.d.ts +17 -0
- package/dist/models/JourneyReentryRules.js +21 -0
- package/dist/models/JourneySchedule.d.ts +19 -0
- package/dist/models/JourneySchedule.js +33 -0
- package/dist/models/JourneyStats.d.ts +28 -0
- package/dist/models/JourneyStats.js +51 -0
- package/dist/models/JourneyTimePoint.d.ts +18 -0
- package/dist/models/JourneyTimePoint.js +27 -0
- package/dist/models/JourneyTimeWindow.d.ts +20 -0
- package/dist/models/JourneyTimeWindow.js +33 -0
- package/dist/models/JourneyWaitUntilExpiration.d.ts +18 -0
- package/dist/models/JourneyWaitUntilExpiration.js +27 -0
- package/dist/models/ObjectSerializer.d.ts +25 -0
- package/dist/models/ObjectSerializer.js +87 -0
- package/dist/models/UpdateJourneyNodeRequest.d.ts +38 -0
- package/dist/models/UpdateJourneyNodeRequest.js +111 -0
- package/dist/models/UpdateJourneyRequest.d.ts +31 -0
- package/dist/models/UpdateJourneyRequest.js +69 -0
- package/dist/models/all.d.ts +25 -0
- package/dist/models/all.js +25 -0
- package/dist/types/ObjectParamAPI.d.ts +45 -0
- package/dist/types/ObjectParamAPI.js +21 -0
- package/dist/types/ObservableAPI.d.ts +13 -0
- package/dist/types/ObservableAPI.js +105 -0
- package/dist/types/PromiseAPI.d.ts +13 -0
- package/dist/types/PromiseAPI.js +28 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JourneyAudience } from './JourneyAudience';
|
|
2
|
+
import { JourneyEarlyExit } from './JourneyEarlyExit';
|
|
3
|
+
import { JourneyNode } from './JourneyNode';
|
|
4
|
+
import { JourneyReentryRules } from './JourneyReentryRules';
|
|
5
|
+
import { JourneySchedule } from './JourneySchedule';
|
|
6
|
+
export declare class CreateJourneyRequest {
|
|
7
|
+
'name': string;
|
|
8
|
+
'description'?: string;
|
|
9
|
+
'audience'?: JourneyAudience;
|
|
10
|
+
'early_exit'?: JourneyEarlyExit;
|
|
11
|
+
'reentry_rules'?: JourneyReentryRules;
|
|
12
|
+
'schedule'?: JourneySchedule;
|
|
13
|
+
'nodes'?: Array<JourneyNode>;
|
|
14
|
+
static readonly discriminator: string | undefined;
|
|
15
|
+
static readonly attributeTypeMap: Array<{
|
|
16
|
+
name: string;
|
|
17
|
+
baseName: string;
|
|
18
|
+
type: string;
|
|
19
|
+
format: string;
|
|
20
|
+
}>;
|
|
21
|
+
static getAttributeTypeMap(): {
|
|
22
|
+
name: string;
|
|
23
|
+
baseName: string;
|
|
24
|
+
type: string;
|
|
25
|
+
format: string;
|
|
26
|
+
}[];
|
|
27
|
+
constructor();
|
|
28
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateJourneyRequest = void 0;
|
|
4
|
+
class CreateJourneyRequest {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return CreateJourneyRequest.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CreateJourneyRequest = CreateJourneyRequest;
|
|
12
|
+
CreateJourneyRequest.discriminator = undefined;
|
|
13
|
+
CreateJourneyRequest.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "name",
|
|
16
|
+
"baseName": "name",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "description",
|
|
22
|
+
"baseName": "description",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "audience",
|
|
28
|
+
"baseName": "audience",
|
|
29
|
+
"type": "JourneyAudience",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "early_exit",
|
|
34
|
+
"baseName": "early_exit",
|
|
35
|
+
"type": "JourneyEarlyExit",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "reentry_rules",
|
|
40
|
+
"baseName": "reentry_rules",
|
|
41
|
+
"type": "JourneyReentryRules",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "schedule",
|
|
46
|
+
"baseName": "schedule",
|
|
47
|
+
"type": "JourneySchedule",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "nodes",
|
|
52
|
+
"baseName": "nodes",
|
|
53
|
+
"type": "Array<JourneyNode>",
|
|
54
|
+
"format": ""
|
|
55
|
+
}
|
|
56
|
+
];
|
|
57
|
+
//# sourceMappingURL=CreateJourneyRequest.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { JourneyAudience } from './JourneyAudience';
|
|
2
|
+
import { JourneyEarlyExit } from './JourneyEarlyExit';
|
|
3
|
+
import { JourneyNode } from './JourneyNode';
|
|
4
|
+
import { JourneyReentryRules } from './JourneyReentryRules';
|
|
5
|
+
import { JourneySchedule } from './JourneySchedule';
|
|
6
|
+
export declare class Journey {
|
|
7
|
+
'id'?: string;
|
|
8
|
+
'app_id'?: string;
|
|
9
|
+
'name'?: string;
|
|
10
|
+
'description'?: string;
|
|
11
|
+
'state'?: JourneyStateEnum;
|
|
12
|
+
'created_at'?: string;
|
|
13
|
+
'updated_at'?: string;
|
|
14
|
+
'started_at'?: string;
|
|
15
|
+
'archived_at'?: string;
|
|
16
|
+
'created_source'?: string;
|
|
17
|
+
'audience'?: JourneyAudience;
|
|
18
|
+
'early_exit'?: JourneyEarlyExit;
|
|
19
|
+
'reentry_rules'?: JourneyReentryRules;
|
|
20
|
+
'schedule'?: JourneySchedule;
|
|
21
|
+
'nodes'?: Array<JourneyNode>;
|
|
22
|
+
'concurrency_key'?: string;
|
|
23
|
+
static readonly discriminator: string | undefined;
|
|
24
|
+
static readonly attributeTypeMap: Array<{
|
|
25
|
+
name: string;
|
|
26
|
+
baseName: string;
|
|
27
|
+
type: string;
|
|
28
|
+
format: string;
|
|
29
|
+
}>;
|
|
30
|
+
static getAttributeTypeMap(): {
|
|
31
|
+
name: string;
|
|
32
|
+
baseName: string;
|
|
33
|
+
type: string;
|
|
34
|
+
format: string;
|
|
35
|
+
}[];
|
|
36
|
+
constructor();
|
|
37
|
+
}
|
|
38
|
+
export type JourneyStateEnum = "draft" | "scheduled" | "processing" | "active" | "archived";
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Journey = void 0;
|
|
4
|
+
class Journey {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return Journey.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.Journey = Journey;
|
|
12
|
+
Journey.discriminator = undefined;
|
|
13
|
+
Journey.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "id",
|
|
16
|
+
"baseName": "id",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "app_id",
|
|
22
|
+
"baseName": "app_id",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "name",
|
|
28
|
+
"baseName": "name",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "description",
|
|
34
|
+
"baseName": "description",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "state",
|
|
40
|
+
"baseName": "state",
|
|
41
|
+
"type": "JourneyStateEnum",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "created_at",
|
|
46
|
+
"baseName": "created_at",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "updated_at",
|
|
52
|
+
"baseName": "updated_at",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "started_at",
|
|
58
|
+
"baseName": "started_at",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"format": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "archived_at",
|
|
64
|
+
"baseName": "archived_at",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "created_source",
|
|
70
|
+
"baseName": "created_source",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"format": ""
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "audience",
|
|
76
|
+
"baseName": "audience",
|
|
77
|
+
"type": "JourneyAudience",
|
|
78
|
+
"format": ""
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "early_exit",
|
|
82
|
+
"baseName": "early_exit",
|
|
83
|
+
"type": "JourneyEarlyExit",
|
|
84
|
+
"format": ""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "reentry_rules",
|
|
88
|
+
"baseName": "reentry_rules",
|
|
89
|
+
"type": "JourneyReentryRules",
|
|
90
|
+
"format": ""
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "schedule",
|
|
94
|
+
"baseName": "schedule",
|
|
95
|
+
"type": "JourneySchedule",
|
|
96
|
+
"format": ""
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "nodes",
|
|
100
|
+
"baseName": "nodes",
|
|
101
|
+
"type": "Array<JourneyNode>",
|
|
102
|
+
"format": ""
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "concurrency_key",
|
|
106
|
+
"baseName": "concurrency_key",
|
|
107
|
+
"type": "string",
|
|
108
|
+
"format": ""
|
|
109
|
+
}
|
|
110
|
+
];
|
|
111
|
+
//# sourceMappingURL=Journey.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { JourneyEventAttribute } from './JourneyEventAttribute';
|
|
2
|
+
export declare class JourneyAudience {
|
|
3
|
+
'kind': JourneyAudienceKindEnum;
|
|
4
|
+
'included_segment_ids'?: Array<string>;
|
|
5
|
+
'excluded_segment_ids'?: Array<string>;
|
|
6
|
+
'future_additions_only'?: boolean;
|
|
7
|
+
'name'?: string;
|
|
8
|
+
'attributes'?: Array<Array<JourneyEventAttribute>>;
|
|
9
|
+
static readonly discriminator: string | undefined;
|
|
10
|
+
static readonly attributeTypeMap: Array<{
|
|
11
|
+
name: string;
|
|
12
|
+
baseName: string;
|
|
13
|
+
type: string;
|
|
14
|
+
format: string;
|
|
15
|
+
}>;
|
|
16
|
+
static getAttributeTypeMap(): {
|
|
17
|
+
name: string;
|
|
18
|
+
baseName: string;
|
|
19
|
+
type: string;
|
|
20
|
+
format: string;
|
|
21
|
+
}[];
|
|
22
|
+
constructor();
|
|
23
|
+
}
|
|
24
|
+
export type JourneyAudienceKindEnum = "segment" | "event_trigger";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyAudience = void 0;
|
|
4
|
+
class JourneyAudience {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyAudience.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyAudience = JourneyAudience;
|
|
12
|
+
JourneyAudience.discriminator = undefined;
|
|
13
|
+
JourneyAudience.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "kind",
|
|
16
|
+
"baseName": "kind",
|
|
17
|
+
"type": "JourneyAudienceKindEnum",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "included_segment_ids",
|
|
22
|
+
"baseName": "included_segment_ids",
|
|
23
|
+
"type": "Array<string>",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "excluded_segment_ids",
|
|
28
|
+
"baseName": "excluded_segment_ids",
|
|
29
|
+
"type": "Array<string>",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "future_additions_only",
|
|
34
|
+
"baseName": "future_additions_only",
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "name",
|
|
40
|
+
"baseName": "name",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "attributes",
|
|
46
|
+
"baseName": "attributes",
|
|
47
|
+
"type": "Array<Array<JourneyEventAttribute>>",
|
|
48
|
+
"format": ""
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
//# sourceMappingURL=JourneyAudience.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { JourneyCondition } from './JourneyCondition';
|
|
2
|
+
import { JourneyNode } from './JourneyNode';
|
|
3
|
+
export declare class JourneyBranch {
|
|
4
|
+
'id'?: string;
|
|
5
|
+
'condition'?: JourneyCondition;
|
|
6
|
+
'weight'?: number;
|
|
7
|
+
'nodes'?: Array<JourneyNode>;
|
|
8
|
+
static readonly discriminator: string | undefined;
|
|
9
|
+
static readonly attributeTypeMap: Array<{
|
|
10
|
+
name: string;
|
|
11
|
+
baseName: string;
|
|
12
|
+
type: string;
|
|
13
|
+
format: string;
|
|
14
|
+
}>;
|
|
15
|
+
static getAttributeTypeMap(): {
|
|
16
|
+
name: string;
|
|
17
|
+
baseName: string;
|
|
18
|
+
type: string;
|
|
19
|
+
format: string;
|
|
20
|
+
}[];
|
|
21
|
+
constructor();
|
|
22
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyBranch = void 0;
|
|
4
|
+
class JourneyBranch {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyBranch.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyBranch = JourneyBranch;
|
|
12
|
+
JourneyBranch.discriminator = undefined;
|
|
13
|
+
JourneyBranch.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "id",
|
|
16
|
+
"baseName": "id",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "condition",
|
|
22
|
+
"baseName": "condition",
|
|
23
|
+
"type": "JourneyCondition",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "weight",
|
|
28
|
+
"baseName": "weight",
|
|
29
|
+
"type": "number",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "nodes",
|
|
34
|
+
"baseName": "nodes",
|
|
35
|
+
"type": "Array<JourneyNode>",
|
|
36
|
+
"format": ""
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
//# sourceMappingURL=JourneyBranch.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class JourneyBranchStats {
|
|
2
|
+
'completed'?: number;
|
|
3
|
+
static readonly discriminator: string | undefined;
|
|
4
|
+
static readonly attributeTypeMap: Array<{
|
|
5
|
+
name: string;
|
|
6
|
+
baseName: string;
|
|
7
|
+
type: string;
|
|
8
|
+
format: string;
|
|
9
|
+
}>;
|
|
10
|
+
static getAttributeTypeMap(): {
|
|
11
|
+
name: string;
|
|
12
|
+
baseName: string;
|
|
13
|
+
type: string;
|
|
14
|
+
format: string;
|
|
15
|
+
}[];
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyBranchStats = void 0;
|
|
4
|
+
class JourneyBranchStats {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyBranchStats.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyBranchStats = JourneyBranchStats;
|
|
12
|
+
JourneyBranchStats.discriminator = undefined;
|
|
13
|
+
JourneyBranchStats.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "completed",
|
|
16
|
+
"baseName": "completed",
|
|
17
|
+
"type": "number",
|
|
18
|
+
"format": ""
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=JourneyBranchStats.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JourneyEventAttribute } from './JourneyEventAttribute';
|
|
2
|
+
export declare class JourneyCondition {
|
|
3
|
+
'kind': JourneyConditionKindEnum;
|
|
4
|
+
'included_segment_ids'?: Array<string>;
|
|
5
|
+
'excluded_segment_ids'?: Array<string>;
|
|
6
|
+
'action'?: JourneyConditionActionEnum;
|
|
7
|
+
'sending_node_id'?: string;
|
|
8
|
+
'client_node_id'?: string;
|
|
9
|
+
'name'?: string;
|
|
10
|
+
'attributes'?: Array<Array<JourneyEventAttribute>>;
|
|
11
|
+
'entry_event_match_attributes'?: Array<object>;
|
|
12
|
+
static readonly discriminator: string | undefined;
|
|
13
|
+
static readonly attributeTypeMap: Array<{
|
|
14
|
+
name: string;
|
|
15
|
+
baseName: string;
|
|
16
|
+
type: string;
|
|
17
|
+
format: string;
|
|
18
|
+
}>;
|
|
19
|
+
static getAttributeTypeMap(): {
|
|
20
|
+
name: string;
|
|
21
|
+
baseName: string;
|
|
22
|
+
type: string;
|
|
23
|
+
format: string;
|
|
24
|
+
}[];
|
|
25
|
+
constructor();
|
|
26
|
+
}
|
|
27
|
+
export type JourneyConditionKindEnum = "segment_membership" | "on_notification_action" | "event_trigger";
|
|
28
|
+
export type JourneyConditionActionEnum = "received" | "clicked" | "opened";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyCondition = void 0;
|
|
4
|
+
class JourneyCondition {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyCondition.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyCondition = JourneyCondition;
|
|
12
|
+
JourneyCondition.discriminator = undefined;
|
|
13
|
+
JourneyCondition.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "kind",
|
|
16
|
+
"baseName": "kind",
|
|
17
|
+
"type": "JourneyConditionKindEnum",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "included_segment_ids",
|
|
22
|
+
"baseName": "included_segment_ids",
|
|
23
|
+
"type": "Array<string>",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "excluded_segment_ids",
|
|
28
|
+
"baseName": "excluded_segment_ids",
|
|
29
|
+
"type": "Array<string>",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "action",
|
|
34
|
+
"baseName": "action",
|
|
35
|
+
"type": "JourneyConditionActionEnum",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "sending_node_id",
|
|
40
|
+
"baseName": "sending_node_id",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "client_node_id",
|
|
46
|
+
"baseName": "client_node_id",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "name",
|
|
52
|
+
"baseName": "name",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "attributes",
|
|
58
|
+
"baseName": "attributes",
|
|
59
|
+
"type": "Array<Array<JourneyEventAttribute>>",
|
|
60
|
+
"format": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "entry_event_match_attributes",
|
|
64
|
+
"baseName": "entry_event_match_attributes",
|
|
65
|
+
"type": "Array<object>",
|
|
66
|
+
"format": ""
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
//# sourceMappingURL=JourneyCondition.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { JourneyEarlyExitRules } from './JourneyEarlyExitRules';
|
|
2
|
+
export declare class JourneyEarlyExit {
|
|
3
|
+
'rules'?: JourneyEarlyExitRules;
|
|
4
|
+
'tag_on_early_exit'?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
static readonly discriminator: string | undefined;
|
|
8
|
+
static readonly attributeTypeMap: Array<{
|
|
9
|
+
name: string;
|
|
10
|
+
baseName: string;
|
|
11
|
+
type: string;
|
|
12
|
+
format: string;
|
|
13
|
+
}>;
|
|
14
|
+
static getAttributeTypeMap(): {
|
|
15
|
+
name: string;
|
|
16
|
+
baseName: string;
|
|
17
|
+
type: string;
|
|
18
|
+
format: string;
|
|
19
|
+
}[];
|
|
20
|
+
constructor();
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyEarlyExit = void 0;
|
|
4
|
+
class JourneyEarlyExit {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyEarlyExit.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyEarlyExit = JourneyEarlyExit;
|
|
12
|
+
JourneyEarlyExit.discriminator = undefined;
|
|
13
|
+
JourneyEarlyExit.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "rules",
|
|
16
|
+
"baseName": "rules",
|
|
17
|
+
"type": "JourneyEarlyExitRules",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "tag_on_early_exit",
|
|
22
|
+
"baseName": "tag_on_early_exit",
|
|
23
|
+
"type": "{ [key: string]: string; }",
|
|
24
|
+
"format": ""
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
//# sourceMappingURL=JourneyEarlyExit.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { JourneyEarlyExitRulesOnEvent } from './JourneyEarlyExitRulesOnEvent';
|
|
2
|
+
import { JourneyEarlyExitRulesOnSegment } from './JourneyEarlyExitRulesOnSegment';
|
|
3
|
+
export declare class JourneyEarlyExitRules {
|
|
4
|
+
'on_segment'?: JourneyEarlyExitRulesOnSegment;
|
|
5
|
+
'when_not_in_audience'?: boolean;
|
|
6
|
+
'on_session'?: boolean;
|
|
7
|
+
'on_event'?: JourneyEarlyExitRulesOnEvent;
|
|
8
|
+
static readonly discriminator: string | undefined;
|
|
9
|
+
static readonly attributeTypeMap: Array<{
|
|
10
|
+
name: string;
|
|
11
|
+
baseName: string;
|
|
12
|
+
type: string;
|
|
13
|
+
format: string;
|
|
14
|
+
}>;
|
|
15
|
+
static getAttributeTypeMap(): {
|
|
16
|
+
name: string;
|
|
17
|
+
baseName: string;
|
|
18
|
+
type: string;
|
|
19
|
+
format: string;
|
|
20
|
+
}[];
|
|
21
|
+
constructor();
|
|
22
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyEarlyExitRules = void 0;
|
|
4
|
+
class JourneyEarlyExitRules {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyEarlyExitRules.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyEarlyExitRules = JourneyEarlyExitRules;
|
|
12
|
+
JourneyEarlyExitRules.discriminator = undefined;
|
|
13
|
+
JourneyEarlyExitRules.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "on_segment",
|
|
16
|
+
"baseName": "on_segment",
|
|
17
|
+
"type": "JourneyEarlyExitRulesOnSegment",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "when_not_in_audience",
|
|
22
|
+
"baseName": "when_not_in_audience",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "on_session",
|
|
28
|
+
"baseName": "on_session",
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "on_event",
|
|
34
|
+
"baseName": "on_event",
|
|
35
|
+
"type": "JourneyEarlyExitRulesOnEvent",
|
|
36
|
+
"format": ""
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
//# sourceMappingURL=JourneyEarlyExitRules.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class JourneyEarlyExitRulesOnEvent {
|
|
2
|
+
'name': string;
|
|
3
|
+
static readonly discriminator: string | undefined;
|
|
4
|
+
static readonly attributeTypeMap: Array<{
|
|
5
|
+
name: string;
|
|
6
|
+
baseName: string;
|
|
7
|
+
type: string;
|
|
8
|
+
format: string;
|
|
9
|
+
}>;
|
|
10
|
+
static getAttributeTypeMap(): {
|
|
11
|
+
name: string;
|
|
12
|
+
baseName: string;
|
|
13
|
+
type: string;
|
|
14
|
+
format: string;
|
|
15
|
+
}[];
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyEarlyExitRulesOnEvent = void 0;
|
|
4
|
+
class JourneyEarlyExitRulesOnEvent {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyEarlyExitRulesOnEvent.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyEarlyExitRulesOnEvent = JourneyEarlyExitRulesOnEvent;
|
|
12
|
+
JourneyEarlyExitRulesOnEvent.discriminator = undefined;
|
|
13
|
+
JourneyEarlyExitRulesOnEvent.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "name",
|
|
16
|
+
"baseName": "name",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=JourneyEarlyExitRulesOnEvent.js.map
|