@pushwoosh/rpc-v2-http-api-data 0.1.503 → 0.1.505

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.
Files changed (3) hide show
  1. package/api_tokens.d.ts +26 -0
  2. package/data.js +76 -0
  3. package/package.json +1 -1
package/api_tokens.d.ts CHANGED
@@ -5,26 +5,32 @@ export interface ApiTokensService {
5
5
  Update(request: UpdateApiTokenRequest): Promise<UpdateApiTokenResponse>;
6
6
  Delete(request: DeleteApiTokenRequest): Promise<DeleteApiTokenResponse>;
7
7
  GrantRightOnApplication(request: GrantRightOnApplicationRequest): Promise<GrantRightOnApplicationResponse>;
8
+ GrantDeviceDataModificationRightOnApplication(request: GrantDeviceDataModificationRightOnApplicationRequest): Promise<GrantDeviceDataModificationRightOnApplicationResponse>;
8
9
  GrantMessageRightAll(request: GrantMessageRightAllRequest): Promise<GrantMessageRightAllResponse>;
10
+ GrantDeviceDataModificationRightAll(request: GrantDeviceDataModificationRightAllRequest): Promise<GrantDeviceDataModificationRightAllResponse>;
9
11
  }
10
12
  export type Restrictions = {
11
13
  messageApplications: string[];
12
14
  messageGroups: string[];
15
+ deviceDataApplications: string[];
13
16
  modifyAccount: boolean;
14
17
  modifyApplication: boolean;
15
18
  modifyMessage: boolean;
16
19
  modifyTag: boolean;
17
20
  applicationsSelectAll: boolean;
18
21
  groupsSelectAll: boolean;
22
+ deviceDataSelectAll: boolean;
19
23
  };
20
24
  export type CreateApiTokenRequest = {
21
25
  name?: string;
26
+ type?: string;
22
27
  restrictions?: Restrictions;
23
28
  };
24
29
  export type CreateApiTokenResponse = {
25
30
  code: string;
26
31
  name: string;
27
32
  value: string;
33
+ type: string;
28
34
  restrictions: Restrictions;
29
35
  };
30
36
  export type GetApiTokenRequest = {
@@ -34,6 +40,7 @@ export type GetApiTokenResponse = {
34
40
  code: string;
35
41
  name: string;
36
42
  value: string;
43
+ type: string;
37
44
  restrictions: Restrictions;
38
45
  };
39
46
  export type ListApiTokensRequest_OrderBy = 'NAME' | 'CREATED';
@@ -49,6 +56,7 @@ export type ListApiTokensResponse_ApiToken = {
49
56
  code: string;
50
57
  name: string;
51
58
  value: string;
59
+ type: string;
52
60
  };
53
61
  export type ListApiTokensResponse = {
54
62
  apiTokens: ListApiTokensResponse_ApiToken[];
@@ -65,6 +73,7 @@ export type UpdateApiTokenResponse = {
65
73
  code: string;
66
74
  name: string;
67
75
  value: string;
76
+ type: string;
68
77
  restrictions: Restrictions;
69
78
  };
70
79
  export type DeleteApiTokenRequest = {
@@ -110,8 +119,25 @@ export type GrantRightOnApplicationRequest = {
110
119
  kind: GrantRightOnApplicationRequest_kind;
111
120
  };
112
121
  export type GrantRightOnApplicationResponse = {};
122
+ export type GrantDeviceDataModificationRightOnApplicationRequest_DeviceDataApplications = {
123
+ applicationCode: string;
124
+ };
125
+ export type GrantDeviceDataModificationRightOnApplicationRequest_kind_deviceDataApplications = {
126
+ type: 'deviceDataApplications';
127
+ data: GrantDeviceDataModificationRightOnApplicationRequest_DeviceDataApplications;
128
+ };
129
+ export type GrantDeviceDataModificationRightOnApplicationRequest_kind = GrantDeviceDataModificationRightOnApplicationRequest_kind_deviceDataApplications;
130
+ export type GrantDeviceDataModificationRightOnApplicationRequest = {
131
+ kind: GrantDeviceDataModificationRightOnApplicationRequest_kind;
132
+ };
133
+ export type GrantDeviceDataModificationRightOnApplicationResponse = {};
113
134
  export type GrantMessageRightAllRequest = {
114
135
  code?: string;
115
136
  selectAll?: boolean;
116
137
  };
117
138
  export type GrantMessageRightAllResponse = {};
139
+ export type GrantDeviceDataModificationRightAllRequest = {
140
+ code?: string;
141
+ selectAll?: boolean;
142
+ };
143
+ export type GrantDeviceDataModificationRightAllResponse = {};
package/data.js CHANGED
@@ -1371,11 +1371,23 @@ export const data = {
1371
1371
  "method": "post",
1372
1372
  "path": "/api/api_tokens/grant_right_on_application"
1373
1373
  },
1374
+ "GrantDeviceDataModificationRightOnApplication": {
1375
+ "request": "pushwoosh.rpc_v2.api_tokens.GrantDeviceDataModificationRightOnApplicationRequest",
1376
+ "response": "pushwoosh.rpc_v2.api_tokens.GrantDeviceDataModificationRightOnApplicationResponse",
1377
+ "method": "post",
1378
+ "path": "/api/api_tokens/grant_device_data_modification_right_on_application"
1379
+ },
1374
1380
  "GrantMessageRightAll": {
1375
1381
  "request": "pushwoosh.rpc_v2.api_tokens.GrantMessageRightAllRequest",
1376
1382
  "response": "pushwoosh.rpc_v2.api_tokens.GrantMessageRightAllResponse",
1377
1383
  "method": "post",
1378
1384
  "path": "/api/api_tokens/grant_message_right_all"
1385
+ },
1386
+ "GrantDeviceDataModificationRightAll": {
1387
+ "request": "pushwoosh.rpc_v2.api_tokens.GrantDeviceDataModificationRightAllRequest",
1388
+ "response": "pushwoosh.rpc_v2.api_tokens.GrantDeviceDataModificationRightAllResponse",
1389
+ "method": "post",
1390
+ "path": "/api/api_tokens/grant_device_data_modification_right_all"
1379
1391
  }
1380
1392
  }
1381
1393
  },
@@ -1390,6 +1402,10 @@ export const data = {
1390
1402
  "type": "string",
1391
1403
  "array": true
1392
1404
  },
1405
+ "deviceDataApplications": {
1406
+ "type": "string",
1407
+ "array": true
1408
+ },
1393
1409
  "modifyAccount": {
1394
1410
  "type": "boolean"
1395
1411
  },
@@ -1407,6 +1423,9 @@ export const data = {
1407
1423
  },
1408
1424
  "groupsSelectAll": {
1409
1425
  "type": "boolean"
1426
+ },
1427
+ "deviceDataSelectAll": {
1428
+ "type": "boolean"
1410
1429
  }
1411
1430
  }
