@decaf-ts/core 0.7.3 → 0.7.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/README.md +6 -1
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/lib/esm/identity/decorators.js +1 -1
- package/lib/esm/identity/decorators.js.map +1 -1
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/{ram/model/RamSequenceModel.d.ts → esm/model/SequenceModel.d.ts} +3 -3
- package/lib/esm/{ram/model/RamSequenceModel.js → model/SequenceModel.js} +12 -11
- package/lib/esm/model/SequenceModel.js.map +1 -0
- package/lib/esm/model/decorators.d.ts +1 -1
- package/lib/esm/model/decorators.js +1 -1
- package/lib/esm/model/decorators.js.map +1 -1
- package/lib/esm/model/index.d.ts +1 -0
- package/lib/esm/model/index.js +1 -0
- package/lib/esm/model/index.js.map +1 -1
- package/lib/esm/persistence/Adapter.d.ts +3 -2
- package/lib/esm/persistence/Adapter.js +9 -0
- package/lib/esm/persistence/Adapter.js.map +1 -1
- package/lib/esm/persistence/Sequence.d.ts +33 -17
- package/lib/esm/persistence/Sequence.js +126 -0
- package/lib/esm/persistence/Sequence.js.map +1 -1
- package/lib/esm/persistence/generators.d.ts +14 -0
- package/lib/esm/persistence/generators.js +31 -0
- package/lib/esm/persistence/generators.js.map +1 -0
- package/lib/esm/persistence/index.d.ts +1 -0
- package/lib/esm/persistence/index.js +1 -0
- package/lib/esm/persistence/index.js.map +1 -1
- package/lib/esm/ram/RamAdapter.d.ts +1 -10
- package/lib/esm/ram/RamAdapter.js +0 -11
- package/lib/esm/ram/RamAdapter.js.map +1 -1
- package/lib/esm/ram/index.d.ts +0 -2
- package/lib/esm/ram/index.js +0 -2
- package/lib/esm/ram/index.js.map +1 -1
- package/lib/esm/repository/Repository.d.ts +1 -1
- package/lib/esm/repository/Repository.js +3 -4
- package/lib/esm/repository/Repository.js.map +1 -1
- package/lib/esm/repository/decorators.js +2 -2
- package/lib/esm/repository/decorators.js.map +1 -1
- package/lib/esm/utils/Services.d.ts +29 -7
- package/lib/esm/utils/Services.js +79 -13
- package/lib/esm/utils/Services.js.map +1 -1
- package/lib/identity/decorators.cjs +2 -2
- package/lib/identity/decorators.js.map +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/{ram/model/RamSequenceModel.cjs → model/SequenceModel.cjs} +14 -13
- package/lib/{esm/ram/model/RamSequenceModel.d.ts → model/SequenceModel.d.ts} +3 -3
- package/lib/model/SequenceModel.js.map +1 -0
- package/lib/model/decorators.cjs +2 -2
- package/lib/model/decorators.d.ts +1 -1
- package/lib/model/decorators.js.map +1 -1
- package/lib/model/index.cjs +1 -0
- package/lib/model/index.d.ts +1 -0
- package/lib/model/index.js.map +1 -1
- package/lib/persistence/Adapter.cjs +9 -0
- package/lib/persistence/Adapter.d.ts +3 -2
- package/lib/persistence/Adapter.js.map +1 -1
- package/lib/persistence/Sequence.cjs +126 -0
- package/lib/persistence/Sequence.d.ts +33 -17
- package/lib/persistence/Sequence.js.map +1 -1
- package/lib/persistence/generators.cjs +36 -0
- package/lib/persistence/generators.d.ts +14 -0
- package/lib/persistence/generators.js.map +1 -0
- package/lib/persistence/index.cjs +1 -0
- package/lib/persistence/index.d.ts +1 -0
- package/lib/persistence/index.js.map +1 -1
- package/lib/ram/RamAdapter.cjs +0 -11
- package/lib/ram/RamAdapter.d.ts +1 -10
- package/lib/ram/RamAdapter.js.map +1 -1
- package/lib/ram/index.cjs +0 -2
- package/lib/ram/index.d.ts +0 -2
- package/lib/ram/index.js.map +1 -1
- package/lib/repository/Repository.cjs +3 -4
- package/lib/repository/Repository.d.ts +1 -1
- package/lib/repository/Repository.js.map +1 -1
- package/lib/repository/decorators.cjs +1 -1
- package/lib/repository/decorators.js.map +1 -1
- package/lib/utils/Services.cjs +78 -12
- package/lib/utils/Services.d.ts +29 -7
- package/lib/utils/Services.js.map +1 -1
- package/package.json +1 -1
- package/lib/esm/ram/RamSequence.d.ts +0 -68
- package/lib/esm/ram/RamSequence.js +0 -141
- package/lib/esm/ram/RamSequence.js.map +0 -1
- package/lib/esm/ram/model/RamSequenceModel.js.map +0 -1
- package/lib/esm/ram/model/index.d.ts +0 -1
- package/lib/esm/ram/model/index.js +0 -2
- package/lib/esm/ram/model/index.js.map +0 -1
- package/lib/ram/RamSequence.cjs +0 -145
- package/lib/ram/RamSequence.d.ts +0 -68
- package/lib/ram/RamSequence.js.map +0 -1
- package/lib/ram/model/RamSequenceModel.js.map +0 -1
- package/lib/ram/model/index.cjs +0 -18
- package/lib/ram/model/index.d.ts +0 -1
- package/lib/ram/model/index.js.map +0 -1
package/lib/ram/RamSequence.cjs
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RamSequence = void 0;
|
|
4
|
-
const RamSequenceModel_1 = require("./model/RamSequenceModel.cjs");
|
|
5
|
-
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
6
|
-
const persistence_1 = require("./../persistence/index.cjs");
|
|
7
|
-
const repository_1 = require("./../repository/index.cjs");
|
|
8
|
-
/**
|
|
9
|
-
* @description RAM-specific sequence implementation
|
|
10
|
-
* @summary Extends the base Sequence class to provide auto-incrementing sequence functionality
|
|
11
|
-
* for the RAM adapter. This class manages sequences stored in memory, allowing for the generation
|
|
12
|
-
* of sequential identifiers for entities.
|
|
13
|
-
* @param {SequenceOptions} options - Configuration options for the sequence
|
|
14
|
-
* @param {RamAdapter} adapter - The RAM adapter instance to use for storage
|
|
15
|
-
* @class RamSequence
|
|
16
|
-
* @category Ram
|
|
17
|
-
* @example
|
|
18
|
-
* ```typescript
|
|
19
|
-
* // Create a new numeric sequence starting at 1
|
|
20
|
-
* const sequence = new RamSequence({
|
|
21
|
-
* name: 'order_sequence',
|
|
22
|
-
* type: 'Number',
|
|
23
|
-
* startWith: 1,
|
|
24
|
-
* incrementBy: 1
|
|
25
|
-
* }, ramAdapter);
|
|
26
|
-
*
|
|
27
|
-
* // Get the next value in the sequence
|
|
28
|
-
* const nextId = await sequence.next();
|
|
29
|
-
*
|
|
30
|
-
* // Get a range of values
|
|
31
|
-
* const idRange = await sequence.range(5); // Returns 5 sequential values
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
class RamSequence extends persistence_1.Sequence {
|
|
35
|
-
constructor(options, adapter) {
|
|
36
|
-
super(options, adapter);
|
|
37
|
-
this.repo = repository_1.Repository.forModel(RamSequenceModel_1.RamSequenceModel, adapter.alias);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @description Retrieves the current value of the sequence
|
|
41
|
-
* @summary Gets the current value of the sequence from storage. If the sequence
|
|
42
|
-
* doesn't exist yet, it returns the configured starting value.
|
|
43
|
-
* @return A promise that resolves to the current sequence value
|
|
44
|
-
*/
|
|
45
|
-
async current(...args) {
|
|
46
|
-
const contextArgs = await db_decorators_1.Context.args(db_decorators_1.OperationKeys.READ, RamSequenceModel_1.RamSequenceModel, args, this.adapter);
|
|
47
|
-
const ctx = contextArgs.context;
|
|
48
|
-
const { name, startWith } = this.options;
|
|
49
|
-
try {
|
|
50
|
-
const sequence = await this.repo.read(name, ctx);
|
|
51
|
-
return this.parse(sequence.current);
|
|
52
|
-
}
|
|
53
|
-
catch (e) {
|
|
54
|
-
if (e instanceof db_decorators_1.NotFoundError) {
|
|
55
|
-
if (typeof startWith === "undefined")
|
|
56
|
-
throw new db_decorators_1.InternalError("Starting value is not defined for a non existing sequence");
|
|
57
|
-
try {
|
|
58
|
-
return this.parse(startWith);
|
|
59
|
-
}
|
|
60
|
-
catch (e) {
|
|
61
|
-
throw new db_decorators_1.InternalError(`Failed to parse initial value for sequence ${startWith}: ${e}`);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
throw new db_decorators_1.InternalError(`Failed to retrieve current value for sequence ${name}: ${e}`);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @description Increments the sequence value
|
|
69
|
-
* @summary Increases the current sequence value by the specified amount and persists
|
|
70
|
-
* the new value to storage. This method handles both numeric and BigInt sequence types.
|
|
71
|
-
* @param {string | number | bigint} current - The current value of the sequence
|
|
72
|
-
* @param {number} [count] - Optional amount to increment by, defaults to the sequence's incrementBy value
|
|
73
|
-
* @return A promise that resolves to the new sequence value after incrementing
|
|
74
|
-
*/
|
|
75
|
-
async increment(current, count, ctx) {
|
|
76
|
-
const { type, incrementBy, name } = this.options;
|
|
77
|
-
let next;
|
|
78
|
-
const toIncrementBy = count || incrementBy;
|
|
79
|
-
if (toIncrementBy % incrementBy !== 0)
|
|
80
|
-
throw new db_decorators_1.InternalError(`Value to increment does not consider the incrementBy setting: ${incrementBy}`);
|
|
81
|
-
switch (type) {
|
|
82
|
-
case "Number":
|
|
83
|
-
next = this.parse(current) + toIncrementBy;
|
|
84
|
-
break;
|
|
85
|
-
case "BigInt":
|
|
86
|
-
next = this.parse(current) + BigInt(toIncrementBy);
|
|
87
|
-
break;
|
|
88
|
-
case "String":
|
|
89
|
-
next = this.parse(current);
|
|
90
|
-
break;
|
|
91
|
-
default:
|
|
92
|
-
throw new db_decorators_1.InternalError("Should never happen");
|
|
93
|
-
}
|
|
94
|
-
let seq;
|
|
95
|
-
const repo = this.repo.override({
|
|
96
|
-
ignoredValidationProperties: ["updatedAt"],
|
|
97
|
-
});
|
|
98
|
-
try {
|
|
99
|
-
seq = await repo.update(new RamSequenceModel_1.RamSequenceModel({ id: name, current: next }), ctx);
|
|
100
|
-
}
|
|
101
|
-
catch (e) {
|
|
102
|
-
if (!(e instanceof db_decorators_1.NotFoundError)) {
|
|
103
|
-
throw e;
|
|
104
|
-
}
|
|
105
|
-
seq = await repo.create(new RamSequenceModel_1.RamSequenceModel({ id: name, current: next }), ctx);
|
|
106
|
-
}
|
|
107
|
-
return seq.current;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* @description Gets the next value in the sequence
|
|
111
|
-
* @summary Retrieves the current value of the sequence and increments it by the
|
|
112
|
-
* configured increment amount. This is the main method used to get a new sequential value.
|
|
113
|
-
* @return A promise that resolves to the next value in the sequence
|
|
114
|
-
*/
|
|
115
|
-
async next(...argz) {
|
|
116
|
-
const contextArgs = await db_decorators_1.Context.args(db_decorators_1.OperationKeys.UPDATE, RamSequenceModel_1.RamSequenceModel, argz, this.adapter);
|
|
117
|
-
const { context, args } = contextArgs;
|
|
118
|
-
const current = await this.current(...args);
|
|
119
|
-
return this.increment(current, undefined, context);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* @description Generates a range of sequential values
|
|
123
|
-
* @summary Retrieves a specified number of sequential values from the sequence.
|
|
124
|
-
* This is useful when you need to allocate multiple IDs at once.
|
|
125
|
-
* The method increments the sequence by the total amount needed and returns all values in the range.
|
|
126
|
-
* @param {number} count - The number of sequential values to generate
|
|
127
|
-
* @return A promise that resolves to an array of sequential values
|
|
128
|
-
*/
|
|
129
|
-
async range(count, ...argz) {
|
|
130
|
-
const contextArgs = await db_decorators_1.Context.args(db_decorators_1.OperationKeys.UPDATE, RamSequenceModel_1.RamSequenceModel, argz, this.adapter);
|
|
131
|
-
const { context, args } = contextArgs;
|
|
132
|
-
const current = (await this.current(...args));
|
|
133
|
-
const incrementBy = this.parse(this.options.incrementBy);
|
|
134
|
-
const next = await this.increment(current, this.parse(count) * incrementBy, context);
|
|
135
|
-
const range = [];
|
|
136
|
-
for (let i = 1; i <= count; i++) {
|
|
137
|
-
range.push(current + incrementBy * this.parse(i));
|
|
138
|
-
}
|
|
139
|
-
if (range[range.length - 1] !== next && this.options.type !== "String")
|
|
140
|
-
throw new db_decorators_1.InternalError("Miscalculation of range");
|
|
141
|
-
return range;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
exports.RamSequence = RamSequence;
|
|
145
|
-
//# sourceMappingURL=RamSequence.js.map
|
package/lib/ram/RamSequence.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { RamSequenceModel } from "./model/RamSequenceModel";
|
|
2
|
-
import { Sequence } from "../persistence";
|
|
3
|
-
import { SequenceOptions } from "../interfaces";
|
|
4
|
-
import { RamAdapter } from "./RamAdapter";
|
|
5
|
-
import { Repo } from "../repository";
|
|
6
|
-
import { MaybeContextualArg } from "../utils/index";
|
|
7
|
-
/**
|
|
8
|
-
* @description RAM-specific sequence implementation
|
|
9
|
-
* @summary Extends the base Sequence class to provide auto-incrementing sequence functionality
|
|
10
|
-
* for the RAM adapter. This class manages sequences stored in memory, allowing for the generation
|
|
11
|
-
* of sequential identifiers for entities.
|
|
12
|
-
* @param {SequenceOptions} options - Configuration options for the sequence
|
|
13
|
-
* @param {RamAdapter} adapter - The RAM adapter instance to use for storage
|
|
14
|
-
* @class RamSequence
|
|
15
|
-
* @category Ram
|
|
16
|
-
* @example
|
|
17
|
-
* ```typescript
|
|
18
|
-
* // Create a new numeric sequence starting at 1
|
|
19
|
-
* const sequence = new RamSequence({
|
|
20
|
-
* name: 'order_sequence',
|
|
21
|
-
* type: 'Number',
|
|
22
|
-
* startWith: 1,
|
|
23
|
-
* incrementBy: 1
|
|
24
|
-
* }, ramAdapter);
|
|
25
|
-
*
|
|
26
|
-
* // Get the next value in the sequence
|
|
27
|
-
* const nextId = await sequence.next();
|
|
28
|
-
*
|
|
29
|
-
* // Get a range of values
|
|
30
|
-
* const idRange = await sequence.range(5); // Returns 5 sequential values
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare class RamSequence extends Sequence {
|
|
34
|
-
protected repo: Repo<RamSequenceModel>;
|
|
35
|
-
constructor(options: SequenceOptions, adapter: RamAdapter);
|
|
36
|
-
/**
|
|
37
|
-
* @description Retrieves the current value of the sequence
|
|
38
|
-
* @summary Gets the current value of the sequence from storage. If the sequence
|
|
39
|
-
* doesn't exist yet, it returns the configured starting value.
|
|
40
|
-
* @return A promise that resolves to the current sequence value
|
|
41
|
-
*/
|
|
42
|
-
current(...args: MaybeContextualArg<any>): Promise<string | number | bigint>;
|
|
43
|
-
/**
|
|
44
|
-
* @description Increments the sequence value
|
|
45
|
-
* @summary Increases the current sequence value by the specified amount and persists
|
|
46
|
-
* the new value to storage. This method handles both numeric and BigInt sequence types.
|
|
47
|
-
* @param {string | number | bigint} current - The current value of the sequence
|
|
48
|
-
* @param {number} [count] - Optional amount to increment by, defaults to the sequence's incrementBy value
|
|
49
|
-
* @return A promise that resolves to the new sequence value after incrementing
|
|
50
|
-
*/
|
|
51
|
-
private increment;
|
|
52
|
-
/**
|
|
53
|
-
* @description Gets the next value in the sequence
|
|
54
|
-
* @summary Retrieves the current value of the sequence and increments it by the
|
|
55
|
-
* configured increment amount. This is the main method used to get a new sequential value.
|
|
56
|
-
* @return A promise that resolves to the next value in the sequence
|
|
57
|
-
*/
|
|
58
|
-
next(...argz: MaybeContextualArg<any>): Promise<number | string | bigint>;
|
|
59
|
-
/**
|
|
60
|
-
* @description Generates a range of sequential values
|
|
61
|
-
* @summary Retrieves a specified number of sequential values from the sequence.
|
|
62
|
-
* This is useful when you need to allocate multiple IDs at once.
|
|
63
|
-
* The method increments the sequence by the total amount needed and returns all values in the range.
|
|
64
|
-
* @param {number} count - The number of sequential values to generate
|
|
65
|
-
* @return A promise that resolves to an array of sequential values
|
|
66
|
-
*/
|
|
67
|
-
range(count: number, ...argz: MaybeContextualArg<any>): Promise<(number | string | bigint)[]>;
|
|
68
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RamSequence.js","sourceRoot":"","sources":["../../src/ram/RamSequence.ts"],"names":[],"mappings":";;;AAAA,mEAA4D;AAC5D,2DAKiC;AACjC,4DAA0C;AAG1C,0DAAiD;AAGjD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,WAAY,SAAQ,sBAAQ;IAGvC,YAAY,OAAwB,EAAE,OAAmB;Q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CAAC,EAAE,EAAE,CAAC;YACxC,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,WAAW,GAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAY,CAAC,CAAC;QAChE,CAAC;QACD,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ;YACpE,MAAM,IAAI,6BAAa,CAAC,yBAAyB,CAAC,CAAC;QACrD,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAlKD,kCAkKC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RamSequenceModel.js","sourceRoot":"","sources":["../../../src/ram/model/RamSequenceModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAiE;AAEjE,mDAAsD;AACtD,yDAAoC;AAEpC;;;;;;;;;;;;;;;;;GAiBG;AAGI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,iBAAS;IAe7C,YAAY,GAAgC;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF,CAAA;AAlBY,4CAAgB;AAK3B;IADC,IAAA,aAAE,GAAE;;4CACO;AAQZ;IAFC,IAAA,+BAAQ,GAAE;IACV,IAAA,aAAK,GAAE;;iDACkB;2BAbf,gBAAgB;IAF5B,IAAA,aAAK,EAAC,eAAe,CAAC;IACtB,IAAA,4BAAK,GAAE;;GACK,gBAAgB,CAkB5B"}
|
package/lib/ram/model/index.cjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./RamSequenceModel.cjs"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/lib/ram/model/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./RamSequenceModel";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ram/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAmC"}
|