kaafil-js 0.3.1 → 0.5.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/client-entry.cjs +32 -7
- package/dist/client-entry.cjs.map +1 -1
- package/dist/client-entry.d.cts +3 -2
- package/dist/client-entry.d.ts +3 -2
- package/dist/client-entry.js +32 -7
- package/dist/client-entry.js.map +1 -1
- package/dist/index.cjs +32 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +32 -7
- package/dist/index.js.map +1 -1
- package/dist/{vocabulary-DFjpj3M4.d.cts → vocabulary-1tGXZSis.d.cts} +293 -41
- package/dist/{vocabulary-DFjpj3M4.d.ts → vocabulary-1tGXZSis.d.ts} +293 -41
- package/package.json +1 -1
package/dist/client-entry.cjs
CHANGED
|
@@ -180,6 +180,7 @@ var OperationId = {
|
|
|
180
180
|
ReplaceBookingVouchers: "replaceBookingVouchers",
|
|
181
181
|
RequestFileUpload: "requestFileUpload",
|
|
182
182
|
ReturnFloat: "returnFloat",
|
|
183
|
+
RevealShareToken: "revealShareToken",
|
|
183
184
|
RevokeShareToken: "revokeShareToken",
|
|
184
185
|
RunJourneyStep: "runJourneyStep",
|
|
185
186
|
SaveCloseoutHandover: "saveCloseoutHandover",
|
|
@@ -461,6 +462,7 @@ var OPERATION_SECURITY = {
|
|
|
461
462
|
readWebhookEventCatalog: ["consoleAuth"],
|
|
462
463
|
reassignPickupStopTravellers: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
|
|
463
464
|
rebuildJourney: ["apiKeyAuth"],
|
|
465
|
+
recheckConsoleCertification: ["consoleAuth"],
|
|
464
466
|
reconcileTrekWalkIn: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
|
|
465
467
|
recordCollection: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
|
|
466
468
|
redeliverEndpointDelivery: ["consoleAuth"],
|
|
@@ -468,6 +470,7 @@ var OPERATION_SECURITY = {
|
|
|
468
470
|
redeliverWebhookDeliveryConsole: ["consoleAuth"],
|
|
469
471
|
redriveSupportWebhookDelivery: ["platformAdminAuth"],
|
|
470
472
|
refreshAgencyAdminTokens: ["agencyAdminAuth"],
|
|
473
|
+
refreshConsoleSession: ["consoleAuth"],
|
|
471
474
|
refreshManagerTokens: ["managerAuth"],
|
|
472
475
|
regenerateShareToken: ["apiKeyAuth", "agencyAdminAuth"],
|
|
473
476
|
registerWebhookEndpoint: ["consoleAuth"],
|
|
@@ -491,6 +494,7 @@ var OPERATION_SECURITY = {
|
|
|
491
494
|
resetTestClockConsole: ["consoleAuth"],
|
|
492
495
|
resolvePlatformCredential: ["platformAdminAuth"],
|
|
493
496
|
returnFloat: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
|
|
497
|
+
revealShareToken: ["apiKeyAuth", "agencyAdminAuth"],
|
|
494
498
|
revokeApiKey: ["consoleAuth"],
|
|
495
499
|
revokeMyConsoleSession: ["consoleAuth"],
|
|
496
500
|
revokePlatformPartnerApiKey: ["platformAdminAuth"],
|
|
@@ -786,6 +790,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
786
790
|
readWebhookEventCatalog: false,
|
|
787
791
|
reassignPickupStopTravellers: true,
|
|
788
792
|
rebuildJourney: true,
|
|
793
|
+
recheckConsoleCertification: false,
|
|
789
794
|
reconcileTrekWalkIn: true,
|
|
790
795
|
recordCollection: true,
|
|
791
796
|
redeliverEndpointDelivery: true,
|
|
@@ -793,6 +798,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
793
798
|
redeliverWebhookDeliveryConsole: true,
|
|
794
799
|
redriveSupportWebhookDelivery: false,
|
|
795
800
|
refreshAgencyAdminTokens: false,
|
|
801
|
+
refreshConsoleSession: false,
|
|
796
802
|
refreshManagerTokens: false,
|
|
797
803
|
regenerateShareToken: true,
|
|
798
804
|
registerWebhookEndpoint: true,
|
|
@@ -816,6 +822,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
816
822
|
resetTestClockConsole: true,
|
|
817
823
|
resolvePlatformCredential: false,
|
|
818
824
|
returnFloat: true,
|
|
825
|
+
revealShareToken: false,
|
|
819
826
|
revokeApiKey: true,
|
|
820
827
|
revokeMyConsoleSession: true,
|
|
821
828
|
revokePlatformPartnerApiKey: false,
|
|
@@ -5946,6 +5953,16 @@ function createShareTokensResource(client) {
|
|
|
5946
5953
|
...signal !== void 0 ? { signal } : {}
|
|
5947
5954
|
});
|
|
5948
5955
|
},
|
|
5956
|
+
async reveal(options) {
|
|
5957
|
+
const { id, signal } = options;
|
|
5958
|
+
return client.execute({
|
|
5959
|
+
method: "GET",
|
|
5960
|
+
operationId: OperationId.RevealShareToken,
|
|
5961
|
+
path: "/api/v1/share-tokens/{id}/reveal",
|
|
5962
|
+
pathParams: { id },
|
|
5963
|
+
...signal !== void 0 ? { signal } : {}
|
|
5964
|
+
});
|
|
5965
|
+
},
|
|
5949
5966
|
async revoke(options) {
|
|
5950
5967
|
const { id, signal } = options;
|
|
5951
5968
|
return client.execute({
|
|
@@ -6307,13 +6324,21 @@ function createTripsResource(client) {
|
|
|
6307
6324
|
const { tripRef, idempotencyKey, signal, travellers, ...rest } = options;
|
|
6308
6325
|
const body = {
|
|
6309
6326
|
...rest,
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6327
|
+
// `sourceUpdatedAt` is optional on this entry shape. Omitted, the
|
|
6328
|
+
// key is left OFF the body entirely rather than sent as `undefined`
|
|
6329
|
+
// — the server stamps the write itself, and an explicit `undefined`
|
|
6330
|
+
// would serialise as a missing key anyway but read, in this file, as
|
|
6331
|
+
// though a value had been intended.
|
|
6332
|
+
travellers: travellers.map((traveller, index) => {
|
|
6333
|
+
const { sourceUpdatedAt, ...entry } = traveller;
|
|
6334
|
+
return sourceUpdatedAt === void 0 ? entry : {
|
|
6335
|
+
...entry,
|
|
6336
|
+
sourceUpdatedAt: normalizeDateTimeInput(
|
|
6337
|
+
sourceUpdatedAt,
|
|
6338
|
+
`travellers[${index}].sourceUpdatedAt`
|
|
6339
|
+
)
|
|
6340
|
+
};
|
|
6341
|
+
})
|
|
6317
6342
|
};
|
|
6318
6343
|
return client.execute({
|
|
6319
6344
|
method: "POST",
|