@pushwoosh/rpc-v2-http-api-data 0.1.753 → 0.1.755
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/applications.d.ts +23 -0
- package/data.js +407 -0
- package/inapp_messages.d.ts +96 -0
- package/inapp_messages.js +2 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
package/applications.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export interface ApplicationsService {
|
|
|
10
10
|
SendEmailVerification(request: SendEmailVerificationRequest): Promise<SendEmailVerificationResponse>;
|
|
11
11
|
GetAccountGroupPermissions(request: GetAccountGroupPermissionsRequest): Promise<GetAccountGroupPermissionsResponse>;
|
|
12
12
|
SaveAccountGroupPermissions(request: SaveAccountGroupPermissionsRequest): Promise<SaveAccountGroupPermissionsResponse>;
|
|
13
|
+
GetControlGroupSettings(request: GetControlGroupSettingsRequest): Promise<GetControlGroupSettingsResponse>;
|
|
14
|
+
UpdateControlGroupPercentage(request: UpdateControlGroupPercentageRequest): Promise<UpdateControlGroupPercentageResponse>;
|
|
15
|
+
DisableControlGroup(request: DisableControlGroupRequest): Promise<DisableControlGroupResponse>;
|
|
13
16
|
}
|
|
14
17
|
export type ApplicationPlatformSubscribersCount = {
|
|
15
18
|
pushEnabled: number;
|
|
@@ -124,3 +127,23 @@ export type SaveAccountGroupPermissionsRequest = {
|
|
|
124
127
|
export type SaveAccountGroupPermissionsResponse = {
|
|
125
128
|
permissions: AccountGroupPermissions[];
|
|
126
129
|
};
|
|
130
|
+
export type GetControlGroupSettingsRequest = {
|
|
131
|
+
code?: string;
|
|
132
|
+
};
|
|
133
|
+
export type GetControlGroupSettingsResponse = {
|
|
134
|
+
percentage: number;
|
|
135
|
+
enabled: boolean;
|
|
136
|
+
};
|
|
137
|
+
export type UpdateControlGroupPercentageRequest = {
|
|
138
|
+
code?: string;
|
|
139
|
+
percentage?: number;
|
|
140
|
+
};
|
|
141
|
+
export type UpdateControlGroupPercentageResponse = {};
|
|
142
|
+
export type DisableControlGroupRequest = {
|
|
143
|
+
code?: string;
|
|
144
|
+
};
|
|
145
|
+
export type DisableControlGroupResponse = {};
|
|
146
|
+
export type ShuffleControlGroupRequest = {
|
|
147
|
+
code: string;
|
|
148
|
+
};
|
|
149
|
+
export type ShuffleControlGroupResponse = {};
|
package/data.js
CHANGED
|
@@ -2101,6 +2101,24 @@ export const data = {
|
|
|
2101
2101
|
"response": "pushwoosh.rpc_v2.applications.SaveAccountGroupPermissionsResponse",
|
|
2102
2102
|
"method": "put",
|
|
2103
2103
|
"path": "/api/applications/{code}/account_group_permissions"
|
|
2104
|
+
},
|
|
2105
|
+
"GetControlGroupSettings": {
|
|
2106
|
+
"request": "pushwoosh.rpc_v2.applications.GetControlGroupSettingsRequest",
|
|
2107
|
+
"response": "pushwoosh.rpc_v2.applications.GetControlGroupSettingsResponse",
|
|
2108
|
+
"method": "get",
|
|
2109
|
+
"path": "/api/applications/{code}/control_group"
|
|
2110
|
+
},
|
|
2111
|
+
"UpdateControlGroupPercentage": {
|
|
2112
|
+
"request": "pushwoosh.rpc_v2.applications.UpdateControlGroupPercentageRequest",
|
|
2113
|
+
"response": "pushwoosh.rpc_v2.applications.UpdateControlGroupPercentageResponse",
|
|
2114
|
+
"method": "post",
|
|
2115
|
+
"path": "/api/applications/{code}/control_group"
|
|
2116
|
+
},
|
|
2117
|
+
"DisableControlGroup": {
|
|
2118
|
+
"request": "pushwoosh.rpc_v2.applications.DisableControlGroupRequest",
|
|
2119
|
+
"response": "pushwoosh.rpc_v2.applications.DisableControlGroupResponse",
|
|
2120
|
+
"method": "delete",
|
|
2121
|
+
"path": "/api/applications/{code}/control_group"
|
|
2104
2122
|
}
|
|
2105
2123
|
}
|
|
2106
2124
|
},
|
|
@@ -2445,6 +2463,64 @@ export const data = {
|
|
|
2445
2463
|
}
|
|
2446
2464
|
}
|
|
2447
2465
|
},
|
|
2466
|
+
"pushwoosh.rpc_v2.applications.GetControlGroupSettingsRequest": {
|
|
2467
|
+
"type": "I",
|
|
2468
|
+
"fields": {
|
|
2469
|
+
"code": {
|
|
2470
|
+
"type": "string"
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
"pushwoosh.rpc_v2.applications.GetControlGroupSettingsResponse": {
|
|
2475
|
+
"type": "I",
|
|
2476
|
+
"fields": {
|
|
2477
|
+
"percentage": {
|
|
2478
|
+
"type": "number"
|
|
2479
|
+
},
|
|
2480
|
+
"enabled": {
|
|
2481
|
+
"type": "boolean"
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
},
|
|
2485
|
+
"pushwoosh.rpc_v2.applications.UpdateControlGroupPercentageRequest": {
|
|
2486
|
+
"type": "I",
|
|
2487
|
+
"fields": {
|
|
2488
|
+
"code": {
|
|
2489
|
+
"type": "string"
|
|
2490
|
+
},
|
|
2491
|
+
"percentage": {
|
|
2492
|
+
"type": "number"
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
"pushwoosh.rpc_v2.applications.UpdateControlGroupPercentageResponse": {
|
|
2497
|
+
"type": "I",
|
|
2498
|
+
"fields": {}
|
|
2499
|
+
},
|
|
2500
|
+
"pushwoosh.rpc_v2.applications.DisableControlGroupRequest": {
|
|
2501
|
+
"type": "I",
|
|
2502
|
+
"fields": {
|
|
2503
|
+
"code": {
|
|
2504
|
+
"type": "string"
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
},
|
|
2508
|
+
"pushwoosh.rpc_v2.applications.DisableControlGroupResponse": {
|
|
2509
|
+
"type": "I",
|
|
2510
|
+
"fields": {}
|
|
2511
|
+
},
|
|
2512
|
+
"pushwoosh.rpc_v2.applications.ShuffleControlGroupRequest": {
|
|
2513
|
+
"type": "I",
|
|
2514
|
+
"fields": {
|
|
2515
|
+
"code": {
|
|
2516
|
+
"type": "string"
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
},
|
|
2520
|
+
"pushwoosh.rpc_v2.applications.ShuffleControlGroupResponse": {
|
|
2521
|
+
"type": "I",
|
|
2522
|
+
"fields": {}
|
|
2523
|
+
},
|
|
2448
2524
|
"pushwoosh.rpc_v2.applications.email_froms.ApplicationEmailFromsService": {
|
|
2449
2525
|
"type": "S",
|
|
2450
2526
|
"key": "applicationEmailFroms",
|
|
@@ -9299,6 +9375,337 @@ export const data = {
|
|
|
9299
9375
|
"type": "I",
|
|
9300
9376
|
"fields": {}
|
|
9301
9377
|
},
|
|
9378
|
+
"pushwoosh.rpc_v2.inapp_messages.InAppMessagesService": {
|
|
9379
|
+
"type": "S",
|
|
9380
|
+
"key": "inAppMessages",
|
|
9381
|
+
"methods": {
|
|
9382
|
+
"List": {
|
|
9383
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.ListInappMessagesRequest",
|
|
9384
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.ListInappMessagesResponse",
|
|
9385
|
+
"method": "get",
|
|
9386
|
+
"path": "/api/inapp_messages"
|
|
9387
|
+
},
|
|
9388
|
+
"Get": {
|
|
9389
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.GetInappMessageRequest",
|
|
9390
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.GetInappMessageResponse",
|
|
9391
|
+
"method": "get",
|
|
9392
|
+
"path": "/api/inapp_messages/{code}"
|
|
9393
|
+
},
|
|
9394
|
+
"Delete": {
|
|
9395
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.DeleteInappMessageRequest",
|
|
9396
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.DeleteInappMessageResponse",
|
|
9397
|
+
"method": "delete",
|
|
9398
|
+
"path": "/api/inapp_messages/{code}"
|
|
9399
|
+
},
|
|
9400
|
+
"Create": {
|
|
9401
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.CreateInappRequest",
|
|
9402
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.CreateInappResponse",
|
|
9403
|
+
"method": "post",
|
|
9404
|
+
"path": "/api/inapp_messages:create"
|
|
9405
|
+
},
|
|
9406
|
+
"Update": {
|
|
9407
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.UpdateInappRequest",
|
|
9408
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.UpdateInappResponse",
|
|
9409
|
+
"method": "put",
|
|
9410
|
+
"path": "/api/inapp_messages/{code}"
|
|
9411
|
+
},
|
|
9412
|
+
"Stop": {
|
|
9413
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.StopInappRequest",
|
|
9414
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.StopInappResponse",
|
|
9415
|
+
"method": "post",
|
|
9416
|
+
"path": "/api/inapp_messages/{code}:stop"
|
|
9417
|
+
},
|
|
9418
|
+
"Publish": {
|
|
9419
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.PublishInappRequest",
|
|
9420
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.PublishInappResponse",
|
|
9421
|
+
"method": "post",
|
|
9422
|
+
"path": "/api/inapp_messages/{code}:publish"
|
|
9423
|
+
}
|
|
9424
|
+
}
|
|
9425
|
+
},
|
|
9426
|
+
"pushwoosh.rpc_v2.inapp_messages.ListInappMessagesRequest": {
|
|
9427
|
+
"type": "I",
|
|
9428
|
+
"fields": {
|
|
9429
|
+
"application": {
|
|
9430
|
+
"type": "string"
|
|
9431
|
+
},
|
|
9432
|
+
"searchByName": {
|
|
9433
|
+
"type": "string"
|
|
9434
|
+
},
|
|
9435
|
+
"page": {
|
|
9436
|
+
"type": "number"
|
|
9437
|
+
},
|
|
9438
|
+
"perPage": {
|
|
9439
|
+
"type": "number"
|
|
9440
|
+
}
|
|
9441
|
+
}
|
|
9442
|
+
},
|
|
9443
|
+
"pushwoosh.rpc_v2.inapp_messages.Inapp.Status": {
|
|
9444
|
+
"type": "E",
|
|
9445
|
+
"values": [
|
|
9446
|
+
"UNDEFINED",
|
|
9447
|
+
"ACTIVE",
|
|
9448
|
+
"SCHEDULED",
|
|
9449
|
+
"COMPLETED",
|
|
9450
|
+
"DRAFT"
|
|
9451
|
+
]
|
|
9452
|
+
},
|
|
9453
|
+
"pushwoosh.rpc_v2.inapp_messages.Inapp": {
|
|
9454
|
+
"type": "I",
|
|
9455
|
+
"fields": {
|
|
9456
|
+
"code": {
|
|
9457
|
+
"type": "string"
|
|
9458
|
+
},
|
|
9459
|
+
"name": {
|
|
9460
|
+
"type": "string"
|
|
9461
|
+
},
|
|
9462
|
+
"description": {
|
|
9463
|
+
"type": "string"
|
|
9464
|
+
},
|
|
9465
|
+
"status": {
|
|
9466
|
+
"type": "pushwoosh.rpc_v2.inapp_messages.Inapp.Status"
|
|
9467
|
+
},
|
|
9468
|
+
"required": {
|
|
9469
|
+
"type": "boolean"
|
|
9470
|
+
},
|
|
9471
|
+
"startDate": {
|
|
9472
|
+
"type": "Date"
|
|
9473
|
+
},
|
|
9474
|
+
"endDate": {
|
|
9475
|
+
"type": "Date"
|
|
9476
|
+
},
|
|
9477
|
+
"updated": {
|
|
9478
|
+
"type": "Date"
|
|
9479
|
+
},
|
|
9480
|
+
"eventId": {
|
|
9481
|
+
"type": "number"
|
|
9482
|
+
},
|
|
9483
|
+
"filterName": {
|
|
9484
|
+
"type": "string"
|
|
9485
|
+
},
|
|
9486
|
+
"devicesFilter": {
|
|
9487
|
+
"type": "string"
|
|
9488
|
+
},
|
|
9489
|
+
"segment": {
|
|
9490
|
+
"type": "string"
|
|
9491
|
+
},
|
|
9492
|
+
"priority": {
|
|
9493
|
+
"type": "number"
|
|
9494
|
+
},
|
|
9495
|
+
"richMediaCode": {
|
|
9496
|
+
"type": "string"
|
|
9497
|
+
},
|
|
9498
|
+
"totalTriggered": {
|
|
9499
|
+
"type": "number"
|
|
9500
|
+
}
|
|
9501
|
+
}
|
|
9502
|
+
},
|
|
9503
|
+
"pushwoosh.rpc_v2.inapp_messages.ListInappMessagesResponse": {
|
|
9504
|
+
"type": "I",
|
|
9505
|
+
"fields": {
|
|
9506
|
+
"inapps": {
|
|
9507
|
+
"type": "pushwoosh.rpc_v2.inapp_messages.Inapp",
|
|
9508
|
+
"array": true
|
|
9509
|
+
},
|
|
9510
|
+
"page": {
|
|
9511
|
+
"type": "number"
|
|
9512
|
+
},
|
|
9513
|
+
"perPage": {
|
|
9514
|
+
"type": "number"
|
|
9515
|
+
},
|
|
9516
|
+
"totalPages": {
|
|
9517
|
+
"type": "number"
|
|
9518
|
+
},
|
|
9519
|
+
"totalInappMessages": {
|
|
9520
|
+
"type": "number"
|
|
9521
|
+
}
|
|
9522
|
+
}
|
|
9523
|
+
},
|
|
9524
|
+
"pushwoosh.rpc_v2.inapp_messages.GetInappMessageRequest": {
|
|
9525
|
+
"type": "I",
|
|
9526
|
+
"fields": {
|
|
9527
|
+
"code": {
|
|
9528
|
+
"type": "string"
|
|
9529
|
+
}
|
|
9530
|
+
}
|
|
9531
|
+
},
|
|
9532
|
+
"pushwoosh.rpc_v2.inapp_messages.GetInappMessageResponse": {
|
|
9533
|
+
"type": "I",
|
|
9534
|
+
"fields": {
|
|
9535
|
+
"inapp": {
|
|
9536
|
+
"type": "pushwoosh.rpc_v2.inapp_messages.Inapp"
|
|
9537
|
+
}
|
|
9538
|
+
}
|
|
9539
|
+
},
|
|
9540
|
+
"pushwoosh.rpc_v2.inapp_messages.DeleteInappMessageRequest": {
|
|
9541
|
+
"type": "I",
|
|
9542
|
+
"fields": {
|
|
9543
|
+
"code": {
|
|
9544
|
+
"type": "string"
|
|
9545
|
+
},
|
|
9546
|
+
"application": {
|
|
9547
|
+
"type": "string"
|
|
9548
|
+
}
|
|
9549
|
+
}
|
|
9550
|
+
},
|
|
9551
|
+
"pushwoosh.rpc_v2.inapp_messages.DeleteInappMessageResponse": {
|
|
9552
|
+
"type": "I",
|
|
9553
|
+
"fields": {}
|
|
9554
|
+
},
|
|
9555
|
+
"pushwoosh.rpc_v2.inapp_messages.CreateInappRequest.Action": {
|
|
9556
|
+
"type": "E",
|
|
9557
|
+
"values": [
|
|
9558
|
+
"SAVE_DRAFT",
|
|
9559
|
+
"PUBLISH"
|
|
9560
|
+
]
|
|
9561
|
+
},
|
|
9562
|
+
"pushwoosh.rpc_v2.inapp_messages.CreateInappRequest": {
|
|
9563
|
+
"type": "I",
|
|
9564
|
+
"fields": {
|
|
9565
|
+
"application": {
|
|
9566
|
+
"type": "string"
|
|
9567
|
+
},
|
|
9568
|
+
"action": {
|
|
9569
|
+
"type": "pushwoosh.rpc_v2.inapp_messages.CreateInappRequest.Action"
|
|
9570
|
+
},
|
|
9571
|
+
"name": {
|
|
9572
|
+
"type": "string"
|
|
9573
|
+
},
|
|
9574
|
+
"description": {
|
|
9575
|
+
"type": "string",
|
|
9576
|
+
"optional": true
|
|
9577
|
+
},
|
|
9578
|
+
"required": {
|
|
9579
|
+
"type": "boolean",
|
|
9580
|
+
"optional": true
|
|
9581
|
+
},
|
|
9582
|
+
"richMediaCode": {
|
|
9583
|
+
"type": "string",
|
|
9584
|
+
"optional": true
|
|
9585
|
+
},
|
|
9586
|
+
"filterName": {
|
|
9587
|
+
"type": "string",
|
|
9588
|
+
"optional": true
|
|
9589
|
+
},
|
|
9590
|
+
"segment": {
|
|
9591
|
+
"type": "string",
|
|
9592
|
+
"optional": true
|
|
9593
|
+
},
|
|
9594
|
+
"eventId": {
|
|
9595
|
+
"type": "number",
|
|
9596
|
+
"optional": true
|
|
9597
|
+
},
|
|
9598
|
+
"devicesFilter": {
|
|
9599
|
+
"type": "string",
|
|
9600
|
+
"optional": true
|
|
9601
|
+
},
|
|
9602
|
+
"startDate": {
|
|
9603
|
+
"type": "Date",
|
|
9604
|
+
"optional": true
|
|
9605
|
+
},
|
|
9606
|
+
"endDate": {
|
|
9607
|
+
"type": "Date",
|
|
9608
|
+
"optional": true
|
|
9609
|
+
}
|
|
9610
|
+
},
|
|
9611
|
+
"oneofs": {}
|
|
9612
|
+
},
|
|
9613
|
+
"pushwoosh.rpc_v2.inapp_messages.CreateInappResponse": {
|
|
9614
|
+
"type": "I",
|
|
9615
|
+
"fields": {
|
|
9616
|
+
"code": {
|
|
9617
|
+
"type": "string"
|
|
9618
|
+
}
|
|
9619
|
+
}
|
|
9620
|
+
},
|
|
9621
|
+
"pushwoosh.rpc_v2.inapp_messages.UpdateInappRequest": {
|
|
9622
|
+
"type": "I",
|
|
9623
|
+
"fields": {
|
|
9624
|
+
"code": {
|
|
9625
|
+
"type": "string"
|
|
9626
|
+
},
|
|
9627
|
+
"name": {
|
|
9628
|
+
"type": "string"
|
|
9629
|
+
},
|
|
9630
|
+
"description": {
|
|
9631
|
+
"type": "string",
|
|
9632
|
+
"optional": true
|
|
9633
|
+
},
|
|
9634
|
+
"required": {
|
|
9635
|
+
"type": "boolean",
|
|
9636
|
+
"optional": true
|
|
9637
|
+
},
|
|
9638
|
+
"richMediaCode": {
|
|
9639
|
+
"type": "string",
|
|
9640
|
+
"optional": true
|
|
9641
|
+
},
|
|
9642
|
+
"filterName": {
|
|
9643
|
+
"type": "string",
|
|
9644
|
+
"optional": true
|
|
9645
|
+
},
|
|
9646
|
+
"segment": {
|
|
9647
|
+
"type": "string",
|
|
9648
|
+
"optional": true
|
|
9649
|
+
},
|
|
9650
|
+
"eventId": {
|
|
9651
|
+
"type": "number",
|
|
9652
|
+
"optional": true
|
|
9653
|
+
},
|
|
9654
|
+
"devicesFilter": {
|
|
9655
|
+
"type": "string",
|
|
9656
|
+
"optional": true
|
|
9657
|
+
},
|
|
9658
|
+
"startDate": {
|
|
9659
|
+
"type": "Date",
|
|
9660
|
+
"optional": true
|
|
9661
|
+
},
|
|
9662
|
+
"endDate": {
|
|
9663
|
+
"type": "Date",
|
|
9664
|
+
"optional": true
|
|
9665
|
+
},
|
|
9666
|
+
"priority": {
|
|
9667
|
+
"type": "number",
|
|
9668
|
+
"optional": true
|
|
9669
|
+
}
|
|
9670
|
+
},
|
|
9671
|
+
"oneofs": {}
|
|
9672
|
+
},
|
|
9673
|
+
"pushwoosh.rpc_v2.inapp_messages.UpdateInappResponse": {
|
|
9674
|
+
"type": "I",
|
|
9675
|
+
"fields": {}
|
|
9676
|
+
},
|
|
9677
|
+
"pushwoosh.rpc_v2.inapp_messages.StopInappRequest": {
|
|
9678
|
+
"type": "I",
|
|
9679
|
+
"fields": {
|
|
9680
|
+
"code": {
|
|
9681
|
+
"type": "string"
|
|
9682
|
+
}
|
|
9683
|
+
}
|
|
9684
|
+
},
|
|
9685
|
+
"pushwoosh.rpc_v2.inapp_messages.StopInappResponse": {
|
|
9686
|
+
"type": "I",
|
|
9687
|
+
"fields": {
|
|
9688
|
+
"code": {
|
|
9689
|
+
"type": "string"
|
|
9690
|
+
}
|
|
9691
|
+
}
|
|
9692
|
+
},
|
|
9693
|
+
"pushwoosh.rpc_v2.inapp_messages.PublishInappRequest": {
|
|
9694
|
+
"type": "I",
|
|
9695
|
+
"fields": {
|
|
9696
|
+
"code": {
|
|
9697
|
+
"type": "string"
|
|
9698
|
+
}
|
|
9699
|
+
}
|
|
9700
|
+
},
|
|
9701
|
+
"pushwoosh.rpc_v2.inapp_messages.PublishInappResponse": {
|
|
9702
|
+
"type": "I",
|
|
9703
|
+
"fields": {
|
|
9704
|
+
"code": {
|
|
9705
|
+
"type": "string"
|
|
9706
|
+
}
|
|
9707
|
+
}
|
|
9708
|
+
},
|
|
9302
9709
|
"pushwoosh.rpc_v2.integrations.IntegrationsService": {
|
|
9303
9710
|
"type": "S",
|
|
9304
9711
|
"key": "integrations",
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export interface InAppMessagesService {
|
|
2
|
+
List(request: ListInappMessagesRequest): Promise<ListInappMessagesResponse>;
|
|
3
|
+
Get(request: GetInappMessageRequest): Promise<GetInappMessageResponse>;
|
|
4
|
+
Delete(request: DeleteInappMessageRequest): Promise<DeleteInappMessageResponse>;
|
|
5
|
+
Create(request: CreateInappRequest): Promise<CreateInappResponse>;
|
|
6
|
+
Update(request: UpdateInappRequest): Promise<UpdateInappResponse>;
|
|
7
|
+
Stop(request: StopInappRequest): Promise<StopInappResponse>;
|
|
8
|
+
Publish(request: PublishInappRequest): Promise<PublishInappResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type ListInappMessagesRequest = {
|
|
11
|
+
application?: string;
|
|
12
|
+
searchByName?: string;
|
|
13
|
+
page?: number;
|
|
14
|
+
perPage?: number;
|
|
15
|
+
};
|
|
16
|
+
export type Inapp_Status = 'UNDEFINED' | 'ACTIVE' | 'SCHEDULED' | 'COMPLETED' | 'DRAFT';
|
|
17
|
+
export type Inapp = {
|
|
18
|
+
code: string;
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
status: Inapp_Status;
|
|
22
|
+
required: boolean;
|
|
23
|
+
startDate: Date;
|
|
24
|
+
endDate: Date;
|
|
25
|
+
updated: Date;
|
|
26
|
+
eventId: number;
|
|
27
|
+
filterName: string;
|
|
28
|
+
devicesFilter: string;
|
|
29
|
+
segment: string;
|
|
30
|
+
priority: number;
|
|
31
|
+
richMediaCode: string;
|
|
32
|
+
totalTriggered: number;
|
|
33
|
+
};
|
|
34
|
+
export type ListInappMessagesResponse = {
|
|
35
|
+
inapps: Inapp[];
|
|
36
|
+
page: number;
|
|
37
|
+
perPage: number;
|
|
38
|
+
totalPages: number;
|
|
39
|
+
totalInappMessages: number;
|
|
40
|
+
};
|
|
41
|
+
export type GetInappMessageRequest = {
|
|
42
|
+
code?: string;
|
|
43
|
+
};
|
|
44
|
+
export type GetInappMessageResponse = {
|
|
45
|
+
inapp: Inapp;
|
|
46
|
+
};
|
|
47
|
+
export type DeleteInappMessageRequest = {
|
|
48
|
+
code?: string;
|
|
49
|
+
application?: string;
|
|
50
|
+
};
|
|
51
|
+
export type DeleteInappMessageResponse = {};
|
|
52
|
+
export type CreateInappRequest_Action = 'SAVE_DRAFT' | 'PUBLISH';
|
|
53
|
+
export type CreateInappRequest = {
|
|
54
|
+
application?: string;
|
|
55
|
+
action?: CreateInappRequest_Action;
|
|
56
|
+
name?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
required?: boolean;
|
|
59
|
+
richMediaCode?: string;
|
|
60
|
+
filterName?: string;
|
|
61
|
+
segment?: string;
|
|
62
|
+
eventId?: number;
|
|
63
|
+
devicesFilter?: string;
|
|
64
|
+
startDate?: Date;
|
|
65
|
+
endDate?: Date;
|
|
66
|
+
};
|
|
67
|
+
export type CreateInappResponse = {
|
|
68
|
+
code: string;
|
|
69
|
+
};
|
|
70
|
+
export type UpdateInappRequest = {
|
|
71
|
+
code?: string;
|
|
72
|
+
name?: string;
|
|
73
|
+
description?: string;
|
|
74
|
+
required?: boolean;
|
|
75
|
+
richMediaCode?: string;
|
|
76
|
+
filterName?: string;
|
|
77
|
+
segment?: string;
|
|
78
|
+
eventId?: number;
|
|
79
|
+
devicesFilter?: string;
|
|
80
|
+
startDate?: Date;
|
|
81
|
+
endDate?: Date;
|
|
82
|
+
priority?: number;
|
|
83
|
+
};
|
|
84
|
+
export type UpdateInappResponse = {};
|
|
85
|
+
export type StopInappRequest = {
|
|
86
|
+
code?: string;
|
|
87
|
+
};
|
|
88
|
+
export type StopInappResponse = {
|
|
89
|
+
code: string;
|
|
90
|
+
};
|
|
91
|
+
export type PublishInappRequest = {
|
|
92
|
+
code?: string;
|
|
93
|
+
};
|
|
94
|
+
export type PublishInappResponse = {
|
|
95
|
+
code: string;
|
|
96
|
+
};
|
package/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ import { FiltersService as pushwoosh_rpc_v2_filters_FiltersService } from './fil
|
|
|
29
29
|
import { FrequencyCappingService as pushwoosh_rpc_v2_frequency_capping_FrequencyCappingService } from './frequency_capping';
|
|
30
30
|
import { GeozonesService as pushwoosh_rpc_v2_geozones_GeozonesService } from './geozones';
|
|
31
31
|
import { GeozonesClustersService as pushwoosh_rpc_v2_geozones_clusters_GeozonesClustersService } from './geozones_clusters';
|
|
32
|
+
import { InAppMessagesService as pushwoosh_rpc_v2_inapp_messages_InAppMessagesService } from './inapp_messages';
|
|
32
33
|
import { IntegrationsService as pushwoosh_rpc_v2_integrations_IntegrationsService } from './integrations';
|
|
33
34
|
import { InternalAlertsService as pushwoosh_rpc_v2_internal_alerts_InternalAlertsService } from './internal_alerts';
|
|
34
35
|
import { IOSCategoriesService as pushwoosh_rpc_v2_ios_categories_IOSCategoriesService } from './ios_categories';
|
|
@@ -85,6 +86,7 @@ export type API = {
|
|
|
85
86
|
frequencyCapping: pushwoosh_rpc_v2_frequency_capping_FrequencyCappingService;
|
|
86
87
|
geozones: pushwoosh_rpc_v2_geozones_GeozonesService;
|
|
87
88
|
geozonesClusters: pushwoosh_rpc_v2_geozones_clusters_GeozonesClustersService;
|
|
89
|
+
inAppMessages: pushwoosh_rpc_v2_inapp_messages_InAppMessagesService;
|
|
88
90
|
integrations: pushwoosh_rpc_v2_integrations_IntegrationsService;
|
|
89
91
|
internalAlerts: pushwoosh_rpc_v2_internal_alerts_InternalAlertsService;
|
|
90
92
|
iOSCategories: pushwoosh_rpc_v2_ios_categories_IOSCategoriesService;
|