File

libs/core/src/lib/models/resource-object.model.ts

Indexable

[key: string]: ResourceObject | StaticResource
export interface ResourceObject {
  /**
   * For the PFE Store use a 'State Key Expression'. Example: '$.details'. For more information, see the PFE documentation https://ngx-pfe.frameworks.allianz.io/assets/docs/additional-documentation/state-storage.html.
   */
  query: string;
  /**
   * Use one of the supported Storage engines. For the PFE store, the type is 'PFE_STORE_QUERY'.
   */
  type: StorageType;
}

/**
 * Use one of the supported Storage engines.
 */
export const enum StorageType {
  PfeStoreQuery = 'PFE_STORE_QUERY',
  // "Other" enum is added to support dynamic validators in non-PFE applications.
  // Currently, no team is requesting it but it's added to decouple PFE and dynamic validators.
  Other = 'OTHER'
}

export interface ResourcesConfiguration {
  [key: string]: ResourceObject | StaticResource;
}

export type StaticResource = boolean | number | string | object | unknown[] | null;

results matching ""

    No results matching ""