@pushwoosh/rpc-v2-http-api-data 0.1.937 → 0.1.939
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 +415 -1299
- package/integrations.d.ts +89 -1
- package/package.json +1 -1
- package/pushwoosh_objects_restrictionValues_v1.d.ts +1 -443
package/integrations.d.ts
CHANGED
|
@@ -22,6 +22,12 @@ export type IntegrationsService_RefreshMetaConnection = RpcMethod<RefreshMetaCon
|
|
|
22
22
|
export type IntegrationsService_ListMetaAdAccounts = RpcMethod<ListMetaAdAccountsRequest, ListMetaAdAccountsResponse>;
|
|
23
23
|
export type IntegrationsService_ConnectMetaAdAccounts = RpcMethod<ConnectMetaAdAccountsRequest, ConnectMetaAdAccountsResponse>;
|
|
24
24
|
export type IntegrationsService_SetMetaTagMapping = RpcMethod<SetMetaTagMappingRequest, SetMetaTagMappingResponse>;
|
|
25
|
+
export type IntegrationsService_GetGoogleBQConfiguration = RpcMethod<GetGoogleBQConfigurationRequest, GetGoogleBQConfigurationResponse>;
|
|
26
|
+
export type IntegrationsService_CreateGoogleBQConfiguration = RpcMethod<CreateGoogleBQConfigurationRequest, CreateGoogleBQConfigurationResponse>;
|
|
27
|
+
export type IntegrationsService_DeleteGoogleBQConfiguration = RpcMethod<DeleteGoogleBQConfigurationRequest, DeleteGoogleBQConfigurationResponse>;
|
|
28
|
+
export type IntegrationsService_TestGoogleBQConnection = RpcMethod<TestGoogleBQConnectionRequest, TestGoogleBQConnectionResponse>;
|
|
29
|
+
export type IntegrationsService_ListGoogleBQDatasets = RpcMethod<ListGoogleBQDatasetsRequest, ListGoogleBQDatasetsResponse>;
|
|
30
|
+
export type IntegrationsService_ListGoogleBQTables = RpcMethod<ListGoogleBQTablesRequest, ListGoogleBQTablesResponse>;
|
|
25
31
|
export interface IntegrationsService {
|
|
26
32
|
/** lists configuration for each output integration (declared in Integration enums) */
|
|
27
33
|
ListIntegrationsConfiguration: IntegrationsService_ListIntegrationsConfiguration;
|
|
@@ -55,9 +61,16 @@ export interface IntegrationsService {
|
|
|
55
61
|
ListMetaAdAccounts: IntegrationsService_ListMetaAdAccounts;
|
|
56
62
|
ConnectMetaAdAccounts: IntegrationsService_ConnectMetaAdAccounts;
|
|
57
63
|
SetMetaTagMapping: IntegrationsService_SetMetaTagMapping;
|
|
64
|
+
/** google_bq */
|
|
65
|
+
GetGoogleBQConfiguration: IntegrationsService_GetGoogleBQConfiguration;
|
|
66
|
+
CreateGoogleBQConfiguration: IntegrationsService_CreateGoogleBQConfiguration;
|
|
67
|
+
DeleteGoogleBQConfiguration: IntegrationsService_DeleteGoogleBQConfiguration;
|
|
68
|
+
TestGoogleBQConnection: IntegrationsService_TestGoogleBQConnection;
|
|
69
|
+
ListGoogleBQDatasets: IntegrationsService_ListGoogleBQDatasets;
|
|
70
|
+
ListGoogleBQTables: IntegrationsService_ListGoogleBQTables;
|
|
58
71
|
}
|
|
59
72
|
/** Integration contains all available integration for clients (to update props) */
|
|
60
|
-
export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META' | 'INBOUND_WEBHOOK';
|
|
73
|
+
export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META' | 'INBOUND_WEBHOOK' | 'GOOGLE_BQ';
|
|
61
74
|
export type ImportSegmentPianoRequest = {
|
|
62
75
|
/** application code */
|
|
63
76
|
application?: string;
|
|
@@ -276,4 +289,79 @@ export type ConnectMetaAdAccountsResponse = {
|
|
|
276
289
|
export type SetMetaTagMappingRequest = {
|
|
277
290
|
tagMapping?: Record<string, string>;
|
|
278
291
|
};
|
|
292
|
+
export type GetGoogleBQConfigurationRequest = {
|
|
293
|
+
application?: string;
|
|
294
|
+
};
|
|
295
|
+
export type GetGoogleBQConfigurationResponse = {
|
|
296
|
+
/** Connection — service_account_json is write-only and never returned. */
|
|
297
|
+
gcpProjectId: string;
|
|
298
|
+
datasetId: string;
|
|
299
|
+
datasetRegion: string;
|
|
300
|
+
serviceAccountClientEmail: string;
|
|
301
|
+
/** Export */
|
|
302
|
+
exportEnabled: boolean;
|
|
303
|
+
eventTypes: string[];
|
|
304
|
+
tableName: string;
|
|
305
|
+
};
|
|
306
|
+
export type CreateGoogleBQConfigurationRequest = {
|
|
307
|
+
application?: string;
|
|
308
|
+
/** Connection */
|
|
309
|
+
gcpProjectId?: string;
|
|
310
|
+
datasetId?: string;
|
|
311
|
+
datasetRegion?: string;
|
|
312
|
+
/**
|
|
313
|
+
* service_account_json is mandatory on first save. On update it may be
|
|
314
|
+
* empty — the existing stored value is kept.
|
|
315
|
+
*/
|
|
316
|
+
serviceAccountJson?: string;
|
|
317
|
+
/** Export */
|
|
318
|
+
exportEnabled?: boolean;
|
|
319
|
+
eventTypes?: string[];
|
|
320
|
+
/** optional; defaults to "pushwoosh_events" on the backend */
|
|
321
|
+
tableName?: string;
|
|
322
|
+
};
|
|
323
|
+
export type CreateGoogleBQConfigurationResponse = {};
|
|
324
|
+
export type DeleteGoogleBQConfigurationRequest = {
|
|
325
|
+
application?: string;
|
|
326
|
+
};
|
|
327
|
+
export type DeleteGoogleBQConfigurationResponse = {};
|
|
328
|
+
/**
|
|
329
|
+
* TestGoogleBQConnection lets the UI validate credentials before saving.
|
|
330
|
+
* If service_account_json / gcp_project_id are empty, the backend tests the
|
|
331
|
+
* stored configuration instead.
|
|
332
|
+
*/
|
|
333
|
+
export type TestGoogleBQConnectionRequest = {
|
|
334
|
+
application?: string;
|
|
335
|
+
gcpProjectId?: string;
|
|
336
|
+
datasetId?: string;
|
|
337
|
+
serviceAccountJson?: string;
|
|
338
|
+
};
|
|
339
|
+
export type TestGoogleBQConnectionResponse = {
|
|
340
|
+
ok: boolean;
|
|
341
|
+
/** "auth_failed" / "dataset_not_found" / "missing_permission" / "invalid_input" / "" */
|
|
342
|
+
errorCode: string;
|
|
343
|
+
errorMessage: string;
|
|
344
|
+
};
|
|
345
|
+
export type ListGoogleBQDatasetsRequest = {
|
|
346
|
+
application?: string;
|
|
347
|
+
};
|
|
348
|
+
export type ListGoogleBQDatasetsResponse_Dataset = {
|
|
349
|
+
id: string;
|
|
350
|
+
region: string;
|
|
351
|
+
};
|
|
352
|
+
export type ListGoogleBQDatasetsResponse = {
|
|
353
|
+
datasets: ListGoogleBQDatasetsResponse_Dataset[];
|
|
354
|
+
};
|
|
355
|
+
export type ListGoogleBQTablesRequest = {
|
|
356
|
+
application?: string;
|
|
357
|
+
datasetId?: string;
|
|
358
|
+
};
|
|
359
|
+
export type ListGoogleBQTablesResponse_Table = {
|
|
360
|
+
id: string;
|
|
361
|
+
/** BigQuery type: "TABLE", "VIEW", "MATERIALIZED_VIEW", "EXTERNAL", "SNAPSHOT" */
|
|
362
|
+
type: string;
|
|
363
|
+
};
|
|
364
|
+
export type ListGoogleBQTablesResponse = {
|
|
365
|
+
tables: ListGoogleBQTablesResponse_Table[];
|
|
366
|
+
};
|
|
279
367
|
export type SetMetaTagMappingResponse = {};
|