@pushwoosh/rpc-v2-http-api-data 0.2.309 → 0.2.311
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 +76 -0
- package/integrations.d.ts +33 -0
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -19155,6 +19155,18 @@ export const data = {
|
|
|
19155
19155
|
"response": "pushwoosh.rpc_v2.integrations.DeleteFlightStatusConfigurationResponse",
|
|
19156
19156
|
"method": "delete",
|
|
19157
19157
|
"path": "/api/integrations/configurations/flight-status/{application}"
|
|
19158
|
+
},
|
|
19159
|
+
"CreateFlightStatusSubscription": {
|
|
19160
|
+
"request": "pushwoosh.rpc_v2.integrations.CreateFlightStatusSubscriptionRequest",
|
|
19161
|
+
"response": "pushwoosh.rpc_v2.integrations.CreateFlightStatusSubscriptionResponse",
|
|
19162
|
+
"method": "post",
|
|
19163
|
+
"path": "/api/integrations/flight-status/subscriptions"
|
|
19164
|
+
},
|
|
19165
|
+
"DeleteFlightStatusSubscription": {
|
|
19166
|
+
"request": "pushwoosh.rpc_v2.integrations.DeleteFlightStatusSubscriptionRequest",
|
|
19167
|
+
"response": "pushwoosh.rpc_v2.integrations.DeleteFlightStatusSubscriptionResponse",
|
|
19168
|
+
"method": "post",
|
|
19169
|
+
"path": "/api/integrations/flight-status/subscriptions/delete"
|
|
19158
19170
|
}
|
|
19159
19171
|
}
|
|
19160
19172
|
},
|
|
@@ -20354,6 +20366,70 @@ export const data = {
|
|
|
20354
20366
|
"type": "I",
|
|
20355
20367
|
"fields": {}
|
|
20356
20368
|
},
|
|
20369
|
+
"pushwoosh.rpc_v2.integrations.FlightStatusFlight": {
|
|
20370
|
+
"type": "I",
|
|
20371
|
+
"fields": {
|
|
20372
|
+
"carrier": {
|
|
20373
|
+
"type": "string"
|
|
20374
|
+
},
|
|
20375
|
+
"flightNumber": {
|
|
20376
|
+
"type": "string"
|
|
20377
|
+
},
|
|
20378
|
+
"flightDate": {
|
|
20379
|
+
"type": "string"
|
|
20380
|
+
},
|
|
20381
|
+
"departureAirport": {
|
|
20382
|
+
"type": "string"
|
|
20383
|
+
}
|
|
20384
|
+
}
|
|
20385
|
+
},
|
|
20386
|
+
"pushwoosh.rpc_v2.integrations.CreateFlightStatusSubscriptionRequest": {
|
|
20387
|
+
"type": "I",
|
|
20388
|
+
"fields": {
|
|
20389
|
+
"application": {
|
|
20390
|
+
"type": "string"
|
|
20391
|
+
},
|
|
20392
|
+
"userId": {
|
|
20393
|
+
"type": "string"
|
|
20394
|
+
},
|
|
20395
|
+
"flight": {
|
|
20396
|
+
"type": "pushwoosh.rpc_v2.integrations.FlightStatusFlight"
|
|
20397
|
+
},
|
|
20398
|
+
"source": {
|
|
20399
|
+
"type": "string"
|
|
20400
|
+
}
|
|
20401
|
+
}
|
|
20402
|
+
},
|
|
20403
|
+
"pushwoosh.rpc_v2.integrations.CreateFlightStatusSubscriptionResponse": {
|
|
20404
|
+
"type": "I",
|
|
20405
|
+
"fields": {
|
|
20406
|
+
"flightKey": {
|
|
20407
|
+
"type": "string"
|
|
20408
|
+
}
|
|
20409
|
+
}
|
|
20410
|
+
},
|
|
20411
|
+
"pushwoosh.rpc_v2.integrations.DeleteFlightStatusSubscriptionRequest": {
|
|
20412
|
+
"type": "I",
|
|
20413
|
+
"fields": {
|
|
20414
|
+
"application": {
|
|
20415
|
+
"type": "string"
|
|
20416
|
+
},
|
|
20417
|
+
"userId": {
|
|
20418
|
+
"type": "string"
|
|
20419
|
+
},
|
|
20420
|
+
"flight": {
|
|
20421
|
+
"type": "pushwoosh.rpc_v2.integrations.FlightStatusFlight"
|
|
20422
|
+
}
|
|
20423
|
+
}
|
|
20424
|
+
},
|
|
20425
|
+
"pushwoosh.rpc_v2.integrations.DeleteFlightStatusSubscriptionResponse": {
|
|
20426
|
+
"type": "I",
|
|
20427
|
+
"fields": {
|
|
20428
|
+
"deleted": {
|
|
20429
|
+
"type": "boolean"
|
|
20430
|
+
}
|
|
20431
|
+
}
|
|
20432
|
+
},
|
|
20357
20433
|
"pushwoosh.rpc_v2.internal_alerts.InternalAlertsService": {
|
|
20358
20434
|
"type": "S",
|
|
20359
20435
|
"key": "internalAlerts",
|
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
|
+
};
|