1412
1431
  },
@@ -1416,6 +1435,9 @@ export const data = {
1416
1435
  "name": {
1417
1436
  "type": "string"
1418
1437
  },
1438
+ "type": {
1439
+ "type": "string"
1440
+ },
1419
1441
  "restrictions": {
1420
1442
  "type": "pushwoosh.rpc_v2.api_tokens.Restrictions"
1421
1443
  }
@@ -1433,6 +1455,9 @@ export const data = {
1433
1455
  "value": {
1434
1456
  "type": "string"
1435
1457
  },
1458
+ "type": {
1459
+ "type": "string"
1460
+ },
1436
1461
  "restrictions": {
1437
1462
  "type": "pushwoosh.rpc_v2.api_tokens.Restrictions"
1438
1463
  }
@@ -1458,6 +1483,9 @@ export const data = {
1458
1483
  "value": {
1459
1484
  "type": "string"
1460
1485
  },
1486
+ "type": {
1487
+ "type": "string"
1488
+ },
1461
1489
  "restrictions": {
1462
1490
  "type": "pushwoosh.rpc_v2.api_tokens.Restrictions"
1463
1491
  }
@@ -1508,6 +1536,9 @@ export const data = {
1508
1536
  },
1509
1537
  "value": {
1510
1538
  "type": "string"
1539
+ },
1540
+ "type": {
1541
+ "type": "string"
1511
1542
  }
1512
1543
  }
1513
1544
  },
@@ -1555,6 +1586,9 @@ export const data = {
1555
1586
  "value": {
1556
1587
  "type": "string"
1557
1588
  },
1589
+ "type": {
1590
+ "type": "string"
1591
+ },
1558
1592
  "restrictions": {
1559
1593
  "type": "pushwoosh.rpc_v2.api_tokens.Restrictions"
1560
1594
  }
@@ -1643,6 +1677,33 @@ export const data = {
1643
1677
  "type": "I",
1644
1678
  "fields": {}
1645
1679
  },
1680
+ "pushwoosh.rpc_v2.api_tokens.GrantDeviceDataModificationRightOnApplicationRequest.DeviceDataApplications": {
1681
+ "type": "I",
1682
+ "fields": {
1683
+ "applicationCode": {
1684
+ "type": "string"
1685
+ }
1686
+ }
1687
+ },
1688
+ "pushwoosh.rpc_v2.api_tokens.GrantDeviceDataModificationRightOnApplicationRequest": {
1689
+ "type": "I",
1690
+ "fields": {
1691
+ "deviceDataApplications": {
1692
+ "type": "pushwoosh.rpc_v2.api_tokens.GrantDeviceDataModificationRightOnApplicationRequest.DeviceDataApplications"
1693
+ }
1694
+ },
1695
+ "oneofs": {
1696
+ "kind": {
1697
+ "oneof": [
1698
+ "deviceDataApplications"
1699
+ ]
1700
+ }
1701
+ }
1702
+ },
1703
+ "pushwoosh.rpc_v2.api_tokens.GrantDeviceDataModificationRightOnApplicationResponse": {
1704
+ "type": "I",
1705
+ "fields": {}
1706
+ },
1646
1707
  "pushwoosh.rpc_v2.api_tokens.GrantMessageRightAllRequest": {
1647
1708
  "type": "I",
1648
1709
  "fields": {
@@ -1658,6 +1719,21 @@ export const data = {
1658
1719
  "type": "I",
1659
1720
  "fields": {}
1660
1721
  },
1722
+ "pushwoosh.rpc_v2.api_tokens.GrantDeviceDataModificationRightAllRequest": {
1723
+ "type": "I",
1724
+ "fields": {
1725
+ "code": {
1726
+ "type": "string"
1727
+ },
1728
+ "selectAll": {
1729
+ "type": "boolean"
1730
+ }
1731
+ }
1732
+ },
1733
+ "pushwoosh.rpc_v2.api_tokens.GrantDeviceDataModificationRightAllResponse": {
1734
+ "type": "I",
1735
+ "fields": {}
1736
+ },
1661
1737
  "pushwoosh.rpc_v2.applications.ApplicationsService": {
1662
1738
  "type": "S",
1663
1739
  "key": "applications",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.503",
3
+ "version": "0.1.505",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",