kaafil-js 0.4.0 → 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 +15 -7
- package/dist/client-entry.cjs.map +1 -1
- package/dist/client-entry.d.cts +2 -2
- package/dist/client-entry.d.ts +2 -2
- package/dist/client-entry.js +15 -7
- package/dist/client-entry.js.map +1 -1
- package/dist/index.cjs +15 -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 +15 -7
- package/dist/index.js.map +1 -1
- package/dist/{vocabulary--cKHiCky.d.cts → vocabulary-1tGXZSis.d.cts} +10 -3
- package/dist/{vocabulary--cKHiCky.d.ts → vocabulary-1tGXZSis.d.ts} +10 -3
- package/package.json +1 -1
package/dist/client-entry.cjs
CHANGED
|
@@ -6324,13 +6324,21 @@ function createTripsResource(client) {
|
|
|
6324
6324
|
const { tripRef, idempotencyKey, signal, travellers, ...rest } = options;
|
|
6325
6325
|
const body = {
|
|
6326
6326
|
...rest,
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
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
|
+
})
|
|
6334
6342
|
};
|
|
6335
6343
|
return client.execute({
|
|
6336
6344
|
method: "POST",
|