@openvoy/openvoy-typescriptmodels 0.0.2442 → 0.0.2461

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 +149 -133
  2. package/package.json +1 -1
package/core.d.ts CHANGED
@@ -45,16 +45,10 @@ export interface AttractionDetails {
45
45
  export interface AttractionInfo {
46
46
  alias?: string;
47
47
  attractionId?: string;
48
- cities?: string[];
49
- continent?: Continent;
50
48
  countryDetails?: CountryDetails;
51
- countryId?: string;
49
+ destinationIds?: DestinationIds;
52
50
  details?: AttractionDetails;
53
51
  primaryCity?: CityDetails;
54
- primaryCityId?: string;
55
- regionId?: string;
56
- subContinent?: string;
57
- timestampOfTourCount?: string;
58
52
  totalScore?: number;
59
53
  tours?: { [index: string]: number };
60
54
  }
@@ -69,11 +63,22 @@ export interface AttractionProviderId {
69
63
  type?: any;
70
64
  }
71
65
 
66
+ export interface AttractionSummary {
67
+ alias?: string;
68
+ attractionId?: string;
69
+ countryDetails?: CountryDetails;
70
+ destinationIds?: DestinationIds;
71
+ details?: AttractionDetails;
72
+ primaryCity?: CityDetails;
73
+ timestampOfTotalScore?: string;
74
+ totalScore?: number;
75
+ tourCount?: number;
76
+ }
77
+
72
78
  export interface AttractionUpdate extends AttractionCommand {
73
79
  }
74
80
 
75
81
  export interface Category {
76
- activityTags?: string[];
77
82
  alias?: string;
78
83
  categoryId?: string;
79
84
  city?: string;
@@ -105,24 +110,8 @@ export interface CityDetails {
105
110
  description?: string;
106
111
  imageUrl?: string;
107
112
  name?: string;
108
- region?: Region;
109
- tourImageUrl?: string;
110
- }
111
-
112
- export interface CityInfo {
113
- alias?: string;
114
- cityId?: string;
115
- continent?: Continent;
116
- countryDetails?: CountryDetails;
117
- countryId?: string;
118
- details?: CityDetails;
119
- newTags?: { [index: string]: TagScoreInfo };
120
- newTours?: { [index: string]: number };
121
113
  regionId?: string;
122
- subContinent?: string;
123
- timestampOfTourCount?: string;
124
- totalScore?: number;
125
- tourWithImageForCity?: Tour;
114
+ tourImageUrl?: string;
126
115
  }
127
116
 
128
117
  export interface CityProviderDetails {
@@ -149,18 +138,6 @@ export interface CityUpdate extends CountryUpdate {
149
138
  export interface Comparable<T> {
150
139
  }
151
140
 
152
- export interface ContinentInfo {
153
- alias?: string;
154
- bestTour?: TourInfo;
155
- continent?: Continent;
156
- countries?: { [index: string]: CountryDetails };
157
- newTags?: { [index: string]: TagScoreInfo };
158
- newTours?: { [index: string]: number };
159
- subContinents?: string[];
160
- timestampOfTourCount?: string;
161
- totalScore?: number;
162
- }
163
-
164
141
  export interface Country {
165
142
  attractions?: Attraction[];
166
143
  cities?: City[];
@@ -169,6 +146,7 @@ export interface Country {
169
146
  featured?: boolean;
170
147
  providerAliases?: string[];
171
148
  providerDetails?: { [index: string]: CountryProviderDetails };
149
+ regions?: Region[];
172
150
  }
173
151
 
174
152
  export interface CountryDetails {
@@ -186,17 +164,6 @@ export interface CountryDetails {
186
164
  timeZone?: string;
187
165
  }
188
166
 
189
- export interface CountryInfo {
190
- cities?: City[];
191
- countryId?: string;
192
- details?: CountryDetails;
193
- newTags?: { [index: string]: TagScoreInfo };
194
- newTours?: { [index: string]: number };
195
- regions?: Region[];
196
- timestampOfTourCount?: string;
197
- totalScore?: number;
198
- }
199
-
200
167
  export interface CountryProviderDetails {
201
168
  alias?: CountryProviderId;
202
169
  countryCode?: string;
@@ -214,7 +181,6 @@ export interface CountryUpdate {
214
181
  export interface CreateTour extends TourDetailsUpdate {
215
182
  cityId?: string;
216
183
  continent?: Continent;
217
- countryId?: string;
218
184
  providerDetails?: TourProviderDetails;
219
185
  regionId?: string;
220
186
  subContinent?: string;
@@ -233,10 +199,6 @@ export interface DateRange extends Comparable<DateRange> {
233
199
  export interface DeleteAttraction extends AttractionCommand {
234
200
  }
235
201
 
236
- export interface DeleteAttractions {
237
- batchSize?: number;
238
- }
239
-
240
202
  export interface DeleteTour {
241
203
  tourId?: TourId;
242
204
  }
@@ -244,14 +206,67 @@ export interface DeleteTour {
244
206
  export interface DeleteUser extends UserUpdate {
245
207
  }
246
208
 
247
- export interface DestinationInfoCollected {
209
+ export interface DestinationCityDetails {
210
+ details?: CityDetails;
211
+ }
212
+
213
+ export interface DestinationContinentDetails {
214
+ countryBestTours?: { [index: string]: TourInfo };
215
+ }
216
+
217
+ export interface DestinationCountryDetails {
218
+ cityBestTours?: { [index: string]: TourInfo };
219
+ details?: CountryDetails;
220
+ }
221
+
222
+ export interface DestinationIds {
248
223
  cityId?: string;
249
224
  continent?: Continent;
250
225
  countryId?: string;
251
- details?: TagDetailsInfo[];
252
226
  regionId?: string;
253
227
  subContinent?: string;
254
- tags?: string[];
228
+ }
229
+
230
+ export interface DestinationInfo {
231
+ alias?: string;
232
+ bestTour?: TourInfo;
233
+ cityDetails?: DestinationCityDetails;
234
+ continentDetails?: DestinationContinentDetails;
235
+ countryDetails?: DestinationCountryDetails;
236
+ destinationId?: string;
237
+ destinationIds?: DestinationIds;
238
+ name?: string;
239
+ regionDetails?: DestinationRegionDetails;
240
+ subContinentDetails?: DestinationSubContinentDetails;
241
+ totalScore?: number;
242
+ tours?: { [index: string]: number };
243
+ type?: DestinationType;
244
+ }
245
+
246
+ export interface DestinationRegionDetails {
247
+ cityBestTours?: { [index: string]: TourInfo };
248
+ details?: RegionDetails;
249
+ }
250
+
251
+ export interface DestinationSubContinentDetails {
252
+ countryBestTours?: { [index: string]: TourInfo };
253
+ }
254
+
255
+ export interface DestinationSummary {
256
+ alias?: string;
257
+ bestTour?: TourInfo;
258
+ cityDetails?: DestinationCityDetails;
259
+ continentDetails?: DestinationContinentDetails;
260
+ countryDetails?: DestinationCountryDetails;
261
+ destinationId?: string;
262
+ destinationIds?: DestinationIds;
263
+ name?: string;
264
+ regionDetails?: DestinationRegionDetails;
265
+ subContinentDetails?: DestinationSubContinentDetails;
266
+ timestampOfTotalScore?: string;
267
+ totalScore?: number;
268
+ tourCount?: number;
269
+ type?: DestinationType;
255
270
  }
256
271
 
257
272
  export interface Email {
@@ -298,45 +313,32 @@ export interface FeatureCountry extends CountryUpdate {
298
313
  export interface FetchString {
299
314
  }
300
315
 
301
- export interface FindAttractionInfos extends FacetedSearch<AttractionInfo> {
316
+ export interface FindAttractionSummaries extends FacetedSearch<AttractionSummary> {
302
317
  }
303
318
 
304
319
  export interface FindCitiesByName {
305
320
  name?: string;
306
321
  }
307
322
 
308
- export interface FindCityInfos extends FacetedSearch<CityInfo> {
309
- }
310
-
311
- export interface FindContinentInfos extends FacetedSearch<ContinentInfo> {
312
- }
313
-
314
323
  export interface FindCountries extends FacetedSearch<Country> {
315
324
  term?: string;
316
325
  }
317
326
 
318
- export interface FindCountriesByCategory extends FacetedSearch<CountryInfo> {
327
+ export interface FindCountriesByCategory extends FacetedSearch<DestinationSummary> {
319
328
  category?: string;
320
329
  }
321
330
 
322
- export interface FindCountryInfos extends FacetedSearch<CountryInfo> {
323
- }
324
-
325
- export interface FindRegionInfos extends FacetedSearch<RegionInfo> {
331
+ export interface FindDestinations extends FacetedSearch<DestinationSummary> {
332
+ type?: DestinationType;
326
333
  }
327
334
 
328
335
  export interface FindRegisteredEmailAddresses {
329
336
  from?: string;
330
337
  }
331
338
 
332
- export interface FindSubContinentInfos extends FacetedSearch<SubContinentInfo> {
333
- }
334
-
335
- export interface FindTagCities {
336
- tagId?: string;
337
- }
338
-
339
- export interface FindTagInfos extends FacetedSearch<TagInfo> {
339
+ export interface FindTagSummaries extends FacetedSearch<TagSummary> {
340
+ destinationId?: string;
341
+ type?: DestinationType;
340
342
  }
341
343
 
342
344
  export interface FindTags extends FacetedSearch<Tag> {
@@ -372,6 +374,10 @@ export interface GenerateKeyPair {
372
374
  }
373
375
 
374
376
  export interface GetAttractionInfo {
377
+ attractionId?: string;
378
+ }
379
+
380
+ export interface GetAttractionSummary {
375
381
  alias?: string;
376
382
  }
377
383
 
@@ -399,14 +405,6 @@ export interface GetCityForProvider {
399
405
  providerId?: CityProviderId;
400
406
  }
401
407
 
402
- export interface GetCityInfo {
403
- cityId?: string;
404
- }
405
-
406
- export interface GetContinentInfo {
407
- continent?: Continent;
408
- }
409
-
410
408
  export interface GetCountriesForHomePage {
411
409
  }
412
410
 
@@ -420,16 +418,22 @@ export interface GetCountryForProvider {
420
418
  providerId?: CountryProviderId;
421
419
  }
422
420
 
423
- export interface GetCountryInfo {
424
- countryId?: string;
425
- }
426
-
427
421
  export interface GetCountryOfCity {
428
422
  countryCode?: string;
429
423
  name?: string;
430
424
  providerId?: CityProviderId;
431
425
  }
432
426
 
427
+ export interface GetDestination {
428
+ alias?: string;
429
+ type?: DestinationType;
430
+ }
431
+
432
+ export interface GetDestinationInfo {
433
+ id?: string;
434
+ type?: DestinationType;
435
+ }
436
+
433
437
  export interface GetFacets extends FacetableRequest {
434
438
  query?: FacetableRequest;
435
439
  }
@@ -438,28 +442,29 @@ export interface GetPublicKey {
438
442
  userId?: UserId;
439
443
  }
440
444
 
441
- export interface GetRegionInfo {
442
- regionId?: string;
445
+ export interface GetRegionForProvider {
446
+ countryCode?: string;
447
+ name?: string;
448
+ providerId?: RegionProviderId;
443
449
  }
444
450
 
445
451
  export interface GetSender {
446
452
  userId?: UserId;
447
453
  }
448
454
 
449
- export interface GetSubContinentInfo {
450
- subContinentId?: string;
451
- }
452
-
453
- export interface GetTagByAlias {
454
- alias?: string;
455
- }
456
-
457
455
  export interface GetTagById {
458
456
  tagId?: string;
459
457
  }
460
458
 
461
459
  export interface GetTagInfo {
460
+ destinationType?: DestinationType;
461
+ tagId?: TagInfoId;
462
+ }
463
+
464
+ export interface GetTagSummary {
462
465
  alias?: string;
466
+ destinationId?: string;
467
+ type?: DestinationType;
463
468
  }
464
469
 
465
470
  export interface GetTourProvider {
@@ -509,26 +514,29 @@ export interface RatingDetails {
509
514
  }
510
515
 
511
516
  export interface Region {
517
+ countryIsoCode?: string;
512
518
  details?: RegionDetails;
519
+ providerDetails?: { [index: string]: RegionProviderDetails };
513
520
  regionId?: string;
514
521
  }
515
522
 
516
523
  export interface RegionDetails {
517
- externalId?: string;
518
524
  name?: string;
519
525
  }
520
526
 
521
- export interface RegionInfo {
522
- alias?: string;
523
- cities?: City[];
524
- countryDetails?: CountryDetails;
525
- countryId?: string;
527
+ export interface RegionProviderDetails {
528
+ alias?: RegionProviderId;
529
+ destinationCode?: string;
530
+ provider?: TourProvider;
531
+ }
532
+
533
+ export interface RegionProviderId {
534
+ type?: any;
535
+ }
536
+
537
+ export interface RegionUpdate extends CountryUpdate {
526
538
  details?: RegionDetails;
527
- newTags?: { [index: string]: TagScoreInfo };
528
- newTours?: { [index: string]: number };
529
539
  regionId?: string;
530
- timestampOfTourCount?: string;
531
- totalScore?: number;
532
540
  }
533
541
 
534
542
  export interface RegisterEmailAddress {
@@ -568,19 +576,6 @@ export interface SetUserRole extends UserUpdate {
568
576
  userRole?: Role;
569
577
  }
570
578
 
571
- export interface SubContinentInfo {
572
- alias?: string;
573
- bestTour?: TourInfo;
574
- continent?: Continent;
575
- countries?: { [index: string]: CountryDetails };
576
- imageUrls?: string[];
577
- newTags?: { [index: string]: TagScoreInfo };
578
- newTours?: { [index: string]: number };
579
- subContinentId?: string;
580
- timestampOfTourCount?: string;
581
- totalScore?: number;
582
- }
583
-
584
579
  export interface Supplier<T> {
585
580
  }
586
581
 
@@ -630,19 +625,24 @@ export interface TagInfo {
630
625
  alias?: string;
631
626
  associationTags?: string[];
632
627
  bestTour?: TourInfo;
633
- childTagIds?: string[];
634
628
  childTags?: { [index: string]: TagDetails };
629
+ destinationId?: string;
630
+ destinationIds?: DestinationIds;
631
+ destinationType?: DestinationType;
635
632
  details?: TagDetails;
636
633
  internalDetails?: TagInternalDetails;
637
- parentTagIds?: string[];
638
634
  parentTags?: { [index: string]: TagDetails };
639
635
  root?: boolean;
640
636
  tagId?: string;
641
- timestampOfTourCount?: string;
637
+ tagInfoId?: TagInfoId;
642
638
  totalScore?: number;
643
639
  tours?: { [index: string]: number };
644
640
  }
645
641
 
642
+ export interface TagInfoId {
643
+ type?: any;
644
+ }
645
+
646
646
  export interface TagInternalDetails {
647
647
  disabled?: boolean;
648
648
  hiddenOnWebsite?: boolean;
@@ -658,12 +658,21 @@ export interface TagProviderId {
658
658
  type?: any;
659
659
  }
660
660
 
661
- export interface TagScoreInfo extends Comparable<TagScoreInfo> {
661
+ export interface TagSummary {
662
+ alias?: string;
663
+ bestTour?: TourInfo;
664
+ childTags?: string[];
665
+ destinationId?: string;
666
+ destinationIds?: DestinationIds;
667
+ destinationType?: DestinationType;
662
668
  details?: TagDetails;
669
+ internalDetails?: TagInternalDetails;
670
+ parentTags?: string[];
663
671
  root?: boolean;
664
- scores?: { [index: string]: number };
665
672
  tagId?: string;
666
- tourScore?: number;
673
+ tagInfoId?: TagInfoId;
674
+ totalScore?: number;
675
+ tourCount?: number;
667
676
  }
668
677
 
669
678
  export interface TagUpdate extends TagCommand {
@@ -697,7 +706,6 @@ export interface TourDetails {
697
706
  rating?: RatingDetails;
698
707
  tags?: string[];
699
708
  timeRange?: InstantRange;
700
- tourScore?: number;
701
709
  }
702
710
 
703
711
  export interface TourDetailsUpdate extends TourUpdate {
@@ -737,6 +745,7 @@ export interface TourProviderId {
737
745
  }
738
746
 
739
747
  export interface TourUpdate {
748
+ countryId?: string;
740
749
  tourId?: TourId;
741
750
  }
742
751
 
@@ -750,7 +759,6 @@ export interface UiUpdate {
750
759
  export interface UpdateTour extends TourDetailsUpdate {
751
760
  cityId?: string;
752
761
  continent?: Continent;
753
- countryId?: string;
754
762
  providerDetails?: TourProviderDetails;
755
763
  regionId?: string;
756
764
  subContinent?: string;
@@ -759,7 +767,6 @@ export interface UpdateTour extends TourDetailsUpdate {
759
767
  export interface UpdateTourPricing extends TourUpdate {
760
768
  cityId?: string;
761
769
  continent?: Continent;
762
- countryId?: string;
763
770
  pricing?: { [index: string]: TourPricing };
764
771
  regionId?: string;
765
772
  subContinent?: string;
@@ -768,7 +775,6 @@ export interface UpdateTourPricing extends TourUpdate {
768
775
  export interface UpdateTourRating extends TourUpdate {
769
776
  cityId?: string;
770
777
  continent?: Continent;
771
- countryId?: string;
772
778
  ratingDetails?: RatingDetails;
773
779
  regionId?: string;
774
780
  subContinent?: string;
@@ -777,7 +783,6 @@ export interface UpdateTourRating extends TourUpdate {
777
783
  export interface UpdateTourRelationships extends TourUpdate {
778
784
  cityId?: string;
779
785
  continent?: Continent;
780
- countryId?: string;
781
786
  regionId?: string;
782
787
  subContinent?: string;
783
788
  tags?: string[];
@@ -833,6 +838,10 @@ export interface UpsertPublicKey extends UserUpdate {
833
838
  publicKey?: string;
834
839
  }
835
840
 
841
+ export interface UpsertRegion extends RegionUpdate {
842
+ providerDetails?: RegionProviderDetails;
843
+ }
844
+
836
845
  export interface UpsertTag extends TagCommand {
837
846
  details?: TagDetails;
838
847
  internalDetails?: TagInternalDetails;
@@ -847,7 +856,6 @@ export interface UpsertTagRelationships extends TagUpdate {
847
856
  export interface UpsertTour extends TourDetailsUpdate {
848
857
  cityId?: string;
849
858
  continent?: Continent;
850
- countryId?: string;
851
859
  providerDetails?: TourProviderDetails;
852
860
  regionId?: string;
853
861
  subContinent?: string;
@@ -904,6 +912,14 @@ export const enum Continent {
904
912
  Antarctica = "Antarctica",
905
913
  }
906
914
 
915
+ export const enum DestinationType {
916
+ continent = "continent",
917
+ subContinent = "subContinent",
918
+ country = "country",
919
+ region = "region",
920
+ city = "city",
921
+ }
922
+
907
923
  export const enum Role {
908
924
  admin = "admin",
909
925
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@openvoy/openvoy-typescriptmodels",
3
- "version": "0.0.2442",
3
+ "version": "0.0.2461",
4
4
  "types": "core.d.ts"
5
5
  }