triplinkclient 1.0.260201 → 1.1.0
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/dist/defaultConfigOptions.d.ts +3 -0
- package/dist/defaultConfigOptions.js +5 -2
- package/dist/defaultConfigOptions.js.map +1 -1
- package/dist/generated/account.d.ts +1 -1
- package/dist/generated/account.js +1 -1
- package/dist/generated/agency.d.ts +1 -1
- package/dist/generated/agency.js +1 -1
- package/dist/generated/air.d.ts +9 -1
- package/dist/generated/air.js +32 -2
- package/dist/generated/air.js.map +1 -1
- package/dist/generated/common.d.ts +1 -1
- package/dist/generated/common.js +1 -1
- package/dist/generated/hotel.d.ts +1 -1
- package/dist/generated/hotel.js +1 -1
- package/dist/generated/web/account.d.ts +1 -1
- package/dist/generated/web/account.js +1 -1
- package/dist/generated/web/agency.d.ts +1 -1
- package/dist/generated/web/agency.js +1 -1
- package/dist/generated/web/air.d.ts +9 -1
- package/dist/generated/web/air.js +32 -2
- package/dist/generated/web/air.js.map +1 -1
- package/dist/generated/web/common.d.ts +1 -1
- package/dist/generated/web/common.js +1 -1
- package/dist/generated/web/hotel.d.ts +1 -1
- package/dist/generated/web/hotel.js +1 -1
- package/dist/metrics/MetricsCollector.js +2 -0
- package/dist/metrics/MetricsCollector.js.map +1 -1
- package/dist/retry.d.ts +1 -0
- package/dist/retry.js +65 -0
- package/dist/retry.js.map +1 -0
- package/dist/triplinkairclient.d.ts +3 -0
- package/dist/triplinkairclient.js +19 -18
- package/dist/triplinkairclient.js.map +1 -1
- package/dist/triplinkhotelclient.d.ts +12 -7
- package/dist/triplinkhotelclient.js +16 -11
- package/dist/triplinkhotelclient.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,5 +4,8 @@ declare const grpcOptions: {
|
|
|
4
4
|
'grpc.max_connection_age_ms': number;
|
|
5
5
|
'grpc.max_connection_age_grace_ms': number;
|
|
6
6
|
'grpc.max_connection_idle_ms': number;
|
|
7
|
+
'grpc.keepalive_time_ms': number;
|
|
8
|
+
'grpc.keepalive_timeout_ms': number;
|
|
9
|
+
'grpc.keepalive_permit_without_calls': number;
|
|
7
10
|
};
|
|
8
11
|
export default grpcOptions;
|
|
@@ -3,9 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const grpcOptions = {
|
|
4
4
|
'grpc.max_receive_message_length': 50 * 1024 * 1024,
|
|
5
5
|
'grpc.max_send_message_length': 50 * 1024 * 1024,
|
|
6
|
-
'grpc.max_connection_age_ms':
|
|
6
|
+
'grpc.max_connection_age_ms': 5 * 60 * 1000, //5 Min
|
|
7
7
|
'grpc.max_connection_age_grace_ms': 10 * 60 * 1000, //10 Min
|
|
8
|
-
'grpc.max_connection_idle_ms':
|
|
8
|
+
'grpc.max_connection_idle_ms': 2 * 60 * 1000, //2 Min
|
|
9
|
+
'grpc.keepalive_time_ms': 30 * 1000, //30s — ping interval to detect dead connections
|
|
10
|
+
'grpc.keepalive_timeout_ms': 10 * 1000, //10s — wait for ping ack before closing
|
|
11
|
+
'grpc.keepalive_permit_without_calls': 1, //Allow pings even when no active RPCs
|
|
9
12
|
};
|
|
10
13
|
exports.default = grpcOptions;
|
|
11
14
|
//# sourceMappingURL=defaultConfigOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfigOptions.js","sourceRoot":"","sources":["../src/defaultConfigOptions.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG;IAChB,iCAAiC,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI;IACnD,8BAA8B,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI;IAChD,4BAA4B,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,OAAO;IACpD,kCAAkC,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,QAAQ;IAC5D,6BAA6B,EAAE,EAAE,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"defaultConfigOptions.js","sourceRoot":"","sources":["../src/defaultConfigOptions.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG;IAChB,iCAAiC,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI;IACnD,8BAA8B,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI;IAChD,4BAA4B,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,OAAO;IACpD,kCAAkC,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,QAAQ;IAC5D,6BAA6B,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,OAAO;IACrD,wBAAwB,EAAE,EAAE,GAAG,IAAI,EAAE,gDAAgD;IACrF,2BAA2B,EAAE,EAAE,GAAG,IAAI,EAAE,wCAAwC;IAChF,qCAAqC,EAAE,CAAC,EAAE,sCAAsC;CACnF,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -42,7 +42,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.TripLinkAccountServiceClient = exports.UnimplementedTripLinkAccountServiceService = exports.GetStatementResponse = exports.GetStatementRequest = exports.DeductBalanceResponse = exports.DeductBalanceRequest = exports.AddBalanceResponse = exports.AddBalanceRequest = exports.Transaction = exports.GetTransactionHistoryResponse = exports.GetTransactionHistoryRequest = exports.GetBalanceResponse = exports.GetBalanceRequest = exports.TransactionStatus = exports.TransactionType = void 0;
|
|
43
43
|
/**
|
|
44
44
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
45
|
-
* compiler version: 6.33.
|
|
45
|
+
* compiler version: 6.33.4
|
|
46
46
|
* source: account.proto
|
|
47
47
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
48
48
|
const dependency_1 = __importStar(require("./common"));
|
package/dist/generated/agency.js
CHANGED
|
@@ -42,7 +42,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.BalanceResponse = exports.BalanceRequest = void 0;
|
|
43
43
|
/**
|
|
44
44
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
45
|
-
* compiler version: 6.33.
|
|
45
|
+
* compiler version: 6.33.4
|
|
46
46
|
* source: agency.proto
|
|
47
47
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
48
48
|
const dependency_1 = __importStar(require("./common"));
|
package/dist/generated/air.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
3
|
-
* compiler version: 6.33.
|
|
3
|
+
* compiler version: 6.33.4
|
|
4
4
|
* source: air.proto
|
|
5
5
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
6
|
import * as dependency_1 from "./common";
|
|
@@ -1382,6 +1382,8 @@ export declare class SearchResultSegment extends pb_1.Message {
|
|
|
1382
1382
|
airlinePnr?: string;
|
|
1383
1383
|
}) | ({
|
|
1384
1384
|
cabinBaggage?: string;
|
|
1385
|
+
}) | ({
|
|
1386
|
+
cabinClass?: FlightCabinClass;
|
|
1385
1387
|
}))));
|
|
1386
1388
|
get airlineCode(): string;
|
|
1387
1389
|
set airlineCode(value: string);
|
|
@@ -1440,6 +1442,9 @@ export declare class SearchResultSegment extends pb_1.Message {
|
|
|
1440
1442
|
get cabinBaggage(): string;
|
|
1441
1443
|
set cabinBaggage(value: string);
|
|
1442
1444
|
get hasCabinBaggage(): boolean;
|
|
1445
|
+
get cabinClass(): FlightCabinClass;
|
|
1446
|
+
set cabinClass(value: FlightCabinClass);
|
|
1447
|
+
get hasCabinClass(): boolean;
|
|
1443
1448
|
get _airlineRemarks(): "none" | "airlineRemarks";
|
|
1444
1449
|
get _airCraft(): "none" | "airCraft";
|
|
1445
1450
|
get _durationMinutes(): "none" | "durationMinutes";
|
|
@@ -1451,6 +1456,7 @@ export declare class SearchResultSegment extends pb_1.Message {
|
|
|
1451
1456
|
get _baggage(): "none" | "baggage";
|
|
1452
1457
|
get _airlinePnr(): "none" | "airlinePnr";
|
|
1453
1458
|
get _cabinBaggage(): "none" | "cabinBaggage";
|
|
1459
|
+
get _cabinClass(): "none" | "cabinClass";
|
|
1454
1460
|
static fromObject(data: {
|
|
1455
1461
|
airlineCode?: string;
|
|
1456
1462
|
airlineRemarks?: string;
|
|
@@ -1475,6 +1481,7 @@ export declare class SearchResultSegment extends pb_1.Message {
|
|
|
1475
1481
|
baggage?: string;
|
|
1476
1482
|
airlinePnr?: string;
|
|
1477
1483
|
cabinBaggage?: string;
|
|
1484
|
+
cabinClass?: FlightCabinClass;
|
|
1478
1485
|
}): SearchResultSegment;
|
|
1479
1486
|
toObject(): {
|
|
1480
1487
|
airlineCode?: string;
|
|
@@ -1500,6 +1507,7 @@ export declare class SearchResultSegment extends pb_1.Message {
|
|
|
1500
1507
|
baggage?: string;
|
|
1501
1508
|
airlinePnr?: string;
|
|
1502
1509
|
cabinBaggage?: string;
|
|
1510
|
+
cabinClass?: FlightCabinClass;
|
|
1503
1511
|
};
|
|
1504
1512
|
serialize(): Uint8Array;
|
|
1505
1513
|
serialize(w: pb_1.BinaryWriter): void;
|
package/dist/generated/air.js
CHANGED
|
@@ -43,7 +43,7 @@ exports.PassengerDocument = exports.PassengerDetails = exports.AmountBreakUpRow
|
|
|
43
43
|
exports.TripLinkAirServiceClient = exports.UnimplementedTripLinkAirServiceService = exports.FlightItinerary = exports.PassengerGstDetails = void 0;
|
|
44
44
|
/**
|
|
45
45
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
46
|
-
* compiler version: 6.33.
|
|
46
|
+
* compiler version: 6.33.4
|
|
47
47
|
* source: air.proto
|
|
48
48
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
49
49
|
const dependency_1 = __importStar(require("./common"));
|
|
@@ -4680,7 +4680,7 @@ _FareBreakDown_one_of_decls = new WeakMap();
|
|
|
4680
4680
|
class SearchResultSegment extends pb_1.Message {
|
|
4681
4681
|
constructor(data) {
|
|
4682
4682
|
super();
|
|
4683
|
-
_SearchResultSegment_one_of_decls.set(this, [[2], [3], [14], [15], [16], [17], [18], [20], [21], [22], [23]]);
|
|
4683
|
+
_SearchResultSegment_one_of_decls.set(this, [[2], [3], [14], [15], [16], [17], [18], [20], [21], [22], [23], [24]]);
|
|
4684
4684
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _SearchResultSegment_one_of_decls, "f"));
|
|
4685
4685
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
4686
4686
|
if ("airlineCode" in data && data.airlineCode != undefined) {
|
|
@@ -4752,6 +4752,9 @@ class SearchResultSegment extends pb_1.Message {
|
|
|
4752
4752
|
if ("cabinBaggage" in data && data.cabinBaggage != undefined) {
|
|
4753
4753
|
this.cabinBaggage = data.cabinBaggage;
|
|
4754
4754
|
}
|
|
4755
|
+
if ("cabinClass" in data && data.cabinClass != undefined) {
|
|
4756
|
+
this.cabinClass = data.cabinClass;
|
|
4757
|
+
}
|
|
4755
4758
|
}
|
|
4756
4759
|
}
|
|
4757
4760
|
get airlineCode() {
|
|
@@ -4925,6 +4928,15 @@ class SearchResultSegment extends pb_1.Message {
|
|
|
4925
4928
|
get hasCabinBaggage() {
|
|
4926
4929
|
return pb_1.Message.getField(this, 23) != null;
|
|
4927
4930
|
}
|
|
4931
|
+
get cabinClass() {
|
|
4932
|
+
return pb_1.Message.getFieldWithDefault(this, 24, FlightCabinClass.ALL);
|
|
4933
|
+
}
|
|
4934
|
+
set cabinClass(value) {
|
|
4935
|
+
pb_1.Message.setOneofField(this, 24, __classPrivateFieldGet(this, _SearchResultSegment_one_of_decls, "f")[11], value);
|
|
4936
|
+
}
|
|
4937
|
+
get hasCabinClass() {
|
|
4938
|
+
return pb_1.Message.getField(this, 24) != null;
|
|
4939
|
+
}
|
|
4928
4940
|
get _airlineRemarks() {
|
|
4929
4941
|
const cases = {
|
|
4930
4942
|
0: "none",
|
|
@@ -5002,6 +5014,13 @@ class SearchResultSegment extends pb_1.Message {
|
|
|
5002
5014
|
};
|
|
5003
5015
|
return cases[pb_1.Message.computeOneofCase(this, [23])];
|
|
5004
5016
|
}
|
|
5017
|
+
get _cabinClass() {
|
|
5018
|
+
const cases = {
|
|
5019
|
+
0: "none",
|
|
5020
|
+
24: "cabinClass"
|
|
5021
|
+
};
|
|
5022
|
+
return cases[pb_1.Message.computeOneofCase(this, [24])];
|
|
5023
|
+
}
|
|
5005
5024
|
static fromObject(data) {
|
|
5006
5025
|
const message = new SearchResultSegment({});
|
|
5007
5026
|
if (data.airlineCode != null) {
|
|
@@ -5073,6 +5092,9 @@ class SearchResultSegment extends pb_1.Message {
|
|
|
5073
5092
|
if (data.cabinBaggage != null) {
|
|
5074
5093
|
message.cabinBaggage = data.cabinBaggage;
|
|
5075
5094
|
}
|
|
5095
|
+
if (data.cabinClass != null) {
|
|
5096
|
+
message.cabinClass = data.cabinClass;
|
|
5097
|
+
}
|
|
5076
5098
|
return message;
|
|
5077
5099
|
}
|
|
5078
5100
|
toObject() {
|
|
@@ -5146,6 +5168,9 @@ class SearchResultSegment extends pb_1.Message {
|
|
|
5146
5168
|
if (this.cabinBaggage != null) {
|
|
5147
5169
|
data.cabinBaggage = this.cabinBaggage;
|
|
5148
5170
|
}
|
|
5171
|
+
if (this.cabinClass != null) {
|
|
5172
|
+
data.cabinClass = this.cabinClass;
|
|
5173
|
+
}
|
|
5149
5174
|
return data;
|
|
5150
5175
|
}
|
|
5151
5176
|
serialize(w) {
|
|
@@ -5196,6 +5221,8 @@ class SearchResultSegment extends pb_1.Message {
|
|
|
5196
5221
|
writer.writeString(22, this.airlinePnr);
|
|
5197
5222
|
if (this.hasCabinBaggage)
|
|
5198
5223
|
writer.writeString(23, this.cabinBaggage);
|
|
5224
|
+
if (this.hasCabinClass)
|
|
5225
|
+
writer.writeEnum(24, this.cabinClass);
|
|
5199
5226
|
if (!w)
|
|
5200
5227
|
return writer.getResultBuffer();
|
|
5201
5228
|
}
|
|
@@ -5274,6 +5301,9 @@ class SearchResultSegment extends pb_1.Message {
|
|
|
5274
5301
|
case 23:
|
|
5275
5302
|
message.cabinBaggage = reader.readString();
|
|
5276
5303
|
break;
|
|
5304
|
+
case 24:
|
|
5305
|
+
message.cabinClass = reader.readEnum();
|
|
5306
|
+
break;
|
|
5277
5307
|
default: reader.skipField();
|
|
5278
5308
|
}
|
|
5279
5309
|
}
|