@pushwoosh/rpc-v2-http-api-data 0.1.753 → 0.1.754
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 +331 -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/data.js
CHANGED
|
@@ -9299,6 +9299,337 @@ export const data = {
|
|
|
9299
9299
|
"type": "I",
|
|
9300
9300
|
"fields": {}
|
|
9301
9301
|
},
|
|
9302
|
+
"pushwoosh.rpc_v2.inapp_messages.InAppMessagesService": {
|
|
9303
|
+
"type": "S",
|
|
9304
|
+
"key": "inAppMessages",
|
|
9305
|
+
"methods": {
|
|
9306
|
+
"List": {
|
|
9307
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.ListInappMessagesRequest",
|
|
9308
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.ListInappMessagesResponse",
|
|
9309
|
+
"method": "get",
|
|
9310
|
+
"path": "/api/inapp_messages"
|
|
9311
|
+
},
|
|
9312
|
+
"Get": {
|
|
9313
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.GetInappMessageRequest",
|
|
9314
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.GetInappMessageResponse",
|
|
9315
|
+
"method": "get",
|
|
9316
|
+
"path": "/api/inapp_messages/{code}"
|
|
9317
|
+
},
|
|
9318
|
+
"Delete": {
|
|
9319
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.DeleteInappMessageRequest",
|
|
9320
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.DeleteInappMessageResponse",
|
|
9321
|
+
"method": "delete",
|
|
9322
|
+
"path": "/api/inapp_messages/{code}"
|
|
9323
|
+
},
|
|
9324
|
+
"Create": {
|
|
9325
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.CreateInappRequest",
|
|
9326
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.CreateInappResponse",
|
|
9327
|
+
"method": "post",
|
|
9328
|
+
"path": "/api/inapp_messages:create"
|
|
9329
|
+
},
|
|
9330
|
+
"Update": {
|
|
9331
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.UpdateInappRequest",
|
|
9332
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.UpdateInappResponse",
|
|
9333
|
+
"method": "put",
|
|
9334
|
+
"path": "/api/inapp_messages/{code}"
|
|
9335
|
+
},
|
|
9336
|
+
"Stop": {
|
|
9337
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.StopInappRequest",
|
|
9338
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.StopInappResponse",
|
|
9339
|
+
"method": "post",
|
|
9340
|
+
"path": "/api/inapp_messages/{code}:stop"
|
|
9341
|
+
},
|
|
9342
|
+
"Publish": {
|
|
9343
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.PublishInappRequest",
|
|
9344
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.PublishInappResponse",
|
|
9345
|
+
"method": "post",
|
|
9346
|
+
"path": "/api/inapp_messages/{code}:publish"
|
|
9347
|
+
}
|
|
9348
|
+
}
|
|
9349
|
+
},
|
|
9350
|
+
"pushwoosh.rpc_v2.inapp_messages.ListInappMessagesRequest": {
|
|
9351
|
+
"type": "I",
|
|
9352
|
+
"fields": {
|
|
9353
|
+
"application": {
|
|
9354
|
+
"type": "string"
|
|
9355
|
+
},
|
|
9356
|
+
"searchByName": {
|
|
9357
|
+
"type": "string"
|
|
9358
|
+
},
|
|
9359
|
+
"page": {
|
|
9360
|
+
"type": "number"
|
|
9361
|
+
},
|
|
9362
|
+
"perPage": {
|
|
9363
|
+
"type": "number"
|
|
9364
|
+
}
|
|
9365
|
+
}
|
|
9366
|
+
},
|
|
9367
|
+
"pushwoosh.rpc_v2.inapp_messages.Inapp.Status": {
|
|
9368
|
+
"type": "E",
|
|
9369
|
+
"values": [
|
|
9370
|
+
"UNDEFINED",
|
|
9371
|
+
"ACTIVE",
|
|
9372
|
+
"SCHEDULED",
|
|
9373
|
+
"COMPLETED",
|
|
9374
|
+
"DRAFT"
|
|
9375
|
+
]
|
|
9376
|
+
},
|
|
9377
|
+
"pushwoosh.rpc_v2.inapp_messages.Inapp": {
|
|
9378
|
+
"type": "I",
|
|
9379
|
+
"fields": {
|
|
9380
|
+
"code": {
|
|
9381
|
+
"type": "string"
|
|
9382
|
+
},
|
|
9383
|
+
"name": {
|
|
9384
|
+
"type": "string"
|
|
9385
|
+
},
|
|
9386
|
+
"description": {
|
|
9387
|
+
"type": "string"
|
|
9388
|
+
},
|
|
9389
|
+
"status": {
|
|
9390
|
+
"type": "pushwoosh.rpc_v2.inapp_messages.Inapp.Status"
|
|
9391
|
+
},
|
|
9392
|
+
"required": {
|
|
9393
|
+
"type": "boolean"
|
|
9394
|
+
},
|
|
9395
|
+
"startDate": {
|
|
9396
|
+
"type": "Date"
|
|
9397
|
+
},
|
|
9398
|
+
"endDate": {
|
|
9399
|
+
"type": "Date"
|
|
9400
|
+
},
|
|
9401
|
+
"updated": {
|
|
9402
|
+
"type": "Date"
|
|
9403
|
+
},
|
|
9404
|
+
"eventId": {
|
|
9405
|
+
"type": "number"
|
|
9406
|
+
},
|
|
9407
|
+
"filterName": {
|
|
9408
|
+
"type": "string"
|
|
9409
|
+
},
|
|
9410
|
+
"devicesFilter": {
|
|
9411
|
+
"type": "string"
|
|
9412
|
+
},
|
|
9413
|
+
"segment": {
|
|
9414
|
+
"type": "string"
|
|
9415
|
+
},
|
|
9416
|
+
"priority": {
|
|
9417
|
+
"type": "number"
|
|
9418
|
+
},
|
|
9419
|
+
"richMediaCode": {
|
|
9420
|
+
"type": "string"
|
|
9421
|
+
},
|
|
9422
|
+
"totalTriggered": {
|
|
9423
|
+
"type": "number"
|
|
9424
|
+
}
|
|
9425
|
+
}
|
|
9426
|
+
},
|
|
9427
|
+
"pushwoosh.rpc_v2.inapp_messages.ListInappMessagesResponse": {
|
|
9428
|
+
"type": "I",
|
|
9429
|
+
"fields": {
|
|
9430
|
+
"inapps": {
|
|
9431
|
+
"type": "pushwoosh.rpc_v2.inapp_messages.Inapp",
|
|
9432
|
+
"array": true
|
|
9433
|
+
},
|
|
9434
|
+
"page": {
|
|
9435
|
+
"type": "number"
|
|
9436
|
+
},
|
|
9437
|
+
"perPage": {
|
|
9438
|
+
"type": "number"
|
|
9439
|
+
},
|
|
9440
|
+
"totalPages": {
|
|
9441
|
+
"type": "number"
|
|
9442
|
+
},
|
|
9443
|
+
"totalInappMessages": {
|
|
9444
|
+
"type": "number"
|
|
9445
|
+
}
|
|
9446
|
+
}
|
|
9447
|
+
},
|
|
9448
|
+
"pushwoosh.rpc_v2.inapp_messages.GetInappMessageRequest": {
|
|
9449
|
+
"type": "I",
|
|
9450
|
+
"fields": {
|
|
9451
|
+
"code": {
|
|
9452
|
+
"type": "string"
|
|
9453
|
+
}
|
|
9454
|
+
}
|
|
9455
|
+
},
|
|
9456
|
+
"pushwoosh.rpc_v2.inapp_messages.GetInappMessageResponse": {
|
|
9457
|
+
"type": "I",
|
|
9458
|
+
"fields": {
|
|
9459
|
+
"inapp": {
|
|
9460
|
+
"type": "pushwoosh.rpc_v2.inapp_messages.Inapp"
|
|
9461
|
+
}
|
|
9462
|
+
}
|
|
9463
|
+
},
|
|
9464
|
+
"pushwoosh.rpc_v2.inapp_messages.DeleteInappMessageRequest": {
|
|
9465
|
+
"type": "I",
|
|
9466
|
+
"fields": {
|
|
9467
|
+
"code": {
|
|
9468
|
+
"type": "string"
|
|
9469
|
+
},
|
|
9470
|
+
"application": {
|
|
9471
|
+
"type": "string"
|
|
9472
|
+
}
|
|
9473
|
+
}
|
|
9474
|
+
},
|
|
9475
|
+
"pushwoosh.rpc_v2.inapp_messages.DeleteInappMessageResponse": {
|
|
9476
|
+
"type": "I",
|
|
9477
|
+
"fields": {}
|
|
9478
|
+
},
|
|
9479
|
+
"pushwoosh.rpc_v2.inapp_messages.CreateInappRequest.Action": {
|
|
9480
|
+
"type": "E",
|
|
9481
|
+
"values": [
|
|
9482
|
+
"SAVE_DRAFT",
|
|
9483
|
+
"PUBLISH"
|
|
9484
|
+
]
|
|
9485
|
+
},
|
|
9486
|
+
"pushwoosh.rpc_v2.inapp_messages.CreateInappRequest": {
|
|
9487
|
+
"type": "I",
|
|
9488
|
+
"fields": {
|
|
9489
|
+
"application": {
|
|
9490
|
+
"type": "string"
|
|
9491
|
+
},
|
|
9492
|
+
"action": {
|
|
9493
|
+
"type": "pushwoosh.rpc_v2.inapp_messages.CreateInappRequest.Action"
|
|
9494
|
+
},
|
|
9495
|
+
"name": {
|
|
9496
|
+
"type": "string"
|
|
9497
|
+
},
|
|
9498
|
+
"description": {
|
|
9499
|
+
"type": "string",
|
|
9500
|
+
"optional": true
|
|
9501
|
+
},
|
|
9502
|
+
"required": {
|
|
9503
|
+
"type": "boolean",
|
|
9504
|
+
"optional": true
|
|
9505
|
+
},
|
|
9506
|
+
"richMediaCode": {
|
|
9507
|
+
"type": "string",
|
|
9508
|
+
"optional": true
|
|
9509
|
+
},
|
|
9510
|
+
"filterName": {
|
|
9511
|
+
"type": "string",
|
|
9512
|
+
"optional": true
|
|
9513
|
+
},
|
|
9514
|
+
"segment": {
|
|
9515
|
+
"type": "string",
|
|
9516
|
+
"optional": true
|
|
9517
|
+
},
|
|
9518
|
+
"eventId": {
|
|
9519
|
+
"type": "number",
|
|
9520
|
+
"optional": true
|
|
9521
|
+
},
|
|
9522
|
+
"devicesFilter": {
|
|
9523
|
+
"type": "string",
|
|
9524
|
+
"optional": true
|
|
9525
|
+
},
|
|
9526
|
+
"startDate": {
|
|
9527
|
+
"type": "Date",
|
|
9528
|
+
"optional": true
|
|
9529
|
+
},
|
|
9530
|
+
"endDate": {
|
|
9531
|
+
"type": "Date",
|
|
9532
|
+
"optional": true
|
|
9533
|
+
}
|
|
9534
|
+
},
|
|
9535
|
+
"oneofs": {}
|
|
9536
|
+
},
|
|
9537
|
+
"pushwoosh.rpc_v2.inapp_messages.CreateInappResponse": {
|
|
9538
|
+
"type": "I",
|
|
9539
|
+
"fields": {
|
|
9540
|
+
"code": {
|
|
9541
|
+
"type": "string"
|
|
9542
|
+
}
|
|
9543
|
+
}
|
|
9544
|
+
},
|
|
9545
|
+
"pushwoosh.rpc_v2.inapp_messages.UpdateInappRequest": {
|
|
9546
|
+
"type": "I",
|
|
9547
|
+
"fields": {
|
|
9548
|
+
"code": {
|
|
9549
|
+
"type": "string"
|
|
9550
|
+
},
|
|
9551
|
+
"name": {
|
|
9552
|
+
"type": "string"
|
|
9553
|
+
},
|
|
9554
|
+
"description": {
|
|
9555
|
+
"type": "string",
|
|
9556
|
+
"optional": true
|
|
9557
|
+
},
|
|
9558
|
+
"required": {
|
|
9559
|
+
"type": "boolean",
|
|
9560
|
+
"optional": true
|
|
9561
|
+
},
|
|
9562
|
+
"richMediaCode": {
|
|
9563
|
+
"type": "string",
|
|
9564
|
+
"optional": true
|
|
9565
|
+
},
|
|
9566
|
+
"filterName": {
|
|
9567
|
+
"type": "string",
|
|
9568
|
+
"optional": true
|
|
9569
|
+
},
|
|
9570
|
+
"segment": {
|
|
9571
|
+
"type": "string",
|
|
9572
|
+
"optional": true
|
|
9573
|
+
},
|
|
9574
|
+
"eventId": {
|
|
9575
|
+
"type": "number",
|
|
9576
|
+
"optional": true
|
|
9577
|
+
},
|
|
9578
|
+
"devicesFilter": {
|
|
9579
|
+
"type": "string",
|
|
9580
|
+
"optional": true
|
|
9581
|
+
},
|
|
9582
|
+
"startDate": {
|
|
9583
|
+
"type": "Date",
|
|
9584
|
+
"optional": true
|
|
9585
|
+
},
|
|
9586
|
+
"endDate": {
|
|
9587
|
+
"type": "Date",
|
|
9588
|
+
"optional": true
|
|
9589
|
+
},
|
|
9590
|
+
"priority": {
|
|
9591
|
+
"type": "number",
|
|
9592
|
+
"optional": true
|
|
9593
|
+
}
|
|
9594
|
+
},
|
|
9595
|
+
"oneofs": {}
|
|
9596
|
+
},
|
|
9597
|
+
"pushwoosh.rpc_v2.inapp_messages.UpdateInappResponse": {
|
|
9598
|
+
"type": "I",
|
|
9599
|
+
"fields": {}
|
|
9600
|
+
},
|
|
9601
|
+
"pushwoosh.rpc_v2.inapp_messages.StopInappRequest": {
|
|
9602
|
+
"type": "I",
|
|
9603
|
+
"fields": {
|
|
9604
|
+
"code": {
|
|
9605
|
+
"type": "string"
|
|
9606
|
+
}
|
|
9607
|
+
}
|
|
9608
|
+
},
|
|
9609
|
+
"pushwoosh.rpc_v2.inapp_messages.StopInappResponse": {
|
|
9610
|
+
"type": "I",
|
|
9611
|
+
"fields": {
|
|
9612
|
+
"code": {
|
|
9613
|
+
"type": "string"
|
|
9614
|
+
}
|
|
9615
|
+
}
|
|
9616
|
+
},
|
|
9617
|
+
"pushwoosh.rpc_v2.inapp_messages.PublishInappRequest": {
|
|
9618
|
+
"type": "I",
|
|
9619
|
+
"fields": {
|
|
9620
|
+
"code": {
|
|
9621
|
+
"type": "string"
|
|
9622
|
+
}
|
|
9623
|
+
}
|
|
9624
|
+
},
|
|
9625
|
+
"pushwoosh.rpc_v2.inapp_messages.PublishInappResponse": {
|
|
9626
|
+
"type": "I",
|
|
9627
|
+
"fields": {
|
|
9628
|
+
"code": {
|
|
9629
|
+
"type": "string"
|
|
9630
|
+
}
|
|
9631
|
+
}
|
|
9632
|
+
},
|
|
9302
9633
|
"pushwoosh.rpc_v2.integrations.IntegrationsService": {
|
|
9303
9634
|
"type": "S",
|
|
9304
9635
|
"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;
|