Type alias GetPaywallParamsInput

GetPaywallParamsInput: {
    fetchPolicy?: Exclude<FetchPolicy, "return_cache_data_if_not_expired_else_load">;
    loadTimeoutMs?: number;
} | {
    fetchPolicy: Extract<FetchPolicy, "return_cache_data_if_not_expired_else_load">;
    loadTimeoutMs?: number;
    maxAgeSeconds: number;
}

Type declaration

  • Optional fetchPolicy?: Exclude<FetchPolicy, "return_cache_data_if_not_expired_else_load">

    Fetch policy

    Remarks

    By default SDK will try to load data from server and will return cached data in case of failure. Otherwise use 'return_cache_data_else_load' to return cached data if it exists.

  • Optional loadTimeoutMs?: number

    This value limits the timeout (in milliseconds) for this method.

    Remarks

    If the timeout is reached, cached data or local fallback will be returned.

Type declaration

  • fetchPolicy: Extract<FetchPolicy, "return_cache_data_if_not_expired_else_load">

    Fetch policy

    Remarks

    By default SDK will try to load data from server and will return cached data in case of failure. Otherwise use 'return_cache_data_else_load' to return cached data if it exists.

  • Optional loadTimeoutMs?: number

    This value limits the timeout (in milliseconds) for this method.

    Remarks

    If the timeout is reached, cached data or local fallback will be returned.

  • maxAgeSeconds: number

    Max age for cached data.

    Remarks

    Max time (in seconds) the cache is valid in case of 'return_cache_data_if_not_expired_else_load' fetch policy.

Generated using TypeDoc