sabre-legacy-client 0.1.4 → 0.1.5
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/index.d.mts +64 -64
- package/dist/index.d.ts +64 -64
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -37,8 +37,8 @@ declare class Authentication {
|
|
|
37
37
|
private readonly sabre;
|
|
38
38
|
constructor(sabre: Sabre);
|
|
39
39
|
sessionCreate(): Promise<string>;
|
|
40
|
-
sessionClose(): Promise<
|
|
41
|
-
ping(): Promise<
|
|
40
|
+
sessionClose(): Promise<string>;
|
|
41
|
+
ping(): Promise<string>;
|
|
42
42
|
tokenCreate(): Promise<string>;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -122,6 +122,68 @@ declare class Queue {
|
|
|
122
122
|
place(payload: QueuePlaceOptions): Promise<QueuePlaceResponse>;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
interface ReportOptions {
|
|
126
|
+
date: string;
|
|
127
|
+
pcc?: string;
|
|
128
|
+
}
|
|
129
|
+
interface DailySalesReportResponseSuccess {
|
|
130
|
+
dailySalesReportRS: DailySalesReportRS;
|
|
131
|
+
}
|
|
132
|
+
interface DailySalesReportRS {
|
|
133
|
+
applicationResults: ApplicationResults;
|
|
134
|
+
salesReport?: SalesReport;
|
|
135
|
+
}
|
|
136
|
+
interface SalesReport {
|
|
137
|
+
creationDetails: {
|
|
138
|
+
source: {
|
|
139
|
+
agencyName: string;
|
|
140
|
+
createDateTime: string;
|
|
141
|
+
pseudoCityCode: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
issuanceData?: IssuanceData[];
|
|
145
|
+
}
|
|
146
|
+
interface IssuanceData {
|
|
147
|
+
agentSine: string;
|
|
148
|
+
commission: string;
|
|
149
|
+
documentType: string;
|
|
150
|
+
domesticInternational: string;
|
|
151
|
+
indicatorOne: string;
|
|
152
|
+
indicatorTwo: string;
|
|
153
|
+
issueTime: string;
|
|
154
|
+
itineraryRef: string;
|
|
155
|
+
stockItemCount: string;
|
|
156
|
+
ticketPrinter: string;
|
|
157
|
+
ticketStock: string;
|
|
158
|
+
payment: Payment[];
|
|
159
|
+
personName?: string;
|
|
160
|
+
ticketingInfo?: TicketingInfo;
|
|
161
|
+
ticketingFees?: TicketingFees;
|
|
162
|
+
}
|
|
163
|
+
interface Payment {
|
|
164
|
+
form: {
|
|
165
|
+
content: string;
|
|
166
|
+
amount: string;
|
|
167
|
+
currencyCode: string;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
interface TicketingInfo {
|
|
171
|
+
ticketing?: {
|
|
172
|
+
conjunctiveCount: string;
|
|
173
|
+
eTicketNumber: string;
|
|
174
|
+
ind: string;
|
|
175
|
+
invoiceNumber: string;
|
|
176
|
+
statusCode: string;
|
|
177
|
+
usedCount: string;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
interface TicketingFees {
|
|
181
|
+
feeInformation?: {
|
|
182
|
+
amount: string;
|
|
183
|
+
guaranteeType: string;
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
125
187
|
declare const CUPON_TYPE: {
|
|
126
188
|
readonly F: "F";
|
|
127
189
|
readonly P: "P";
|
|
@@ -258,68 +320,6 @@ interface TotalDailySales {
|
|
|
258
320
|
};
|
|
259
321
|
}
|
|
260
322
|
|
|
261
|
-
interface ReportOptions {
|
|
262
|
-
date: string;
|
|
263
|
-
pcc?: string;
|
|
264
|
-
}
|
|
265
|
-
interface DailySalesReportResponseSuccess {
|
|
266
|
-
dailySalesReportRS: DailySalesReportRS;
|
|
267
|
-
}
|
|
268
|
-
interface DailySalesReportRS {
|
|
269
|
-
applicationResults: ApplicationResults;
|
|
270
|
-
salesReport?: SalesReport;
|
|
271
|
-
}
|
|
272
|
-
interface SalesReport {
|
|
273
|
-
creationDetails: {
|
|
274
|
-
source: {
|
|
275
|
-
agencyName: string;
|
|
276
|
-
createDateTime: string;
|
|
277
|
-
pseudoCityCode: string;
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
issuanceData?: IssuanceData[];
|
|
281
|
-
}
|
|
282
|
-
interface IssuanceData {
|
|
283
|
-
agentSine: string;
|
|
284
|
-
commission: string;
|
|
285
|
-
documentType: string;
|
|
286
|
-
domesticInternational: string;
|
|
287
|
-
indicatorOne: string;
|
|
288
|
-
indicatorTwo: string;
|
|
289
|
-
issueTime: string;
|
|
290
|
-
itineraryRef: string;
|
|
291
|
-
stockItemCount: string;
|
|
292
|
-
ticketPrinter: string;
|
|
293
|
-
ticketStock: string;
|
|
294
|
-
payment: Payment[];
|
|
295
|
-
personName?: string;
|
|
296
|
-
ticketingInfo?: TicketingInfo;
|
|
297
|
-
ticketingFees?: TicketingFees;
|
|
298
|
-
}
|
|
299
|
-
interface Payment {
|
|
300
|
-
form: {
|
|
301
|
-
content: string;
|
|
302
|
-
amount: string;
|
|
303
|
-
currencyCode: string;
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
interface TicketingInfo {
|
|
307
|
-
ticketing?: {
|
|
308
|
-
conjunctiveCount: string;
|
|
309
|
-
eTicketNumber: string;
|
|
310
|
-
ind: string;
|
|
311
|
-
invoiceNumber: string;
|
|
312
|
-
statusCode: string;
|
|
313
|
-
usedCount: string;
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
interface TicketingFees {
|
|
317
|
-
feeInformation?: {
|
|
318
|
-
amount: string;
|
|
319
|
-
guaranteeType: string;
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
|
|
323
323
|
declare class DailySales {
|
|
324
324
|
private readonly sabre;
|
|
325
325
|
constructor(sabre: Sabre);
|
package/dist/index.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ declare class Authentication {
|
|
|
37
37
|
private readonly sabre;
|
|
38
38
|
constructor(sabre: Sabre);
|
|
39
39
|
sessionCreate(): Promise<string>;
|
|
40
|
-
sessionClose(): Promise<
|
|
41
|
-
ping(): Promise<
|
|
40
|
+
sessionClose(): Promise<string>;
|
|
41
|
+
ping(): Promise<string>;
|
|
42
42
|
tokenCreate(): Promise<string>;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -122,6 +122,68 @@ declare class Queue {
|
|
|
122
122
|
place(payload: QueuePlaceOptions): Promise<QueuePlaceResponse>;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
interface ReportOptions {
|
|
126
|
+
date: string;
|
|
127
|
+
pcc?: string;
|
|
128
|
+
}
|
|
129
|
+
interface DailySalesReportResponseSuccess {
|
|
130
|
+
dailySalesReportRS: DailySalesReportRS;
|
|
131
|
+
}
|
|
132
|
+
interface DailySalesReportRS {
|
|
133
|
+
applicationResults: ApplicationResults;
|
|
134
|
+
salesReport?: SalesReport;
|
|
135
|
+
}
|
|
136
|
+
interface SalesReport {
|
|
137
|
+
creationDetails: {
|
|
138
|
+
source: {
|
|
139
|
+
agencyName: string;
|
|
140
|
+
createDateTime: string;
|
|
141
|
+
pseudoCityCode: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
issuanceData?: IssuanceData[];
|
|
145
|
+
}
|
|
146
|
+
interface IssuanceData {
|
|
147
|
+
agentSine: string;
|
|
148
|
+
commission: string;
|
|
149
|
+
documentType: string;
|
|
150
|
+
domesticInternational: string;
|
|
151
|
+
indicatorOne: string;
|
|
152
|
+
indicatorTwo: string;
|
|
153
|
+
issueTime: string;
|
|
154
|
+
itineraryRef: string;
|
|
155
|
+
stockItemCount: string;
|
|
156
|
+
ticketPrinter: string;
|
|
157
|
+
ticketStock: string;
|
|
158
|
+
payment: Payment[];
|
|
159
|
+
personName?: string;
|
|
160
|
+
ticketingInfo?: TicketingInfo;
|
|
161
|
+
ticketingFees?: TicketingFees;
|
|
162
|
+
}
|
|
163
|
+
interface Payment {
|
|
164
|
+
form: {
|
|
165
|
+
content: string;
|
|
166
|
+
amount: string;
|
|
167
|
+
currencyCode: string;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
interface TicketingInfo {
|
|
171
|
+
ticketing?: {
|
|
172
|
+
conjunctiveCount: string;
|
|
173
|
+
eTicketNumber: string;
|
|
174
|
+
ind: string;
|
|
175
|
+
invoiceNumber: string;
|
|
176
|
+
statusCode: string;
|
|
177
|
+
usedCount: string;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
interface TicketingFees {
|
|
181
|
+
feeInformation?: {
|
|
182
|
+
amount: string;
|
|
183
|
+
guaranteeType: string;
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
125
187
|
declare const CUPON_TYPE: {
|
|
126
188
|
readonly F: "F";
|
|
127
189
|
readonly P: "P";
|
|
@@ -258,68 +320,6 @@ interface TotalDailySales {
|
|
|
258
320
|
};
|
|
259
321
|
}
|
|
260
322
|
|
|
261
|
-
interface ReportOptions {
|
|
262
|
-
date: string;
|
|
263
|
-
pcc?: string;
|
|
264
|
-
}
|
|
265
|
-
interface DailySalesReportResponseSuccess {
|
|
266
|
-
dailySalesReportRS: DailySalesReportRS;
|
|
267
|
-
}
|
|
268
|
-
interface DailySalesReportRS {
|
|
269
|
-
applicationResults: ApplicationResults;
|
|
270
|
-
salesReport?: SalesReport;
|
|
271
|
-
}
|
|
272
|
-
interface SalesReport {
|
|
273
|
-
creationDetails: {
|
|
274
|
-
source: {
|
|
275
|
-
agencyName: string;
|
|
276
|
-
createDateTime: string;
|
|
277
|
-
pseudoCityCode: string;
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
issuanceData?: IssuanceData[];
|
|
281
|
-
}
|
|
282
|
-
interface IssuanceData {
|
|
283
|
-
agentSine: string;
|
|
284
|
-
commission: string;
|
|
285
|
-
documentType: string;
|
|
286
|
-
domesticInternational: string;
|
|
287
|
-
indicatorOne: string;
|
|
288
|
-
indicatorTwo: string;
|
|
289
|
-
issueTime: string;
|
|
290
|
-
itineraryRef: string;
|
|
291
|
-
stockItemCount: string;
|
|
292
|
-
ticketPrinter: string;
|
|
293
|
-
ticketStock: string;
|
|
294
|
-
payment: Payment[];
|
|
295
|
-
personName?: string;
|
|
296
|
-
ticketingInfo?: TicketingInfo;
|
|
297
|
-
ticketingFees?: TicketingFees;
|
|
298
|
-
}
|
|
299
|
-
interface Payment {
|
|
300
|
-
form: {
|
|
301
|
-
content: string;
|
|
302
|
-
amount: string;
|
|
303
|
-
currencyCode: string;
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
interface TicketingInfo {
|
|
307
|
-
ticketing?: {
|
|
308
|
-
conjunctiveCount: string;
|
|
309
|
-
eTicketNumber: string;
|
|
310
|
-
ind: string;
|
|
311
|
-
invoiceNumber: string;
|
|
312
|
-
statusCode: string;
|
|
313
|
-
usedCount: string;
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
interface TicketingFees {
|
|
317
|
-
feeInformation?: {
|
|
318
|
-
amount: string;
|
|
319
|
-
guaranteeType: string;
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
|
|
323
323
|
declare class DailySales {
|
|
324
324
|
private readonly sabre;
|
|
325
325
|
constructor(sabre: Sabre);
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED