@medplum/core 5.1.3 → 5.1.4

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.
@@ -719,11 +719,31 @@ export declare interface Code {
719
719
  code?: CodeableConcept;
720
720
  }
721
721
 
722
+ /**
723
+ * Checks if a CodeableConcept matches a token search string
724
+ * https://build.fhir.org/search.html#token
725
+ *
726
+ * @param codeableConcept - The CodeableConcept to test
727
+ * @param token - The token string to test
728
+ * @returns True if the CodeableConcept matches the token
729
+ */
730
+ export declare function codeableConceptMatchesToken(codeableConcept: CodeableConcept, token: string): boolean;
731
+
722
732
  /**
723
733
  * Allowed values for `code_challenge_method` in a PKCE exchange.
724
734
  */
725
735
  export declare type CodeChallengeMethod = 'plain' | 'S256';
726
736
 
737
+ /**
738
+ * Checks if a Coding matches a token search string
739
+ * https://build.fhir.org/search.html#token
740
+ *
741
+ * @param coding - The Coding to test
742
+ * @param token - The token string to test
743
+ * @returns True if the Coding matches the token
744
+ */
745
+ export declare function codingMatchesToken(coding: Coding, token: string): boolean;
746
+
727
747
  export declare function compressElement(element: InternalSchemaElement): Partial<InternalSchemaElement>;
728
748
 
729
749
  export declare class ConcatAtom extends InfixOperatorAtom {
@@ -3509,6 +3529,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
3509
3529
  private readonly onUnauthenticated?;
3510
3530
  private readonly autoBatchTime;
3511
3531
  private readonly autoBatchQueue;
3532
+ private readonly maxRetries;
3512
3533
  private readonly maxRetryTime;
3513
3534
  private readonly refreshGracePeriod;
3514
3535
  private subscriptionManager?;
@@ -5301,6 +5322,17 @@ export declare interface MedplumClientOptions {
5301
5322
  * Default value is `2000` (2 seconds).
5302
5323
  */
5303
5324
  maxRetryTime?: number;
5325
+ /**
5326
+ * The maximum number of retries for failed requests.
5327
+ *
5328
+ * When the client encounters a retryable response (HTTP 429 or 5xx), it will automatically retry the request.
5329
+ * This setting defines the maximum number of retry attempts.
5330
+ *
5331
+ * This can be overridden per-request using the `maxRetries` option in `MedplumRequestOptions`.
5332
+ *
5333
+ * Default value is `2`.
5334
+ */
5335
+ maxRetries?: number;
5304
5336
  /**
5305
5337
  * The refresh grace period in milliseconds.
5306
5338
  *
@@ -719,11 +719,31 @@ export declare interface Code {
719
719
  code?: CodeableConcept;
720
720
  }
721
721
 
722
+ /**
723
+ * Checks if a CodeableConcept matches a token search string
724
+ * https://build.fhir.org/search.html#token
725
+ *
726
+ * @param codeableConcept - The CodeableConcept to test
727
+ * @param token - The token string to test
728
+ * @returns True if the CodeableConcept matches the token
729
+ */
730
+ export declare function codeableConceptMatchesToken(codeableConcept: CodeableConcept, token: string): boolean;
731
+
722
732
  /**
723
733
  * Allowed values for `code_challenge_method` in a PKCE exchange.
724
734
  */
725
735
  export declare type CodeChallengeMethod = 'plain' | 'S256';
726
736
 
737
+ /**
738
+ * Checks if a Coding matches a token search string
739
+ * https://build.fhir.org/search.html#token
740
+ *
741
+ * @param coding - The Coding to test
742
+ * @param token - The token string to test
743
+ * @returns True if the Coding matches the token
744
+ */
745
+ export declare function codingMatchesToken(coding: Coding, token: string): boolean;
746
+
727
747
  export declare function compressElement(element: InternalSchemaElement): Partial<InternalSchemaElement>;
728
748
 
729
749
  export declare class ConcatAtom extends InfixOperatorAtom {
@@ -3509,6 +3529,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
3509
3529
  private readonly onUnauthenticated?;
3510
3530
  private readonly autoBatchTime;
3511
3531
  private readonly autoBatchQueue;
3532
+ private readonly maxRetries;
3512
3533
  private readonly maxRetryTime;
3513
3534
  private readonly refreshGracePeriod;
3514
3535
  private subscriptionManager?;
@@ -5301,6 +5322,17 @@ export declare interface MedplumClientOptions {
5301
5322
  * Default value is `2000` (2 seconds).
5302
5323
  */
5303
5324
  maxRetryTime?: number;
5325
+ /**
5326
+ * The maximum number of retries for failed requests.
5327
+ *
5328
+ * When the client encounters a retryable response (HTTP 429 or 5xx), it will automatically retry the request.
5329
+ * This setting defines the maximum number of retry attempts.
5330
+ *
5331
+ * This can be overridden per-request using the `maxRetries` option in `MedplumRequestOptions`.
5332
+ *
5333
+ * Default value is `2`.
5334
+ */
5335
+ maxRetries?: number;
5304
5336
  /**
5305
5337
  * The refresh grace period in milliseconds.
5306
5338
  *