@pushwoosh/rpc-v2-http-api-data 0.1.881 → 0.1.883

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/data.js +30 -18
  2. package/integrations.d.ts +15 -12
  3. package/package.json +1 -1
package/data.js CHANGED
@@ -10794,9 +10794,9 @@ export const data = {
10794
10794
  "method": "delete",
10795
10795
  "path": "/api/integrations/configurations/meta"
10796
10796
  },
10797
- "DisconnectMetaAdAccount": {
10798
- "request": "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountRequest",
10799
- "response": "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountResponse",
10797
+ "DisconnectMetaAdAccounts": {
10798
+ "request": "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountsRequest",
10799
+ "response": "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountsResponse",
10800
10800
  "method": "post",
10801
10801
  "path": "/api/integrations/meta/ad-accounts/disconnect"
10802
10802
  },
@@ -10812,9 +10812,9 @@ export const data = {
10812
10812
  "method": "get",
10813
10813
  "path": "/api/integrations/meta/ad-accounts"
10814
10814
  },
10815
- "ConnectMetaAdAccount": {
10816
- "request": "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountRequest",
10817
- "response": "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountResponse",
10815
+ "ConnectMetaAdAccounts": {
10816
+ "request": "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountsRequest",
10817
+ "response": "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountsResponse",
10818
10818
  "method": "post",
10819
10819
  "path": "/api/integrations/meta/ad-accounts/connect"
10820
10820
  },
@@ -11321,15 +11321,16 @@ export const data = {
11321
11321
  "type": "I",
11322
11322
  "fields": {}
11323
11323
  },
11324
- "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountRequest": {
11324
+ "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountsRequest": {
11325
11325
  "type": "I",
11326
11326
  "fields": {
11327
- "adAccountId": {
11328
- "type": "string"
11327
+ "adAccountIds": {
11328
+ "type": "string",
11329
+ "array": true
11329
11330
  }
11330
11331
  }
11331
11332
  },
11332
- "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountResponse": {
11333
+ "pushwoosh.rpc_v2.integrations.DisconnectMetaAdAccountsResponse": {
11333
11334
  "type": "I",
11334
11335
  "fields": {}
11335
11336
  },
@@ -11375,25 +11376,36 @@ export const data = {
11375
11376
  }
11376
11377
  }
11377
11378
  },
11378
- "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountRequest": {
11379
+ "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountsRequest": {
11379
11380
  "type": "I",
11380
11381
  "fields": {
11381
- "adAccountId": {
11382
- "type": "string"
11382
+ "adAccountIds": {
11383
+ "type": "string",
11384
+ "array": true
11383
11385
  }
11384
11386
  }
11385
11387
  },
11386
- "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountResponse": {
11388
+ "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountsResponse.TosRequired": {
11387
11389
  "type": "I",
11388
11390
  "fields": {
11389
- "tosAccepted": {
11390
- "type": "boolean"
11391
+ "adAccountId": {
11392
+ "type": "string"
11391
11393
  },
11392
11394
  "tosUrl": {
11393
11395
  "type": "string"
11396
+ }
11397
+ }
11398
+ },
11399
+ "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountsResponse": {
11400
+ "type": "I",
11401
+ "fields": {
11402
+ "connectedIds": {
11403
+ "type": "string",
11404
+ "array": true
11394
11405
  },
11395
- "status": {
11396
- "type": "pushwoosh.rpc_v2.integrations.MetaAdAccountStatus"
11406
+ "tosRequired": {
11407
+ "type": "pushwoosh.rpc_v2.integrations.ConnectMetaAdAccountsResponse.TosRequired",
11408
+ "array": true
11397
11409
  }
11398
11410
  }
11399
11411
  },
package/integrations.d.ts CHANGED
@@ -17,10 +17,10 @@ export type IntegrationsService_GetMetaAuthURL = RpcMethod<GetMetaAuthURLRequest
17
17
  export type IntegrationsService_HandleMetaAuthCallback = RpcMethod<HandleMetaAuthCallbackRequest, HandleMetaAuthCallbackResponse>;
18
18
  export type IntegrationsService_GetMetaConfiguration = RpcMethod<GetMetaConfigurationRequest, GetMetaConfigurationResponse>;
19
19
  export type IntegrationsService_DeleteMetaConfiguration = RpcMethod<DeleteMetaConfigurationRequest, DeleteMetaConfigurationResponse>;
20
- export type IntegrationsService_DisconnectMetaAdAccount = RpcMethod<DisconnectMetaAdAccountRequest, DisconnectMetaAdAccountResponse>;
20
+ export type IntegrationsService_DisconnectMetaAdAccounts = RpcMethod<DisconnectMetaAdAccountsRequest, DisconnectMetaAdAccountsResponse>;
21
21
  export type IntegrationsService_RefreshMetaConnection = RpcMethod<RefreshMetaConnectionRequest, RefreshMetaConnectionResponse>;
22
22
  export type IntegrationsService_ListMetaAdAccounts = RpcMethod<ListMetaAdAccountsRequest, ListMetaAdAccountsResponse>;
23
- export type IntegrationsService_ConnectMetaAdAccount = RpcMethod<ConnectMetaAdAccountRequest, ConnectMetaAdAccountResponse>;
23
+ export type IntegrationsService_ConnectMetaAdAccounts = RpcMethod<ConnectMetaAdAccountsRequest, ConnectMetaAdAccountsResponse>;
24
24
  export type IntegrationsService_SetMetaTagMapping = RpcMethod<SetMetaTagMappingRequest, SetMetaTagMappingResponse>;
25
25
  export interface IntegrationsService {
26
26
  ListIntegrationsConfiguration: IntegrationsService_ListIntegrationsConfiguration;
@@ -41,10 +41,10 @@ export interface IntegrationsService {
41
41
  HandleMetaAuthCallback: IntegrationsService_HandleMetaAuthCallback;
42
42
  GetMetaConfiguration: IntegrationsService_GetMetaConfiguration;
43
43
  DeleteMetaConfiguration: IntegrationsService_DeleteMetaConfiguration;
44
- DisconnectMetaAdAccount: IntegrationsService_DisconnectMetaAdAccount;
44
+ DisconnectMetaAdAccounts: IntegrationsService_DisconnectMetaAdAccounts;
45
45
  RefreshMetaConnection: IntegrationsService_RefreshMetaConnection;
46
46
  ListMetaAdAccounts: IntegrationsService_ListMetaAdAccounts;
47
- ConnectMetaAdAccount: IntegrationsService_ConnectMetaAdAccount;
47
+ ConnectMetaAdAccounts: IntegrationsService_ConnectMetaAdAccounts;
48
48
  SetMetaTagMapping: IntegrationsService_SetMetaTagMapping;
49
49
  }
50
50
  export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META';
@@ -206,10 +206,10 @@ export type GetMetaConfigurationResponse = {
206
206
  };
207
207
  export type DeleteMetaConfigurationRequest = {};
208
208
  export type DeleteMetaConfigurationResponse = {};
209
- export type DisconnectMetaAdAccountRequest = {
210
- adAccountId?: string;
209
+ export type DisconnectMetaAdAccountsRequest = {
210
+ adAccountIds?: string[];
211
211
  };
212
- export type DisconnectMetaAdAccountResponse = {};
212
+ export type DisconnectMetaAdAccountsResponse = {};
213
213
  export type RefreshMetaConnectionRequest = {
214
214
  adAccountId?: string;
215
215
  };
@@ -224,13 +224,16 @@ export type ListMetaAdAccountsResponse_MetaAdAccount = {
224
224
  export type ListMetaAdAccountsResponse = {
225
225
  adAccounts: ListMetaAdAccountsResponse_MetaAdAccount[];
226
226
  };
227
- export type ConnectMetaAdAccountRequest = {
228
- adAccountId?: string;
227
+ export type ConnectMetaAdAccountsRequest = {
228
+ adAccountIds?: string[];
229
229
  };
230
- export type ConnectMetaAdAccountResponse = {
231
- tosAccepted: boolean;
230
+ export type ConnectMetaAdAccountsResponse_TosRequired = {
231
+ adAccountId: string;
232
232
  tosUrl: string;
233
- status: MetaAdAccountStatus;
233
+ };
234
+ export type ConnectMetaAdAccountsResponse = {
235
+ connectedIds: string[];
236
+ tosRequired: ConnectMetaAdAccountsResponse_TosRequired[];
234
237
  };
235
238
  export type SetMetaTagMappingRequest = {
236
239
  tagMapping?: Record<string, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.881",
3
+ "version": "0.1.883",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",