@dpuse/dpuse-shared 1.0.219 → 1.0.221

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.
@@ -245,6 +245,7 @@ export interface UpsertRecordsOptions extends EngineConnectorActionOptions {
245
245
  export type ConnectorUsageId = InferOutput<typeof connectorUsageIdSchema>;
246
246
  export { auditObjectContentWithParser, buildPreviewObjectResult, indexObjectStructureWithParser } from './objectParsing';
247
247
  export { listObjectStructureEntriesWithParser, retrieveRecordsWithParser } from './objectParsing';
248
+ export { constructStoreError, findStoreErrorId, type StoreErrorId } from './storeErrors';
248
249
  export { resolveStorePath } from './storePath';
249
250
  export { convertStoreRecordToParsedRecord, convertStoreValueToText } from './storeValues';
250
251
  export { type AcquireWebLockOptions, acquireWebLock } from './webLock';
@@ -0,0 +1,4 @@
1
+ import { ConnectorError } from '../../../errors';
2
+ export type StoreErrorId = 'heldElsewhere' | 'notLoaded';
3
+ export declare function constructStoreError(storeErrorId: StoreErrorId, message: string, locator: string, options?: ErrorOptions): ConnectorError;
4
+ export declare function findStoreErrorId(error: unknown): StoreErrorId | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "1.0.219",
3
+ "version": "1.0.221",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across DPUse projects.",
6
6
  "license": "MIT",