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.
@@ -4847,7 +4847,7 @@ interface components {
4847
4847
  createdAt: string;
4848
4848
  /** @description When this token's row was last changed. */
4849
4849
  updatedAt: string;
4850
- /** @description The plaintext token. Shown exactly once, on this mint response — Kaafil never returns it again and never logs it. Append it to your own link's URL for the traveller to use as their Bearer credential. */
4850
+ /** @description The plaintext token. Never logged. Append it to your own link's URL for the traveller to use as their Bearer credential. You do not have to store it: `GET /share-tokens/{id}/reveal` returns it again, so a desk can re-send a link instead of regenerating one and breaking the copy a family already has. (Tokens minted before Kaafil stored a recoverable copy answer that route with `token: null`.) */
4851
4851
  token: string;
4852
4852
  };
4853
4853
  NotificationListResponse: {
@@ -6068,7 +6068,7 @@ interface components {
6068
6068
  * Format: date-time
6069
6069
  * @description When your system last changed this record. Kaafil uses it to resolve conflicting writes — last-writer-wins by this timestamp, not by arrival order.
6070
6070
  */
6071
- sourceUpdatedAt: string;
6071
+ sourceUpdatedAt?: string;
6072
6072
  /**
6073
6073
  * @description This traveller's booking status on this trip.
6074
6074
  * @enum {string}
@@ -53453,8 +53453,15 @@ type UpsertTripSegmentInput = Omit<UpsertTripSegment, 'startDate' | 'endDate'> &
53453
53453
  readonly endDate: DateTimeInput;
53454
53454
  };
53455
53455
  type PushManifestTraveller = PushManifestRequest['travellers'][number];
53456
+ /**
53457
+ * `sourceUpdatedAt` is OPTIONAL here, unlike every sibling below, because the
53458
+ * wire made it optional for this one entry shape: a desk adding a traveller to
53459
+ * a trip has no "when my system last changed this" instant to send, and the
53460
+ * server stamps the write when it is omitted. A CRM mirroring its own records
53461
+ * still sends its real instant and still wins or loses a race on it.
53462
+ */
53456
53463
  type PushManifestTravellerInput = Omit<PushManifestTraveller, 'sourceUpdatedAt'> & {
53457
- readonly sourceUpdatedAt: DateTimeInput;
53464
+ readonly sourceUpdatedAt?: DateTimeInput;
53458
53465
  };
53459
53466
  type PushBulkTripsTraveller = NonNullable<PushBulkTripsItem['travellers']>[number];
53460
53467
  type PushBulkTripsTravellerInput = Omit<PushBulkTripsTraveller, 'sourceUpdatedAt'> & {
@@ -4847,7 +4847,7 @@ interface components {
4847
4847
  createdAt: string;
4848
4848
  /** @description When this token's row was last changed. */
4849
4849
  updatedAt: string;
4850
- /** @description The plaintext token. Shown exactly once, on this mint response — Kaafil never returns it again and never logs it. Append it to your own link's URL for the traveller to use as their Bearer credential. */
4850
+ /** @description The plaintext token. Never logged. Append it to your own link's URL for the traveller to use as their Bearer credential. You do not have to store it: `GET /share-tokens/{id}/reveal` returns it again, so a desk can re-send a link instead of regenerating one and breaking the copy a family already has. (Tokens minted before Kaafil stored a recoverable copy answer that route with `token: null`.) */
4851
4851
  token: string;
4852
4852
  };
4853
4853
  NotificationListResponse: {
@@ -6068,7 +6068,7 @@ interface components {
6068
6068
  * Format: date-time
6069
6069
  * @description When your system last changed this record. Kaafil uses it to resolve conflicting writes — last-writer-wins by this timestamp, not by arrival order.
6070
6070
  */
6071
- sourceUpdatedAt: string;
6071
+ sourceUpdatedAt?: string;
6072
6072
  /**
6073
6073
  * @description This traveller's booking status on this trip.
6074
6074
  * @enum {string}
@@ -53453,8 +53453,15 @@ type UpsertTripSegmentInput = Omit<UpsertTripSegment, 'startDate' | 'endDate'> &
53453
53453
  readonly endDate: DateTimeInput;
53454
53454
  };
53455
53455
  type PushManifestTraveller = PushManifestRequest['travellers'][number];
53456
+ /**
53457
+ * `sourceUpdatedAt` is OPTIONAL here, unlike every sibling below, because the
53458
+ * wire made it optional for this one entry shape: a desk adding a traveller to
53459
+ * a trip has no "when my system last changed this" instant to send, and the
53460
+ * server stamps the write when it is omitted. A CRM mirroring its own records
53461
+ * still sends its real instant and still wins or loses a race on it.
53462
+ */
53456
53463
  type PushManifestTravellerInput = Omit<PushManifestTraveller, 'sourceUpdatedAt'> & {
53457
- readonly sourceUpdatedAt: DateTimeInput;
53464
+ readonly sourceUpdatedAt?: DateTimeInput;
53458
53465
  };
53459
53466
  type PushBulkTripsTraveller = NonNullable<PushBulkTripsItem['travellers']>[number];
53460
53467
  type PushBulkTripsTravellerInput = Omit<PushBulkTripsTraveller, 'sourceUpdatedAt'> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaafil-js",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Headless, typed TypeScript client for the Kaafil on-ground and post-trip engine.",
5
5
  "keywords": [
6
6
  "kaafil",