sm-types 1.11.101 → 1.11.103

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/common/index.d.ts CHANGED
@@ -461,30 +461,41 @@ export interface IRailJSON {
461
461
  departureTrip: IRailTrip;
462
462
  international: boolean;
463
463
  }
464
+ export interface ITransferDriver {
465
+ name: Nullable<string>;
466
+ contact: Nullable<string>;
467
+ }
468
+ export interface ITransferVehicle {
469
+ name: string;
470
+ imageUrl: string;
471
+ }
472
+ export declare enum TransferTransportType {
473
+ SHARED = "SHARED",
474
+ PRIVATE = "PRIVATE"
475
+ }
464
476
  export interface ITransferLocation {
465
477
  address: string;
466
478
  city: string;
467
- date: string;
468
- time: string;
479
+ date: Nullable<string>;
480
+ time: Nullable<string>;
469
481
  latitude: string;
470
482
  longitude: string;
471
483
  }
472
- export interface ITransferDriver {
473
- name: string;
474
- contact: string;
475
- }
476
- export interface ITransferContractDetails {
477
- dailyRate: number;
478
- totalAmount: number;
479
- currency: string;
480
- freeCancellationUntil?: Date;
481
- }
482
- export interface ITransferJSON {
483
- search: IOfferSearch;
484
- international: boolean;
484
+ export interface ITransferBound {
485
485
  origin: ITransferLocation;
486
486
  destination: ITransferLocation;
487
- vehicleType: string;
487
+ vehicle: ITransferVehicle;
488
488
  driver: ITransferDriver;
489
- contractDetails: ITransferContractDetails;
489
+ carrier: Nullable<string>;
490
+ }
491
+ export interface ITransferJSON {
492
+ search: IOfferSearch;
493
+ outbound: ITransferBound;
494
+ inbound: Nullable<ITransferBound>;
495
+ transportType: TransferTransportType;
496
+ totalOfPassengers: number;
497
+ price: number;
498
+ currency: string;
499
+ freeCancellationUntil: Nullable<Date>;
500
+ observations: Nullable<string>;
490
501
  }
package/common/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.CABIN_CLASS_TYPES = exports.TravelerSelection = exports.AmenitiesPreference = exports.AllowRoundtripChoice = exports.RoundTripPreference = exports.InsuranceTypePreference = exports.InsuranceSelectionPreference = exports.FieldVisibility = void 0;
17
+ exports.TransferTransportType = exports.CABIN_CLASS_TYPES = exports.TravelerSelection = exports.AmenitiesPreference = exports.AllowRoundtripChoice = exports.RoundTripPreference = exports.InsuranceTypePreference = exports.InsuranceSelectionPreference = exports.FieldVisibility = void 0;
18
18
  __exportStar(require("./enums"), exports);
19
19
  var FieldVisibility;
20
20
  (function (FieldVisibility) {
@@ -61,3 +61,8 @@ exports.CABIN_CLASS_TYPES = {
61
61
  BUSINESS: { name: "Business", value: "business" },
62
62
  FIRST: { name: "Primeira classe", value: "first" },
63
63
  };
64
+ var TransferTransportType;
65
+ (function (TransferTransportType) {
66
+ TransferTransportType["SHARED"] = "SHARED";
67
+ TransferTransportType["PRIVATE"] = "PRIVATE";
68
+ })(TransferTransportType = exports.TransferTransportType || (exports.TransferTransportType = {}));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Smartrips",
4
4
  "license": "ISC",
5
5
  "keywords": [],
6
- "version": "1.11.101",
6
+ "version": "1.11.103",
7
7
  "description": "",
8
8
  "repository": {
9
9
  "type": "git",