@prestizni-software/client-dem 0.2.52 → 0.2.54
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/CHANGELOG.md +4 -0
- package/CommonTypes.d.ts +1 -0
- package/CommonTypes.js +1 -0
- package/CommonTypes.js.map +1 -1
- package/package.json +1 -1
- package/CommonTypes_client.d.ts +0 -74
- package/CommonTypes_client.js +0 -12
- package/CommonTypes_client.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.2.54](https://github.com/Prestizni-Software/client-dem/compare/v0.2.53...v0.2.54) (2025-11-18)
|
|
6
|
+
|
|
7
|
+
### [0.2.53](https://github.com/Prestizni-Software/client-dem/compare/v0.2.52...v0.2.53) (2025-11-18)
|
|
8
|
+
|
|
5
9
|
### [0.2.52](https://github.com/Prestizni-Software/client-dem/compare/v0.2.51...v0.2.52) (2025-11-18)
|
|
6
10
|
|
|
7
11
|
### [0.2.51](https://github.com/Prestizni-Software/client-dem/compare/v0.2.50...v0.2.51) (2025-11-18)
|
package/CommonTypes.d.ts
CHANGED
package/CommonTypes.js
CHANGED
package/CommonTypes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonTypes.js","sourceRoot":"","sources":["../CommonTypes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CommonTypes.js","sourceRoot":"","sources":["../CommonTypes.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;AAkD1B,MAAM,UAAU,SAAS,CAAC,MAAW,EAAE,WAAmB;IACxD,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IACzD,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACxB,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,KAAa;IACpC,OAAO,UAAU,MAAW,EAAE,WAAmB;QAC/C,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IAC9D,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/CommonTypes_client.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import "reflect-metadata";
|
|
2
|
-
import EventEmitter from "eventemitter3";
|
|
3
|
-
export type EventEmitter3 = EventEmitter;
|
|
4
|
-
export type ObjectId = {
|
|
5
|
-
toString: () => string;
|
|
6
|
-
id: Uint8Array<ArrayBufferLike>;
|
|
7
|
-
};
|
|
8
|
-
type RefType = string | ObjectId;
|
|
9
|
-
export type LoggersTypeInternal = LoggersType & {
|
|
10
|
-
warn: (...args: any[]) => void;
|
|
11
|
-
};
|
|
12
|
-
export type LoggersType = {
|
|
13
|
-
info: (...args: any[]) => void;
|
|
14
|
-
debug: (...args: any[]) => void;
|
|
15
|
-
error: (...args: any[]) => void;
|
|
16
|
-
warn?: (...args: any[]) => void;
|
|
17
|
-
};
|
|
18
|
-
export type InnerLoggersType = {
|
|
19
|
-
info: (...args: any[]) => void;
|
|
20
|
-
debug: (...args: any[]) => void;
|
|
21
|
-
error: (...args: any[]) => void;
|
|
22
|
-
warn: (...args: any[]) => void;
|
|
23
|
-
};
|
|
24
|
-
export type IsData<T> = T extends {
|
|
25
|
-
_id: RefType;
|
|
26
|
-
} ? T : never;
|
|
27
|
-
export type ServerResponse<T> = {
|
|
28
|
-
data: T;
|
|
29
|
-
message: string;
|
|
30
|
-
success: true;
|
|
31
|
-
} | {
|
|
32
|
-
data?: null;
|
|
33
|
-
message: string;
|
|
34
|
-
success: false;
|
|
35
|
-
};
|
|
36
|
-
export type ServerUpdateResponse<T> = {
|
|
37
|
-
data: Partial<IsData<T>>;
|
|
38
|
-
message: string;
|
|
39
|
-
success: true;
|
|
40
|
-
updateId: string;
|
|
41
|
-
};
|
|
42
|
-
export type ServerUpdateRequest<T> = {
|
|
43
|
-
_id: RefType;
|
|
44
|
-
key: string;
|
|
45
|
-
value: any;
|
|
46
|
-
};
|
|
47
|
-
export declare function classProp(target: any, propertyKey: string): void;
|
|
48
|
-
export declare function classRef(where: string): (target: any, propertyKey: string) => void;
|
|
49
|
-
export type AutoProps<T> = {
|
|
50
|
-
readonly [K in keyof T]: T[K];
|
|
51
|
-
};
|
|
52
|
-
export type Constructor<T> = new (...args: any[]) => T;
|
|
53
|
-
export type UnboxConstructor<T> = T extends new (...args: any[]) => infer I ? I : T;
|
|
54
|
-
export type NonOptional<T> = Exclude<T, null | undefined>;
|
|
55
|
-
export type InstanceOf<T> = T extends Constructor<infer I> ? I : T;
|
|
56
|
-
export type Prev = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
57
|
-
export type StripPrototypePrefix<P extends string> = P extends "prototype" ? never : P extends `prototype.${infer Rest}` ? Rest : P;
|
|
58
|
-
type Primitive = string | number | boolean | bigint | symbol | null | undefined;
|
|
59
|
-
export type Recurseable<T> = T extends Primitive | ObjectId | Date | Function | Array<any> ? never : T extends object ? T : never;
|
|
60
|
-
export type Join<K extends string, P extends string> = `${K}.${P}`;
|
|
61
|
-
export type OnlyClassKeys<T> = {
|
|
62
|
-
[K in keyof T]: K;
|
|
63
|
-
}[keyof T] & string;
|
|
64
|
-
export type Paths<T, Depth extends number = 5, OriginalDepth extends number = Depth> = Depth extends never ? never : {
|
|
65
|
-
[K in OnlyClassKeys<NonOptional<T>>]: K extends "_id" ? StripPrototypePrefix<`${K}`> : StripPrototypePrefix<PathsHelper<K, NonOptional<T>[K], Depth, OriginalDepth>>;
|
|
66
|
-
}[OnlyClassKeys<NonOptional<T>>];
|
|
67
|
-
export type PathsHelper<K extends string, V, Depth extends number, OriginalDepth extends number> = Recurseable<V> extends never ? `${K}` : `${K}` | Join<K, Paths<V, Prev[Depth], OriginalDepth>>;
|
|
68
|
-
type Split<S extends string> = S extends `${infer L}.${infer R}` ? [L, ...Split<R>] : [S];
|
|
69
|
-
export type PathValue<T, Parts extends string[], Depth extends number = 5> = Depth extends 0 ? never : T extends unknown ? Parts extends [infer K, ...infer Rest] ? K extends string ? K extends keyof T ? Rest extends string[] ? Rest["length"] extends 0 ? T[K] : PathValue<T[K], Rest, Prev[Depth]> : never : never : never : T : never;
|
|
70
|
-
export type PathValueOf<T, P extends string, Depth extends number = 6> = PathValue<InstanceOf<T>, Split<P>, Depth>;
|
|
71
|
-
export type Pretty<T> = {
|
|
72
|
-
[K in keyof T]: T[K];
|
|
73
|
-
};
|
|
74
|
-
export {};
|
package/CommonTypes_client.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "reflect-metadata";
|
|
2
|
-
export function classProp(target, propertyKey) {
|
|
3
|
-
const props = Reflect.getMetadata("props", target) || [];
|
|
4
|
-
props.push(propertyKey);
|
|
5
|
-
Reflect.defineMetadata("props", props, target);
|
|
6
|
-
}
|
|
7
|
-
export function classRef(where) {
|
|
8
|
-
return function (target, propertyKey) {
|
|
9
|
-
Reflect.defineMetadata("isRef", where, target, propertyKey);
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=CommonTypes_client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommonTypes_client.js","sourceRoot":"","sources":["../CommonTypes_client.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAuD1B,MAAM,UAAU,SAAS,CAAC,MAAW,EAAE,WAAmB;IACxD,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IACzD,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACxB,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,KAAa;IACpC,OAAO,UAAU,MAAW,EAAE,WAAmB;QAC/C,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IAC9D,CAAC,CAAC;AACJ,CAAC"}
|