@pushwoosh/rpc-v2-http-api-data 0.2.310 → 0.2.312

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
@@ -10584,6 +10584,9 @@ export const data = {
10584
10584
  },
10585
10585
  "offset": {
10586
10586
  "type": "number"
10587
+ },
10588
+ "includeDryRuns": {
10589
+ "type": "boolean"
10587
10590
  }
10588
10591
  }
10589
10592
  },
@@ -19155,6 +19158,18 @@ export const data = {
19155
19158
  "response": "pushwoosh.rpc_v2.integrations.DeleteFlightStatusConfigurationResponse",
19156
19159
  "method": "delete",
19157
19160
  "path": "/api/integrations/configurations/flight-status/{application}"
19161
+ },
19162
+ "CreateFlightStatusSubscription": {
19163
+ "request": "pushwoosh.rpc_v2.integrations.CreateFlightStatusSubscriptionRequest",
19164
+ "response": "pushwoosh.rpc_v2.integrations.CreateFlightStatusSubscriptionResponse",
19165
+ "method": "post",
19166
+ "path": "/api/integrations/flight-status/subscriptions"
19167
+ },
19168
+ "DeleteFlightStatusSubscription": {
19169
+ "request": "pushwoosh.rpc_v2.integrations.DeleteFlightStatusSubscriptionRequest",
19170
+ "response": "pushwoosh.rpc_v2.integrations.DeleteFlightStatusSubscriptionResponse",
19171
+ "method": "post",
19172
+ "path": "/api/integrations/flight-status/subscriptions/delete"
19158
19173
  }
19159
19174
  }
19160
19175
  },
@@ -20354,6 +20369,70 @@ export const data = {
20354
20369
  "type": "I",
20355
20370
  "fields": {}
20356
20371
  },
