@decaf-ts/for-fabric 0.13.2 → 0.13.4
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/for-fabric.cjs +1 -1
- package/lib/cjs/contracts/ContractAdapter.cjs +90 -30
- package/lib/cjs/contracts/ContractAdapter.cjs.map +1 -1
- package/lib/cjs/contracts/FabricContractRepository.cjs +103 -0
- package/lib/cjs/contracts/FabricContractRepository.cjs.map +1 -1
- package/lib/cjs/version.cjs +3 -3
- package/lib/esm/contracts/ContractAdapter.js +90 -30
- package/lib/esm/contracts/ContractAdapter.js.map +1 -1
- package/lib/esm/contracts/FabricContractRepository.js +104 -1
- package/lib/esm/contracts/FabricContractRepository.js.map +1 -1
- package/lib/esm/version.js +3 -3
- package/lib/types/contracts/ContractAdapter.d.cts +1 -0
- package/lib/types/contracts/ContractAdapter.d.mts +1 -0
- package/lib/types/contracts/FabricContractRepository.d.cts +7 -0
- package/lib/types/contracts/FabricContractRepository.d.mts +7 -0
- package/lib/types/version.d.cts +3 -3
- package/lib/types/version.d.mts +3 -3
- package/package.json +1 -1
|
@@ -72,6 +72,7 @@ import { FabricContractFlags } from "./types.d.mts";
|
|
|
72
72
|
*/
|
|
73
73
|
export declare class FabricContractRepository<M extends Model> extends Repository<M, FabricContractAdapter> {
|
|
74
74
|
protected omittedEvents?: (OperationKeys | BulkCrudOperationKeys | string)[] | undefined;
|
|
75
|
+
private static readonly DEFAULT_QUERY_BOOKMARK_PREFIX;
|
|
75
76
|
protected _overrides: Partial<(import("@decaf-ts/db-decorators").ContextFlags<any> & Pick<import("@decaf-ts/db-decorators").RepositoryFlags<any>, "operation" | "correlationId" | "ignoreDevSafeGuards" | "parentContext" | "childContexts"> & {
|
|
76
77
|
pending?: Record<string, string[]>;
|
|
77
78
|
transactionLock?: import("@decaf-ts/core").ContextLock;
|
|
@@ -89,7 +90,13 @@ export declare class FabricContractRepository<M extends Model> extends Repositor
|
|
|
89
90
|
update(model: M, ...args: MaybeContextualArg<FabricContractContext>): Promise<M>;
|
|
90
91
|
updateAll(models: M[], ...args: MaybeContextualArg<FabricContractContext>): Promise<M[]>;
|
|
91
92
|
listBy(key: keyof M, order: OrderDirection, ...args: MaybeContextualArg<FabricContractContext>): Promise<M[]>;
|
|
93
|
+
find(value: string, order?: OrderDirection, ...args: MaybeContextualArg<FabricContractContext>): Promise<M[]>;
|
|
92
94
|
paginateBy(key: keyof M, order: OrderDirection, ref?: Omit<DirectionLimitOffset, "direction">, ...args: MaybeContextualArg<FabricContractContext>): Promise<SerializedPage<M>>;
|
|
95
|
+
page(value: string, direction?: OrderDirection, ref?: Omit<DirectionLimitOffset, "direction">, ...args: MaybeContextualArg<FabricContractContext>): Promise<SerializedPage<M>>;
|
|
96
|
+
private getFabricDefaultQueryAttributes;
|
|
97
|
+
private pageByDefaultAttr;
|
|
98
|
+
private encodeDefaultQueryBookmark;
|
|
99
|
+
private decodeDefaultQueryBookmark;
|
|
93
100
|
statement(name: string, ...args: MaybeContextualArg<FabricContractContext>): Promise<any>;
|
|
94
101
|
/**
|
|
95
102
|
* @description Gets the observer handler for this repository
|
package/lib/types/version.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare const VERSION = "0.13.
|
|
1
|
+
export declare const VERSION = "0.13.3";
|
|
2
2
|
/**
|
|
3
3
|
* @description Represents the current commit hash of the module build.
|
|
4
4
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
5
5
|
* the placeholder with the actual commit hash at publish time.
|
|
6
6
|
* @const COMMIT
|
|
7
7
|
*/
|
|
8
|
-
export declare const COMMIT = "
|
|
8
|
+
export declare const COMMIT = "169a389";
|
|
9
9
|
/**
|
|
10
10
|
* @description Represents the full version string of the module.
|
|
11
11
|
* @summary Stores the semver version and commit hash for the package.
|
|
12
12
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
13
13
|
* @const FULL_VERSION
|
|
14
14
|
*/
|
|
15
|
-
export declare const FULL_VERSION = "0.13.
|
|
15
|
+
export declare const FULL_VERSION = "0.13.3-169a389";
|
|
16
16
|
export declare const PACKAGE_NAME = "@decaf-ts/for-fabric";
|
package/lib/types/version.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare const VERSION = "0.13.
|
|
1
|
+
export declare const VERSION = "0.13.3";
|
|
2
2
|
/**
|
|
3
3
|
* @description Represents the current commit hash of the module build.
|
|
4
4
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
5
5
|
* the placeholder with the actual commit hash at publish time.
|
|
6
6
|
* @const COMMIT
|
|
7
7
|
*/
|
|
8
|
-
export declare const COMMIT = "
|
|
8
|
+
export declare const COMMIT = "169a389";
|
|
9
9
|
/**
|
|
10
10
|
* @description Represents the full version string of the module.
|
|
11
11
|
* @summary Stores the semver version and commit hash for the package.
|
|
12
12
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
13
13
|
* @const FULL_VERSION
|
|
14
14
|
*/
|
|
15
|
-
export declare const FULL_VERSION = "0.13.
|
|
15
|
+
export declare const FULL_VERSION = "0.13.3-169a389";
|
|
16
16
|
export declare const PACKAGE_NAME = "@decaf-ts/for-fabric";
|