@pushwoosh/rpc-v2-http-api-data 0.1.838 → 0.1.839

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 CHANGED
@@ -10618,6 +10618,42 @@ export const data = {
10618
10618
  "response": "pushwoosh.rpc_v2.integrations.DeleteStripeConfigurationResponse",
10619
10619
  "method": "delete",
10620
10620
  "path": "/api/integrations/configurations/stripe"
10621
+ },
10622
+ "GetMetaAuthURL": {
10623
+ "request": "pushwoosh.rpc_v2.integrations.GetMetaAuthURLRequest",
10624
+ "response": "pushwoosh.rpc_v2.integrations.GetMetaAuthURLResponse",
10625
+ "method": "get",
10626
+ "path": "/api/integrations/meta/auth"
10627
+ },
10628
+ "HandleMetaAuthCallback": {
10629
+ "request": "pushwoosh.rpc_v2.integrations.HandleMetaAuthCallbackRequest",
10630
+ "response": "pushwoosh.rpc_v2.integrations.HandleMetaAuthCallbackResponse",
10631
+ "method": "post",
10632
+ "path": "/api/integrations/meta/auth/callback"
10633
+ },
10634
+ "GetMetaConfiguration": {
10635
+ "request": "pushwoosh.rpc_v2.integrations.GetMetaConfigurationRequest",
10636
+ "response": "pushwoosh.rpc_v2.integrations.GetMetaConfigurationResponse",
10637
+ "method": "get",
10638
+ "path": "/api/integrations/configurations/meta"
10639
+ },
10640
+ "DeleteMetaConfiguration": {
10641
+ "request": "pushwoosh.rpc_v2.integrations.DeleteMetaConfigurationRequest",
10642
+ "response": "pushwoosh.rpc_v2.integrations.DeleteMetaConfigurationResponse",
10643
+ "method": "delete",
10644
+ "path": "/api/integrations/configurations/meta"
10645
+ },
10646
+ "DisconnectMetaAdAccount": {
10647
+ "request": "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountRequest",
10648
+ "response": "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountResponse",
10649
+ "method": "post",
10650
+ "path": "/api/integrations/meta/ad-accounts/disconnect"
10651
+ },
10652
+ "RefreshMetaConnection": {
10653
+ "request": "pushwoosh.rpc_v2.integrations.RefreshMetaConnectionRequest",
10654
+ "response": "pushwoosh.rpc_v2.integrations.RefreshMetaConnectionResponse",
10655
+ "method": "post",
10656
+ "path": "/api/integrations/meta/refresh"
10621
10657
  }
10622
10658
  }
10623
10659
  },
@@ -10630,7 +10666,8 @@ export const data = {
10630
10666
  "WEBHOOK",
10631
10667
  "HUBSPOT",
10632
10668
  "SHOPIFY",
10633
- "STRIPE"
10669
+ "STRIPE",
10670
+ "META"
10634
10671
  ]
10635
10672
  },
10636
10673
  "pushwoosh.rpc_v2.integrations.ImportSegmentPianoRequest": {
@@ -11016,6 +11053,109 @@ export const data = {
11016
11053
  "type": "I",
11017
11054
  "fields": {}
11018
11055
  },
11056
+ "pushwoosh.rpc_v2.integrations.GetMetaAuthURLRequest": {
11057
+ "type": "I",
11058
+ "fields": {
11059
+ "redirectUri": {
11060
+ "type": "string"
11061
+ }
11062
+ }
11063
+ },
11064
+ "pushwoosh.rpc_v2.integrations.GetMetaAuthURLResponse": {
11065
+ "type": "I",
11066
+ "fields": {
11067
+ "authUrl": {
11068
+ "type": "string"
11069
+ }
11070
+ }
11071
+ },
11072
+ "pushwoosh.rpc_v2.integrations.HandleMetaAuthCallbackRequest": {
11073
+ "type": "I",
11074
+ "fields": {
11075
+ "code": {
11076
+ "type": "string"
11077
+ },
11078
+ "redirectUri": {
11079
+ "type": "string"
11080
+ },
11081
+ "applicationCode": {
11082
+ "type": "string"
11083
+ }
11084
+ }
11085
+ },
11086
+ "pushwoosh.rpc_v2.integrations.HandleMetaAuthCallbackResponse": {
11087
+ "type": "I",
11088
+ "fields": {}
11089
+ },
11090
+ "pushwoosh.rpc_v2.integrations.GetMetaConfigurationRequest": {
11091
+ "type": "I",
11092
+ "fields": {}
11093
+ },
11094
+ "pushwoosh.rpc_v2.integrations.MetaAdAccountStatus": {
11095
+ "type": "E",
11096
+ "values": [
11097
+ "META_AD_ACCOUNT_STATUS_UNSPECIFIED",
11098
+ "META_AD_ACCOUNT_STATUS_CONNECTED",
11099
+ "META_AD_ACCOUNT_STATUS_DISCONNECTED",
11100
+ "META_AD_ACCOUNT_STATUS_PENDING",
11101
+ "META_AD_ACCOUNT_STATUS_DELETED"
11102
+ ]
11103
+ },
11104
+ "pushwoosh.rpc_v2.integrations.GetMetaConfigurationResponse.MetaAdAccount": {
11105
+ "type": "I",
11106
+ "fields": {
11107
+ "id": {
11108
+ "type": "string"
11109
+ },
11110
+ "name": {
11111
+ "type": "string"
11112
+ },
11113
+ "status": {
11114
+ "type": "pushwoosh.rpc_v2.integrations.MetaAdAccountStatus"
11115
+ }
11116
+ }
11117
+ },
11118
+ "pushwoosh.rpc_v2.integrations.GetMetaConfigurationResponse": {
11119
+ "type": "I",
11120
+ "fields": {
11121
+ "adAccounts": {
11122
+ "type": "pushwoosh.rpc_v2.integrations.GetMetaConfigurationResponse.MetaAdAccount",
11123
+ "array": true
11124
+ }
11125
+ }
11126
+ },
11127
+ "pushwoosh.rpc_v2.integrations.DeleteMetaConfigurationRequest": {
11128
+ "type": "I",
11129
+ "fields": {}
11130
+ },
11131
+ "pushwoosh.rpc_v2.integrations.DeleteMetaConfigurationResponse": {
11132
+ "type": "I",
11133
+ "fields": {}
11134
+ },
11135
+ "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountRequest": {
11136
+ "type": "I",
11137
+ "fields": {
11138
+ "adAccountId": {
11139
+ "type": "string"
11140
+ }
11141
+ }
11142
+ },
11143
+ "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountResponse": {
11144
+ "type": "I",
11145
+ "fields": {}
11146
+ },
11147
+ "pushwoosh.rpc_v2.integrations.RefreshMetaConnectionRequest": {
11148
+ "type": "I",
11149
+ "fields": {
11150
+ "adAccountId": {
11151
+ "type": "string"
11152
+ }
11153
+ }
11154
+ },
11155
+ "pushwoosh.rpc_v2.integrations.RefreshMetaConnectionResponse": {
11156
+ "type": "I",
11157
+ "fields": {}
11158
+ },
11019
11159
  "pushwoosh.rpc_v2.internal_alerts.InternalAlertsService": {
11020
11160
  "type": "S",
11021
11161
  "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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.838",
3
+ "version": "0.1.839",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",