@pushwoosh/rpc-v2-http-api-data 0.1.934 → 0.1.936

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 +66 -0
  2. package/filters.d.ts +32 -0
  3. package/package.json +1 -1
package/data.js CHANGED
@@ -9273,6 +9273,12 @@ export const data = {
9273
9273
  "response": "pushwoosh.rpc_v2.filters.GetFilterUsageResponse",
9274
9274
  "method": "post",
9275
9275
  "path": "/api/filters:get-filter-usage"
9276
+ },
9277
+ "SearchAddress": {
9278
+ "request": "pushwoosh.rpc_v2.filters.SearchAddressRequest",
9279
+ "response": "pushwoosh.rpc_v2.filters.SearchAddressResponse",
9280
+ "method": "get",
9281
+ "path": "/api/filters:search-address"
9276
9282
  }
9277
9283
  }
9278
9284
  },
@@ -9726,6 +9732,66 @@ export const data = {
9726
9732
  }
9727
9733
  }
9728
9734
  },
9735
+ "pushwoosh.rpc_v2.filters.SearchAddressRequest": {
9736
+ "type": "I",
9737
+ "fields": {
9738
+ "application": {
9739
+ "type": "string"
9740
+ },
9741
+ "query": {
9742
+ "type": "string"
9743
+ },
9744
+ "countryBias": {
9745
+ "type": "string"
9746
+ }
9747
+ }
9748
+ },
9749
+ "pushwoosh.rpc_v2.filters.BoundingBox": {
9750
+ "type": "I",
9751
+ "fields": {
9752
+ "minLat": {
9753
+ "type": "number"
9754
+ },
9755
+ "minLon": {
9756
+ "type": "number"
9757
+ },
9758
+ "maxLat": {
9759
+ "type": "number"
9760
+ },
9761
+ "maxLon": {
9762
+ "type": "number"
9763
+ }
9764
+ }
9765
+ },
9766
+ "pushwoosh.rpc_v2.filters.AddressCandidate": {
9767
+ "type": "I",
9768
+ "fields": {
9769
+ "displayName": {
9770
+ "type": "string"
9771
+ },
9772
+ "lat": {
9773
+ "type": "number"
9774
+ },
9775
+ "lon": {
9776
+ "type": "number"
9777
+ },
9778
+ "bbox": {
9779
+ "type": "pushwoosh.rpc_v2.filters.BoundingBox"
9780
+ },
9781
+ "placeType": {
9782
+ "type": "string"
9783
+ }
9784
+ }
9785
+ },
9786
+ "pushwoosh.rpc_v2.filters.SearchAddressResponse": {
9787
+ "type": "I",
9788
+ "fields": {
9789
+ "candidates": {
9790
+ "type": "pushwoosh.rpc_v2.filters.AddressCandidate",
9791
+ "array": true
9792
+ }
9793
+ }
9794
+ },
9729
9795
  "pushwoosh.rpc_v2.filters.GetFilterUsageResponse.Journey": {
9730
9796
  "type": "I",
9731
9797
  "fields": {
package/filters.d.ts CHANGED
@@ -14,6 +14,7 @@ export type FiltersService_GetSeglang = RpcMethod<GetSeglangRequest, GetSeglangR
14
14
  export type FiltersService_SeglangToFilterExpression = RpcMethod<SeglangToFilterExpressionRequest, SeglangToFilterExpressionResponse>;
15
15
  export type FiltersService_GetMatchedSegments = RpcMethod<GetMatchedSegmentsRequest, GetMatchedSegmentsResponse>;
16
16
  export type FiltersService_GetFilterUsage = RpcMethod<GetFilterUsageRequest, GetFilterUsageResponse>;
17
+ export type FiltersService_SearchAddress = RpcMethod<SearchAddressRequest, SearchAddressResponse>;
17
18
  export interface FiltersService {
18
19
  List: FiltersService_List;
19
20
  Get: FiltersService_Get;
@@ -29,6 +30,7 @@ export interface FiltersService {
29
30
  SeglangToFilterExpression: FiltersService_SeglangToFilterExpression;
30
31
  GetMatchedSegments: FiltersService_GetMatchedSegments;
31
32
  GetFilterUsage: FiltersService_GetFilterUsage;
33
+ SearchAddress: FiltersService_SearchAddress;
32
34
  }
33
35
  export type ListFiltersRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
34
36
  export type ListFiltersRequest_OrderDirection = 'ASC' | 'DESC';
@@ -223,6 +225,36 @@ export type GetFilterUsageRequest = {
223
225
  filter?: string;
224
226
  onlyActiveCampaigns?: boolean;
225
227
  };
228
+ /**
229
+ * SearchAddress resolves a free-form address query (e.g. "Coffee shop, Berlin",
230
+ * "Tverskaya 1, Moscow") to a list of geocoded candidates the client can drop
231
+ * on a map. Used by the Geo segment-filter builder.
232
+ */
233
+ export type SearchAddressRequest = {
234
+ /** required when account has ApplicationSpecificFilters restriction, otherwise optional */
235
+ application?: string;
236
+ /** free-form address / place query, 3 chars minimum */
237
+ query?: string;
238
+ /** optional ISO-3166 alpha-2 country code to bias results (e.g. "ru", "de") */
239
+ countryBias?: string;
240
+ };
241
+ export type BoundingBox = {
242
+ minLat: number;
243
+ minLon: number;
244
+ maxLat: number;
245
+ maxLon: number;
246
+ };
247
+ export type AddressCandidate = {
248
+ displayName: string;
249
+ lat: number;
250
+ lon: number;
251
+ bbox: BoundingBox;
252
+ /** provider place classification (e.g. "city", "street", "house"); informative only */
253
+ placeType: string;
254
+ };
255
+ export type SearchAddressResponse = {
256
+ candidates: AddressCandidate[];
257
+ };
226
258
  export type GetFilterUsageResponse_Journey = {
227
259
  uuid: string;
228
260
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.934",
3
+ "version": "0.1.936",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",