@pushwoosh/rpc-v2-http-api-data 0.2.235 → 0.2.237
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 +150 -0
- package/email_suppressions.d.ts +1 -1
- package/integrations.d.ts +60 -0
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -17330,6 +17330,42 @@ export const data = {
|
|
|
17330
17330
|
"method": "post",
|
|
17331
17331
|
"path": "/api/integrations/meta/ad-accounts/connect"
|
|
17332
17332
|
},
|
|
17333
|
+
"GetGoogleAdsAuthURL": {
|
|
17334
|
+
"request": "pushwoosh.rpc_v2.integrations.GetGoogleAdsAuthURLRequest",
|
|
17335
|
+
"response": "pushwoosh.rpc_v2.integrations.GetGoogleAdsAuthURLResponse",
|
|
17336
|
+
"method": "get",
|
|
17337
|
+
"path": "/api/integrations/google-ads/auth"
|
|
17338
|
+
},
|
|
17339
|
+
"GetGoogleAdsConfiguration": {
|
|
17340
|
+
"request": "pushwoosh.rpc_v2.integrations.GetGoogleAdsConfigurationRequest",
|
|
17341
|
+
"response": "pushwoosh.rpc_v2.integrations.GetGoogleAdsConfigurationResponse",
|
|
17342
|
+
"method": "get",
|
|
17343
|
+
"path": "/api/integrations/configurations/google-ads"
|
|
17344
|
+
},
|
|
17345
|
+
"DeleteGoogleAdsConfiguration": {
|
|
17346
|
+
"request": "pushwoosh.rpc_v2.integrations.DeleteGoogleAdsConfigurationRequest",
|
|
17347
|
+
"response": "pushwoosh.rpc_v2.integrations.DeleteGoogleAdsConfigurationResponse",
|
|
17348
|
+
"method": "delete",
|
|
17349
|
+
"path": "/api/integrations/configurations/google-ads"
|
|
17350
|
+
},
|
|
17351
|
+
"ListGoogleAdsAdAccounts": {
|
|
17352
|
+
"request": "pushwoosh.rpc_v2.integrations.ListGoogleAdsAdAccountsRequest",
|
|
17353
|
+
"response": "pushwoosh.rpc_v2.integrations.ListGoogleAdsAdAccountsResponse",
|
|
17354
|
+
"method": "get",
|
|
17355
|
+
"path": "/api/integrations/google-ads/ad-accounts"
|
|
17356
|
+
},
|
|
17357
|
+
"ConnectGoogleAdsAdAccounts": {
|
|
17358
|
+
"request": "pushwoosh.rpc_v2.integrations.ConnectGoogleAdsAdAccountsRequest",
|
|
17359
|
+
"response": "pushwoosh.rpc_v2.integrations.ConnectGoogleAdsAdAccountsResponse",
|
|
17360
|
+
"method": "post",
|
|
17361
|
+
"path": "/api/integrations/google-ads/ad-accounts/connect"
|
|
17362
|
+
},
|
|
17363
|
+
"DisconnectGoogleAdsAdAccounts": {
|
|
17364
|
+
"request": "pushwoosh.rpc_v2.integrations.DisconnectGoogleAdsAdAccountsRequest",
|
|
17365
|
+
"response": "pushwoosh.rpc_v2.integrations.DisconnectGoogleAdsAdAccountsResponse",
|
|
17366
|
+
"method": "post",
|
|
17367
|
+
"path": "/api/integrations/google-ads/ad-accounts/disconnect"
|
|
17368
|
+
},
|
|
17333
17369
|
"SetMetaTagMapping": {
|
|
17334
17370
|
"request": "pushwoosh.rpc_v2.integrations.SetMetaTagMappingRequest",
|
|
17335
17371
|
"response": "pushwoosh.rpc_v2.integrations.SetMetaTagMappingResponse",
|
|
@@ -18320,6 +18356,120 @@ export const data = {
|
|
|
18320
18356
|
"type": "I",
|
|
18321
18357
|
"fields": {}
|
|
18322
18358
|
},
|
|
18359
|
+
"pushwoosh.rpc_v2.integrations.GoogleAdsAdAccountStatus": {
|
|
18360
|
+
"type": "E",
|
|
18361
|
+
"values": [
|
|
18362
|
+
"GOOGLE_ADS_AD_ACCOUNT_STATUS_UNSPECIFIED",
|
|
18363
|
+
"GOOGLE_ADS_AD_ACCOUNT_STATUS_CONNECTED",
|
|
18364
|
+
"GOOGLE_ADS_AD_ACCOUNT_STATUS_DISCONNECTED"
|
|
18365
|
+
]
|
|
18366
|
+
},
|
|
18367
|
+
"pushwoosh.rpc_v2.integrations.GoogleAdsAdAccount": {
|
|
18368
|
+
"type": "I",
|
|
18369
|
+
"fields": {
|
|
18370
|
+
"id": {
|
|
18371
|
+
"type": "string"
|
|
18372
|
+
},
|
|
18373
|
+
"name": {
|
|
18374
|
+
"type": "string"
|
|
18375
|
+
},
|
|
18376
|
+
"status": {
|
|
18377
|
+
"type": "pushwoosh.rpc_v2.integrations.GoogleAdsAdAccountStatus"
|
|
18378
|
+
}
|
|
18379
|
+
}
|
|
18380
|
+
},
|
|
18381
|
+
"pushwoosh.rpc_v2.integrations.GetGoogleAdsAuthURLRequest": {
|
|
18382
|
+
"type": "I",
|
|
18383
|
+
"fields": {
|
|
18384
|
+
"returnTo": {
|
|
18385
|
+
"type": "string"
|
|
18386
|
+
}
|
|
18387
|
+
}
|
|
18388
|
+
},
|
|
18389
|
+
"pushwoosh.rpc_v2.integrations.GetGoogleAdsAuthURLResponse": {
|
|
18390
|
+
"type": "I",
|
|
18391
|
+
"fields": {
|
|
18392
|
+
"authUrl": {
|
|
18393
|
+
"type": "string"
|
|
18394
|
+
}
|
|
18395
|
+
}
|
|
18396
|
+
},
|
|
18397
|
+
"pushwoosh.rpc_v2.integrations.GetGoogleAdsConfigurationRequest": {
|
|
18398
|
+
"type": "I",
|
|
18399
|
+
"fields": {}
|
|
18400
|
+
},
|
|
18401
|
+
"pushwoosh.rpc_v2.integrations.GetGoogleAdsConfigurationResponse": {
|
|
18402
|
+
"type": "I",
|
|
18403
|
+
"fields": {
|
|
18404
|
+
"connected": {
|
|
18405
|
+
"type": "boolean"
|
|
18406
|
+
},
|
|
18407
|
+
"identity": {
|
|
18408
|
+
"type": "string"
|
|
18409
|
+
},
|
|
18410
|
+
"adAccounts": {
|
|
18411
|
+
"type": "pushwoosh.rpc_v2.integrations.GoogleAdsAdAccount",
|
|
18412
|
+
"array": true
|
|
18413
|
+
}
|
|
18414
|
+
}
|
|
18415
|
+
},
|
|
18416
|
+
"pushwoosh.rpc_v2.integrations.DeleteGoogleAdsConfigurationRequest": {
|
|
18417
|
+
"type": "I",
|
|
18418
|
+
"fields": {}
|
|
18419
|
+
},
|
|
18420
|
+
"pushwoosh.rpc_v2.integrations.DeleteGoogleAdsConfigurationResponse": {
|
|
18421
|
+
"type": "I",
|
|
18422
|
+
"fields": {}
|
|
18423
|
+
},
|
|
18424
|
+
"pushwoosh.rpc_v2.integrations.ListGoogleAdsAdAccountsRequest": {
|
|
18425
|
+
"type": "I",
|
|
18426
|
+
"fields": {}
|
|
18427
|
+
},
|
|
18428
|
+
"pushwoosh.rpc_v2.integrations.ListGoogleAdsAdAccountsResponse": {
|
|
18429
|
+
"type": "I",
|
|
18430
|
+
"fields": {
|
|
18431
|
+
"adAccounts": {
|
|
18432
|
+
"type": "pushwoosh.rpc_v2.integrations.GoogleAdsAdAccount",
|
|
18433
|
+
"array": true
|
|
18434
|
+
}
|
|
18435
|
+
}
|
|
18436
|
+
},
|
|
18437
|
+
"pushwoosh.rpc_v2.integrations.ConnectGoogleAdsAdAccountsRequest": {
|
|
18438
|
+
"type": "I",
|
|
18439
|
+
"fields": {
|
|
18440
|
+
"adAccountIds": {
|
|
18441
|
+
"type": "string",
|
|
18442
|
+
"array": true
|
|
18443
|
+
}
|
|
18444
|
+
}
|
|
18445
|
+
},
|
|
18446
|
+
"pushwoosh.rpc_v2.integrations.ConnectGoogleAdsAdAccountsResponse": {
|
|
18447
|
+
"type": "I",
|
|
18448
|
+
"fields": {
|
|
18449
|
+
"adAccounts": {
|
|
18450
|
+
"type": "pushwoosh.rpc_v2.integrations.GoogleAdsAdAccount",
|
|
18451
|
+
"array": true
|
|
18452
|
+
}
|
|
18453
|
+
}
|
|
18454
|
+
},
|
|
18455
|
+
"pushwoosh.rpc_v2.integrations.DisconnectGoogleAdsAdAccountsRequest": {
|
|
18456
|
+
"type": "I",
|
|
18457
|
+
"fields": {
|
|
18458
|
+
"adAccountIds": {
|
|
18459
|
+
"type": "string",
|
|
18460
|
+
"array": true
|
|
18461
|
+
}
|
|
18462
|
+
}
|
|
18463
|
+
},
|
|
18464
|
+
"pushwoosh.rpc_v2.integrations.DisconnectGoogleAdsAdAccountsResponse": {
|
|
18465
|
+
"type": "I",
|
|
18466
|
+
"fields": {
|
|
18467
|
+
"adAccounts": {
|
|
18468
|
+
"type": "pushwoosh.rpc_v2.integrations.GoogleAdsAdAccount",
|
|
18469
|
+
"array": true
|
|
18470
|
+
}
|
|
18471
|
+
}
|
|
18472
|
+
},
|
|
18323
18473
|
"pushwoosh.rpc_v2.internal_alerts.InternalAlertsService": {
|
|
18324
18474
|
"type": "S",
|
|
18325
18475
|
"key": "internalAlerts",
|
package/email_suppressions.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export type EmailReactivation = {
|
|
|
48
48
|
/** Who did it: account_user or pushwoosh_staff. */
|
|
49
49
|
actorType: string;
|
|
50
50
|
actorId: number;
|
|
51
|
-
/** How it was done: ui or
|
|
51
|
+
/** How it was done: ui, api or service (an internal service-token call). */
|
|
52
52
|
channel: string;
|
|
53
53
|
application: string;
|
|
54
54
|
};
|
package/integrations.d.ts
CHANGED
|
@@ -28,6 +28,12 @@ export type IntegrationsService_DisconnectMetaAdAccounts = RpcMethod<DisconnectM
|
|
|
28
28
|
export type IntegrationsService_RefreshMetaConnection = RpcMethod<RefreshMetaConnectionRequest, RefreshMetaConnectionResponse>;
|
|
29
29
|
export type IntegrationsService_ListMetaAdAccounts = RpcMethod<ListMetaAdAccountsRequest, ListMetaAdAccountsResponse>;
|
|
30
30
|
export type IntegrationsService_ConnectMetaAdAccounts = RpcMethod<ConnectMetaAdAccountsRequest, ConnectMetaAdAccountsResponse>;
|
|
31
|
+
export type IntegrationsService_GetGoogleAdsAuthURL = RpcMethod<GetGoogleAdsAuthURLRequest, GetGoogleAdsAuthURLResponse>;
|
|
32
|
+
export type IntegrationsService_GetGoogleAdsConfiguration = RpcMethod<GetGoogleAdsConfigurationRequest, GetGoogleAdsConfigurationResponse>;
|
|
33
|
+
export type IntegrationsService_DeleteGoogleAdsConfiguration = RpcMethod<DeleteGoogleAdsConfigurationRequest, DeleteGoogleAdsConfigurationResponse>;
|
|
34
|
+
export type IntegrationsService_ListGoogleAdsAdAccounts = RpcMethod<ListGoogleAdsAdAccountsRequest, ListGoogleAdsAdAccountsResponse>;
|
|
35
|
+
export type IntegrationsService_ConnectGoogleAdsAdAccounts = RpcMethod<ConnectGoogleAdsAdAccountsRequest, ConnectGoogleAdsAdAccountsResponse>;
|
|
36
|
+
export type IntegrationsService_DisconnectGoogleAdsAdAccounts = RpcMethod<DisconnectGoogleAdsAdAccountsRequest, DisconnectGoogleAdsAdAccountsResponse>;
|
|
31
37
|
export type IntegrationsService_SetMetaTagMapping = RpcMethod<SetMetaTagMappingRequest, SetMetaTagMappingResponse>;
|
|
32
38
|
export type IntegrationsService_GetGoogleBQConfiguration = RpcMethod<GetGoogleBQConfigurationRequest, GetGoogleBQConfigurationResponse>;
|
|
33
39
|
export type IntegrationsService_CreateGoogleBQConfiguration = RpcMethod<CreateGoogleBQConfigurationRequest, CreateGoogleBQConfigurationResponse>;
|
|
@@ -121,6 +127,21 @@ export interface IntegrationsService {
|
|
|
121
127
|
ListMetaAdAccounts: IntegrationsService_ListMetaAdAccounts;
|
|
122
128
|
/** Connects the given Meta ad accounts by id, returning the connected ids and any that require accepting Meta terms of service first. Use after list_meta_ad_accounts to activate selected ad accounts. */
|
|
123
129
|
ConnectMetaAdAccounts: IntegrationsService_ConnectMetaAdAccounts;
|
|
130
|
+
/**
|
|
131
|
+
* google ads
|
|
132
|
+
* Builds the Google OAuth authorization URL to start connecting a Google Ads account. The consent flow is owned by integration-oauth, which stores the grant and sends the browser back to return_to — there is no callback method here.
|
|
133
|
+
*/
|
|
134
|
+
GetGoogleAdsAuthURL: IntegrationsService_GetGoogleAdsAuthURL;
|
|
135
|
+
/** Returns the Google Ads integration configuration for the current account: whether it is connected, the Google identity behind the grant and the connected ad accounts. Use to inspect the current Google Ads connection state. */
|
|
136
|
+
GetGoogleAdsConfiguration: IntegrationsService_GetGoogleAdsConfiguration;
|
|
137
|
+
/** Removes the entire Google Ads connection for the current account: the chosen ad accounts and the OAuth grant itself. Use to fully disconnect; not recoverable without reconnecting. */
|
|
138
|
+
DeleteGoogleAdsConfiguration: IntegrationsService_DeleteGoogleAdsConfiguration;
|
|
139
|
+
/** Lists the Google Ads customers the connection can reach, each marked as connected or not. Use to discover ad accounts before connecting them with connect_google_ads_ad_accounts. */
|
|
140
|
+
ListGoogleAdsAdAccounts: IntegrationsService_ListGoogleAdsAdAccounts;
|
|
141
|
+
/** Connects the given Google Ads customers by id. Ids the connection cannot reach are refused, so an account cannot be stored that would only fail later at send time. */
|
|
142
|
+
ConnectGoogleAdsAdAccounts: IntegrationsService_ConnectGoogleAdsAdAccounts;
|
|
143
|
+
/** Disconnects the given Google Ads customers by id while keeping the OAuth grant. Use to remove specific ad accounts; to drop the whole connection use delete_google_ads_integration. */
|
|
144
|
+
DisconnectGoogleAdsAdAccounts: IntegrationsService_DisconnectGoogleAdsAdAccounts;
|
|
124
145
|
/** Overwrites the mapping between Pushwoosh tags and Meta custom-audience fields for the current account. Use to define which PW tags sync to Meta audiences; replaces the entire mapping. */
|
|
125
146
|
SetMetaTagMapping: IntegrationsService_SetMetaTagMapping;
|
|
126
147
|
/**
|
|
@@ -543,3 +564,42 @@ export type ListGoogleBQTablesResponse = {
|
|
|
543
564
|
tables: ListGoogleBQTablesResponse_Table[];
|
|
544
565
|
};
|
|
545
566
|
export type SetMetaTagMappingResponse = {};
|
|
567
|
+
export type GoogleAdsAdAccountStatus = 'GOOGLE_ADS_AD_ACCOUNT_STATUS_UNSPECIFIED' | 'GOOGLE_ADS_AD_ACCOUNT_STATUS_CONNECTED' | 'GOOGLE_ADS_AD_ACCOUNT_STATUS_DISCONNECTED';
|
|
568
|
+
export type GoogleAdsAdAccount = {
|
|
569
|
+
/** Google Ads customer id, digits only */
|
|
570
|
+
id: string;
|
|
571
|
+
name: string;
|
|
572
|
+
status: GoogleAdsAdAccountStatus;
|
|
573
|
+
};
|
|
574
|
+
export type GetGoogleAdsAuthURLRequest = {
|
|
575
|
+
/** where the browser lands once the connection is stored */
|
|
576
|
+
returnTo?: string;
|
|
577
|
+
};
|
|
578
|
+
export type GetGoogleAdsAuthURLResponse = {
|
|
579
|
+
authUrl: string;
|
|
580
|
+
};
|
|
581
|
+
export type GetGoogleAdsConfigurationRequest = {};
|
|
582
|
+
export type GetGoogleAdsConfigurationResponse = {
|
|
583
|
+
connected: boolean;
|
|
584
|
+
/** google account the grant belongs to */
|
|
585
|
+
identity: string;
|
|
586
|
+
adAccounts: GoogleAdsAdAccount[];
|
|
587
|
+
};
|
|
588
|
+
export type DeleteGoogleAdsConfigurationRequest = {};
|
|
589
|
+
export type DeleteGoogleAdsConfigurationResponse = {};
|
|
590
|
+
export type ListGoogleAdsAdAccountsRequest = {};
|
|
591
|
+
export type ListGoogleAdsAdAccountsResponse = {
|
|
592
|
+
adAccounts: GoogleAdsAdAccount[];
|
|
593
|
+
};
|
|
594
|
+
export type ConnectGoogleAdsAdAccountsRequest = {
|
|
595
|
+
adAccountIds?: string[];
|
|
596
|
+
};
|
|
597
|
+
export type ConnectGoogleAdsAdAccountsResponse = {
|
|
598
|
+
adAccounts: GoogleAdsAdAccount[];
|
|
599
|
+
};
|
|
600
|
+
export type DisconnectGoogleAdsAdAccountsRequest = {
|
|
601
|
+
adAccountIds?: string[];
|
|
602
|
+
};
|
|
603
|
+
export type DisconnectGoogleAdsAdAccountsResponse = {
|
|
604
|
+
adAccounts: GoogleAdsAdAccount[];
|
|
605
|
+
};
|