@pushwoosh/rpc-v2-http-api-data 0.1.872 → 0.1.873

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
@@ -10772,6 +10772,24 @@ export const data = {
10772
10772
  "response": "pushwoosh.rpc_v2.integrations.RefreshMetaConnectionResponse",
10773
10773
  "method": "post",
10774
10774
  "path": "/api/integrations/meta/refresh"
10775
+ },
10776
+ "ListMetaAdAccounts": {
10777
+ "request": "pushwoosh.rpc_v2.integrations.ListMetaAdAccountsRequest",
10778
+ "response": "pushwoosh.rpc_v2.integrations.ListMetaAdAccountsResponse",
10779
+ "method": "get",
10780
+ "path": "/api/integrations/meta/ad-accounts"
10781
+ },
10782
+ "ConnectMetaAdAccount": {
10783
+ "request": "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountRequest",
10784
+ "response": "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountResponse",
10785
+ "method": "post",
10786
+ "path": "/api/integrations/meta/ad-accounts/connect"
10787
+ },
10788
+ "SetMetaTagMapping": {
10789
+ "request": "pushwoosh.rpc_v2.integrations.SetMetaTagMappingRequest",
10790
+ "response": "pushwoosh.rpc_v2.integrations.SetMetaTagMappingResponse",
10791
+ "method": "put",
10792
+ "path": "/api/integrations/meta/tag-mapping"
10775
10793
  }
10776
10794
  }
10777
10795
  },
@@ -11215,10 +11233,20 @@ export const data = {
11215
11233
  "META_AD_ACCOUNT_STATUS_UNSPECIFIED",
11216
11234
  "META_AD_ACCOUNT_STATUS_CONNECTED",
11217
11235
  "META_AD_ACCOUNT_STATUS_DISCONNECTED",
11218
- "META_AD_ACCOUNT_STATUS_PENDING",
11219
- "META_AD_ACCOUNT_STATUS_DELETED"
11236
+ "META_AD_ACCOUNT_STATUS_PENDING"
11220
11237
  ]
11221
11238
  },
11239
+ "pushwoosh.rpc_v2.integrations.MetaBusinessInfo": {
11240
+ "type": "I",
11241
+ "fields": {
11242
+ "id": {
11243
+ "type": "string"
11244
+ },
11245
+ "name": {
11246
+ "type": "string"
11247
+ }
11248
+ }
11249
+ },
11222
11250
  "pushwoosh.rpc_v2.integrations.GetMetaConfigurationResponse.MetaAdAccount": {
11223
11251
  "type": "I",
11224
11252
  "fields": {
@@ -11230,6 +11258,9 @@ export const data = {
11230
11258
  },
11231
11259
  "status": {
11232
11260
  "type": "pushwoosh.rpc_v2.integrations.MetaAdAccountStatus"
11261
+ },
11262
+ "business": {
11263
+ "type": "pushwoosh.rpc_v2.integrations.MetaBusinessInfo"
11233
11264
  }
11234
11265
  }
11235
11266
  },
@@ -11239,6 +11270,13 @@ export const data = {
11239
11270
  "adAccounts": {
11240
11271
  "type": "pushwoosh.rpc_v2.integrations.GetMetaConfigurationResponse.MetaAdAccount",
11241
11272
  "array": true
11273
+ },
11274
+ "tokenValid": {
11275
+ "type": "boolean"
11276
+ },
11277
+ "tagMapping": {
11278
+ "type": "string",
11279
+ "mapKeyType": "string"
11242
11280
  }
11243
11281
  }
11244
11282
  },
@@ -11274,6 +11312,71 @@ export const data = {
11274
11312
  "type": "I",
11275
11313
  "fields": {}
11276
11314
  },
