achievements-app/psn-api

View on GitHub
src/models/all-call-options.model.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { CallValidHeaders } from "./call-valid-headers.model";

export interface AllCallOptions {
  /**
   * Not required unless the platform is PS3, PS4, or PS Vita.
   * If one of these platforms, the value __must__ be `"trophy"`.
   *
   * `"trophy"` for PS3, PS4, or PS Vita platforms.
   * `"trophy2"` for the PS5 platform.
   */
  npServiceName: "trophy" | "trophy2";

  /** Limit the number of entities returned. */
  limit: number;

  /** Return entity data from this result onwards. */
  offset: number;

  /*
   * Override the headers in the request to the PSN API,
   * such as to change the language.
   */
  headerOverrides: CallValidHeaders;
}