@be-link/vitality-cli-nodejs 0.0.11 → 0.0.13

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.
@@ -0,0 +1,107 @@
1
+ export declare namespace POI {
2
+ interface Entity {
3
+ _id: string;
4
+ name: string;
5
+ type: 'STORE';
6
+ status: 'ACTIVE' | 'INACTIVE';
7
+ gis: {
8
+ x: number;
9
+ y: number;
10
+ };
11
+ geohash: string;
12
+ phone: string;
13
+ contactName: string;
14
+ address: string;
15
+ province: string;
16
+ city: string;
17
+ region: string;
18
+ _updateTime: number;
19
+ _createTime: number;
20
+ }
21
+ interface CityGroup {
22
+ city: string;
23
+ storeCount: number;
24
+ }
25
+ interface ItemStoreInfo {
26
+ longitude: number;
27
+ latitude: number;
28
+ minPrice: number;
29
+ [key: string]: unknown;
30
+ }
31
+ interface Suggestion {
32
+ title: string;
33
+ address: string;
34
+ province: string;
35
+ city: string;
36
+ district: string;
37
+ location: string;
38
+ }
39
+ namespace Main {
40
+ namespace Request {
41
+ interface AddPoi {
42
+ name: string;
43
+ address: string;
44
+ province: string;
45
+ city: string;
46
+ region: string;
47
+ longitude: number;
48
+ latitude: number;
49
+ phone: string;
50
+ contactName: string;
51
+ }
52
+ interface Location {
53
+ longitude: number;
54
+ latitude: number;
55
+ }
56
+ interface Direction {
57
+ from: string;
58
+ to: string;
59
+ }
60
+ interface CityCategory {
61
+ category: '聚会酒店' | '一日聚';
62
+ }
63
+ interface ItemStoreByCity extends CityCategory {
64
+ city: string;
65
+ }
66
+ interface ItemsByLocation extends ItemStoreByCity, Location {
67
+ radius?: number;
68
+ }
69
+ interface NearlyPoi extends Location {
70
+ address: string;
71
+ }
72
+ interface PoiIds {
73
+ ids: string[];
74
+ }
75
+ interface SuggestionsByKeyword {
76
+ region: string;
77
+ keyword: string;
78
+ }
79
+ }
80
+ interface AddressInfo {
81
+ city: string;
82
+ province: string;
83
+ region: string;
84
+ }
85
+ interface PoiInfo {
86
+ distance: number;
87
+ duration: number;
88
+ }
89
+ interface Controller {
90
+ getPoiById(poiId: string): Promise<Entity>;
91
+ addPoi(request: Request.AddPoi): Promise<{
92
+ poiId: string;
93
+ idempotent: boolean;
94
+ }>;
95
+ updatePoi(poiId: string): Promise<void>;
96
+ getAddressInfoByLocation(request: Request.Location): Promise<AddressInfo>;
97
+ getDrivingPoiInfo(request: Request.Direction): Promise<PoiInfo | null>;
98
+ getDirectionWalkingInfo(request: Request.Direction): Promise<PoiInfo | null>;
99
+ queryCityGroupInfo(request: Request.CityCategory): Promise<CityGroup[]>;
100
+ getItemStoreInfoByCity(request: Request.ItemStoreByCity): Promise<ItemStoreInfo[]>;
101
+ queryItemsByLocation(request: Request.ItemsByLocation): Promise<ItemStoreInfo[]>;
102
+ queryNearlyPOI(request: Request.NearlyPoi): Promise<Entity[]>;
103
+ queryByPoiIds(request: Request.PoiIds): Promise<Entity[]>;
104
+ getSuggestionsByKeyword(request: Request.SuggestionsByKeyword): Promise<Suggestion[]>;
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/vs/modules/biz/poi/type.ts"],"names":[],"mappings":""}