@pc-nexus/storage 0.5.0 → 0.8.0-next.0
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/index.d.ts +5 -5
- package/index.d.ts.map +1 -1
- package/index.js +4 -4
- package/lib/ces/condition-builder/inner-condition.builder.d.ts.map +1 -1
- package/lib/ces/condition-builder/inner-condition.builder.js +5 -5
- package/lib/ces/entity-storage.d.ts +6 -6
- package/lib/ces/entity-storage.d.ts.map +1 -1
- package/lib/ces/entity-storage.js +2 -4
- package/lib/nos/nos.d.ts +3 -3
- package/lib/nos/nos.d.ts.map +1 -1
- package/lib/nos/nos.js +3 -2
- package/lib/nos/type.d.ts +3 -1
- package/lib/nos/type.d.ts.map +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export { ConditionBuilder } from "./lib/ces/condition-builder/index.js";
|
|
2
|
+
export { ces, type CustomEntityStorage } from "./lib/ces/index.js";
|
|
3
|
+
export { kvs, type KvsSetOptions, type KvsGetOptions, type KvsSetResult } from "./lib/kvs/index.js";
|
|
4
4
|
export * from "./lib/nos/index.js";
|
|
5
|
-
export type { Projection,
|
|
6
|
-
export {
|
|
5
|
+
export type { Projection, CesInsertOptions, CesFindOptions, SortProperty, KvsValueType } from "@pc-nexus/internal";
|
|
6
|
+
export { Direction } from "@pc-nexus/internal";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,GAAG,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACpG,cAAc,oBAAoB,CAAC;AACnC,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export { ConditionBuilder } from "./lib/ces/condition-builder/index.js";
|
|
2
|
+
export { ces } from "./lib/ces/index.js";
|
|
3
|
+
export { kvs } from "./lib/kvs/index.js";
|
|
4
4
|
export * from "./lib/nos/index.js";
|
|
5
|
-
export {
|
|
5
|
+
export { Direction } from "@pc-nexus/internal";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inner-condition.builder.d.ts","sourceRoot":"","sources":["../../../../src/lib/ces/condition-builder/inner-condition.builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,gBAAgB,EAChB,SAAS,EACT,SAAS,EAGT,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,uBAAuB,EAEvB,+BAA+B,EAE/B,YAAY,EACZ,aAAa,EACb,cAAc,EACd,oBAAoB,EACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAuD,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxG,qBAAa,qBAAqB,CAC9B,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,WAAW,SAAS,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,EACzD,YAAY,SAAS,gBAAgB,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,EACrE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,WAAW,CAAC;IAEvC,OAAO,CAAC,MAAM,CAA0B;IAExC,OAAO,CAAC,WAAW,CAAuE;IAE1F,OAAO,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"inner-condition.builder.d.ts","sourceRoot":"","sources":["../../../../src/lib/ces/condition-builder/inner-condition.builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,gBAAgB,EAChB,SAAS,EACT,SAAS,EAGT,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,uBAAuB,EAEvB,+BAA+B,EAE/B,YAAY,EACZ,aAAa,EACb,cAAc,EACd,oBAAoB,EACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAuD,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxG,qBAAa,qBAAqB,CAC9B,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,WAAW,SAAS,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,EACzD,YAAY,SAAS,gBAAgB,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,EACrE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,WAAW,CAAC;IAEvC,OAAO,CAAC,MAAM,CAA0B;IAExC,OAAO,CAAC,WAAW,CAAuE;IAE1F,OAAO,KAAK,YAAY,GAKvB;IAED,OAAO,KAAK,YAAY,QAEvB;IAED,OAAO,CAAC,IAAI,CAAyB;IACrC,OAAO,CAAC,YAAY,CAAgB;WAEtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,qBAAqB,CAAC,MAAM,CAAC;gBAI3E,OAAO,GAAE,uBAA4B;IAKjD,IAAI,CAAC,KAAK,UAAO,GAAG,SAAS;IAgB7B,KAAK,CAAC,IAAI,EAAE,qBAAqB,CAAC,MAAM,EAAE,KAAK,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC,GAAG,qBAAqB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
3
3
|
import _ from "lodash";
|
|
4
4
|
export class InnerConditionBuilder {
|
|
@@ -6,7 +6,7 @@ export class InnerConditionBuilder {
|
|
|
6
6
|
baseOptions = { ignoreUndefined: false, keepNaN: false };
|
|
7
7
|
get currentField() {
|
|
8
8
|
if (!this._field) {
|
|
9
|
-
throw new NexusInnerError(
|
|
9
|
+
throw new NexusInnerError(NexusInnerErrorCode.StorageConditionBuilder, `No field specified for condition`);
|
|
10
10
|
}
|
|
11
11
|
return this._field;
|
|
12
12
|
}
|
|
@@ -76,7 +76,7 @@ export class InnerConditionBuilder {
|
|
|
76
76
|
assertAtRootLevel() {
|
|
77
77
|
if (!this.isAtRootLevel()) {
|
|
78
78
|
const logicalOp = this.currentLevel[logicalOpSymbol];
|
|
79
|
-
throw new NexusInnerError(
|
|
79
|
+
throw new NexusInnerError(NexusInnerErrorCode.StorageConditionBuilder, `there is still remaining "${logicalOp}" logical operator opened`);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
assertAtLogicalLevel(expect) {
|
|
@@ -84,11 +84,11 @@ export class InnerConditionBuilder {
|
|
|
84
84
|
const isRootLevel = _.isNil(logicalOp);
|
|
85
85
|
if (expect) {
|
|
86
86
|
if (logicalOp !== expect) {
|
|
87
|
-
throw new NexusInnerError(
|
|
87
|
+
throw new NexusInnerError(NexusInnerErrorCode.StorageConditionBuilder, `there is no "${expect}" logical operator opened`);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
else if (isRootLevel) {
|
|
91
|
-
throw new NexusInnerError(
|
|
91
|
+
throw new NexusInnerError(NexusInnerErrorCode.StorageConditionBuilder, `there is no any logical operator opened`);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
logicalClosure(logicalOp, closure) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConditionBuilder } from "./condition-builder/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { CesFindOptions, CesInsertOptions } from "@pc-nexus/internal";
|
|
3
3
|
/**
|
|
4
4
|
* Entity storage API implementation, provides CRUD operations for entities via CES hook
|
|
5
5
|
* @template T Entity type extending Entity
|
|
@@ -17,15 +17,15 @@ export declare class CustomEntityStorage<T> {
|
|
|
17
17
|
* @param options Insert options, e.g. ordered for insert order
|
|
18
18
|
* @returns Inserted entity or entities
|
|
19
19
|
*/
|
|
20
|
-
insert(value: T
|
|
21
|
-
insert(value: T, options?:
|
|
20
|
+
insert(value: T): Promise<T>;
|
|
21
|
+
insert(value: T[], options?: CesInsertOptions): Promise<T[]>;
|
|
22
22
|
/**
|
|
23
23
|
* Find records matching the condition
|
|
24
24
|
* @param condition Query condition
|
|
25
25
|
* @param options Find options, e.g. projection, hint, includes
|
|
26
26
|
* @returns Matching entities
|
|
27
27
|
*/
|
|
28
|
-
find(condition?: (conditionBuilder: ConditionBuilder<T>) => void, options?:
|
|
28
|
+
find(condition?: (conditionBuilder: ConditionBuilder<T>) => void, options?: CesFindOptions<T>): Promise<T[]>;
|
|
29
29
|
/**
|
|
30
30
|
* Update all records matching the condition
|
|
31
31
|
* @param condition Query condition
|
|
@@ -33,7 +33,7 @@ export declare class CustomEntityStorage<T> {
|
|
|
33
33
|
* @param options Update options, e.g. returnValue, upsert, hint
|
|
34
34
|
* @returns void
|
|
35
35
|
*/
|
|
36
|
-
update(condition: (conditionBuilder: ConditionBuilder<T>) => void, value
|
|
36
|
+
update(condition: (conditionBuilder: ConditionBuilder<T>) => void, value: Partial<T>): Promise<void>;
|
|
37
37
|
/**
|
|
38
38
|
* Count records matching the condition
|
|
39
39
|
* @param condition Query condition
|
|
@@ -46,6 +46,6 @@ export declare class CustomEntityStorage<T> {
|
|
|
46
46
|
* @param options Delete options, e.g. justOne
|
|
47
47
|
* @returns void
|
|
48
48
|
*/
|
|
49
|
-
delete(condition: (conditionBuilder: ConditionBuilder<T>) => void
|
|
49
|
+
delete(condition: (conditionBuilder: ConditionBuilder<T>) => void): Promise<void>;
|
|
50
50
|
}
|
|
51
51
|
//# sourceMappingURL=entity-storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-storage.d.ts","sourceRoot":"","sources":["../../../src/lib/ces/entity-storage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,8BAA8B,CAAC;AACxF,OAAO,KAAK,EAAa,
|
|
1
|
+
{"version":3,"file":"entity-storage.d.ts","sourceRoot":"","sources":["../../../src/lib/ces/entity-storage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,8BAA8B,CAAC;AACxF,OAAO,KAAK,EAAa,cAAc,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtF;;;GAGG;AACH,qBAAa,mBAAmB,CAAC,CAAC;;IAIX,OAAO,CAAC,QAAQ,CAAC,UAAU;IAH9C;;OAEG;gBACiC,UAAU,EAAE,MAAM;IAYtD;;;;;OAKG;IACU,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAC5B,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAazE;;;;;OAKG;IACU,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAazH;;;;;;OAMG;IACU,MAAM,CAAC,SAAS,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAYjH;;;;OAIG;IACU,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAYhG;;;;;OAKG;IACU,MAAM,CAAC,SAAS,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAUjG"}
|
|
@@ -57,14 +57,13 @@ export class CustomEntityStorage {
|
|
|
57
57
|
* @param options Update options, e.g. returnValue, upsert, hint
|
|
58
58
|
* @returns void
|
|
59
59
|
*/
|
|
60
|
-
async update(condition, value
|
|
60
|
+
async update(condition, value) {
|
|
61
61
|
const ast = this.#buildCondition(condition);
|
|
62
62
|
const response = await invoke("storage/ces", "update", {
|
|
63
63
|
body: {
|
|
64
64
|
entity_name: this.entityName,
|
|
65
65
|
condition: ast,
|
|
66
66
|
value: value,
|
|
67
|
-
options: options,
|
|
68
67
|
},
|
|
69
68
|
});
|
|
70
69
|
await response.json();
|
|
@@ -91,13 +90,12 @@ export class CustomEntityStorage {
|
|
|
91
90
|
* @param options Delete options, e.g. justOne
|
|
92
91
|
* @returns void
|
|
93
92
|
*/
|
|
94
|
-
async delete(condition
|
|
93
|
+
async delete(condition) {
|
|
95
94
|
const ast = this.#buildCondition(condition);
|
|
96
95
|
const response = await invoke("storage/ces", "delete", {
|
|
97
96
|
body: {
|
|
98
97
|
entity_name: this.entityName,
|
|
99
98
|
condition: ast,
|
|
100
|
-
options: options,
|
|
101
99
|
},
|
|
102
100
|
});
|
|
103
101
|
await response.json();
|
package/lib/nos/nos.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ObjectMetadata,
|
|
1
|
+
import { NosUploadUrlOptions, ObjectMetadata, PreSignedUrlResult, UploadUrlBody } from "./type.js";
|
|
2
2
|
declare class NOS {
|
|
3
|
-
createUploadUrl(body: UploadUrlBody): Promise<
|
|
4
|
-
createDownloadUrl(key: string): Promise<
|
|
3
|
+
createUploadUrl(body: UploadUrlBody, options?: NosUploadUrlOptions): Promise<PreSignedUrlResult>;
|
|
4
|
+
createDownloadUrl(key: string): Promise<PreSignedUrlResult>;
|
|
5
5
|
getMetadata(key: string): Promise<ObjectMetadata>;
|
|
6
6
|
delete(key: string): Promise<void>;
|
|
7
7
|
}
|
package/lib/nos/nos.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nos.d.ts","sourceRoot":"","sources":["../../../src/lib/nos/nos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"nos.d.ts","sourceRoot":"","sources":["../../../src/lib/nos/nos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAEnG,cAAM,GAAG;IACQ,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAShG,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQ3D,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAQjD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAKlD;AACD,eAAO,MAAM,GAAG,KAAY,CAAC"}
|
package/lib/nos/nos.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { invoke } from "@pc-nexus/internal";
|
|
2
2
|
class NOS {
|
|
3
|
-
async createUploadUrl(body) {
|
|
3
|
+
async createUploadUrl(body, options) {
|
|
4
4
|
const response = await invoke("storage/nos", "create-upload-url", {
|
|
5
|
-
body,
|
|
5
|
+
body: body,
|
|
6
|
+
options: options || undefined,
|
|
6
7
|
});
|
|
7
8
|
const result = (await response.json());
|
|
8
9
|
return result.value;
|
package/lib/nos/type.d.ts
CHANGED
|
@@ -4,9 +4,11 @@ export interface UploadUrlBody {
|
|
|
4
4
|
size: number;
|
|
5
5
|
checksum: string;
|
|
6
6
|
checksum_type: ChecksumType;
|
|
7
|
+
}
|
|
8
|
+
export interface NosUploadUrlOptions {
|
|
7
9
|
overwrite?: boolean;
|
|
8
10
|
}
|
|
9
|
-
export interface
|
|
11
|
+
export interface PreSignedUrlResult {
|
|
10
12
|
url: string;
|
|
11
13
|
}
|
|
12
14
|
export interface ObjectMetadata {
|
package/lib/nos/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/lib/nos/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAElE,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/lib/nos/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAElE,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,YAAY,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IAC/B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,UAAU,GAAG,eAAe,CAAC,CAAC;AAElG,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAE5E,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pc-nexus/storage",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-next.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"type": "module",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@pc-nexus/internal": "0.
|
|
33
|
+
"@pc-nexus/internal": "0.8.0-next.0",
|
|
34
34
|
"lodash": "^4.17.21"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {},
|