sm-types 1.4.1 → 1.4.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sm-types",
3
- "version": "1.4.1",
3
+ "version": "1.4.4",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -348,7 +348,7 @@ export interface IContactInfo {
348
348
  companyName: string;
349
349
  address: {
350
350
  street: string;
351
- number: number;
351
+ number: string;
352
352
  complement: string;
353
353
  postalCode: string;
354
354
  city: string;
@@ -364,10 +364,10 @@ export interface IPassengerInfo {
364
364
  nationality: string;
365
365
  residenceCountry: string;
366
366
  cpf: {
367
- number: number;
367
+ number: string;
368
368
  };
369
369
  passport: {
370
- number: number;
370
+ number: string;
371
371
  issuingCountry: string;
372
372
  expirationDate: Date | string;
373
373
  };
@@ -481,8 +481,8 @@ declare const PASSENGER_TYPE: {
481
481
  readonly INFANT: "INF";
482
482
  };
483
483
  declare const SEX: {
484
- readonly MALE: "Male";
485
- readonly FEMALE: "Female";
484
+ readonly MALE: "M";
485
+ readonly FEMALE: "F";
486
486
  };
487
487
  declare const SM_AZUL_PRICE_STATUS: {
488
488
  readonly INVALID: "Invalid";
@@ -27,8 +27,8 @@ var PASSENGER_TYPE = {
27
27
  INFANT: "INF",
28
28
  };
29
29
  var SEX = {
30
- MALE: "Male",
31
- FEMALE: "Female",
30
+ MALE: "M",
31
+ FEMALE: "F",
32
32
  };
33
33
  var SM_AZUL_PRICE_STATUS = {
34
34
  INVALID: "Invalid",
@@ -61,7 +61,7 @@ export interface IPhoneRequestDto {
61
61
  }
62
62
  export interface IAddressRequestDto {
63
63
  street: string;
64
- number: number;
64
+ number: string;
65
65
  complement: string;
66
66
  postalCode: string;
67
67
  city: string;
@@ -76,10 +76,10 @@ export interface IPassengerInfoRequestDto {
76
76
  nationality: string;
77
77
  residenceCountry: string;
78
78
  cpf: {
79
- number: number;
79
+ number: string;
80
80
  };
81
81
  passport: {
82
- number: number;
82
+ number: string;
83
83
  issuingCountry: string;
84
84
  expirationDate: Date | string;
85
85
  };
@@ -12,8 +12,8 @@ export declare const CurrencyOptions: {
12
12
  readonly USD: "USD";
13
13
  };
14
14
  export declare const Gender: {
15
- readonly MALE: "Male";
16
- readonly FEMALE: "Female";
15
+ readonly MALE: "M";
16
+ readonly FEMALE: "F";
17
17
  };
18
18
  export declare const FareClassControl: {
19
19
  readonly LOWEST_FARE_CLASS: "LowestFareClass";
@@ -15,8 +15,8 @@ exports.CurrencyOptions = {
15
15
  USD: "USD",
16
16
  };
17
17
  exports.Gender = {
18
- MALE: "Male",
19
- FEMALE: "Female",
18
+ MALE: "M",
19
+ FEMALE: "F",
20
20
  };
21
21
  exports.FareClassControl = {
22
22
  LOWEST_FARE_CLASS: "LowestFareClass",
@@ -7,6 +7,7 @@ export declare const SystemType: {
7
7
  readonly SABRE: "SABRE";
8
8
  readonly ITAPEMIRIM: "ITAPEMIRIM";
9
9
  readonly AMADEUS: "AMADEUS";
10
+ readonly AMADEUSWS: "AMADEUSWS";
10
11
  };
11
12
  export declare const JourneyType: {
12
13
  readonly INBOUND: "inbound";
@@ -10,6 +10,7 @@ exports.SystemType = {
10
10
  SABRE: 'SABRE',
11
11
  ITAPEMIRIM: 'ITAPEMIRIM',
12
12
  AMADEUS: 'AMADEUS',
13
+ AMADEUSWS: 'AMADEUSWS'
13
14
  };
14
15
  exports.JourneyType = {
15
16
  INBOUND: 'inbound',
package/sm-wcf/index.d.ts CHANGED
@@ -113,7 +113,7 @@ export interface IContactInfoReqDto {
113
113
  companyName: string;
114
114
  address: {
115
115
  street: string;
116
- number: number;
116
+ number: string;
117
117
  complement: string;
118
118
  postalCode: string;
119
119
  city: string;
@@ -125,14 +125,14 @@ export interface IPassengerInfoReqDto {
125
125
  firstName: string;
126
126
  surname: string;
127
127
  birthDate: Date | string;
128
- sex: "Male" | "Female";
128
+ sex: "M" | "F";
129
129
  nationality: string;
130
130
  residenceCountry: string;
131
131
  cpf: {
132
- number: number;
132
+ number: string;
133
133
  };
134
134
  passport: {
135
- number: number;
135
+ number: string;
136
136
  issuingCountry: string;
137
137
  expirationDate: Date | string;
138
138
  };