@tamu-dor/famis-db 3.0.0-beta.4 → 3.0.2

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.
package/dist/index.d.mts CHANGED
@@ -646,10 +646,11 @@ declare class FAMISDb {
646
646
  * @param {string} [sortDirection='asc']
647
647
  * @param {integer} page - page of results to return
648
648
  * @param {integer} perPage - number of results per page to return
649
+ * @param {string[]} excludeFields - fields to exclude from results
649
650
  * @returns {Promise<CorePayload>} core objects
650
651
  * @memberof FAMISDb
651
652
  */
652
- queryCores(query: string, sortColumn?: string, sortDirection?: SortDirection | string, page?: number, perPage?: number): Promise<CorePayload>;
653
+ queryCores(query: string, sortColumn?: string, sortDirection?: SortDirection | string, page?: number, perPage?: number, excludeFields?: string[]): Promise<CorePayload>;
653
654
  /**
654
655
  *
655
656
  * Get core by specified attribute and search term
@@ -770,10 +771,9 @@ declare class FAMISDb {
770
771
  /**
771
772
  * This function adds a new CoreUser to the database. If the user already exists, it updates the existing record.
772
773
  * @param {CoreUser} coreUser - The CoreUser object containing details about the user.
773
- * @param {User} [user] - An optional User object that could contain additional details.
774
774
  * @return {Promise<CoreUser>} A Promise that resolves to the newly added or updated CoreUser, if successfully added and returned from the database; otherwise it rejects with an error.
775
775
  */
776
- addCoreUser(coreUser: CoreUser, user?: User): Promise<CoreUser>;
776
+ addCoreUser(coreUser: CoreUser): Promise<CoreUser>;
777
777
  /**
778
778
  *
779
779
  * Delete core user
@@ -1131,7 +1131,7 @@ declare class FAMISDb {
1131
1131
  tamuManualAddRDN: string | null;
1132
1132
  }
1133
1133
 
1134
- export declare type SortDirection = 'asc' | 'desc';
1134
+ export declare type SortDirection = "asc" | "desc";
1135
1135
 
1136
1136
  export declare interface SystemPart {
1137
1137
  id: number;
package/dist/index.d.ts CHANGED
@@ -646,10 +646,11 @@ declare class FAMISDb {
646
646
  * @param {string} [sortDirection='asc']
647
647
  * @param {integer} page - page of results to return
648
648
  * @param {integer} perPage - number of results per page to return
649
+ * @param {string[]} excludeFields - fields to exclude from results
649
650
  * @returns {Promise<CorePayload>} core objects
650
651
  * @memberof FAMISDb
651
652
  */
652
- queryCores(query: string, sortColumn?: string, sortDirection?: SortDirection | string, page?: number, perPage?: number): Promise<CorePayload>;
653
+ queryCores(query: string, sortColumn?: string, sortDirection?: SortDirection | string, page?: number, perPage?: number, excludeFields?: string[]): Promise<CorePayload>;
653
654
  /**
654
655
  *
655
656
  * Get core by specified attribute and search term
@@ -770,10 +771,9 @@ declare class FAMISDb {
770
771
  /**
771
772
  * This function adds a new CoreUser to the database. If the user already exists, it updates the existing record.
772
773
  * @param {CoreUser} coreUser - The CoreUser object containing details about the user.
773
- * @param {User} [user] - An optional User object that could contain additional details.
774
774
  * @return {Promise<CoreUser>} A Promise that resolves to the newly added or updated CoreUser, if successfully added and returned from the database; otherwise it rejects with an error.
775
775
  */
776
- addCoreUser(coreUser: CoreUser, user?: User): Promise<CoreUser>;
776
+ addCoreUser(coreUser: CoreUser): Promise<CoreUser>;
777
777
  /**
778
778
  *
779
779
  * Delete core user
@@ -1131,7 +1131,7 @@ declare class FAMISDb {
1131
1131
  tamuManualAddRDN: string | null;
1132
1132
  }
1133
1133
 
1134
- export declare type SortDirection = 'asc' | 'desc';
1134
+ export declare type SortDirection = "asc" | "desc";
1135
1135
 
1136
1136
  export declare interface SystemPart {
1137
1137
  id: number;