@kohost/api-client 3.3.17 → 3.3.18
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/esm/Client.js +525 -237
- package/dist/esm/Client.js.map +4 -4
- package/dist/esm/Models.js +5 -1
- package/dist/esm/Models.js.map +2 -2
- package/dist/esm/defs.js +525 -237
- package/dist/esm/defs.js.map +4 -4
- package/dist/esm/utils.js +5 -1
- package/dist/esm/utils.js.map +2 -2
- package/dist/types/Client/index.d.ts.map +1 -1
- package/dist/types/Errors/index.d.ts +12 -12
- package/dist/types/Errors/index.d.ts.map +1 -1
- package/dist/types/Events/Event.d.ts +10 -9
- package/dist/types/Events/Event.d.ts.map +1 -1
- package/dist/types/utils/errorFactory.d.ts +1 -1
- package/dist/types/utils/errorFactory.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Client/index.js"],"names":[],"mappings":";AAIA;IA6FE;;;;MAMC;IA/FD;;;;;;;;;MASE;IACF;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Client/index.js"],"names":[],"mappings":";AAIA;IA6FE;;;;MAMC;IA/FD;;;;;;;;;MASE;IACF,sBARA;QAAwB,cAAc;QACd,UAAU;QACV,GAAG;QACH,OAAO;QACP,MAAM;QACJ,SAAS;QACT,OAAO;KACjC,EAqDC;IAvCC;;;;;;;;MAAsB;IACtB,2BAA8B;IAgC9B,WAAiC;IAQnC;;;;;;OAMG;IACH,kCAGC;IAED;;;;;;OAMG;IAEH,mCAGC;;CAuFF"}
|
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
export let AppError: {
|
|
2
2
|
new (message: string, options: any): import("./AppError");
|
|
3
3
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
4
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
4
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
5
5
|
stackTraceLimit: number;
|
|
6
6
|
};
|
|
7
7
|
export let AuthenticationError: {
|
|
8
8
|
new (message?: string, options?: {}): import("./AuthenticationError");
|
|
9
9
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
10
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
10
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
11
11
|
stackTraceLimit: number;
|
|
12
12
|
};
|
|
13
13
|
export let AuthorizationError: {
|
|
14
14
|
new (message?: string, options?: {}): import("./AuthorizationError");
|
|
15
15
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
16
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
16
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
17
17
|
stackTraceLimit: number;
|
|
18
18
|
};
|
|
19
19
|
export let ConflictError: {
|
|
20
20
|
new (message?: string, options?: {}): import("./ConflictError");
|
|
21
21
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
22
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
22
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
23
23
|
stackTraceLimit: number;
|
|
24
24
|
};
|
|
25
25
|
export let DeviceCommError: {
|
|
26
26
|
new (message?: string, options?: {}): import("./DeviceCommError");
|
|
27
27
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
28
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
28
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
29
29
|
stackTraceLimit: number;
|
|
30
30
|
};
|
|
31
31
|
export let LoginError: {
|
|
32
32
|
new (message?: string, options?: {}): import("./LoginError");
|
|
33
33
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
34
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
34
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
35
35
|
stackTraceLimit: number;
|
|
36
36
|
};
|
|
37
37
|
export let NotFoundError: {
|
|
38
38
|
new (message?: string, options?: {}): import("./NotFoundError");
|
|
39
39
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
40
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
40
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
41
41
|
stackTraceLimit: number;
|
|
42
42
|
};
|
|
43
43
|
export let RequestError: {
|
|
44
44
|
new (message?: string, options?: {}): import("./RequestError");
|
|
45
45
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
46
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
46
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
47
47
|
stackTraceLimit: number;
|
|
48
48
|
};
|
|
49
49
|
export let SystemCommError: {
|
|
50
50
|
new (message?: string, options?: {}): import("./SystemCommError");
|
|
51
51
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
52
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
52
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
53
53
|
stackTraceLimit: number;
|
|
54
54
|
};
|
|
55
55
|
export let TokenExpiredError: {
|
|
56
56
|
new (message?: string, options?: {}): import("./TokenExpiredError");
|
|
57
57
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
58
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
58
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
59
59
|
stackTraceLimit: number;
|
|
60
60
|
};
|
|
61
61
|
export let UnprocessableRequestError: {
|
|
62
62
|
new (message?: string, options?: {}): import("./UnprocessableRequestError");
|
|
63
63
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
64
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
64
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
65
65
|
stackTraceLimit: number;
|
|
66
66
|
};
|
|
67
67
|
export let ValidationError: {
|
|
68
68
|
new (message?: string, options?: {}): import("./ValidationError");
|
|
69
69
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
70
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
70
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
71
71
|
stackTraceLimit: number;
|
|
72
72
|
};
|
|
73
73
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Errors/index.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Errors/index.js"],"names":[],"mappings":";;;mDAgB2wB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ;;;;;;mDAAhB,OAAQ,QAAQ"}
|
|
@@ -14,13 +14,14 @@ declare class Event {
|
|
|
14
14
|
length: number;
|
|
15
15
|
toString(): string;
|
|
16
16
|
toLocaleString(): string;
|
|
17
|
-
|
|
17
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
18
|
+
pop(): any | undefined;
|
|
18
19
|
push(...items: any[]): number;
|
|
19
20
|
concat(...items: ConcatArray<any>[]): any[];
|
|
20
21
|
concat(...items: any[]): any[];
|
|
21
22
|
join(separator?: string): string;
|
|
22
23
|
reverse(): any[];
|
|
23
|
-
shift(): any;
|
|
24
|
+
shift(): any | undefined;
|
|
24
25
|
slice(start?: number, end?: number): any[];
|
|
25
26
|
sort(compareFn?: (a: any, b: any) => number): any[];
|
|
26
27
|
splice(start: number, deleteCount?: number): any[];
|
|
@@ -33,16 +34,16 @@ declare class Event {
|
|
|
33
34
|
some(predicate: (value: any, index: number, array: any[]) => unknown, thisArg?: any): boolean;
|
|
34
35
|
forEach(callbackfn: (value: any, index: number, array: any[]) => void, thisArg?: any): void;
|
|
35
36
|
map<U>(callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any): U[];
|
|
36
|
-
filter<
|
|
37
|
+
filter<S extends any>(predicate: (value: any, index: number, array: any[]) => value is S, thisArg?: any): S[];
|
|
37
38
|
filter(predicate: (value: any, index: number, array: any[]) => unknown, thisArg?: any): any[];
|
|
38
39
|
reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any;
|
|
39
40
|
reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any;
|
|
40
|
-
reduce<
|
|
41
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U;
|
|
41
42
|
reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any;
|
|
42
43
|
reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any;
|
|
43
|
-
reduceRight<
|
|
44
|
-
find<
|
|
45
|
-
find(predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): any;
|
|
44
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U;
|
|
45
|
+
find<S extends any>(predicate: (value: any, index: number, obj: any[]) => value is S, thisArg?: any): S | undefined;
|
|
46
|
+
find(predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): any | undefined;
|
|
46
47
|
findIndex(predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): number;
|
|
47
48
|
fill(value: any, start?: number, end?: number): any[];
|
|
48
49
|
copyWithin(target: number, start: number, end?: number): any[];
|
|
@@ -50,7 +51,7 @@ declare class Event {
|
|
|
50
51
|
keys(): IterableIterator<number>;
|
|
51
52
|
values(): IterableIterator<any>;
|
|
52
53
|
includes(searchElement: any, fromIndex?: number): boolean;
|
|
53
|
-
flatMap<
|
|
54
|
+
flatMap<U, This = undefined>(callback: (this: This, value: any, index: number, array: any[]) => U | ReadonlyArray<U>, thisArg?: This): U[];
|
|
54
55
|
flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
|
|
55
56
|
[Symbol.iterator](): IterableIterator<any>;
|
|
56
57
|
[Symbol.unscopables]: {
|
|
@@ -91,7 +92,7 @@ declare class Event {
|
|
|
91
92
|
readonly [Symbol.unscopables]?: boolean;
|
|
92
93
|
at?: boolean;
|
|
93
94
|
};
|
|
94
|
-
at(index: number): any;
|
|
95
|
+
at(index: number): any | undefined;
|
|
95
96
|
};
|
|
96
97
|
};
|
|
97
98
|
get routingKey(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../src/Events/Event.js"],"names":[],"mappings":";AAEA;IAoBE,0BAEC;IAED,8BAEC;IAED,4BAEC;IA7BD,qCASC;IARC,YAAc;IACd,YAAsB;IASxB,0BAEC;IAED,sBAEC;IAcD
|
|
1
|
+
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../src/Events/Event.js"],"names":[],"mappings":";AAEA;IAoBE,0BAEC;IAED,8BAEC;IAED,4BAEC;IA7BD,qCASC;IARC,YAAc;IACd,YAAsB;IASxB,0BAEC;IAED,sBAEC;IAcD;;;;;;iEAUg9E,KAAM,mBAAmB,GAAE,KAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MARrgF;IAED,yBAEC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare function _exports(errName: any): Error | {
|
|
2
2
|
new (message: string, options: any): import("../Errors/AppError");
|
|
3
3
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
4
|
-
prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
|
|
4
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
5
5
|
stackTraceLimit: number;
|
|
6
6
|
};
|
|
7
7
|
export = _exports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorFactory.d.ts","sourceRoot":"","sources":["../../../src/utils/errorFactory.js"],"names":[],"mappings":"AAEiB
|
|
1
|
+
{"version":3,"file":"errorFactory.d.ts","sourceRoot":"","sources":["../../../src/utils/errorFactory.js"],"names":[],"mappings":"AAEiB;;;mDAM8kC,OAAQ,QAAQ;;EAD9mC"}
|