@pushwoosh/rpc-v2-http-api-data 0.1.756 → 0.1.758
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 +206 -0
- package/email_categories.d.ts +49 -0
- package/email_categories.js +2 -0
- package/index.d.ts +2 -0
- package/internal_alerts.d.ts +7 -0
- package/package.json +1 -1
- package/pushwoosh_accounts_alerts_v1.d.ts +8 -0
package/data.js
CHANGED
|
@@ -1164,6 +1164,12 @@ export const data = {
|
|
|
1164
1164
|
"response": "pushwoosh.accounts.alerts.v1.UpdateStatusResponse",
|
|
1165
1165
|
"method": "put",
|
|
1166
1166
|
"path": "/api/v1/update-status"
|
|
1167
|
+
},
|
|
1168
|
+
"GetHighestSeverity": {
|
|
1169
|
+
"request": "pushwoosh.accounts.alerts.v1.GetHighestSeverityRequest",
|
|
1170
|
+
"response": "pushwoosh.accounts.alerts.v1.GetHighestSeverityResponse",
|
|
1171
|
+
"method": "get",
|
|
1172
|
+
"path": "/api/v1/get-highest-severity"
|
|
1167
1173
|
}
|
|
1168
1174
|
}
|
|
1169
1175
|
},
|
|
@@ -1366,6 +1372,25 @@ export const data = {
|
|
|
1366
1372
|
"type": "I",
|
|
1367
1373
|
"fields": {}
|
|
1368
1374
|
},
|
|
1375
|
+
"pushwoosh.accounts.alerts.v1.GetHighestSeverityRequest": {
|
|
1376
|
+
"type": "I",
|
|
1377
|
+
"fields": {
|
|
1378
|
+
"accountId": {
|
|
1379
|
+
"type": "number"
|
|
1380
|
+
},
|
|
1381
|
+
"status": {
|
|
1382
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
"pushwoosh.accounts.alerts.v1.GetHighestSeverityResponse": {
|
|
1387
|
+
"type": "I",
|
|
1388
|
+
"fields": {
|
|
1389
|
+
"severity": {
|
|
1390
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1369
1394
|
"pushwoosh.rpc_v2.accounts_get_auth_info.GetAuthInfoService": {
|
|
1370
1395
|
"type": "S",
|
|
1371
1396
|
"key": "getAuthInfo",
|
|
@@ -5676,6 +5701,165 @@ export const data = {
|
|
|
5676
5701
|
}
|
|
5677
5702
|
}
|
|
5678
5703
|
},
|
|
5704
|
+
"pushwoosh.rpc_v2.email_categories.EmailCategoriesService": {
|
|
5705
|
+
"type": "S",
|
|
5706
|
+
"key": "emailCategories",
|
|
5707
|
+
"methods": {
|
|
5708
|
+
"Create": {
|
|
5709
|
+
"request": "pushwoosh.rpc_v2.email_categories.CreateRequest",
|
|
5710
|
+
"response": "pushwoosh.rpc_v2.email_categories.CreateResponse",
|
|
5711
|
+
"method": "post",
|
|
5712
|
+
"path": "/api/email_categories"
|
|
5713
|
+
},
|
|
5714
|
+
"Get": {
|
|
5715
|
+
"request": "pushwoosh.rpc_v2.email_categories.GetRequest",
|
|
5716
|
+
"response": "pushwoosh.rpc_v2.email_categories.GetResponse",
|
|
5717
|
+
"method": "get",
|
|
5718
|
+
"path": "/api/email_categories/{code}"
|
|
5719
|
+
},
|
|
5720
|
+
"Update": {
|
|
5721
|
+
"request": "pushwoosh.rpc_v2.email_categories.UpdateRequest",
|
|
5722
|
+
"response": "pushwoosh.rpc_v2.email_categories.UpdateResponse",
|
|
5723
|
+
"method": "put",
|
|
5724
|
+
"path": "/api/email_categories/{code}"
|
|
5725
|
+
},
|
|
5726
|
+
"Delete": {
|
|
5727
|
+
"request": "pushwoosh.rpc_v2.email_categories.DeleteRequest",
|
|
5728
|
+
"response": "pushwoosh.rpc_v2.email_categories.DeleteResponse",
|
|
5729
|
+
"method": "delete",
|
|
5730
|
+
"path": "/api/email_categories/{code}"
|
|
5731
|
+
},
|
|
5732
|
+
"List": {
|
|
5733
|
+
"request": "pushwoosh.rpc_v2.email_categories.ListRequest",
|
|
5734
|
+
"response": "pushwoosh.rpc_v2.email_categories.ListResponse",
|
|
5735
|
+
"method": "get",
|
|
5736
|
+
"path": "/api/email_categories"
|
|
5737
|
+
},
|
|
5738
|
+
"Enable": {
|
|
5739
|
+
"request": "pushwoosh.rpc_v2.email_categories.EnableRequest",
|
|
5740
|
+
"response": "pushwoosh.rpc_v2.email_categories.EnableResponse",
|
|
5741
|
+
"method": "post",
|
|
5742
|
+
"path": "/api/email_categories/enable"
|
|
5743
|
+
}
|
|
5744
|
+
}
|
|
5745
|
+
},
|
|
5746
|
+
"pushwoosh.rpc_v2.email_categories.Category": {
|
|
5747
|
+
"type": "I",
|
|
5748
|
+
"fields": {
|
|
5749
|
+
"code": {
|
|
5750
|
+
"type": "string"
|
|
5751
|
+
},
|
|
5752
|
+
"application": {
|
|
5753
|
+
"type": "string"
|
|
5754
|
+
},
|
|
5755
|
+
"name": {
|
|
5756
|
+
"type": "string"
|
|
5757
|
+
},
|
|
5758
|
+
"description": {
|
|
5759
|
+
"type": "string"
|
|
5760
|
+
}
|
|
5761
|
+
}
|
|
5762
|
+
},
|
|
5763
|
+
"pushwoosh.rpc_v2.email_categories.CreateRequest": {
|
|
5764
|
+
"type": "I",
|
|
5765
|
+
"fields": {
|
|
5766
|
+
"application": {
|
|
5767
|
+
"type": "string"
|
|
5768
|
+
},
|
|
5769
|
+
"name": {
|
|
5770
|
+
"type": "string"
|
|
5771
|
+
},
|
|
5772
|
+
"description": {
|
|
5773
|
+
"type": "string"
|
|
5774
|
+
}
|
|
5775
|
+
}
|
|
5776
|
+
},
|
|
5777
|
+
"pushwoosh.rpc_v2.email_categories.CreateResponse": {
|
|
5778
|
+
"type": "I",
|
|
5779
|
+
"fields": {
|
|
5780
|
+
"category": {
|
|
5781
|
+
"type": "pushwoosh.rpc_v2.email_categories.Category"
|
|
5782
|
+
}
|
|
5783
|
+
}
|
|
5784
|
+
},
|
|
5785
|
+
"pushwoosh.rpc_v2.email_categories.GetRequest": {
|
|
5786
|
+
"type": "I",
|
|
5787
|
+
"fields": {
|
|
5788
|
+
"code": {
|
|
5789
|
+
"type": "string"
|
|
5790
|
+
}
|
|
5791
|
+
}
|
|
5792
|
+
},
|
|
5793
|
+
"pushwoosh.rpc_v2.email_categories.GetResponse": {
|
|
5794
|
+
"type": "I",
|
|
5795
|
+
"fields": {
|
|
5796
|
+
"category": {
|
|
5797
|
+
"type": "pushwoosh.rpc_v2.email_categories.Category"
|
|
5798
|
+
}
|
|
5799
|
+
}
|
|
5800
|
+
},
|
|
5801
|
+
"pushwoosh.rpc_v2.email_categories.UpdateRequest": {
|
|
5802
|
+
"type": "I",
|
|
5803
|
+
"fields": {
|
|
5804
|
+
"code": {
|
|
5805
|
+
"type": "string"
|
|
5806
|
+
},
|
|
5807
|
+
"name": {
|
|
5808
|
+
"type": "string"
|
|
5809
|
+
},
|
|
5810
|
+
"description": {
|
|
5811
|
+
"type": "string"
|
|
5812
|
+
}
|
|
5813
|
+
}
|
|
5814
|
+
},
|
|
5815
|
+
"pushwoosh.rpc_v2.email_categories.UpdateResponse": {
|
|
5816
|
+
"type": "I",
|
|
5817
|
+
"fields": {}
|
|
5818
|
+
},
|
|
5819
|
+
"pushwoosh.rpc_v2.email_categories.DeleteRequest": {
|
|
5820
|
+
"type": "I",
|
|
5821
|
+
"fields": {
|
|
5822
|
+
"code": {
|
|
5823
|
+
"type": "string"
|
|
5824
|
+
}
|
|
5825
|
+
}
|
|
5826
|
+
},
|
|
5827
|
+
"pushwoosh.rpc_v2.email_categories.DeleteResponse": {
|
|
5828
|
+
"type": "I",
|
|
5829
|
+
"fields": {}
|
|
5830
|
+
},
|
|
5831
|
+
"pushwoosh.rpc_v2.email_categories.ListRequest": {
|
|
5832
|
+
"type": "I",
|
|
5833
|
+
"fields": {
|
|
5834
|
+
"application": {
|
|
5835
|
+
"type": "string"
|
|
5836
|
+
}
|
|
5837
|
+
}
|
|
5838
|
+
},
|
|
5839
|
+
"pushwoosh.rpc_v2.email_categories.ListResponse": {
|
|
5840
|
+
"type": "I",
|
|
5841
|
+
"fields": {
|
|
5842
|
+
"categories": {
|
|
5843
|
+
"type": "pushwoosh.rpc_v2.email_categories.Category",
|
|
5844
|
+
"array": true
|
|
5845
|
+
}
|
|
5846
|
+
}
|
|
5847
|
+
},
|
|
5848
|
+
"pushwoosh.rpc_v2.email_categories.EnableRequest": {
|
|
5849
|
+
"type": "I",
|
|
5850
|
+
"fields": {
|
|
5851
|
+
"application": {
|
|
5852
|
+
"type": "string"
|
|
5853
|
+
},
|
|
5854
|
+
"value": {
|
|
5855
|
+
"type": "boolean"
|
|
5856
|
+
}
|
|
5857
|
+
}
|
|
5858
|
+
},
|
|
5859
|
+
"pushwoosh.rpc_v2.email_categories.EnableResponse": {
|
|
5860
|
+
"type": "I",
|
|
5861
|
+
"fields": {}
|
|
5862
|
+
},
|
|
5679
5863
|
"pushwoosh.rpc_v2.accounts.EmailTemplatesService": {
|
|
5680
5864
|
"type": "S",
|
|
5681
5865
|
"key": "emailTemplates",
|
|
@@ -10127,6 +10311,12 @@ export const data = {
|
|
|
10127
10311
|
"response": "pushwoosh.rpc_v2.internal_alerts.UpdateStatusResponse",
|
|
10128
10312
|
"method": "put",
|
|
10129
10313
|
"path": "/api/alerts"
|
|
10314
|
+
},
|
|
10315
|
+
"GetHighestSeverity": {
|
|
10316
|
+
"request": "pushwoosh.rpc_v2.internal_alerts.GetHighestSeverityRequest",
|
|
10317
|
+
"response": "pushwoosh.rpc_v2.internal_alerts.GetHighestSeverityResponse",
|
|
10318
|
+
"method": "get",
|
|
10319
|
+
"path": "/api/alerts/highest-severity"
|
|
10130
10320
|
}
|
|
10131
10321
|
}
|
|
10132
10322
|
},
|
|
@@ -10234,6 +10424,22 @@ export const data = {
|
|
|
10234
10424
|
"type": "I",
|
|
10235
10425
|
"fields": {}
|
|
10236
10426
|
},
|
|
10427
|
+
"pushwoosh.rpc_v2.internal_alerts.GetHighestSeverityRequest": {
|
|
10428
|
+
"type": "I",
|
|
10429
|
+
"fields": {
|
|
10430
|
+
"status": {
|
|
10431
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
10432
|
+
}
|
|
10433
|
+
}
|
|
10434
|
+
},
|
|
10435
|
+
"pushwoosh.rpc_v2.internal_alerts.GetHighestSeverityResponse": {
|
|
10436
|
+
"type": "I",
|
|
10437
|
+
"fields": {
|
|
10438
|
+
"severity": {
|
|
10439
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
10440
|
+
}
|
|
10441
|
+
}
|
|
10442
|
+
},
|
|
10237
10443
|
"pushwoosh.rpc_v2.ios_categories.IOSCategoriesService": {
|
|
10238
10444
|
"type": "S",
|
|
10239
10445
|
"key": "iOSCategories",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface EmailCategoriesService {
|
|
2
|
+
Create(request: CreateRequest): Promise<CreateResponse>;
|
|
3
|
+
Get(request: GetRequest): Promise<GetResponse>;
|
|
4
|
+
Update(request: UpdateRequest): Promise<UpdateResponse>;
|
|
5
|
+
Delete(request: DeleteRequest): Promise<DeleteResponse>;
|
|
6
|
+
List(request: ListRequest): Promise<ListResponse>;
|
|
7
|
+
Enable(request: EnableRequest): Promise<EnableResponse>;
|
|
8
|
+
}
|
|
9
|
+
export type Category = {
|
|
10
|
+
code: string;
|
|
11
|
+
application: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
export type CreateRequest = {
|
|
16
|
+
application?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
};
|
|
20
|
+
export type CreateResponse = {
|
|
21
|
+
category: Category;
|
|
22
|
+
};
|
|
23
|
+
export type GetRequest = {
|
|
24
|
+
code?: string;
|
|
25
|
+
};
|
|
26
|
+
export type GetResponse = {
|
|
27
|
+
category: Category;
|
|
28
|
+
};
|
|
29
|
+
export type UpdateRequest = {
|
|
30
|
+
code?: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
};
|
|
34
|
+
export type UpdateResponse = {};
|
|
35
|
+
export type DeleteRequest = {
|
|
36
|
+
code?: string;
|
|
37
|
+
};
|
|
38
|
+
export type DeleteResponse = {};
|
|
39
|
+
export type ListRequest = {
|
|
40
|
+
application?: string;
|
|
41
|
+
};
|
|
42
|
+
export type ListResponse = {
|
|
43
|
+
categories: Category[];
|
|
44
|
+
};
|
|
45
|
+
export type EnableRequest = {
|
|
46
|
+
application?: string;
|
|
47
|
+
value?: boolean;
|
|
48
|
+
};
|
|
49
|
+
export type EnableResponse = {};
|
package/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { CloudPagesService as pushwoosh_rpc_v2_cloud_pages_CloudPagesService } f
|
|
|
21
21
|
import { CustomerJourneyService as pushwoosh_rpc_v2_customer_journey_CustomerJourneyService } from './customer_journey';
|
|
22
22
|
import { DeeplinksService as pushwoosh_rpc_v2_deeplinks_DeeplinksService } from './deeplinks';
|
|
23
23
|
import { DevicesService as pushwoosh_rpc_v2_devices_DevicesService } from './devices';
|
|
24
|
+
import { EmailCategoriesService as pushwoosh_rpc_v2_email_categories_EmailCategoriesService } from './email_categories';
|
|
24
25
|
import { EmailTemplatesService as pushwoosh_rpc_v2_accounts_EmailTemplatesService } from './accounts';
|
|
25
26
|
import { EmailsConfigurationsService as pushwoosh_rpc_v2_emails_configurations_EmailsConfigurationsService } from './emails_configurations';
|
|
26
27
|
import { EventsService as pushwoosh_rpc_v2_events_EventsService } from './events';
|
|
@@ -78,6 +79,7 @@ export type API = {
|
|
|
78
79
|
customerJourney: pushwoosh_rpc_v2_customer_journey_CustomerJourneyService;
|
|
79
80
|
deeplinks: pushwoosh_rpc_v2_deeplinks_DeeplinksService;
|
|
80
81
|
devices: pushwoosh_rpc_v2_devices_DevicesService;
|
|
82
|
+
emailCategories: pushwoosh_rpc_v2_email_categories_EmailCategoriesService;
|
|
81
83
|
emailTemplates: pushwoosh_rpc_v2_accounts_EmailTemplatesService;
|
|
82
84
|
emailsConfigurations: pushwoosh_rpc_v2_emails_configurations_EmailsConfigurationsService;
|
|
83
85
|
events: pushwoosh_rpc_v2_events_EventsService;
|
package/internal_alerts.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { OrderDirection as pushwoosh_accounts_alerts_v1_OrderDirection } from '.
|
|
|
6
6
|
export interface InternalAlertsService {
|
|
7
7
|
List(request: ListRequest): Promise<ListResponse>;
|
|
8
8
|
UpdateStatus(request: UpdateStatusRequest): Promise<UpdateStatusResponse>;
|
|
9
|
+
GetHighestSeverity(request: GetHighestSeverityRequest): Promise<GetHighestSeverityResponse>;
|
|
9
10
|
}
|
|
10
11
|
export type ListRequest = {
|
|
11
12
|
type?: pushwoosh_accounts_alerts_v1_AlertType;
|
|
@@ -41,3 +42,9 @@ export type UpdateStatusRequest = {
|
|
|
41
42
|
alerts?: UpdateStatusRequest_AlertStatusUpdate[];
|
|
42
43
|
};
|
|
43
44
|
export type UpdateStatusResponse = {};
|
|
45
|
+
export type GetHighestSeverityRequest = {
|
|
46
|
+
status?: pushwoosh_accounts_alerts_v1_AlertStatus;
|
|
47
|
+
};
|
|
48
|
+
export type GetHighestSeverityResponse = {
|
|
49
|
+
severity: pushwoosh_accounts_alerts_v1_AlertSeverity;
|
|
50
|
+
};
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ export interface AlertsService {
|
|
|
2
2
|
List(request: ListRequest): Promise<ListResponse>;
|
|
3
3
|
Send(request: SendRequest): Promise<SendResponse>;
|
|
4
4
|
UpdateStatus(request: UpdateStatusRequest): Promise<UpdateStatusResponse>;
|
|
5
|
+
GetHighestSeverity(request: GetHighestSeverityRequest): Promise<GetHighestSeverityResponse>;
|
|
5
6
|
}
|
|
6
7
|
export type AlertBanner = {
|
|
7
8
|
type: AlertType;
|
|
@@ -60,3 +61,10 @@ export type UpdateStatusRequest = {
|
|
|
60
61
|
};
|
|
61
62
|
export type UpdateStatusResponse = {};
|
|
62
63
|
export type SendResponse = {};
|
|
64
|
+
export type GetHighestSeverityRequest = {
|
|
65
|
+
accountId?: number;
|
|
66
|
+
status?: AlertStatus;
|
|
67
|
+
};
|
|
68
|
+
export type GetHighestSeverityResponse = {
|
|
69
|
+
severity: AlertSeverity;
|
|
70
|
+
};
|