20372
+ "pushwoosh.rpc_v2.integrations.FlightStatusFlight": {
20373
+ "type": "I",
20374
+ "fields": {
20375
+ "carrier": {
20376
+ "type": "string"
20377
+ },
20378
+ "flightNumber": {
20379
+ "type": "string"
20380
+ },
20381
+ "flightDate": {
20382
+ "type": "string"
20383
+ },
20384
+ "departureAirport": {
20385
+ "type": "string"
20386
+ }
20387
+ }
20388
+ },
20389
+ "pushwoosh.rpc_v2.integrations.CreateFlightStatusSubscriptionRequest": {
20390
+ "type": "I",
20391
+ "fields": {
20392
+ "application": {
20393
+ "type": "string"
20394
+ },
20395
+ "userId": {
20396
+ "type": "string"
20397
+ },
20398
+ "flight": {
20399
+ "type": "pushwoosh.rpc_v2.integrations.FlightStatusFlight"
20400
+ },
20401
+ "source": {
20402
+ "type": "string"
20403
+ }
20404
+ }
20405
+ },
20406
+ "pushwoosh.rpc_v2.integrations.CreateFlightStatusSubscriptionResponse": {
20407
+ "type": "I",
20408
+ "fields": {
20409
+ "flightKey": {
20410
+ "type": "string"
20411
+ }
20412
+ }
20413
+ },
20414
+ "pushwoosh.rpc_v2.integrations.DeleteFlightStatusSubscriptionRequest": {
20415
+ "type": "I",
20416
+ "fields": {
20417
+ "application": {
20418
+ "type": "string"
20419
+ },
20420
+ "userId": {
20421
+ "type": "string"
20422
+ },
20423
+ "flight": {
20424
+ "type": "pushwoosh.rpc_v2.integrations.FlightStatusFlight"
20425
+ }
20426
+ }
20427
+ },
20428
+ "pushwoosh.rpc_v2.integrations.DeleteFlightStatusSubscriptionResponse": {
20429
+ "type": "I",
20430
+ "fields": {
20431
+ "deleted": {
20432
+ "type": "boolean"
20433
+ }
20434
+ }
20435
+ },
20357
20436
  "pushwoosh.rpc_v2.internal_alerts.InternalAlertsService": {
20358
20437
  "type": "S",
20359
20438
  "key": "internalAlerts",
package/data_erasure.d.ts CHANGED
@@ -14,7 +14,7 @@ export interface DataErasureService {
14
14
  CreateTask: DataErasureService_CreateTask;
15
15
  /** Returns one data erasure task with its status and counters: how many subjects were erased, not found or failed. Use to follow a task started by create_data_erasure_task. */
16
16
  GetTask: DataErasureService_GetTask;
17
- /** Lists data erasure tasks of the account, newest first — the audit journal of who erased what and when. Use to show the operations log or to export it. */
17
+ /** Lists the erasures of the account, newest first — the audit journal of who erased what and when. Dry runs are measurements and are left out; pass include_dry_runs to see them next to the erasures they measured. */
18
18
  ListTasks: DataErasureService_ListTasks;
19
19
  /** Returns the per-identifier outcome of one task: what was deleted, not found, skipped or failed. Identifiers are reported as hashes, the task never stores them in the clear. */
20
20
  ListTaskRows: DataErasureService_ListTaskRows;
@@ -50,6 +50,8 @@ export type GetDataErasureTaskResponse = {
50
50
  export type ListDataErasureTasksRequest = {
51
51
  limit?: number;
52
52
  offset?: number;
53
+ /** Dry runs are measurements, not erasures, and are left out unless asked for. */
54
+ includeDryRuns?: boolean;
53
55
  };
54
56
  export type ListDataErasureTasksResponse = {
55
57
  tasks: DataErasureTask[];
package/integrations.d.ts CHANGED
@@ -47,6 +47,8 @@ export type IntegrationsService_ListGoogleBQTables = RpcMethod<ListGoogleBQTable
47
47
  export type IntegrationsService_GetFlightStatusConfiguration = RpcMethod<GetFlightStatusConfigurationRequest, GetFlightStatusConfigurationResponse>;
48
48
  export type IntegrationsService_CreateFlightStatusConfiguration = RpcMethod<CreateFlightStatusConfigurationRequest, CreateFlightStatusConfigurationResponse>;
49
49
  export type IntegrationsService_DeleteFlightStatusConfiguration = RpcMethod<DeleteFlightStatusConfigurationRequest, DeleteFlightStatusConfigurationResponse>;
50
+ export type IntegrationsService_CreateFlightStatusSubscription = RpcMethod<CreateFlightStatusSubscriptionRequest, CreateFlightStatusSubscriptionResponse>;
51
+ export type IntegrationsService_DeleteFlightStatusSubscription = RpcMethod<DeleteFlightStatusSubscriptionRequest, DeleteFlightStatusSubscriptionResponse>;
50
52
  export interface IntegrationsService {
51
53
  /** Lists which output integrations (webhook, Segment, Piano, HubSpot, Shopify, Stripe, Meta, Google BigQuery, Google, inbound webhook) are configured for an application code XXXXX-XXXXX. Use for an at-a-glance configured/not-configured overview before fetching a specific integration's configuration. */
52
54
  ListIntegrationsConfiguration: IntegrationsService_ListIntegrationsConfiguration;
@@ -182,6 +184,10 @@ export interface IntegrationsService {
182
184
  CreateFlightStatusConfiguration: IntegrationsService_CreateFlightStatusConfiguration;
183
185
  /** Removes the flight-status integration of an application code XXXXX-XXXXX. Flight subscriptions survive, but without a key their watches stop being refreshed. */
184
186
  DeleteFlightStatusConfiguration: IntegrationsService_DeleteFlightStatusConfiguration;
187
+ /** Subscribes one passenger of an application code XXXXX-XXXXX to one flight, so every change of that flight posts PW_FlightStatusChanged for the user. Repeating the call refreshes the expiry instead of creating a second subscription. */
188
+ CreateFlightStatusSubscription: IntegrationsService_CreateFlightStatusSubscription;
189
+ /** Removes one passenger's subscription to one flight. The flight itself stays watched while another passenger is subscribed to it. */
190
+ DeleteFlightStatusSubscription: IntegrationsService_DeleteFlightStatusSubscription;
185
191
  }
186
192
  /** Integration contains all available integration for clients (to update props) */
187
193
  export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META' | 'INBOUND_WEBHOOK' | 'GOOGLE_BQ' | 'GOOGLE' | 'AZURE' | 'SALESFORCE' | 'DYNAMICS' | 'GOOGLE_ADS' | 'FLIGHT_STATUS';
@@ -676,3 +682,30 @@ export type DeleteFlightStatusConfigurationRequest = {
676
682
  application?: string;
677
683
  };
678
684
  export type DeleteFlightStatusConfigurationResponse = {};
685
+ /** Flight identifies one leg on one day: the connector keys everything by this. */
686
+ export type FlightStatusFlight = {
687
+ carrier: string;
688
+ flightNumber: string;
689
+ /** Departure date in the local time of the departure airport, YYYY-MM-DD. */
690
+ flightDate: string;
691
+ departureAirport: string;
692
+ };
693
+ export type CreateFlightStatusSubscriptionRequest = {
694
+ application?: string;
695
+ userId?: string;
696
+ flight?: FlightStatusFlight;
697
+ /** Free-form marker of who subscribed, e.g. the journey that did it. */
698
+ source?: string;
699
+ };
700
+ export type CreateFlightStatusSubscriptionResponse = {
701
+ /** flight_key is the value journeys match their traveler subkey against. */
702
+ flightKey: string;
703
+ };
704
+ export type DeleteFlightStatusSubscriptionRequest = {
705
+ application?: string;
706
+ userId?: string;
707
+ flight?: FlightStatusFlight;
708
+ };
709
+ export type DeleteFlightStatusSubscriptionResponse = {
710
+ deleted: boolean;
711
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.310",
3
+ "version": "0.2.312",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",