@onesignal/node-onesignal 5.13.2 → 5.15.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/UpdateLiveActivityRequest.d.ts +2 -0
- package/dist/models/UpdateLiveActivityRequest.js +12 -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 { JourneyBranchStats } from './JourneyBranchStats';
|
|
2
|
+
import { JourneyNodeStats } from './JourneyNodeStats';
|
|
3
|
+
export declare class JourneyStats {
|
|
4
|
+
'id'?: string;
|
|
5
|
+
'started'?: number;
|
|
6
|
+
'completed'?: number;
|
|
7
|
+
'exited_early'?: number;
|
|
8
|
+
'nodes'?: {
|
|
9
|
+
[key: string]: JourneyNodeStats;
|
|
10
|
+
};
|
|
11
|
+
'branches'?: {
|
|
12
|
+
[key: string]: JourneyBranchStats;
|
|
13
|
+
};
|
|
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,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyStats = void 0;
|
|
4
|
+
class JourneyStats {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyStats.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyStats = JourneyStats;
|
|
12
|
+
JourneyStats.discriminator = undefined;
|
|
13
|
+
JourneyStats.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "id",
|
|
16
|
+
"baseName": "id",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "started",
|
|
22
|
+
"baseName": "started",
|
|
23
|
+
"type": "number",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "completed",
|
|
28
|
+
"baseName": "completed",
|
|
29
|
+
"type": "number",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "exited_early",
|
|
34
|
+
"baseName": "exited_early",
|
|
35
|
+
"type": "number",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "nodes",
|
|
40
|
+
"baseName": "nodes",
|
|
41
|
+
"type": "{ [key: string]: JourneyNodeStats; }",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "branches",
|
|
46
|
+
"baseName": "branches",
|
|
47
|
+
"type": "{ [key: string]: JourneyBranchStats; }",
|
|
48
|
+
"format": ""
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
//# sourceMappingURL=JourneyStats.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class JourneyTimePoint {
|
|
2
|
+
'hour'?: number;
|
|
3
|
+
'minute'?: number;
|
|
4
|
+
static readonly discriminator: string | undefined;
|
|
5
|
+
static readonly attributeTypeMap: Array<{
|
|
6
|
+
name: string;
|
|
7
|
+
baseName: string;
|
|
8
|
+
type: string;
|
|
9
|
+
format: string;
|
|
10
|
+
}>;
|
|
11
|
+
static getAttributeTypeMap(): {
|
|
12
|
+
name: string;
|
|
13
|
+
baseName: string;
|
|
14
|
+
type: string;
|
|
15
|
+
format: string;
|
|
16
|
+
}[];
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyTimePoint = void 0;
|
|
4
|
+
class JourneyTimePoint {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyTimePoint.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyTimePoint = JourneyTimePoint;
|
|
12
|
+
JourneyTimePoint.discriminator = undefined;
|
|
13
|
+
JourneyTimePoint.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "hour",
|
|
16
|
+
"baseName": "hour",
|
|
17
|
+
"type": "number",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "minute",
|
|
22
|
+
"baseName": "minute",
|
|
23
|
+
"type": "number",
|
|
24
|
+
"format": ""
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
//# sourceMappingURL=JourneyTimePoint.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JourneyTimePoint } from './JourneyTimePoint';
|
|
2
|
+
export declare class JourneyTimeWindow {
|
|
3
|
+
'start'?: JourneyTimePoint;
|
|
4
|
+
'end'?: JourneyTimePoint;
|
|
5
|
+
'day_of_week'?: number;
|
|
6
|
+
static readonly discriminator: string | undefined;
|
|
7
|
+
static readonly attributeTypeMap: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
baseName: string;
|
|
10
|
+
type: string;
|
|
11
|
+
format: string;
|
|
12
|
+
}>;
|
|
13
|
+
static getAttributeTypeMap(): {
|
|
14
|
+
name: string;
|
|
15
|
+
baseName: string;
|
|
16
|
+
type: string;
|
|
17
|
+
format: string;
|
|
18
|
+
}[];
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyTimeWindow = void 0;
|
|
4
|
+
class JourneyTimeWindow {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyTimeWindow.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyTimeWindow = JourneyTimeWindow;
|
|
12
|
+
JourneyTimeWindow.discriminator = undefined;
|
|
13
|
+
JourneyTimeWindow.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "start",
|
|
16
|
+
"baseName": "start",
|
|
17
|
+
"type": "JourneyTimePoint",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "end",
|
|
22
|
+
"baseName": "end",
|
|
23
|
+
"type": "JourneyTimePoint",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "day_of_week",
|
|
28
|
+
"baseName": "day_of_week",
|
|
29
|
+
"type": "number",
|
|
30
|
+
"format": ""
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=JourneyTimeWindow.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class JourneyWaitUntilExpiration {
|
|
2
|
+
'duration_seconds'?: number;
|
|
3
|
+
'exits'?: boolean;
|
|
4
|
+
static readonly discriminator: string | undefined;
|
|
5
|
+
static readonly attributeTypeMap: Array<{
|
|
6
|
+
name: string;
|
|
7
|
+
baseName: string;
|
|
8
|
+
type: string;
|
|
9
|
+
format: string;
|
|
10
|
+
}>;
|
|
11
|
+
static getAttributeTypeMap(): {
|
|
12
|
+
name: string;
|
|
13
|
+
baseName: string;
|
|
14
|
+
type: string;
|
|
15
|
+
format: string;
|
|
16
|
+
}[];
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JourneyWaitUntilExpiration = void 0;
|
|
4
|
+
class JourneyWaitUntilExpiration {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return JourneyWaitUntilExpiration.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JourneyWaitUntilExpiration = JourneyWaitUntilExpiration;
|
|
12
|
+
JourneyWaitUntilExpiration.discriminator = undefined;
|
|
13
|
+
JourneyWaitUntilExpiration.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "duration_seconds",
|
|
16
|
+
"baseName": "duration_seconds",
|
|
17
|
+
"type": "number",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "exits",
|
|
22
|
+
"baseName": "exits",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"format": ""
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
//# sourceMappingURL=JourneyWaitUntilExpiration.js.map
|
|
@@ -12,6 +12,7 @@ export * from './Button';
|
|
|
12
12
|
export * from './CopyTemplateRequest';
|
|
13
13
|
export * from './CreateApiKeyRequest';
|
|
14
14
|
export * from './CreateApiKeyResponse';
|
|
15
|
+
export * from './CreateJourneyRequest';
|
|
15
16
|
export * from './CreateNotificationSuccessResponse';
|
|
16
17
|
export * from './CreateSegmentConflictResponse';
|
|
17
18
|
export * from './CreateSegmentSuccessResponse';
|
|
@@ -32,6 +33,28 @@ export * from './GenericSuccessBoolResponse';
|
|
|
32
33
|
export * from './GetNotificationHistoryRequestBody';
|
|
33
34
|
export * from './GetSegmentSuccessResponse';
|
|
34
35
|
export * from './GetSegmentsSuccessResponse';
|
|
36
|
+
export * from './Journey';
|
|
37
|
+
export * from './JourneyAudience';
|
|
38
|
+
export * from './JourneyBranch';
|
|
39
|
+
export * from './JourneyBranchStats';
|
|
40
|
+
export * from './JourneyCondition';
|
|
41
|
+
export * from './JourneyEarlyExit';
|
|
42
|
+
export * from './JourneyEarlyExitRules';
|
|
43
|
+
export * from './JourneyEarlyExitRulesOnEvent';
|
|
44
|
+
export * from './JourneyEarlyExitRulesOnSegment';
|
|
45
|
+
export * from './JourneyEventAttribute';
|
|
46
|
+
export * from './JourneyListAudience';
|
|
47
|
+
export * from './JourneyListItem';
|
|
48
|
+
export * from './JourneyListResponse';
|
|
49
|
+
export * from './JourneyMessageStats';
|
|
50
|
+
export * from './JourneyNode';
|
|
51
|
+
export * from './JourneyNodeStats';
|
|
52
|
+
export * from './JourneyReentryRules';
|
|
53
|
+
export * from './JourneySchedule';
|
|
54
|
+
export * from './JourneyStats';
|
|
55
|
+
export * from './JourneyTimePoint';
|
|
56
|
+
export * from './JourneyTimeWindow';
|
|
57
|
+
export * from './JourneyWaitUntilExpiration';
|
|
35
58
|
export * from './LanguageStringMap';
|
|
36
59
|
export * from './ListAuditLogsSuccessResponse';
|
|
37
60
|
export * from './Notification';
|
|
@@ -65,6 +88,8 @@ export * from './TemplateResource';
|
|
|
65
88
|
export * from './TemplatesListResponse';
|
|
66
89
|
export * from './TransferSubscriptionRequestBody';
|
|
67
90
|
export * from './UpdateApiKeyRequest';
|
|
91
|
+
export * from './UpdateJourneyNodeRequest';
|
|
92
|
+
export * from './UpdateJourneyRequest';
|
|
68
93
|
export * from './UpdateLiveActivityRequest';
|
|
69
94
|
export * from './UpdateLiveActivitySuccessResponse';
|
|
70
95
|
export * from './UpdateSegmentRequest';
|
|
@@ -29,6 +29,7 @@ __exportStar(require("./Button"), exports);
|
|
|
29
29
|
__exportStar(require("./CopyTemplateRequest"), exports);
|
|
30
30
|
__exportStar(require("./CreateApiKeyRequest"), exports);
|
|
31
31
|
__exportStar(require("./CreateApiKeyResponse"), exports);
|
|
32
|
+
__exportStar(require("./CreateJourneyRequest"), exports);
|
|
32
33
|
__exportStar(require("./CreateNotificationSuccessResponse"), exports);
|
|
33
34
|
__exportStar(require("./CreateSegmentConflictResponse"), exports);
|
|
34
35
|
__exportStar(require("./CreateSegmentSuccessResponse"), exports);
|
|
@@ -49,6 +50,28 @@ __exportStar(require("./GenericSuccessBoolResponse"), exports);
|
|
|
49
50
|
__exportStar(require("./GetNotificationHistoryRequestBody"), exports);
|
|
50
51
|
__exportStar(require("./GetSegmentSuccessResponse"), exports);
|
|
51
52
|
__exportStar(require("./GetSegmentsSuccessResponse"), exports);
|
|
53
|
+
__exportStar(require("./Journey"), exports);
|
|
54
|
+
__exportStar(require("./JourneyAudience"), exports);
|
|
55
|
+
__exportStar(require("./JourneyBranch"), exports);
|
|
56
|
+
__exportStar(require("./JourneyBranchStats"), exports);
|
|
57
|
+
__exportStar(require("./JourneyCondition"), exports);
|
|
58
|
+
__exportStar(require("./JourneyEarlyExit"), exports);
|
|
59
|
+
__exportStar(require("./JourneyEarlyExitRules"), exports);
|
|
60
|
+
__exportStar(require("./JourneyEarlyExitRulesOnEvent"), exports);
|
|
61
|
+
__exportStar(require("./JourneyEarlyExitRulesOnSegment"), exports);
|
|
62
|
+
__exportStar(require("./JourneyEventAttribute"), exports);
|
|
63
|
+
__exportStar(require("./JourneyListAudience"), exports);
|
|
64
|
+
__exportStar(require("./JourneyListItem"), exports);
|
|
65
|
+
__exportStar(require("./JourneyListResponse"), exports);
|
|
66
|
+
__exportStar(require("./JourneyMessageStats"), exports);
|
|
67
|
+
__exportStar(require("./JourneyNode"), exports);
|
|
68
|
+
__exportStar(require("./JourneyNodeStats"), exports);
|
|
69
|
+
__exportStar(require("./JourneyReentryRules"), exports);
|
|
70
|
+
__exportStar(require("./JourneySchedule"), exports);
|
|
71
|
+
__exportStar(require("./JourneyStats"), exports);
|
|
72
|
+
__exportStar(require("./JourneyTimePoint"), exports);
|
|
73
|
+
__exportStar(require("./JourneyTimeWindow"), exports);
|
|
74
|
+
__exportStar(require("./JourneyWaitUntilExpiration"), exports);
|
|
52
75
|
__exportStar(require("./LanguageStringMap"), exports);
|
|
53
76
|
__exportStar(require("./ListAuditLogsSuccessResponse"), exports);
|
|
54
77
|
__exportStar(require("./Notification"), exports);
|
|
@@ -82,6 +105,8 @@ __exportStar(require("./TemplateResource"), exports);
|
|
|
82
105
|
__exportStar(require("./TemplatesListResponse"), exports);
|
|
83
106
|
__exportStar(require("./TransferSubscriptionRequestBody"), exports);
|
|
84
107
|
__exportStar(require("./UpdateApiKeyRequest"), exports);
|
|
108
|
+
__exportStar(require("./UpdateJourneyNodeRequest"), exports);
|
|
109
|
+
__exportStar(require("./UpdateJourneyRequest"), exports);
|
|
85
110
|
__exportStar(require("./UpdateLiveActivityRequest"), exports);
|
|
86
111
|
__exportStar(require("./UpdateLiveActivitySuccessResponse"), exports);
|
|
87
112
|
__exportStar(require("./UpdateSegmentRequest"), exports);
|
|
@@ -105,6 +130,7 @@ const Button_1 = require("./Button");
|
|
|
105
130
|
const CopyTemplateRequest_1 = require("./CopyTemplateRequest");
|
|
106
131
|
const CreateApiKeyRequest_1 = require("./CreateApiKeyRequest");
|
|
107
132
|
const CreateApiKeyResponse_1 = require("./CreateApiKeyResponse");
|
|
133
|
+
const CreateJourneyRequest_1 = require("./CreateJourneyRequest");
|
|
108
134
|
const CreateNotificationSuccessResponse_1 = require("./CreateNotificationSuccessResponse");
|
|
109
135
|
const CreateSegmentConflictResponse_1 = require("./CreateSegmentConflictResponse");
|
|
110
136
|
const CreateSegmentSuccessResponse_1 = require("./CreateSegmentSuccessResponse");
|
|
@@ -125,6 +151,28 @@ const GenericSuccessBoolResponse_1 = require("./GenericSuccessBoolResponse");
|
|
|
125
151
|
const GetNotificationHistoryRequestBody_1 = require("./GetNotificationHistoryRequestBody");
|
|
126
152
|
const GetSegmentSuccessResponse_1 = require("./GetSegmentSuccessResponse");
|
|
127
153
|
const GetSegmentsSuccessResponse_1 = require("./GetSegmentsSuccessResponse");
|
|
154
|
+
const Journey_1 = require("./Journey");
|
|
155
|
+
const JourneyAudience_1 = require("./JourneyAudience");
|
|
156
|
+
const JourneyBranch_1 = require("./JourneyBranch");
|
|
157
|
+
const JourneyBranchStats_1 = require("./JourneyBranchStats");
|
|
158
|
+
const JourneyCondition_1 = require("./JourneyCondition");
|
|
159
|
+
const JourneyEarlyExit_1 = require("./JourneyEarlyExit");
|
|
160
|
+
const JourneyEarlyExitRules_1 = require("./JourneyEarlyExitRules");
|
|
161
|
+
const JourneyEarlyExitRulesOnEvent_1 = require("./JourneyEarlyExitRulesOnEvent");
|
|
162
|
+
const JourneyEarlyExitRulesOnSegment_1 = require("./JourneyEarlyExitRulesOnSegment");
|
|
163
|
+
const JourneyEventAttribute_1 = require("./JourneyEventAttribute");
|
|
164
|
+
const JourneyListAudience_1 = require("./JourneyListAudience");
|
|
165
|
+
const JourneyListItem_1 = require("./JourneyListItem");
|
|
166
|
+
const JourneyListResponse_1 = require("./JourneyListResponse");
|
|
167
|
+
const JourneyMessageStats_1 = require("./JourneyMessageStats");
|
|
168
|
+
const JourneyNode_1 = require("./JourneyNode");
|
|
169
|
+
const JourneyNodeStats_1 = require("./JourneyNodeStats");
|
|
170
|
+
const JourneyReentryRules_1 = require("./JourneyReentryRules");
|
|
171
|
+
const JourneySchedule_1 = require("./JourneySchedule");
|
|
172
|
+
const JourneyStats_1 = require("./JourneyStats");
|
|
173
|
+
const JourneyTimePoint_1 = require("./JourneyTimePoint");
|
|
174
|
+
const JourneyTimeWindow_1 = require("./JourneyTimeWindow");
|
|
175
|
+
const JourneyWaitUntilExpiration_1 = require("./JourneyWaitUntilExpiration");
|
|
128
176
|
const LanguageStringMap_1 = require("./LanguageStringMap");
|
|
129
177
|
const ListAuditLogsSuccessResponse_1 = require("./ListAuditLogsSuccessResponse");
|
|
130
178
|
const Notification_1 = require("./Notification");
|
|
@@ -158,6 +206,8 @@ const TemplateResource_1 = require("./TemplateResource");
|
|
|
158
206
|
const TemplatesListResponse_1 = require("./TemplatesListResponse");
|
|
159
207
|
const TransferSubscriptionRequestBody_1 = require("./TransferSubscriptionRequestBody");
|
|
160
208
|
const UpdateApiKeyRequest_1 = require("./UpdateApiKeyRequest");
|
|
209
|
+
const UpdateJourneyNodeRequest_1 = require("./UpdateJourneyNodeRequest");
|
|
210
|
+
const UpdateJourneyRequest_1 = require("./UpdateJourneyRequest");
|
|
161
211
|
const UpdateLiveActivityRequest_1 = require("./UpdateLiveActivityRequest");
|
|
162
212
|
const UpdateLiveActivitySuccessResponse_1 = require("./UpdateLiveActivitySuccessResponse");
|
|
163
213
|
const UpdateSegmentRequest_1 = require("./UpdateSegmentRequest");
|
|
@@ -195,6 +245,16 @@ let enumsMap = new Set([
|
|
|
195
245
|
"FilterExpressionRelationEnum",
|
|
196
246
|
"FilterExpressionOperatorEnum",
|
|
197
247
|
"GetNotificationHistoryRequestBodyEventsEnum",
|
|
248
|
+
"JourneyStateEnum",
|
|
249
|
+
"JourneyAudienceKindEnum",
|
|
250
|
+
"JourneyConditionKindEnum",
|
|
251
|
+
"JourneyConditionActionEnum",
|
|
252
|
+
"JourneyEventAttributeOperatorEnum",
|
|
253
|
+
"JourneyListAudienceKindEnum",
|
|
254
|
+
"JourneyListItemStateEnum",
|
|
255
|
+
"JourneyNodeKindEnum",
|
|
256
|
+
"JourneyNodeRelativeToEnum",
|
|
257
|
+
"JourneyNodeStatsKindEnum",
|
|
198
258
|
"NotificationTargetChannelEnum",
|
|
199
259
|
"NotificationAggregationEnum",
|
|
200
260
|
"NotificationHuaweiCategoryEnum",
|
|
@@ -210,6 +270,8 @@ let enumsMap = new Set([
|
|
|
210
270
|
"SubscriptionNotificationTargetTargetChannelEnum",
|
|
211
271
|
"TemplateResourceChannelEnum",
|
|
212
272
|
"UpdateApiKeyRequestIpAllowlistModeEnum",
|
|
273
|
+
"UpdateJourneyNodeRequestRelativeToEnum",
|
|
274
|
+
"UpdateJourneyRequestStateEnum",
|
|
213
275
|
"UpdateLiveActivityRequestEventEnum",
|
|
214
276
|
]);
|
|
215
277
|
let typeMap = {
|
|
@@ -227,6 +289,7 @@ let typeMap = {
|
|
|
227
289
|
"CopyTemplateRequest": CopyTemplateRequest_1.CopyTemplateRequest,
|
|
228
290
|
"CreateApiKeyRequest": CreateApiKeyRequest_1.CreateApiKeyRequest,
|
|
229
291
|
"CreateApiKeyResponse": CreateApiKeyResponse_1.CreateApiKeyResponse,
|
|
292
|
+
"CreateJourneyRequest": CreateJourneyRequest_1.CreateJourneyRequest,
|
|
230
293
|
"CreateNotificationSuccessResponse": CreateNotificationSuccessResponse_1.CreateNotificationSuccessResponse,
|
|
231
294
|
"CreateSegmentConflictResponse": CreateSegmentConflictResponse_1.CreateSegmentConflictResponse,
|
|
232
295
|
"CreateSegmentSuccessResponse": CreateSegmentSuccessResponse_1.CreateSegmentSuccessResponse,
|
|
@@ -247,6 +310,28 @@ let typeMap = {
|
|
|
247
310
|
"GetNotificationHistoryRequestBody": GetNotificationHistoryRequestBody_1.GetNotificationHistoryRequestBody,
|
|
248
311
|
"GetSegmentSuccessResponse": GetSegmentSuccessResponse_1.GetSegmentSuccessResponse,
|
|
249
312
|
"GetSegmentsSuccessResponse": GetSegmentsSuccessResponse_1.GetSegmentsSuccessResponse,
|
|
313
|
+
"Journey": Journey_1.Journey,
|
|
314
|
+
"JourneyAudience": JourneyAudience_1.JourneyAudience,
|
|
315
|
+
"JourneyBranch": JourneyBranch_1.JourneyBranch,
|
|
316
|
+
"JourneyBranchStats": JourneyBranchStats_1.JourneyBranchStats,
|
|
317
|
+
"JourneyCondition": JourneyCondition_1.JourneyCondition,
|
|
318
|
+
"JourneyEarlyExit": JourneyEarlyExit_1.JourneyEarlyExit,
|
|
319
|
+
"JourneyEarlyExitRules": JourneyEarlyExitRules_1.JourneyEarlyExitRules,
|
|
320
|
+
"JourneyEarlyExitRulesOnEvent": JourneyEarlyExitRulesOnEvent_1.JourneyEarlyExitRulesOnEvent,
|
|
321
|
+
"JourneyEarlyExitRulesOnSegment": JourneyEarlyExitRulesOnSegment_1.JourneyEarlyExitRulesOnSegment,
|
|
322
|
+
"JourneyEventAttribute": JourneyEventAttribute_1.JourneyEventAttribute,
|
|
323
|
+
"JourneyListAudience": JourneyListAudience_1.JourneyListAudience,
|
|
324
|
+
"JourneyListItem": JourneyListItem_1.JourneyListItem,
|
|
325
|
+
"JourneyListResponse": JourneyListResponse_1.JourneyListResponse,
|
|
326
|
+
"JourneyMessageStats": JourneyMessageStats_1.JourneyMessageStats,
|
|
327
|
+
"JourneyNode": JourneyNode_1.JourneyNode,
|
|
328
|
+
"JourneyNodeStats": JourneyNodeStats_1.JourneyNodeStats,
|
|
329
|
+
"JourneyReentryRules": JourneyReentryRules_1.JourneyReentryRules,
|
|
330
|
+
"JourneySchedule": JourneySchedule_1.JourneySchedule,
|
|
331
|
+
"JourneyStats": JourneyStats_1.JourneyStats,
|
|
332
|
+
"JourneyTimePoint": JourneyTimePoint_1.JourneyTimePoint,
|
|
333
|
+
"JourneyTimeWindow": JourneyTimeWindow_1.JourneyTimeWindow,
|
|
334
|
+
"JourneyWaitUntilExpiration": JourneyWaitUntilExpiration_1.JourneyWaitUntilExpiration,
|
|
250
335
|
"LanguageStringMap": LanguageStringMap_1.LanguageStringMap,
|
|
251
336
|
"ListAuditLogsSuccessResponse": ListAuditLogsSuccessResponse_1.ListAuditLogsSuccessResponse,
|
|
252
337
|
"Notification": Notification_1.Notification,
|
|
@@ -280,6 +365,8 @@ let typeMap = {
|
|
|
280
365
|
"TemplatesListResponse": TemplatesListResponse_1.TemplatesListResponse,
|
|
281
366
|
"TransferSubscriptionRequestBody": TransferSubscriptionRequestBody_1.TransferSubscriptionRequestBody,
|
|
282
367
|
"UpdateApiKeyRequest": UpdateApiKeyRequest_1.UpdateApiKeyRequest,
|
|
368
|
+
"UpdateJourneyNodeRequest": UpdateJourneyNodeRequest_1.UpdateJourneyNodeRequest,
|
|
369
|
+
"UpdateJourneyRequest": UpdateJourneyRequest_1.UpdateJourneyRequest,
|
|
283
370
|
"UpdateLiveActivityRequest": UpdateLiveActivityRequest_1.UpdateLiveActivityRequest,
|
|
284
371
|
"UpdateLiveActivitySuccessResponse": UpdateLiveActivitySuccessResponse_1.UpdateLiveActivitySuccessResponse,
|
|
285
372
|
"UpdateSegmentRequest": UpdateSegmentRequest_1.UpdateSegmentRequest,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { JourneyBranch } from './JourneyBranch';
|
|
2
|
+
import { JourneyTimeWindow } from './JourneyTimeWindow';
|
|
3
|
+
import { JourneyWaitUntilExpiration } from './JourneyWaitUntilExpiration';
|
|
4
|
+
export declare class UpdateJourneyNodeRequest {
|
|
5
|
+
'client_node_id'?: string;
|
|
6
|
+
'annotation'?: string;
|
|
7
|
+
'duration_seconds'?: number;
|
|
8
|
+
'relative_to'?: UpdateJourneyNodeRequestRelativeToEnum;
|
|
9
|
+
'windows'?: Array<JourneyTimeWindow>;
|
|
10
|
+
'time_zone'?: string;
|
|
11
|
+
'use_user_time_zone'?: boolean;
|
|
12
|
+
'template_id'?: string;
|
|
13
|
+
'iam_id'?: string;
|
|
14
|
+
'user_ttl_seconds'?: number;
|
|
15
|
+
'webhook_id'?: string;
|
|
16
|
+
'assignments'?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
'randomize_on_entry'?: boolean;
|
|
20
|
+
'branches'?: Array<JourneyBranch>;
|
|
21
|
+
'expiration'?: JourneyWaitUntilExpiration;
|
|
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 UpdateJourneyNodeRequestRelativeToEnum = "schedule_in_timezone" | "last_active_time";
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateJourneyNodeRequest = void 0;
|
|
4
|
+
class UpdateJourneyNodeRequest {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return UpdateJourneyNodeRequest.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.UpdateJourneyNodeRequest = UpdateJourneyNodeRequest;
|
|
12
|
+
UpdateJourneyNodeRequest.discriminator = undefined;
|
|
13
|
+
UpdateJourneyNodeRequest.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "client_node_id",
|
|
16
|
+
"baseName": "client_node_id",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "annotation",
|
|
22
|
+
"baseName": "annotation",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "duration_seconds",
|
|
28
|
+
"baseName": "duration_seconds",
|
|
29
|
+
"type": "number",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "relative_to",
|
|
34
|
+
"baseName": "relative_to",
|
|
35
|
+
"type": "UpdateJourneyNodeRequestRelativeToEnum",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "windows",
|
|
40
|
+
"baseName": "windows",
|
|
41
|
+
"type": "Array<JourneyTimeWindow>",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "time_zone",
|
|
46
|
+
"baseName": "time_zone",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "use_user_time_zone",
|
|
52
|
+
"baseName": "use_user_time_zone",
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"format": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "template_id",
|
|
58
|
+
"baseName": "template_id",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"format": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "iam_id",
|
|
64
|
+
"baseName": "iam_id",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "user_ttl_seconds",
|
|
70
|
+
"baseName": "user_ttl_seconds",
|
|
71
|
+
"type": "number",
|
|
72
|
+
"format": ""
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "webhook_id",
|
|
76
|
+
"baseName": "webhook_id",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"format": ""
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "assignments",
|
|
82
|
+
"baseName": "assignments",
|
|
83
|
+
"type": "{ [key: string]: string; }",
|
|
84
|
+
"format": ""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "randomize_on_entry",
|
|
88
|
+
"baseName": "randomize_on_entry",
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"format": ""
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "branches",
|
|
94
|
+
"baseName": "branches",
|
|
95
|
+
"type": "Array<JourneyBranch>",
|
|
96
|
+
"format": ""
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "expiration",
|
|
100
|
+
"baseName": "expiration",
|
|
101
|
+
"type": "JourneyWaitUntilExpiration",
|
|
102
|
+
"format": ""
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "concurrency_key",
|
|
106
|
+
"baseName": "concurrency_key",
|
|
107
|
+
"type": "string",
|
|
108
|
+
"format": ""
|
|
109
|
+
}
|
|
110
|
+
];
|
|
111
|
+
//# sourceMappingURL=UpdateJourneyNodeRequest.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
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 UpdateJourneyRequest {
|
|
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
|
+
'state'?: UpdateJourneyRequestStateEnum;
|
|
15
|
+
'concurrency_key'?: string;
|
|
16
|
+
static readonly discriminator: string | undefined;
|
|
17
|
+
static readonly attributeTypeMap: Array<{
|
|
18
|
+
name: string;
|
|
19
|
+
baseName: string;
|
|
20
|
+
type: string;
|
|
21
|
+
format: string;
|
|
22
|
+
}>;
|
|
23
|
+
static getAttributeTypeMap(): {
|
|
24
|
+
name: string;
|
|
25
|
+
baseName: string;
|
|
26
|
+
type: string;
|
|
27
|
+
format: string;
|
|
28
|
+
}[];
|
|
29
|
+
constructor();
|
|
30
|
+
}
|
|
31
|
+
export type UpdateJourneyRequestStateEnum = "draft" | "scheduled" | "active" | "archived";
|