@thisisagile/easy 17.11.23 → 17.11.25
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/{chunk-UKRJA647.mjs → chunk-2KBLMD52.mjs} +3 -3
- package/dist/{chunk-KUNNHHWI.mjs → chunk-4KF3K32F.mjs} +1 -1
- package/dist/chunk-4KF3K32F.mjs.map +1 -0
- package/dist/{chunk-4LYIOOTQ.mjs → chunk-5MJFKHSN.mjs} +4 -4
- package/dist/{chunk-EXNTRYYU.mjs → chunk-EAQ2MYAX.mjs} +2 -2
- package/dist/{chunk-P3IR2KG5.mjs → chunk-GPSPH4NX.mjs} +2 -2
- package/dist/chunk-GPSPH4NX.mjs.map +1 -0
- package/dist/{chunk-ZNNMZWOM.mjs → chunk-K5WFQH7X.mjs} +4 -4
- package/dist/{chunk-WPK337WV.mjs → chunk-LFV5W6AB.mjs} +3 -3
- package/dist/{chunk-CV7RVOLT.mjs → chunk-SV3LLENW.mjs} +2 -2
- package/dist/{chunk-J5CI6CMN.mjs → chunk-UCTCPEZD.mjs} +4 -4
- package/dist/{chunk-VNTEYLED.mjs → chunk-X4UT6C6X.mjs} +5 -5
- package/dist/{chunk-VU774ZTZ.mjs → chunk-YD4NFOOC.mjs} +3 -3
- package/dist/{chunk-AFDX6UXH.mjs → chunk-ZAWHOX5H.mjs} +4 -4
- package/dist/data/InMemoryGateway.mjs +1 -1
- package/dist/domain/Audit.mjs +2 -2
- package/dist/domain/Child.mjs +2 -2
- package/dist/domain/Entity.mjs +7 -7
- package/dist/http/RequestOptions.mjs +2 -2
- package/dist/http/RestResult.mjs +2 -2
- package/dist/http/toResponse.mjs +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/process/Manage.mjs +2 -2
- package/dist/process/Search.mjs +2 -2
- package/dist/resources/Req.d.ts +1 -1
- package/dist/services/Api.mjs +8 -8
- package/dist/services/ApiGateway.mjs +11 -11
- package/dist/services/AxiosProvider.mjs +7 -7
- package/dist/services/MappedRouteGateway.mjs +14 -14
- package/dist/services/RouteGateway.mjs +12 -12
- package/dist/services/ViewRouteGateway.mjs +14 -14
- package/dist/sql/Table.mjs +1 -1
- package/dist/sql/TableGateway.mjs +1 -1
- package/dist/types/PageList.d.ts +1 -0
- package/dist/types/PageList.mjs +1 -1
- package/dist/utils/Mapper.mjs +1 -1
- package/dist/utils/View.mjs +2 -2
- package/package.json +1 -1
- package/src/types/PageList.ts +1 -1
- package/src/utils/Mapper.ts +1 -1
- package/dist/chunk-KUNNHHWI.mjs.map +0 -1
- package/dist/chunk-P3IR2KG5.mjs.map +0 -1
- /package/dist/{chunk-UKRJA647.mjs.map → chunk-2KBLMD52.mjs.map} +0 -0
- /package/dist/{chunk-4LYIOOTQ.mjs.map → chunk-5MJFKHSN.mjs.map} +0 -0
- /package/dist/{chunk-EXNTRYYU.mjs.map → chunk-EAQ2MYAX.mjs.map} +0 -0
- /package/dist/{chunk-ZNNMZWOM.mjs.map → chunk-K5WFQH7X.mjs.map} +0 -0
- /package/dist/{chunk-WPK337WV.mjs.map → chunk-LFV5W6AB.mjs.map} +0 -0
- /package/dist/{chunk-CV7RVOLT.mjs.map → chunk-SV3LLENW.mjs.map} +0 -0
- /package/dist/{chunk-J5CI6CMN.mjs.map → chunk-UCTCPEZD.mjs.map} +0 -0
- /package/dist/{chunk-VNTEYLED.mjs.map → chunk-X4UT6C6X.mjs.map} +0 -0
- /package/dist/{chunk-VU774ZTZ.mjs.map → chunk-YD4NFOOC.mjs.map} +0 -0
- /package/dist/{chunk-AFDX6UXH.mjs.map → chunk-ZAWHOX5H.mjs.map} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AxiosProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UCTCPEZD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpVerb
|
|
6
6
|
} from "./chunk-SPMBBLP2.mjs";
|
|
7
7
|
import {
|
|
8
8
|
RequestOptions,
|
|
9
9
|
toPageOptions
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K5WFQH7X.mjs";
|
|
11
11
|
|
|
12
12
|
// src/services/Api.ts
|
|
13
13
|
var Api = class {
|
|
@@ -76,4 +76,4 @@ export {
|
|
|
76
76
|
Api,
|
|
77
77
|
api
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=chunk-
|
|
79
|
+
//# sourceMappingURL=chunk-2KBLMD52.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/PageList.ts"],"sourcesContent":["import { isList, List } from './List';\nimport { Construct, ofConstruct } from './Constructor';\nimport { isA } from './IsA';\nimport { PlainSort, Sort } from './Sort';\nimport { GetProperty } from './Get';\nimport { ArrayLike } from './Array';\nimport { Optional } from './Types';\nimport { isNumber } from './Is';\nimport { choose } from './Case';\nimport type { Id } from './Id';\n\nexport type FilterValue = { label?: string; value: any, count?: number };\nexport type Filter = { label?: string; field: string; shortField?: string; values: FilterValue[] };\n\nexport const toFilter = (field: string, value: any): Filter => toShortFilter(field, field, value);\nexport const toShortFilter = (field: string, shortField: string, value: any): Filter => ({\n field,\n shortField,\n values: [{ value }],\n});\n\nexport type PageOptions = { take?: number; skip?: number; sort?: Sort[]; sorts?: PlainSort; filters?: Filter[] };\nexport type PageListOptions = Exclude<PageOptions, 'sort'> & { total?: number };\n\nexport class PageList<T> extends List<T> {\n private _options?: PageListOptions;\n\n get options(): Optional<PageListOptions> {\n return this._options;\n }\n\n get take(): number {\n return this._options?.take ?? 250;\n }\n\n get skip(): number {\n return this._options?.skip ?? 0;\n }\n\n get total(): Optional<number> {\n return this._options?.total;\n }\n\n get sorts(): Optional<PlainSort> {\n return this._options?.sorts;\n }\n\n get filters(): Optional<Filter[]> {\n return this._options?.filters;\n }\n\n get meta(): PageListOptions {\n return {\n take: this.take,\n skip: this.skip,\n total: this.total,\n sorts: this.sorts,\n filters: this.filters,\n };\n }\n\n get ids(): PageList<Id> {\n return this.mapDefined(i => (i as any).id as Id);\n }\n\n asc(p: GetProperty<T, any>): PageList<T> {\n return toPageList(super.asc(p), this);\n }\n\n desc(p: GetProperty<T, any>): PageList<T> {\n return toPageList(super.desc(p), this);\n }\n\n diff(others: ArrayLike<T>): PageList<T> {\n return toPageList(super.diff(others), this);\n }\n\n diffByKey<U = T>(others: ArrayLike<U>, key: keyof T & keyof U): PageList<T> {\n return toPageList(super.diffByKey(others, key), this);\n }\n\n symmetricDiff(others: ArrayLike<T>): PageList<T> {\n return toPageList(super.symmetricDiff(others), this);\n }\n\n symmetricDiffByKey(others: ArrayLike<T>, key: keyof T): PageList<T> {\n return toPageList(super.symmetricDiffByKey(others, key), this);\n }\n\n intersect(others: ArrayLike<T>): PageList<T> {\n return toPageList(super.intersect(others), this);\n }\n\n intersectByKey<U>(others: ArrayLike<U>, key: keyof T & keyof U): PageList<T> {\n return toPageList(super.intersectByKey(others, key), this);\n }\n\n map<U>(f: (value: T, index: number, array: T[]) => U, params?: unknown): PageList<U> {\n const items = super.map(f, params);\n return toPageList(items, this);\n }\n\n flatMap<U, This = unknown>(f: (this: This, value: T, index: number, array: T[]) => ReadonlyArray<U> | U, params?: This): PageList<U> {\n return toPageList(super.flatMap(f, params), this);\n }\n\n mapDefined<U>(f: (value: T, index: number, array: T[]) => U, params?: unknown): PageList<NonNullable<U>> {\n return toPageList(super.mapDefined(f, params), this);\n }\n\n mapAsync(f: (i: T) => Promise<T>): Promise<PageList<T>> {\n return super.mapAsync(f).then(r => toPageList(r, this));\n }\n\n distinct(): PageList<T> {\n return toPageList(super.distinct(), this);\n }\n\n distinctByKey(key: keyof T): PageList<T> {\n return toPageList(super.distinctByKey(key), this);\n }\n\n distinctByValue(): PageList<T> {\n return toPageList(super.distinctByValue(), this);\n }\n\n filter(p: (value: T, index: number, array: T[]) => unknown, params?: unknown): PageList<T> {\n return toPageList(super.filter(p, params), this);\n }\n\n accumulate(...keys: (keyof T)[]): PageList<T> {\n return toPageList(super.accumulate(...keys), this);\n }\n\n concat(...items: ConcatArray<T>[]): PageList<T>;\n\n concat(...items: (T | ConcatArray<T>)[]): PageList<T>;\n\n concat(...items: (T | ConcatArray<T>)[]): PageList<T> {\n return toPageList(super.concat(...items), this);\n }\n\n reverse(): PageList<T> {\n return toPageList(super.reverse(), this);\n }\n\n splice(start: number, deleteCount?: number): PageList<T>;\n\n splice(start: number, deleteCount: number, ...items: T[]): PageList<T>;\n\n splice(start: number, deleteCount: number, ...items: T[]): PageList<T> {\n return toPageList(super.splice(start, deleteCount, ...items), this);\n }\n\n remove(item: T): PageList<T> {\n return toPageList(super.remove(item), this);\n }\n\n replace(key: keyof T, item: T): PageList<T> {\n return toPageList(super.replace(key, item), this);\n }\n\n switch(item: T): PageList<T> {\n return toPageList(super.switch(item), this);\n }\n\n defined(): PageList<NonNullable<T>> {\n return toPageList(super.defined(), this);\n }\n\n orElse(...alt: ArrayLike<T>): Optional<PageList<T>> {\n return toPageList(super.orElse(...alt), this);\n }\n\n slice(start?: number, end?: number): PageList<T> {\n return toPageList(super.slice(start, end), this);\n }\n\n //we needed to add U because of a Typescript issue with generics\n update<U = T>(p: (value: T, index: number, array: T[]) => unknown, val: T | ((v: U) => T)): PageList<T> {\n return toPageList(super.update(p, val), this);\n }\n\n updateFirst<U = T>(p: (value: T, index: number, array: T[]) => unknown, val: T | ((v: U) => T)): PageList<T> {\n return toPageList(super.updateFirst(p, val), this);\n }\n\n updateFirstById<U = T>(id: Id, val: T | ((v: U) => T)): PageList<T> {\n return toPageList(super.updateFirstById(id, val), this);\n }\n\n updateById<U = T>(id: Id, val: T | ((v: U) => T)): PageList<T> {\n return toPageList(super.updateById(id, val), this);\n }\n\n private setPageOptions(options?: PageListOptions): this {\n this._options = options;\n return this;\n }\n}\n\nexport const isPageList = <T>(l?: unknown): l is PageList<T> => isList<T>(l) && isA(l, 'total');\n\nexport const toPageList = <T>(items: T[] = [], options?: Omit<PageOptions, 'sort'> & { total?: number }): PageList<T> =>\n (\n choose(items)\n .case(\n i => i.length === 1 && isNumber(i[0]),\n i => new PageList<T>().add(...i)\n )\n .else(i => new PageList<T>(...i)) as any\n ).setPageOptions(options);\n\n/* @deprecated No longer needed as the PageList is now a class that extends from List, use the map function */\nexport const asPageList = <T, U>(c: Construct<T>, items = toPageList<U>()): PageList<T> => items.map(i => ofConstruct(c, i));\n"],"mappings":";;;;;;;;;;;;;;;;;;AAcO,IAAM,WAAW,CAAC,OAAe,UAAuB,cAAc,OAAO,OAAO,KAAK;AACzF,IAAM,gBAAgB,CAAC,OAAe,YAAoB,WAAwB;AAAA,EACvF;AAAA,EACA;AAAA,EACA,QAAQ,CAAC,EAAE,MAAM,CAAC;AACpB;AAKO,IAAM,WAAN,cAA0B,KAAQ;AAAA,EAC/B;AAAA,EAER,IAAI,UAAqC;AACvC,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAI,OAAe;AACjB,WAAO,KAAK,UAAU,QAAQ;AAAA,EAChC;AAAA,EAEA,IAAI,OAAe;AACjB,WAAO,KAAK,UAAU,QAAQ;AAAA,EAChC;AAAA,EAEA,IAAI,QAA0B;AAC5B,WAAO,KAAK,UAAU;AAAA,EACxB;AAAA,EAEA,IAAI,QAA6B;AAC/B,WAAO,KAAK,UAAU;AAAA,EACxB;AAAA,EAEA,IAAI,UAA8B;AAChC,WAAO,KAAK,UAAU;AAAA,EACxB;AAAA,EAEA,IAAI,OAAwB;AAC1B,WAAO;AAAA,MACL,MAAM,KAAK;AAAA,MACX,MAAM,KAAK;AAAA,MACX,OAAO,KAAK;AAAA,MACZ,OAAO,KAAK;AAAA,MACZ,SAAS,KAAK;AAAA,IAChB;AAAA,EACF;AAAA,EAEA,IAAI,MAAoB;AACtB,WAAO,KAAK,WAAW,OAAM,EAAU,EAAQ;AAAA,EACjD;AAAA,EAEA,IAAI,GAAqC;AACvC,WAAO,WAAW,MAAM,IAAI,CAAC,GAAG,IAAI;AAAA,EACtC;AAAA,EAEA,KAA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C;AAC3G,WAAO,WAAW,MAAM,YAAY,GAAG,GAAG,GAAG,IAAI;AAAA,EACnD;AAAA,EAEA,gBAAuB,IAAQ,KAAqC;AAClE,WAAO,WAAW,MAAM,gBAAgB,IAAI,GAAG,GAAG,IAAI;AAAA,EACxD;AAAA,EAEA,WAAkB,IAAQ,KAAqC;AAC7D,WAAO,WAAW,MAAM,WAAW,IAAI,GAAG,GAAG,IAAI;AAAA,EACnD;AAAA,EAEQ,eAAe,SAAiC;AACtD,SAAK,WAAW;AAChB,WAAO;AAAA,EACT;AACF;AAEO,IAAM,aAAa,CAAI,MAAkC,OAAU,CAAC,KAAK,IAAI,GAAG,OAAO;AAEvF,IAAM,aAAa,CAAI,QAAa,CAAC,GAAG,YAE3C,OAAO,KAAK,EACT;AAAA,EACC,OAAK,EAAE,WAAW,KAAK,SAAS,EAAE,CAAC,CAAC;AAAA,EACpC,OAAK,IAAI,SAAY,EAAE,IAAI,GAAG,CAAC;AACjC,EACC,KAAK,OAAK,IAAI,SAAY,GAAG,CAAC,CAAC,EAClC,eAAe,OAAO;AAGnB,IAAM,aAAa,CAAO,GAAiB,QAAQ,WAAc,MAAmB,MAAM,IAAI,OAAK,YAAY,GAAG,CAAC,CAAC;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isResponse
|
|
3
|
-
} from "./chunk-UYDZZAEK.mjs";
|
|
4
1
|
import {
|
|
5
2
|
HttpStatus,
|
|
6
3
|
isHttpStatus
|
|
7
4
|
} from "./chunk-HYIHPHGJ.mjs";
|
|
5
|
+
import {
|
|
6
|
+
isResponse
|
|
7
|
+
} from "./chunk-UYDZZAEK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
choose
|
|
10
10
|
} from "./chunk-FT7I64SO.mjs";
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
rest,
|
|
53
53
|
isRestResult
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=chunk-
|
|
55
|
+
//# sourceMappingURL=chunk-5MJFKHSN.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5MJFKHSN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
toHttpStatus
|
|
6
6
|
} from "./chunk-HYIHPHGJ.mjs";
|
|
@@ -17,4 +17,4 @@ function toResponse(status, body, headers) {
|
|
|
17
17
|
export {
|
|
18
18
|
toResponse
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-EAQ2MYAX.mjs.map
|
|
@@ -59,7 +59,7 @@ var Mapper = class extends State {
|
|
|
59
59
|
}
|
|
60
60
|
// All names op properties (in target) that are NOT properties in source
|
|
61
61
|
get droppedOut() {
|
|
62
|
-
return this.get("droppedOut", () => this.properties.filter(([, p]) => !this.keys.some((k) => k === p.property)).map(([k]) => k));
|
|
62
|
+
return this.get("droppedOut", () => this.properties.filter(([, p]) => !this.keys.some((k) => k === (p.property ?? ""))).map(([k]) => k));
|
|
63
63
|
}
|
|
64
64
|
in(from = {}) {
|
|
65
65
|
return json.omit(
|
|
@@ -133,4 +133,4 @@ export {
|
|
|
133
133
|
Mapper,
|
|
134
134
|
mappings
|
|
135
135
|
};
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
136
|
+
//# sourceMappingURL=chunk-GPSPH4NX.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/Mapper.ts"],"sourcesContent":["import { Property, PropertyOptions } from './Property';\nimport { State } from './State';\nimport { ifNotEmpty } from './If';\nimport { json, Json, JsonValue } from '../types/Json';\nimport { Optional } from '../types/Types';\nimport { TypeGuard } from '../types/TypeGuard';\nimport { isA } from '../types/IsA';\nimport { List, toList } from '../types/List';\nimport { meta } from '../types/Meta';\nimport { isEmpty } from '../types/Is';\nimport { Get, ofGet } from '../types/Get';\nimport { Construct, ofConstruct } from '../types/Constructor';\n\nexport type Mapping = {\n property: string;\n in: (source?: Json, key?: string) => Optional<JsonValue>;\n out: (source?: Json, key?: string) => Optional<JsonValue>;\n};\nexport const isMapping: TypeGuard<Mapping> = (m?: unknown): m is Mapping => isA<Mapping>(m, 'in', 'out');\n\nexport type MapStartFrom = 'scratch' | 'source';\nexport type MapOptions = { startFrom: MapStartFrom };\n\nexport class Mapper extends State implements Mapping {\n protected readonly map = mappings;\n\n constructor(\n readonly options: MapOptions = { startFrom: 'scratch' },\n readonly property = ''\n ) {\n super();\n }\n\n // All properties that are a mapping\n get properties(): List<[string, Mapping]> {\n return this.get('props', () =>\n meta(this)\n .entries<Mapping>()\n .filter(([, v]) => isMapping(v))\n );\n }\n\n // All names of properties (in target) that have a Mapping\n get keys(): List<string> {\n return this.get('keys', () => this.properties.map(([k]) => k));\n }\n\n // All names of properties (in source) that are named in a Mapping\n get columns(): List<string> {\n return this.get('columns', () => this.properties.mapDefined(([, p]) => ifNotEmpty(p.property, p.property))).distinct();\n }\n\n // All names of properties (in source) that are NOT properties in target\n private get droppedIn(): List<string> {\n return this.get('droppedIn', () => this.columns.filter(c => !this.keys.some(k => k === c)));\n }\n\n // All names op properties (in target) that are NOT properties in source\n private get droppedOut(): List<string> {\n return this.get('droppedOut', () => this.properties.filter(([, p]) => !this.keys.some(k => k === (p.property ?? ''))).map(([k]) => k));\n }\n\n public in(from: Json = {}): Json {\n return json.omit(\n this.properties.reduce((a, [k, p]) => json.merge(a, { [k]: p.in({ ...a, ...from }) }), this.options.startFrom === 'source' ? from : {}),\n ...this.droppedIn\n );\n }\n\n public out(to: Json = {}): Json {\n return json.omit(\n this.properties.reduce(\n (a, [k, p]) => json.merge(a, isEmpty(p.property) ? p.out(to, k) : { [p.property ?? '']: p.out({ ...a, ...to }, k) }),\n this.options.startFrom === 'source' ? to : {}\n ),\n ...this.droppedOut\n );\n }\n\n toString(): string {\n return this.constructor.name;\n }\n}\n\nexport const mappings = {\n item: (property: string, options?: PropertyOptions): Property => new Property(property, options),\n ignore: (property = ''): Mapping => ({\n property,\n in: (): Optional<JsonValue> => undefined,\n out: (): Optional<JsonValue> => undefined,\n }),\n skipIn: (property: string): Mapping => ({\n property,\n in: (): Optional<JsonValue> => undefined,\n out: (source: Json = {}): JsonValue => source[property],\n }),\n skipOut: (property: string): Mapping => ({\n property,\n in: (source: Json = {}): JsonValue => source[property],\n out: (): Optional<JsonValue> => undefined,\n }),\n func: (property: string, funcIn: Get<Optional<JsonValue>, Json>, funcOut: Get<Optional<JsonValue>, Json>): Mapping => ({\n property,\n in: (source: Json = {}): Optional<JsonValue> => ofGet(funcIn, source),\n out: (source: Json = {}): Optional<JsonValue> => ofGet(funcOut, source),\n }),\n add: (funcIn: Get<JsonValue, Json>): Mapping => ({\n property: '',\n in: (source: Json = {}): JsonValue => ofGet(funcIn, source),\n out: (): Optional<JsonValue> => undefined,\n }),\n map: (mapper: Construct<Mapper>, property = ''): Mapping => ({\n property,\n in: (source: Json = {}): JsonValue => ofConstruct(mapper).in(isEmpty(property) ? source : (source[property] as Json)),\n out: (source: Json = {}, key = ''): JsonValue => ofConstruct(mapper).out(isEmpty(key) ? source : (source[key] as Json)),\n }),\n propsToList: (...maps: Mapping[]): Mapping => ({\n property: '',\n in: (source: Json = {}): JsonValue => toList(maps.map(m => ofConstruct(m).in(source))).toJSON(),\n out: (source: Json = {}, key = ''): JsonValue =>\n maps.reduce((a: Json, m, i) => {\n const res = toList(source[key])[i];\n const out = m.out(res as Json);\n return { ...a, [m.property]: out ?? {} };\n }, {}),\n }),\n list: (mapper: Mapping, property: string): Mapping => ({\n property: property,\n in: (source: Json = {}): JsonValue =>\n toList(source[property])\n .map((v: any) => mapper.in(v))\n .toJSON(),\n out: (source: Json = {}, key = ''): JsonValue =>\n toList(isEmpty(key) ? source : (source[key] as Json))\n .map((v: any) => mapper.out(v))\n .toJSON(),\n }),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkB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M,OAC7B,OAAO,QAAQ,GAAG,IAAI,SAAU,OAAO,GAAG,CAAU,EACjD,IAAI,CAAC,MAAW,OAAO,IAAI,CAAC,CAAC,EAC7B,OAAO;AAAA,EACd;AACF;","names":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HttpHeader
|
|
3
|
+
} from "./chunk-SW2OCUH3.mjs";
|
|
1
4
|
import {
|
|
2
5
|
toUuid
|
|
3
6
|
} from "./chunk-LXQQ5N6S.mjs";
|
|
4
7
|
import {
|
|
5
8
|
ContentType
|
|
6
9
|
} from "./chunk-6WEUF3WU.mjs";
|
|
7
|
-
import {
|
|
8
|
-
HttpHeader
|
|
9
|
-
} from "./chunk-SW2OCUH3.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ctx
|
|
12
12
|
} from "./chunk-GGNGYTHR.mjs";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
RequestOptions,
|
|
88
88
|
isRequestOptions
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-K5WFQH7X.mjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2KBLMD52.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Gateway
|
|
6
6
|
} from "./chunk-F62OESVK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
toPageList
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4KF3K32F.mjs";
|
|
10
10
|
import {
|
|
11
11
|
use
|
|
12
12
|
} from "./chunk-ZPNFXK7Y.mjs";
|
|
@@ -43,4 +43,4 @@ var ApiGateway = class extends Gateway {
|
|
|
43
43
|
export {
|
|
44
44
|
ApiGateway
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-LFV5W6AB.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toPageList
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4KF3K32F.mjs";
|
|
4
4
|
import {
|
|
5
5
|
choose
|
|
6
6
|
} from "./chunk-FT7I64SO.mjs";
|
|
@@ -45,4 +45,4 @@ var Search = class {
|
|
|
45
45
|
export {
|
|
46
46
|
Search
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-SV3LLENW.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EAQ2MYAX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isRestResult
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5MJFKHSN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
HttpStatus
|
|
9
9
|
} from "./chunk-HYIHPHGJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
RequestOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-K5WFQH7X.mjs";
|
|
13
13
|
import {
|
|
14
14
|
cacheAge
|
|
15
15
|
} from "./chunk-EA6HSMJJ.mjs";
|
|
@@ -53,4 +53,4 @@ var AxiosProvider = class {
|
|
|
53
53
|
export {
|
|
54
54
|
AxiosProvider
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-UCTCPEZD.mjs.map
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
isEqual
|
|
6
6
|
} from "./chunk-GBZISW66.mjs";
|
|
7
|
+
import {
|
|
8
|
+
isPageList,
|
|
9
|
+
toPageList
|
|
10
|
+
} from "./chunk-4KF3K32F.mjs";
|
|
7
11
|
import {
|
|
8
12
|
asJson,
|
|
9
13
|
json
|
|
10
14
|
} from "./chunk-OSMTZTEO.mjs";
|
|
11
|
-
import {
|
|
12
|
-
isPageList,
|
|
13
|
-
toPageList
|
|
14
|
-
} from "./chunk-KUNNHHWI.mjs";
|
|
15
15
|
import {
|
|
16
16
|
choose
|
|
17
17
|
} from "./chunk-FT7I64SO.mjs";
|
|
@@ -88,4 +88,4 @@ export {
|
|
|
88
88
|
view,
|
|
89
89
|
views
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=chunk-
|
|
91
|
+
//# sourceMappingURL=chunk-X4UT6C6X.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiGateway
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LFV5W6AB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Api
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2KBLMD52.mjs";
|
|
7
7
|
import {
|
|
8
8
|
HttpStatus
|
|
9
9
|
} from "./chunk-HYIHPHGJ.mjs";
|
|
@@ -54,4 +54,4 @@ var RouteGateway = class extends ApiGateway {
|
|
|
54
54
|
export {
|
|
55
55
|
RouteGateway
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-YD4NFOOC.mjs.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
required,
|
|
3
3
|
valid
|
|
4
4
|
} from "./chunk-7WHBZLM5.mjs";
|
|
5
|
-
import {
|
|
6
|
-
Struct
|
|
7
|
-
} from "./chunk-XUQPFRR7.mjs";
|
|
8
5
|
import {
|
|
9
6
|
DateTime
|
|
10
7
|
} from "./chunk-ACKOJ4XB.mjs";
|
|
8
|
+
import {
|
|
9
|
+
Struct
|
|
10
|
+
} from "./chunk-XUQPFRR7.mjs";
|
|
11
11
|
import {
|
|
12
12
|
choose
|
|
13
13
|
} from "./chunk-FT7I64SO.mjs";
|
|
@@ -47,4 +47,4 @@ __decorateClass([
|
|
|
47
47
|
export {
|
|
48
48
|
Audit
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
50
|
+
//# sourceMappingURL=chunk-ZAWHOX5H.mjs.map
|
package/dist/domain/Audit.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Audit
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ZAWHOX5H.mjs";
|
|
4
4
|
import "../chunk-7WHBZLM5.mjs";
|
|
5
|
-
import "../chunk-XUQPFRR7.mjs";
|
|
6
5
|
import "../chunk-ACKOJ4XB.mjs";
|
|
7
6
|
import "../chunk-TCICYSL6.mjs";
|
|
8
7
|
import "../chunk-ADJAEGCT.mjs";
|
|
8
|
+
import "../chunk-XUQPFRR7.mjs";
|
|
9
9
|
import "../chunk-OSMTZTEO.mjs";
|
|
10
10
|
import "../chunk-FT7I64SO.mjs";
|
|
11
11
|
import "../chunk-OFGI5FLG.mjs";
|
package/dist/domain/Child.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toId
|
|
3
3
|
} from "../chunk-5YM5CLOG.mjs";
|
|
4
|
+
import "../chunk-LXQQ5N6S.mjs";
|
|
4
5
|
import {
|
|
5
6
|
required
|
|
6
7
|
} from "../chunk-7WHBZLM5.mjs";
|
|
8
|
+
import "../chunk-ADJAEGCT.mjs";
|
|
7
9
|
import {
|
|
8
10
|
Struct
|
|
9
11
|
} from "../chunk-XUQPFRR7.mjs";
|
|
10
|
-
import "../chunk-ADJAEGCT.mjs";
|
|
11
|
-
import "../chunk-LXQQ5N6S.mjs";
|
|
12
12
|
import {
|
|
13
13
|
json
|
|
14
14
|
} from "../chunk-OSMTZTEO.mjs";
|
package/dist/domain/Entity.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Audit
|
|
3
|
-
} from "../chunk-AFDX6UXH.mjs";
|
|
4
1
|
import {
|
|
5
2
|
toId
|
|
6
3
|
} from "../chunk-5YM5CLOG.mjs";
|
|
4
|
+
import "../chunk-LXQQ5N6S.mjs";
|
|
5
|
+
import {
|
|
6
|
+
Audit
|
|
7
|
+
} from "../chunk-ZAWHOX5H.mjs";
|
|
7
8
|
import {
|
|
8
9
|
required
|
|
9
10
|
} from "../chunk-7WHBZLM5.mjs";
|
|
10
|
-
import {
|
|
11
|
-
Struct
|
|
12
|
-
} from "../chunk-XUQPFRR7.mjs";
|
|
13
11
|
import "../chunk-ACKOJ4XB.mjs";
|
|
14
12
|
import "../chunk-TCICYSL6.mjs";
|
|
15
13
|
import "../chunk-ADJAEGCT.mjs";
|
|
16
|
-
import
|
|
14
|
+
import {
|
|
15
|
+
Struct
|
|
16
|
+
} from "../chunk-XUQPFRR7.mjs";
|
|
17
17
|
import {
|
|
18
18
|
json
|
|
19
19
|
} from "../chunk-OSMTZTEO.mjs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
RequestOptions,
|
|
3
3
|
isRequestOptions,
|
|
4
4
|
toPageOptions
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-K5WFQH7X.mjs";
|
|
6
|
+
import "../chunk-SW2OCUH3.mjs";
|
|
6
7
|
import "../chunk-LXQQ5N6S.mjs";
|
|
7
8
|
import "../chunk-6WEUF3WU.mjs";
|
|
8
|
-
import "../chunk-SW2OCUH3.mjs";
|
|
9
9
|
import "../chunk-GGNGYTHR.mjs";
|
|
10
10
|
import "../chunk-T3EBWHG5.mjs";
|
|
11
11
|
import "../chunk-UUB27VX2.mjs";
|
package/dist/http/RestResult.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isRestResult,
|
|
3
3
|
rest
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-UYDZZAEK.mjs";
|
|
4
|
+
} from "../chunk-5MJFKHSN.mjs";
|
|
6
5
|
import "../chunk-HYIHPHGJ.mjs";
|
|
6
|
+
import "../chunk-UYDZZAEK.mjs";
|
|
7
7
|
import "../chunk-FT7I64SO.mjs";
|
|
8
8
|
import "../chunk-OFGI5FLG.mjs";
|
|
9
9
|
import "../chunk-XTWAPJQ5.mjs";
|
package/dist/http/toResponse.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toResponse
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-UYDZZAEK.mjs";
|
|
3
|
+
} from "../chunk-EAQ2MYAX.mjs";
|
|
4
|
+
import "../chunk-5MJFKHSN.mjs";
|
|
6
5
|
import "../chunk-HYIHPHGJ.mjs";
|
|
6
|
+
import "../chunk-UYDZZAEK.mjs";
|
|
7
7
|
import "../chunk-FT7I64SO.mjs";
|
|
8
8
|
import "../chunk-OFGI5FLG.mjs";
|
|
9
9
|
import "../chunk-XTWAPJQ5.mjs";
|
package/dist/index.js
CHANGED
|
@@ -2653,7 +2653,7 @@ var Mapper = class extends State {
|
|
|
2653
2653
|
}
|
|
2654
2654
|
// All names op properties (in target) that are NOT properties in source
|
|
2655
2655
|
get droppedOut() {
|
|
2656
|
-
return this.get("droppedOut", () => this.properties.filter(([, p]) => !this.keys.some((k) => k === p.property)).map(([k]) => k));
|
|
2656
|
+
return this.get("droppedOut", () => this.properties.filter(([, p]) => !this.keys.some((k) => k === (p.property ?? ""))).map(([k]) => k));
|
|
2657
2657
|
}
|
|
2658
2658
|
in(from = {}) {
|
|
2659
2659
|
return json.omit(
|