@pushwoosh/rpc-v2-http-api-data 0.1.838 → 0.1.840
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 +187 -3
- package/integrations.d.ts +39 -1
- package/package.json +1 -1
- package/pushwoosh_accounts_alerts_v1.d.ts +13 -2
package/data.js
CHANGED
|
@@ -1593,6 +1593,12 @@ export const data = {
|
|
|
1593
1593
|
"response": "pushwoosh.accounts.alerts.v1.GetHighestSeverityResponse",
|
|
1594
1594
|
"method": "get",
|
|
1595
1595
|
"path": "/api/v1/get-highest-severity"
|
|
1596
|
+
},
|
|
1597
|
+
"Delete": {
|
|
1598
|
+
"request": "pushwoosh.accounts.alerts.v1.DeleteRequest",
|
|
1599
|
+
"response": "pushwoosh.accounts.alerts.v1.DeleteResponse",
|
|
1600
|
+
"method": "delete",
|
|
1601
|
+
"path": "/api/v1/delete"
|
|
1596
1602
|
}
|
|
1597
1603
|
}
|
|
1598
1604
|
},
|
|
@@ -1609,6 +1615,10 @@ export const data = {
|
|
|
1609
1615
|
"actionLink": {
|
|
1610
1616
|
"type": "string",
|
|
1611
1617
|
"optional": true
|
|
1618
|
+
},
|
|
1619
|
+
"actionLinkLabel": {
|
|
1620
|
+
"type": "string",
|
|
1621
|
+
"optional": true
|
|
1612
1622
|
}
|
|
1613
1623
|
},
|
|
1614
1624
|
"oneofs": {}
|
|
@@ -1617,10 +1627,15 @@ export const data = {
|
|
|
1617
1627
|
"type": "I",
|
|
1618
1628
|
"fields": {
|
|
1619
1629
|
"to": {
|
|
1620
|
-
"type": "string"
|
|
1630
|
+
"type": "string",
|
|
1631
|
+
"array": true
|
|
1621
1632
|
},
|
|
1622
1633
|
"template": {
|
|
1623
1634
|
"type": "string"
|
|
1635
|
+
},
|
|
1636
|
+
"placeholders": {
|
|
1637
|
+
"type": "any",
|
|
1638
|
+
"mapKeyType": "string"
|
|
1624
1639
|
}
|
|
1625
1640
|
}
|
|
1626
1641
|
},
|
|
@@ -1629,7 +1644,8 @@ export const data = {
|
|
|
1629
1644
|
"values": [
|
|
1630
1645
|
"ALERT_TYPE_UNSPECIFIED",
|
|
1631
1646
|
"ALERT_TYPE_BLOCKING",
|
|
1632
|
-
"ALERT_TYPE_DISMISSABLE"
|
|
1647
|
+
"ALERT_TYPE_DISMISSABLE",
|
|
1648
|
+
"ALERT_TYPE_TOP_BANNER"
|
|
1633
1649
|
]
|
|
1634
1650
|
},
|
|
1635
1651
|
"pushwoosh.accounts.alerts.v1.AlertStatus": {
|
|
@@ -1736,6 +1752,10 @@ export const data = {
|
|
|
1736
1752
|
"actionLink": {
|
|
1737
1753
|
"type": "string",
|
|
1738
1754
|
"optional": true
|
|
1755
|
+
},
|
|
1756
|
+
"actionLinkLabel": {
|
|
1757
|
+
"type": "string",
|
|
1758
|
+
"optional": true
|
|
1739
1759
|
}
|
|
1740
1760
|
},
|
|
1741
1761
|
"oneofs": {}
|
|
@@ -1787,6 +1807,10 @@ export const data = {
|
|
|
1787
1807
|
"meta": {
|
|
1788
1808
|
"type": "object",
|
|
1789
1809
|
"optional": true
|
|
1810
|
+
},
|
|
1811
|
+
"uniqueKey": {
|
|
1812
|
+
"type": "string",
|
|
1813
|
+
"optional": true
|
|
1790
1814
|
}
|
|
1791
1815
|
},
|
|
1792
1816
|
"oneofs": {}
|
|
@@ -1838,6 +1862,26 @@ export const data = {
|
|
|
1838
1862
|
}
|
|
1839
1863
|
}
|
|
1840
1864
|
},
|
|
1865
|
+
"pushwoosh.accounts.alerts.v1.DeleteRequest": {
|
|
1866
|
+
"type": "I",
|
|
1867
|
+
"fields": {
|
|
1868
|
+
"ids": {
|
|
1869
|
+
"type": "number",
|
|
1870
|
+
"array": true
|
|
1871
|
+
},
|
|
1872
|
+
"uniqueKeys": {
|
|
1873
|
+
"type": "string",
|
|
1874
|
+
"array": true
|
|
1875
|
+
},
|
|
1876
|
+
"accountId": {
|
|
1877
|
+
"type": "number"
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
},
|
|
1881
|
+
"pushwoosh.accounts.alerts.v1.DeleteResponse": {
|
|
1882
|
+
"type": "I",
|
|
1883
|
+
"fields": {}
|
|
1884
|
+
},
|
|
1841
1885
|
"pushwoosh.rpc_v2.accounts_get_auth_info.GetAuthInfoService": {
|
|
1842
1886
|
"type": "S",
|
|
1843
1887
|
"key": "getAuthInfo",
|
|
@@ -10618,6 +10662,42 @@ export const data = {
|
|
|
10618
10662
|
"response": "pushwoosh.rpc_v2.integrations.DeleteStripeConfigurationResponse",
|
|
10619
10663
|
"method": "delete",
|
|
10620
10664
|
"path": "/api/integrations/configurations/stripe"
|
|
10665
|
+
},
|
|
10666
|
+
"GetMetaAuthURL": {
|
|
10667
|
+
"request": "pushwoosh.rpc_v2.integrations.GetMetaAuthURLRequest",
|
|
10668
|
+
"response": "pushwoosh.rpc_v2.integrations.GetMetaAuthURLResponse",
|
|
10669
|
+
"method": "get",
|
|
10670
|
+
"path": "/api/integrations/meta/auth"
|
|
10671
|
+
},
|
|
10672
|
+
"HandleMetaAuthCallback": {
|
|
10673
|
+
"request": "pushwoosh.rpc_v2.integrations.HandleMetaAuthCallbackRequest",
|
|
10674
|
+
"response": "pushwoosh.rpc_v2.integrations.HandleMetaAuthCallbackResponse",
|
|
10675
|
+
"method": "post",
|
|
10676
|
+
"path": "/api/integrations/meta/auth/callback"
|
|
10677
|
+
},
|
|
10678
|
+
"GetMetaConfiguration": {
|
|
10679
|
+
"request": "pushwoosh.rpc_v2.integrations.GetMetaConfigurationRequest",
|
|
10680
|
+
"response": "pushwoosh.rpc_v2.integrations.GetMetaConfigurationResponse",
|
|
10681
|
+
"method": "get",
|
|
10682
|
+
"path": "/api/integrations/configurations/meta"
|
|
10683
|
+
},
|
|
10684
|
+
"DeleteMetaConfiguration": {
|
|
10685
|
+
"request": "pushwoosh.rpc_v2.integrations.DeleteMetaConfigurationRequest",
|
|
10686
|
+
"response": "pushwoosh.rpc_v2.integrations.DeleteMetaConfigurationResponse",
|
|
10687
|
+
"method": "delete",
|
|
10688
|
+
"path": "/api/integrations/configurations/meta"
|
|
10689
|
+
},
|
|
10690
|
+
"DisconnectMetaAdAccount": {
|
|
10691
|
+
"request": "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountRequest",
|
|
10692
|
+
"response": "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountResponse",
|
|
10693
|
+
"method": "post",
|
|
10694
|
+
"path": "/api/integrations/meta/ad-accounts/disconnect"
|
|
10695
|
+
},
|
|
10696
|
+
"RefreshMetaConnection": {
|
|
10697
|
+
"request": "pushwoosh.rpc_v2.integrations.RefreshMetaConnectionRequest",
|
|
10698
|
+
"response": "pushwoosh.rpc_v2.integrations.RefreshMetaConnectionResponse",
|
|
10699
|
+
"method": "post",
|
|
10700
|
+
"path": "/api/integrations/meta/refresh"
|
|
10621
10701
|
}
|
|
10622
10702
|
}
|
|
10623
10703
|
},
|
|
@@ -10630,7 +10710,8 @@ export const data = {
|
|
|
10630
10710
|
"WEBHOOK",
|
|
10631
10711
|
"HUBSPOT",
|
|
10632
10712
|
"SHOPIFY",
|
|
10633
|
-
"STRIPE"
|
|
10713
|
+
"STRIPE",
|
|
10714
|
+
"META"
|
|
10634
10715
|
]
|
|
10635
10716
|
},
|
|
10636
10717
|
"pushwoosh.rpc_v2.integrations.ImportSegmentPianoRequest": {
|
|
@@ -11016,6 +11097,109 @@ export const data = {
|
|
|
11016
11097
|
"type": "I",
|
|
11017
11098
|
"fields": {}
|
|
11018
11099
|
},
|
|
11100
|
+
"pushwoosh.rpc_v2.integrations.GetMetaAuthURLRequest": {
|
|
11101
|
+
"type": "I",
|
|
11102
|
+
"fields": {
|
|
11103
|
+
"redirectUri": {
|
|
11104
|
+
"type": "string"
|
|
11105
|
+
}
|
|
11106
|
+
}
|
|
11107
|
+
},
|
|
11108
|
+
"pushwoosh.rpc_v2.integrations.GetMetaAuthURLResponse": {
|
|
11109
|
+
"type": "I",
|
|
11110
|
+
"fields": {
|
|
11111
|
+
"authUrl": {
|
|
11112
|
+
"type": "string"
|
|
11113
|
+
}
|
|
11114
|
+
}
|
|
11115
|
+
},
|
|
11116
|
+
"pushwoosh.rpc_v2.integrations.HandleMetaAuthCallbackRequest": {
|
|
11117
|
+
"type": "I",
|
|
11118
|
+
"fields": {
|
|
11119
|
+
"code": {
|
|
11120
|
+
"type": "string"
|
|
11121
|
+
},
|
|
11122
|
+
"redirectUri": {
|
|
11123
|
+
"type": "string"
|
|
11124
|
+
},
|
|
11125
|
+
"applicationCode": {
|
|
11126
|
+
"type": "string"
|
|
11127
|
+
}
|
|
11128
|
+
}
|
|
11129
|
+
},
|
|
11130
|
+
"pushwoosh.rpc_v2.integrations.HandleMetaAuthCallbackResponse": {
|
|
11131
|
+
"type": "I",
|
|
11132
|
+
"fields": {}
|
|
11133
|
+
},
|
|
11134
|
+
"pushwoosh.rpc_v2.integrations.GetMetaConfigurationRequest": {
|
|
11135
|
+
"type": "I",
|
|
11136
|
+
"fields": {}
|
|
11137
|
+
},
|
|
11138
|
+
"pushwoosh.rpc_v2.integrations.MetaAdAccountStatus": {
|
|
11139
|
+
"type": "E",
|
|
11140
|
+
"values": [
|
|
11141
|
+
"META_AD_ACCOUNT_STATUS_UNSPECIFIED",
|
|
11142
|
+
"META_AD_ACCOUNT_STATUS_CONNECTED",
|
|
11143
|
+
"META_AD_ACCOUNT_STATUS_DISCONNECTED",
|
|
11144
|
+
"META_AD_ACCOUNT_STATUS_PENDING",
|
|
11145
|
+
"META_AD_ACCOUNT_STATUS_DELETED"
|
|
11146
|
+
]
|
|
11147
|
+
},
|
|
11148
|
+
"pushwoosh.rpc_v2.integrations.GetMetaConfigurationResponse.MetaAdAccount": {
|
|
11149
|
+
"type": "I",
|
|
11150
|
+
"fields": {
|
|
11151
|
+
"id": {
|
|
11152
|
+
"type": "string"
|
|
11153
|
+
},
|
|
11154
|
+
"name": {
|
|
11155
|
+
"type": "string"
|
|
11156
|
+
},
|
|
11157
|
+
"status": {
|
|
11158
|
+
"type": "pushwoosh.rpc_v2.integrations.MetaAdAccountStatus"
|
|
11159
|
+
}
|
|
11160
|
+
}
|
|
11161
|
+
},
|
|
11162
|
+
"pushwoosh.rpc_v2.integrations.GetMetaConfigurationResponse": {
|
|
11163
|
+
"type": "I",
|
|
11164
|
+
"fields": {
|
|
11165
|
+
"adAccounts": {
|
|
11166
|
+
"type": "pushwoosh.rpc_v2.integrations.GetMetaConfigurationResponse.MetaAdAccount",
|
|
11167
|
+
"array": true
|
|
11168
|
+
}
|
|
11169
|
+
}
|
|
11170
|
+
},
|
|
11171
|
+
"pushwoosh.rpc_v2.integrations.DeleteMetaConfigurationRequest": {
|
|
11172
|
+
"type": "I",
|
|
11173
|
+
"fields": {}
|
|
11174
|
+
},
|
|
11175
|
+
"pushwoosh.rpc_v2.integrations.DeleteMetaConfigurationResponse": {
|
|
11176
|
+
"type": "I",
|
|
11177
|
+
"fields": {}
|
|
11178
|
+
},
|
|
11179
|
+
"pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountRequest": {
|
|
11180
|
+
"type": "I",
|
|
11181
|
+
"fields": {
|
|
11182
|
+
"adAccountId": {
|
|
11183
|
+
"type": "string"
|
|
11184
|
+
}
|
|
11185
|
+
}
|
|
11186
|
+
},
|
|
11187
|
+
"pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountResponse": {
|
|
11188
|
+
"type": "I",
|
|
11189
|
+
"fields": {}
|
|
11190
|
+
},
|
|
11191
|
+
"pushwoosh.rpc_v2.integrations.RefreshMetaConnectionRequest": {
|
|
11192
|
+
"type": "I",
|
|
11193
|
+
"fields": {
|
|
11194
|
+
"adAccountId": {
|
|
11195
|
+
"type": "string"
|
|
11196
|
+
}
|
|
11197
|
+
}
|
|
11198
|
+
},
|
|
11199
|
+
"pushwoosh.rpc_v2.integrations.RefreshMetaConnectionResponse": {
|
|
11200
|
+
"type": "I",
|
|
11201
|
+
"fields": {}
|
|
11202
|
+
},
|
|
11019
11203
|
"pushwoosh.rpc_v2.internal_alerts.InternalAlertsService": {
|
|
11020
11204
|
"type": "S",
|
|
11021
11205
|
"key": "internalAlerts",
|
package/integrations.d.ts
CHANGED
|
@@ -13,8 +13,14 @@ export interface IntegrationsService {
|
|
|
13
13
|
HandleStripeAuthCallback(request: HandleStripeAuthCallbackRequest): Promise<HandleStripeAuthCallbackResponse>;
|
|
14
14
|
GetStripeConfiguration(request: GetStripeConfigurationRequest): Promise<GetStripeConfigurationResponse>;
|
|
15
15
|
DeleteStripeConfiguration(request: DeleteStripeConfigurationRequest): Promise<DeleteStripeConfigurationResponse>;
|
|
16
|
+
GetMetaAuthURL(request: GetMetaAuthURLRequest): Promise<GetMetaAuthURLResponse>;
|
|
17
|
+
HandleMetaAuthCallback(request: HandleMetaAuthCallbackRequest): Promise<HandleMetaAuthCallbackResponse>;
|
|
18
|
+
GetMetaConfiguration(request: GetMetaConfigurationRequest): Promise<GetMetaConfigurationResponse>;
|
|
19
|
+
DeleteMetaConfiguration(request: DeleteMetaConfigurationRequest): Promise<DeleteMetaConfigurationResponse>;
|
|
20
|
+
DisconnectMetaAdAccount(request: DisconnectMetaAdAccountRequest): Promise<DisconnectMetaAdAccountResponse>;
|
|
21
|
+
RefreshMetaConnection(request: RefreshMetaConnectionRequest): Promise<RefreshMetaConnectionResponse>;
|
|
16
22
|
}
|
|
17
|
-
export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE';
|
|
23
|
+
export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META';
|
|
18
24
|
export type ImportSegmentPianoRequest = {
|
|
19
25
|
application?: string;
|
|
20
26
|
segmentKey?: string;
|
|
@@ -142,3 +148,35 @@ export type GetStripeConfigurationResponse = {
|
|
|
142
148
|
};
|
|
143
149
|
export type DeleteStripeConfigurationRequest = {};
|
|
144
150
|
export type DeleteStripeConfigurationResponse = {};
|
|
151
|
+
export type GetMetaAuthURLRequest = {
|
|
152
|
+
redirectUri?: string;
|
|
153
|
+
};
|
|
154
|
+
export type GetMetaAuthURLResponse = {
|
|
155
|
+
authUrl: string;
|
|
156
|
+
};
|
|
157
|
+
export type HandleMetaAuthCallbackRequest = {
|
|
158
|
+
code?: string;
|
|
159
|
+
redirectUri?: string;
|
|
160
|
+
applicationCode?: string;
|
|
161
|
+
};
|
|
162
|
+
export type HandleMetaAuthCallbackResponse = {};
|
|
163
|
+
export type GetMetaConfigurationRequest = {};
|
|
164
|
+
export type MetaAdAccountStatus = 'META_AD_ACCOUNT_STATUS_UNSPECIFIED' | 'META_AD_ACCOUNT_STATUS_CONNECTED' | 'META_AD_ACCOUNT_STATUS_DISCONNECTED' | 'META_AD_ACCOUNT_STATUS_PENDING' | 'META_AD_ACCOUNT_STATUS_DELETED';
|
|
165
|
+
export type GetMetaConfigurationResponse_MetaAdAccount = {
|
|
166
|
+
id: string;
|
|
167
|
+
name: string;
|
|
168
|
+
status: MetaAdAccountStatus;
|
|
169
|
+
};
|
|
170
|
+
export type GetMetaConfigurationResponse = {
|
|
171
|
+
adAccounts: GetMetaConfigurationResponse_MetaAdAccount[];
|
|
172
|
+
};
|
|
173
|
+
export type DeleteMetaConfigurationRequest = {};
|
|
174
|
+
export type DeleteMetaConfigurationResponse = {};
|
|
175
|
+
export type DisconnectMetaAdAccountRequest = {
|
|
176
|
+
adAccountId?: string;
|
|
177
|
+
};
|
|
178
|
+
export type DisconnectMetaAdAccountResponse = {};
|
|
179
|
+
export type RefreshMetaConnectionRequest = {
|
|
180
|
+
adAccountId?: string;
|
|
181
|
+
};
|
|
182
|
+
export type RefreshMetaConnectionResponse = {};
|
package/package.json
CHANGED
|
@@ -3,17 +3,20 @@ export interface AlertsService {
|
|
|
3
3
|
Send(request: SendRequest): Promise<SendResponse>;
|
|
4
4
|
UpdateStatus(request: UpdateStatusRequest): Promise<UpdateStatusResponse>;
|
|
5
5
|
GetHighestSeverity(request: GetHighestSeverityRequest): Promise<GetHighestSeverityResponse>;
|
|
6
|
+
Delete(request: DeleteRequest): Promise<DeleteResponse>;
|
|
6
7
|
}
|
|
7
8
|
export type AlertBanner = {
|
|
8
9
|
type: AlertType;
|
|
9
10
|
content?: string;
|
|
10
11
|
actionLink?: string;
|
|
12
|
+
actionLinkLabel?: string;
|
|
11
13
|
};
|
|
12
14
|
export type AlertEmail = {
|
|
13
|
-
to: string;
|
|
15
|
+
to: string[];
|
|
14
16
|
template: string;
|
|
17
|
+
placeholders: Record<string, any>;
|
|
15
18
|
};
|
|
16
|
-
export type AlertType = 'ALERT_TYPE_UNSPECIFIED' | 'ALERT_TYPE_BLOCKING' | 'ALERT_TYPE_DISMISSABLE';
|
|
19
|
+
export type AlertType = 'ALERT_TYPE_UNSPECIFIED' | 'ALERT_TYPE_BLOCKING' | 'ALERT_TYPE_DISMISSABLE' | 'ALERT_TYPE_TOP_BANNER';
|
|
17
20
|
export type AlertStatus = 'ALERT_STATUS_UNSPECIFIED' | 'ALERT_STATUS_READ' | 'ALERT_STATUS_UNREAD';
|
|
18
21
|
export type AlertSeverity = 'ALERT_SEVERITY_UNSPECIFIED' | 'ALERT_SEVERITY_INFO' | 'ALERT_SEVERITY_WARNING' | 'ALERT_SEVERITY_CRITICAL';
|
|
19
22
|
export type OrderBy = 'ORDER_BY_CREATED' | 'ORDER_BY_SEVERITY';
|
|
@@ -41,6 +44,7 @@ export type ListResponse_Alert = {
|
|
|
41
44
|
applicationId?: number;
|
|
42
45
|
meta?: object;
|
|
43
46
|
actionLink?: string;
|
|
47
|
+
actionLinkLabel?: string;
|
|
44
48
|
};
|
|
45
49
|
export type ListResponse = {
|
|
46
50
|
alerts: ListResponse_Alert[];
|
|
@@ -57,6 +61,7 @@ export type SendRequest = {
|
|
|
57
61
|
email?: AlertEmail;
|
|
58
62
|
applicationId?: number;
|
|
59
63
|
meta?: object;
|
|
64
|
+
uniqueKey?: string;
|
|
60
65
|
};
|
|
61
66
|
export type UpdateStatusRequest_Alert = {
|
|
62
67
|
id: number;
|
|
@@ -74,3 +79,9 @@ export type GetHighestSeverityRequest = {
|
|
|
74
79
|
export type GetHighestSeverityResponse = {
|
|
75
80
|
severity: AlertSeverity;
|
|
76
81
|
};
|
|
82
|
+
export type DeleteRequest = {
|
|
83
|
+
ids?: number[];
|
|
84
|
+
uniqueKeys?: string[];
|
|
85
|
+
accountId?: number;
|
|
86
|
+
};
|
|
87
|
+
export type DeleteResponse = {};
|