-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
483 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type { mssqlTypes } from '@cityssm/mssql-multi-pool'; | ||
import type { mssql } from '@cityssm/mssql-multi-pool'; | ||
import type { BigIntString } from '../types.js'; | ||
import type { EquipmentItem } from './types.js'; | ||
export interface AddEquipment extends Partial<EquipmentItem> { | ||
equipmentId: string; | ||
equipmentClass: string; | ||
equipmentDescription: string; | ||
} | ||
export declare function addEquipment(mssqlConfig: mssqlTypes.config, equipment: AddEquipment): Promise<BigIntString>; | ||
export declare function addEquipment(mssqlConfig: mssql.config, equipment: AddEquipment): Promise<BigIntString>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { type mssqlTypes } from '@cityssm/mssql-multi-pool'; | ||
import { type mssql } from '@cityssm/mssql-multi-pool'; | ||
import type { EquipmentItem } from './types.js'; | ||
/** | ||
* Retrieves a piece of equipment. | ||
* @param mssqlConfig - SQL Server configuration. | ||
* @param equipmentId - The equipment id. | ||
* @returns - The equipment record, if available. | ||
*/ | ||
export declare function getEquipmentByEquipmentId(mssqlConfig: mssqlTypes.config, equipmentId: string): Promise<EquipmentItem | undefined>; | ||
export declare function getEquipmentByEquipmentId(mssqlConfig: mssql.config, equipmentId: string): Promise<EquipmentItem | undefined>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { type mssql } from '@cityssm/mssql-multi-pool'; | ||
import { type DateString } from '@cityssm/utils-datetime'; | ||
export interface CreateStockTransactionBatch { | ||
batchDescription?: string; | ||
batchDate?: DateString; | ||
userId?: string; | ||
entries: CreateStockTransactionBatchEntry[]; | ||
} | ||
export interface CreateStockTransactionBatchEntry { | ||
entryDate?: DateString; | ||
workOrderNumber: string; | ||
jobId?: string; | ||
activityId?: string; | ||
objectCode?: string; | ||
itemNumber: string; | ||
locationCode?: string; | ||
quantity: number; | ||
} | ||
/** | ||
* Creates a new stock transaction batch. | ||
* @param mssqlConfig - SQL Server configuration. | ||
* @param batch - The batch details | ||
* @returns - The batch id. | ||
*/ | ||
export declare function createStockTransactionBatch(mssqlConfig: mssql.config, batch: CreateStockTransactionBatch): Promise<number>; |
Oops, something went wrong.