11315
+ "pushwoosh.rpc_v2.integrations.ListMetaAdAccountsRequest": {
11316
+ "type": "I",
11317
+ "fields": {}
11318
+ },
11319
+ "pushwoosh.rpc_v2.integrations.ListMetaAdAccountsResponse.MetaAdAccount": {
11320
+ "type": "I",
11321
+ "fields": {
11322
+ "id": {
11323
+ "type": "string"
11324
+ },
11325
+ "name": {
11326
+ "type": "string"
11327
+ },
11328
+ "status": {
11329
+ "type": "pushwoosh.rpc_v2.integrations.MetaAdAccountStatus"
11330
+ },
11331
+ "business": {
11332
+ "type": "pushwoosh.rpc_v2.integrations.MetaBusinessInfo"
11333
+ }
11334
+ }
11335
+ },
11336
+ "pushwoosh.rpc_v2.integrations.ListMetaAdAccountsResponse": {
11337
+ "type": "I",
11338
+ "fields": {
11339
+ "adAccounts": {
11340
+ "type": "pushwoosh.rpc_v2.integrations.ListMetaAdAccountsResponse.MetaAdAccount",
11341
+ "array": true
11342
+ }
11343
+ }
11344
+ },
11345
+ "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountRequest": {
11346
+ "type": "I",
11347
+ "fields": {
11348
+ "adAccountId": {
11349
+ "type": "string"
11350
+ }
11351
+ }
11352
+ },
11353
+ "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountResponse": {
11354
+ "type": "I",
11355
+ "fields": {
11356
+ "tosAccepted": {
11357
+ "type": "boolean"
11358
+ },
11359
+ "tosUrl": {
11360
+ "type": "string"
11361
+ },
11362
+ "status": {
11363
+ "type": "pushwoosh.rpc_v2.integrations.MetaAdAccountStatus"
11364
+ }
11365
+ }
11366
+ },
11367
+ "pushwoosh.rpc_v2.integrations.SetMetaTagMappingRequest": {
11368
+ "type": "I",
11369
+ "fields": {
11370
+ "tagMapping": {
11371
+ "type": "string",
11372
+ "mapKeyType": "string"
11373
+ }
11374
+ }
11375
+ },
11376
+ "pushwoosh.rpc_v2.integrations.SetMetaTagMappingResponse": {
11377
+ "type": "I",
11378
+ "fields": {}
11379
+ },
11277
11380
  "pushwoosh.rpc_v2.internal_alerts.InternalAlertsService": {
11278
11381
  "type": "S",
11279
11382
  "key": "internalAlerts",
package/integrations.d.ts CHANGED
@@ -19,6 +19,9 @@ export type IntegrationsService_GetMetaConfiguration = RpcMethod<GetMetaConfigur
19
19
  export type IntegrationsService_DeleteMetaConfiguration = RpcMethod<DeleteMetaConfigurationRequest, DeleteMetaConfigurationResponse>;
20
20
  export type IntegrationsService_DisconnectMetaAdAccount = RpcMethod<DisconnectMetaAdAccountRequest, DisconnectMetaAdAccountResponse>;
21
21
  export type IntegrationsService_RefreshMetaConnection = RpcMethod<RefreshMetaConnectionRequest, RefreshMetaConnectionResponse>;
22
+ export type IntegrationsService_ListMetaAdAccounts = RpcMethod<ListMetaAdAccountsRequest, ListMetaAdAccountsResponse>;
23
+ export type IntegrationsService_ConnectMetaAdAccount = RpcMethod<ConnectMetaAdAccountRequest, ConnectMetaAdAccountResponse>;
24
+ export type IntegrationsService_SetMetaTagMapping = RpcMethod<SetMetaTagMappingRequest, SetMetaTagMappingResponse>;
22
25
  export interface IntegrationsService {
23
26
  ListIntegrationsConfiguration: IntegrationsService_ListIntegrationsConfiguration;
24
27
  GetWebhookConfiguration: IntegrationsService_GetWebhookConfiguration;
@@ -40,6 +43,9 @@ export interface IntegrationsService {
40
43
  DeleteMetaConfiguration: IntegrationsService_DeleteMetaConfiguration;
41
44
  DisconnectMetaAdAccount: IntegrationsService_DisconnectMetaAdAccount;
42
45
  RefreshMetaConnection: IntegrationsService_RefreshMetaConnection;
46
+ ListMetaAdAccounts: IntegrationsService_ListMetaAdAccounts;
47
+ ConnectMetaAdAccount: IntegrationsService_ConnectMetaAdAccount;
48
+ SetMetaTagMapping: IntegrationsService_SetMetaTagMapping;
43
49
  }
44
50
  export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META';
45
51
  export type ImportSegmentPianoRequest = {
@@ -182,14 +188,21 @@ export type HandleMetaAuthCallbackRequest = {
182
188
  };
183
189
  export type HandleMetaAuthCallbackResponse = {};
184
190
  export type GetMetaConfigurationRequest = {};
185
- 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';
191
+ export type MetaAdAccountStatus = 'META_AD_ACCOUNT_STATUS_UNSPECIFIED' | 'META_AD_ACCOUNT_STATUS_CONNECTED' | 'META_AD_ACCOUNT_STATUS_DISCONNECTED' | 'META_AD_ACCOUNT_STATUS_PENDING';
192
+ export type MetaBusinessInfo = {
193
+ id: string;
194
+ name: string;
195
+ };
186
196
  export type GetMetaConfigurationResponse_MetaAdAccount = {
187
197
  id: string;
188
198
  name: string;
189
199
  status: MetaAdAccountStatus;
200
+ business: MetaBusinessInfo;
190
201
  };
191
202
  export type GetMetaConfigurationResponse = {
192
203
  adAccounts: GetMetaConfigurationResponse_MetaAdAccount[];
204
+ tokenValid: boolean;
205
+ tagMapping: Record<string, string>;
193
206
  };
194
207
  export type DeleteMetaConfigurationRequest = {};
195
208
  export type DeleteMetaConfigurationResponse = {};
@@ -201,3 +214,25 @@ export type RefreshMetaConnectionRequest = {
201
214
  adAccountId?: string;
202
215
  };
203
216
  export type RefreshMetaConnectionResponse = {};
217
+ export type ListMetaAdAccountsRequest = {};
218
+ export type ListMetaAdAccountsResponse_MetaAdAccount = {
219
+ id: string;
220
+ name: string;
221
+ status: MetaAdAccountStatus;
222
+ business: MetaBusinessInfo;
223
+ };
224
+ export type ListMetaAdAccountsResponse = {
225
+ adAccounts: ListMetaAdAccountsResponse_MetaAdAccount[];
226
+ };
227
+ export type ConnectMetaAdAccountRequest = {
228
+ adAccountId?: string;
229
+ };
230
+ export type ConnectMetaAdAccountResponse = {
231
+ tosAccepted: boolean;
232
+ tosUrl: string;
233
+ status: MetaAdAccountStatus;
234
+ };
235
+ export type SetMetaTagMappingRequest = {
236
+ tagMapping?: Record<string, string>;
237
+ };
238
+ export type SetMetaTagMappingResponse = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.872",
3
+ "version": "0.1.873",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",