@openvoy/openvoy-typescriptmodels 0.0.2131 → 0.0.2161

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 (2) hide show
  1. package/core.d.ts +124 -19
  2. package/package.json +1 -1
package/core.d.ts CHANGED
@@ -1,4 +1,12 @@
1
1
 
2
+ export interface Address {
3
+ city?: string;
4
+ country?: string;
5
+ state?: string;
6
+ street?: string;
7
+ zipCode?: string;
8
+ }
9
+
2
10
  export interface ApiKeyResult {
3
11
  issuedAt?: string;
4
12
  key?: string;
@@ -6,6 +14,63 @@ export interface ApiKeyResult {
6
14
  userId?: UserId;
7
15
  }
8
16
 
17
+ export interface Attraction {
18
+ alias?: string;
19
+ attractionId?: AttractionId;
20
+ countryIsoCode?: string;
21
+ details?: AttractionDetails;
22
+ providerDetails?: { [index: string]: AttractionProviderDetails };
23
+ }
24
+
25
+ export interface AttractionCommand extends CountryUpdate {
26
+ attractionId?: AttractionId;
27
+ }
28
+
29
+ export interface AttractionDetails {
30
+ address?: Address;
31
+ cities?: string[];
32
+ description?: string;
33
+ freeAttraction?: boolean;
34
+ images?: Image[];
35
+ name?: string;
36
+ openingHours?: string;
37
+ provider?: TourProvider;
38
+ providerUrl?: string;
39
+ reviews?: ReviewDetails;
40
+ tours?: TourProviderId[];
41
+ }
42
+
43
+ export interface AttractionId {
44
+ type?: any;
45
+ }
46
+
47
+ export interface AttractionInfo {
48
+ alias?: string;
49
+ attractionId?: AttractionId;
50
+ cities?: string[];
51
+ continent?: Continent;
52
+ countryId?: string;
53
+ details?: AttractionDetails;
54
+ regionId?: string;
55
+ subContinent?: string;
56
+ timestampOfTourCount?: string;
57
+ totalScore?: number;
58
+ tours?: { [index: string]: number };
59
+ }
60
+
61
+ export interface AttractionProviderDetails {
62
+ alias?: AttractionProviderId;
63
+ attractionCode?: string;
64
+ provider?: TourProvider;
65
+ }
66
+
67
+ export interface AttractionProviderId {
68
+ type?: any;
69
+ }
70
+
71
+ export interface AttractionUpdate extends AttractionCommand {
72
+ }
73
+
9
74
  export interface Category {
10
75
  activityTags?: string[];
11
76
  alias?: string;
@@ -27,6 +92,7 @@ export interface CategoryCode {
27
92
 
28
93
  export interface City {
29
94
  alias?: string;
95
+ attractions?: Attraction[];
30
96
  cityId?: string;
31
97
  countryIsoCode?: string;
32
98
  details?: CityDetails;
@@ -95,6 +161,7 @@ export interface ContinentInfo {
95
161
  }
96
162
 
97
163
  export interface Country {
164
+ attractions?: Attraction[];
98
165
  cities?: City[];
99
166
  countryId?: string;
100
167
  details?: CountryDetails;
@@ -143,7 +210,7 @@ export interface CountryUpdate {
143
210
  countryId?: string;
144
211
  }
145
212
 
146
- export interface CreateTour extends TourUpdate {
213
+ export interface CreateTour extends TourDetailsUpdate {
147
214
  cityId?: string;
148
215
  continent?: Continent;
149
216
  countryId?: string;
@@ -162,6 +229,10 @@ export interface DateRange extends Comparable<DateRange> {
162
229
  start?: string;
163
230
  }
164
231
 
232
+ export interface DeleteAttraction {
233
+ attractionId?: AttractionId;
234
+ }
235
+
165
236
  export interface DeleteTour {
166
237
  tourId?: TourId;
167
238
  }
@@ -223,8 +294,7 @@ export interface FeatureCountry extends CountryUpdate {
223
294
  export interface FetchString {
224
295
  }
225
296
 
226
- export interface FindCities extends FacetedSearch<City> {
227
- term?: string;
297
+ export interface FindAttractionInfos extends FacetedSearch<AttractionInfo> {
228
298
  }
229
299
 
230
300
  export interface FindCitiesByName {
@@ -241,7 +311,7 @@ export interface FindCountries extends FacetedSearch<Country> {
241
311
  term?: string;
242
312
  }
243
313
 
244
- export interface FindCountriesByCategory {
314
+ export interface FindCountriesByCategory extends FacetedSearch<CountryInfo> {
245
315
  category?: string;
246
316
  }
247
317
 
@@ -398,6 +468,14 @@ export interface GetUsers extends FacetableRequest, FacetedSearch<UserProfile> {
398
468
  term?: string;
399
469
  }
400
470
 
471
+ export interface Image {
472
+ copyright?: string;
473
+ height?: number;
474
+ resolution?: number;
475
+ url?: string;
476
+ width?: number;
477
+ }
478
+
401
479
  export interface InstantRange extends Comparable<InstantRange> {
402
480
  end?: string;
403
481
  start?: string;
@@ -454,6 +532,17 @@ export interface RegisteredEmailAddress {
454
532
  emailAddress?: Email;
455
533
  }
456
534
 
535
+ export interface ReviewDetails {
536
+ averageRating?: number;
537
+ reviews?: ReviewSummary[];
538
+ totalReviews?: number;
539
+ }
540
+
541
+ export interface ReviewSummary {
542
+ count?: number;
543
+ rating?: number;
544
+ }
545
+
457
546
  export interface SearchCategories {
458
547
  converter?: Function<any, Category>;
459
548
  term?: string;
@@ -578,6 +667,7 @@ export interface TagUpdate extends TagCommand {
578
667
  }
579
668
 
580
669
  export interface Tour {
670
+ attractions?: AttractionId[];
581
671
  cityId?: string;
582
672
  continent?: Continent;
583
673
  countryId?: string;
@@ -595,7 +685,7 @@ export interface TourDetails {
595
685
  certified?: boolean;
596
686
  description?: string;
597
687
  durationInHours?: number;
598
- images?: TourImage[];
688
+ images?: Image[];
599
689
  name?: string;
600
690
  openingHours?: InstantRange[];
601
691
  pricing?: { [index: string]: TourPricing };
@@ -607,21 +697,17 @@ export interface TourDetails {
607
697
  tourScore?: number;
608
698
  }
609
699
 
610
- export interface TourId {
611
- type?: any;
700
+ export interface TourDetailsUpdate extends TourUpdate {
701
+ details?: TourDetails;
612
702
  }
613
703
 
614
- export interface TourImage {
615
- copyright?: string;
616
- height?: number;
617
- resolution?: number;
618
- url?: string;
619
- width?: number;
704
+ export interface TourId {
705
+ type?: any;
620
706
  }
621
707
 
622
708
  export interface TourInfo {
623
- bestLandscapeImage?: TourImage;
624
- bestPortraitImage?: TourImage;
709
+ bestLandscapeImage?: Image;
710
+ bestPortraitImage?: Image;
625
711
  rating?: RatingDetails;
626
712
  ratingScore?: number;
627
713
  tourId?: TourId;
@@ -649,7 +735,6 @@ export interface TourProviderId {
649
735
  }
650
736
 
651
737
  export interface TourUpdate {
652
- details?: TourDetails;
653
738
  tourId?: TourId;
654
739
  }
655
740
 
@@ -660,7 +745,7 @@ export interface UiUpdate {
660
745
  type?: Type;
661
746
  }
662
747
 
663
- export interface UpdateTour extends TourUpdate {
748
+ export interface UpdateTour extends TourDetailsUpdate {
664
749
  cityId?: string;
665
750
  continent?: Continent;
666
751
  countryId?: string;
@@ -673,6 +758,22 @@ export interface UpdateUser extends UserUpdate {
673
758
  details?: UserDetails;
674
759
  }
675
760
 
761
+ export interface UpsertAttraction extends UpsertAttractionCommand {
762
+ cityId?: string;
763
+ }
764
+
765
+ export interface UpsertAttractionCommand extends AttractionCommand {
766
+ details?: AttractionDetails;
767
+ providerDetails?: AttractionProviderDetails;
768
+ }
769
+
770
+ export interface UpsertAttractionForCity extends UpsertAttractionCommand {
771
+ cityId?: string;
772
+ }
773
+
774
+ export interface UpsertAttractionForCountry extends UpsertAttractionCommand {
775
+ }
776
+
676
777
  export interface UpsertCity extends CityUpdate {
677
778
  providerDetails?: CityProviderDetails;
678
779
  }
@@ -710,7 +811,7 @@ export interface UpsertTagRelationships extends TagUpdate {
710
811
  parentTags?: { [index: string]: TagDetails };
711
812
  }
712
813
 
713
- export interface UpsertTour extends TourUpdate {
814
+ export interface UpsertTour extends TourDetailsUpdate {
714
815
  cityId?: string;
715
816
  continent?: Continent;
716
817
  countryId?: string;
@@ -719,8 +820,12 @@ export interface UpsertTour extends TourUpdate {
719
820
  subContinent?: string;
720
821
  }
721
822
 
823
+ export interface UpsertTourAttraction extends TourUpdate {
824
+ attractionId?: AttractionId;
825
+ }
826
+
722
827
  export interface UpsertTours {
723
- tours?: TourUpdate[];
828
+ tours?: TourDetailsUpdate[];
724
829
  }
725
830
 
726
831
  export interface UserDetails {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@openvoy/openvoy-typescriptmodels",
3
- "version": "0.0.2131",
3
+ "version": "0.0.2161",
4
4
  "types": "core.d.ts"
5
5
  }