@e22m4u/js-repository 0.1.23 → 0.1.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/build-cjs.js +1 -0
- package/dist/cjs/index.cjs +237 -119
- package/package.json +1 -1
- package/src/adapter/adapter-loader.js +1 -6
- package/src/adapter/adapter.d.ts +7 -0
- package/src/adapter/adapter.js +1 -3
- package/src/adapter/adapter.spec.js +6 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -5,6 +5,8 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
10
|
var __glob = (map) => (path) => {
|
|
9
11
|
var fn = map[path];
|
|
10
12
|
if (fn) return fn();
|
|
@@ -34,6 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
36
|
mod
|
|
35
37
|
));
|
|
36
38
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
37
40
|
|
|
38
41
|
// node_modules/@e22m4u/js-format/src/utils/is-class.js
|
|
39
42
|
function isClass(value) {
|
|
@@ -42,6 +45,7 @@ function isClass(value) {
|
|
|
42
45
|
}
|
|
43
46
|
var init_is_class = __esm({
|
|
44
47
|
"node_modules/@e22m4u/js-format/src/utils/is-class.js"() {
|
|
48
|
+
__name(isClass, "isClass");
|
|
45
49
|
}
|
|
46
50
|
});
|
|
47
51
|
|
|
@@ -80,6 +84,7 @@ var init_value_to_string = __esm({
|
|
|
80
84
|
"Set",
|
|
81
85
|
"Date"
|
|
82
86
|
];
|
|
87
|
+
__name(valueToString, "valueToString");
|
|
83
88
|
}
|
|
84
89
|
});
|
|
85
90
|
|
|
@@ -94,6 +99,7 @@ var init_array_to_list = __esm({
|
|
|
94
99
|
"node_modules/@e22m4u/js-format/src/array-to-list.js"() {
|
|
95
100
|
init_value_to_string();
|
|
96
101
|
SEPARATOR = ", ";
|
|
102
|
+
__name(arrayToList, "arrayToList");
|
|
97
103
|
}
|
|
98
104
|
});
|
|
99
105
|
|
|
@@ -139,15 +145,16 @@ var init_format = __esm({
|
|
|
139
145
|
"node_modules/@e22m4u/js-format/src/format.js"() {
|
|
140
146
|
init_array_to_list();
|
|
141
147
|
init_value_to_string();
|
|
148
|
+
__name(format, "format");
|
|
142
149
|
}
|
|
143
150
|
});
|
|
144
151
|
|
|
145
152
|
// node_modules/@e22m4u/js-format/src/errorf.js
|
|
146
|
-
var Errorf;
|
|
153
|
+
var _Errorf, Errorf;
|
|
147
154
|
var init_errorf = __esm({
|
|
148
155
|
"node_modules/@e22m4u/js-format/src/errorf.js"() {
|
|
149
156
|
init_format();
|
|
150
|
-
|
|
157
|
+
_Errorf = class _Errorf extends Error {
|
|
151
158
|
/**
|
|
152
159
|
* Constructor.
|
|
153
160
|
*
|
|
@@ -159,6 +166,8 @@ var init_errorf = __esm({
|
|
|
159
166
|
super(message);
|
|
160
167
|
}
|
|
161
168
|
};
|
|
169
|
+
__name(_Errorf, "Errorf");
|
|
170
|
+
Errorf = _Errorf;
|
|
162
171
|
}
|
|
163
172
|
});
|
|
164
173
|
|
|
@@ -171,12 +180,14 @@ var init_src = __esm({
|
|
|
171
180
|
});
|
|
172
181
|
|
|
173
182
|
// node_modules/@e22m4u/js-service/src/errors/invalid-argument-error.js
|
|
174
|
-
var InvalidArgumentError;
|
|
183
|
+
var _InvalidArgumentError, InvalidArgumentError;
|
|
175
184
|
var init_invalid_argument_error = __esm({
|
|
176
185
|
"node_modules/@e22m4u/js-service/src/errors/invalid-argument-error.js"() {
|
|
177
186
|
init_src();
|
|
178
|
-
|
|
187
|
+
_InvalidArgumentError = class _InvalidArgumentError extends Errorf {
|
|
179
188
|
};
|
|
189
|
+
__name(_InvalidArgumentError, "InvalidArgumentError");
|
|
190
|
+
InvalidArgumentError = _InvalidArgumentError;
|
|
180
191
|
}
|
|
181
192
|
});
|
|
182
193
|
|
|
@@ -188,12 +199,12 @@ var init_errors = __esm({
|
|
|
188
199
|
});
|
|
189
200
|
|
|
190
201
|
// node_modules/@e22m4u/js-service/src/service-container.js
|
|
191
|
-
var ServiceContainer;
|
|
202
|
+
var _ServiceContainer, ServiceContainer;
|
|
192
203
|
var init_service_container = __esm({
|
|
193
204
|
"node_modules/@e22m4u/js-service/src/service-container.js"() {
|
|
194
205
|
init_service();
|
|
195
206
|
init_errors();
|
|
196
|
-
|
|
207
|
+
_ServiceContainer = class _ServiceContainer {
|
|
197
208
|
/**
|
|
198
209
|
* Services map.
|
|
199
210
|
*
|
|
@@ -273,7 +284,7 @@ var init_service_container = __esm({
|
|
|
273
284
|
"The first argument of ServicesContainer.add must be a class constructor, but %v given.",
|
|
274
285
|
ctor
|
|
275
286
|
);
|
|
276
|
-
const factory = () => ctor.prototype instanceof Service ? new ctor(this, ...args) : new ctor(...args);
|
|
287
|
+
const factory = /* @__PURE__ */ __name(() => ctor.prototype instanceof Service ? new ctor(this, ...args) : new ctor(...args), "factory");
|
|
277
288
|
this._services.set(ctor, factory);
|
|
278
289
|
return this;
|
|
279
290
|
}
|
|
@@ -316,15 +327,17 @@ var init_service_container = __esm({
|
|
|
316
327
|
return this;
|
|
317
328
|
}
|
|
318
329
|
};
|
|
330
|
+
__name(_ServiceContainer, "ServiceContainer");
|
|
331
|
+
ServiceContainer = _ServiceContainer;
|
|
319
332
|
}
|
|
320
333
|
});
|
|
321
334
|
|
|
322
335
|
// node_modules/@e22m4u/js-service/src/service.js
|
|
323
|
-
var Service;
|
|
336
|
+
var _Service, Service;
|
|
324
337
|
var init_service = __esm({
|
|
325
338
|
"node_modules/@e22m4u/js-service/src/service.js"() {
|
|
326
339
|
init_service_container();
|
|
327
|
-
|
|
340
|
+
_Service = class _Service {
|
|
328
341
|
/**
|
|
329
342
|
* Container.
|
|
330
343
|
*
|
|
@@ -392,6 +405,8 @@ var init_service = __esm({
|
|
|
392
405
|
return this;
|
|
393
406
|
}
|
|
394
407
|
};
|
|
408
|
+
__name(_Service, "Service");
|
|
409
|
+
Service = _Service;
|
|
395
410
|
}
|
|
396
411
|
});
|
|
397
412
|
|
|
@@ -404,34 +419,38 @@ var init_src2 = __esm({
|
|
|
404
419
|
});
|
|
405
420
|
|
|
406
421
|
// src/errors/not-implemented-error.js
|
|
407
|
-
var NotImplementedError;
|
|
422
|
+
var _NotImplementedError, NotImplementedError;
|
|
408
423
|
var init_not_implemented_error = __esm({
|
|
409
424
|
"src/errors/not-implemented-error.js"() {
|
|
410
425
|
"use strict";
|
|
411
426
|
init_src();
|
|
412
|
-
|
|
427
|
+
_NotImplementedError = class _NotImplementedError extends Errorf {
|
|
413
428
|
};
|
|
429
|
+
__name(_NotImplementedError, "NotImplementedError");
|
|
430
|
+
NotImplementedError = _NotImplementedError;
|
|
414
431
|
}
|
|
415
432
|
});
|
|
416
433
|
|
|
417
434
|
// src/errors/invalid-argument-error.js
|
|
418
|
-
var InvalidArgumentError2;
|
|
435
|
+
var _InvalidArgumentError2, InvalidArgumentError2;
|
|
419
436
|
var init_invalid_argument_error2 = __esm({
|
|
420
437
|
"src/errors/invalid-argument-error.js"() {
|
|
421
438
|
"use strict";
|
|
422
439
|
init_src();
|
|
423
|
-
|
|
440
|
+
_InvalidArgumentError2 = class _InvalidArgumentError2 extends Errorf {
|
|
424
441
|
};
|
|
442
|
+
__name(_InvalidArgumentError2, "InvalidArgumentError");
|
|
443
|
+
InvalidArgumentError2 = _InvalidArgumentError2;
|
|
425
444
|
}
|
|
426
445
|
});
|
|
427
446
|
|
|
428
447
|
// src/errors/invalid-operator-value-error.js
|
|
429
|
-
var InvalidOperatorValueError;
|
|
448
|
+
var _InvalidOperatorValueError, InvalidOperatorValueError;
|
|
430
449
|
var init_invalid_operator_value_error = __esm({
|
|
431
450
|
"src/errors/invalid-operator-value-error.js"() {
|
|
432
451
|
"use strict";
|
|
433
452
|
init_src();
|
|
434
|
-
|
|
453
|
+
_InvalidOperatorValueError = class _InvalidOperatorValueError extends Error {
|
|
435
454
|
/**
|
|
436
455
|
* Constructor.
|
|
437
456
|
*
|
|
@@ -450,6 +469,8 @@ var init_invalid_operator_value_error = __esm({
|
|
|
450
469
|
);
|
|
451
470
|
}
|
|
452
471
|
};
|
|
472
|
+
__name(_InvalidOperatorValueError, "InvalidOperatorValueError");
|
|
473
|
+
InvalidOperatorValueError = _InvalidOperatorValueError;
|
|
453
474
|
}
|
|
454
475
|
});
|
|
455
476
|
|
|
@@ -464,13 +485,13 @@ var init_errors2 = __esm({
|
|
|
464
485
|
});
|
|
465
486
|
|
|
466
487
|
// src/filter/slice-clause-tool.js
|
|
467
|
-
var SliceClauseTool;
|
|
488
|
+
var _SliceClauseTool, SliceClauseTool;
|
|
468
489
|
var init_slice_clause_tool = __esm({
|
|
469
490
|
"src/filter/slice-clause-tool.js"() {
|
|
470
491
|
"use strict";
|
|
471
492
|
init_src2();
|
|
472
493
|
init_errors2();
|
|
473
|
-
|
|
494
|
+
_SliceClauseTool = class _SliceClauseTool extends Service {
|
|
474
495
|
/**
|
|
475
496
|
* Slice.
|
|
476
497
|
*
|
|
@@ -526,6 +547,8 @@ var init_slice_clause_tool = __esm({
|
|
|
526
547
|
);
|
|
527
548
|
}
|
|
528
549
|
};
|
|
550
|
+
__name(_SliceClauseTool, "SliceClauseTool");
|
|
551
|
+
SliceClauseTool = _SliceClauseTool;
|
|
529
552
|
}
|
|
530
553
|
});
|
|
531
554
|
|
|
@@ -537,6 +560,7 @@ function isCtor(value) {
|
|
|
537
560
|
var init_is_ctor = __esm({
|
|
538
561
|
"src/utils/is-ctor.js"() {
|
|
539
562
|
"use strict";
|
|
563
|
+
__name(isCtor, "isCtor");
|
|
540
564
|
}
|
|
541
565
|
});
|
|
542
566
|
|
|
@@ -549,6 +573,7 @@ function isPromise(value) {
|
|
|
549
573
|
var init_is_promise = __esm({
|
|
550
574
|
"src/utils/is-promise.js"() {
|
|
551
575
|
"use strict";
|
|
576
|
+
__name(isPromise, "isPromise");
|
|
552
577
|
}
|
|
553
578
|
});
|
|
554
579
|
|
|
@@ -560,6 +585,7 @@ function capitalize(string) {
|
|
|
560
585
|
var init_capitalize = __esm({
|
|
561
586
|
"src/utils/capitalize.js"() {
|
|
562
587
|
"use strict";
|
|
588
|
+
__name(capitalize, "capitalize");
|
|
563
589
|
}
|
|
564
590
|
});
|
|
565
591
|
|
|
@@ -603,6 +629,7 @@ function cloneDeep(value) {
|
|
|
603
629
|
var init_clone_deep = __esm({
|
|
604
630
|
"src/utils/clone-deep.js"() {
|
|
605
631
|
"use strict";
|
|
632
|
+
__name(cloneDeep, "cloneDeep");
|
|
606
633
|
}
|
|
607
634
|
});
|
|
608
635
|
|
|
@@ -626,13 +653,14 @@ function singularize(noun) {
|
|
|
626
653
|
var init_singularize = __esm({
|
|
627
654
|
"src/utils/singularize.js"() {
|
|
628
655
|
"use strict";
|
|
656
|
+
__name(singularize, "singularize");
|
|
629
657
|
}
|
|
630
658
|
});
|
|
631
659
|
|
|
632
660
|
// src/utils/is-deep-equal.js
|
|
633
661
|
function isDeepEqual(firstValue, secondValue) {
|
|
634
662
|
const cached = /* @__PURE__ */ new WeakMap();
|
|
635
|
-
const compare = (a, b) => {
|
|
663
|
+
const compare = /* @__PURE__ */ __name((a, b) => {
|
|
636
664
|
if (a === null || b === null) return a === b;
|
|
637
665
|
if (typeof a !== "object" || typeof b !== "object") return a === b;
|
|
638
666
|
const dataTypeA = Array.isArray(a) ? "array" : "object";
|
|
@@ -668,12 +696,13 @@ function isDeepEqual(firstValue, secondValue) {
|
|
|
668
696
|
if (!compare(propertyValueA, propertyValueB)) return false;
|
|
669
697
|
}
|
|
670
698
|
return true;
|
|
671
|
-
};
|
|
699
|
+
}, "compare");
|
|
672
700
|
return compare(firstValue, secondValue);
|
|
673
701
|
}
|
|
674
702
|
var init_is_deep_equal = __esm({
|
|
675
703
|
"src/utils/is-deep-equal.js"() {
|
|
676
704
|
"use strict";
|
|
705
|
+
__name(isDeepEqual, "isDeepEqual");
|
|
677
706
|
}
|
|
678
707
|
});
|
|
679
708
|
|
|
@@ -686,6 +715,7 @@ function getCtorName(value) {
|
|
|
686
715
|
var init_get_ctor_name = __esm({
|
|
687
716
|
"src/utils/get-ctor-name.js"() {
|
|
688
717
|
"use strict";
|
|
718
|
+
__name(getCtorName, "getCtorName");
|
|
689
719
|
}
|
|
690
720
|
});
|
|
691
721
|
|
|
@@ -698,6 +728,7 @@ function isPureObject(value) {
|
|
|
698
728
|
var init_is_pure_object = __esm({
|
|
699
729
|
"src/utils/is-pure-object.js"() {
|
|
700
730
|
"use strict";
|
|
731
|
+
__name(isPureObject, "isPureObject");
|
|
701
732
|
}
|
|
702
733
|
});
|
|
703
734
|
|
|
@@ -720,6 +751,7 @@ function stringToRegexp(pattern, flags = void 0) {
|
|
|
720
751
|
var init_string_to_regexp = __esm({
|
|
721
752
|
"src/utils/string-to-regexp.js"() {
|
|
722
753
|
"use strict";
|
|
754
|
+
__name(stringToRegexp, "stringToRegexp");
|
|
723
755
|
}
|
|
724
756
|
});
|
|
725
757
|
|
|
@@ -742,6 +774,7 @@ function getValueByPath(obj, path, orElse = void 0) {
|
|
|
742
774
|
var init_get_value_by_path = __esm({
|
|
743
775
|
"src/utils/get-value-by-path.js"() {
|
|
744
776
|
"use strict";
|
|
777
|
+
__name(getValueByPath, "getValueByPath");
|
|
745
778
|
}
|
|
746
779
|
});
|
|
747
780
|
|
|
@@ -753,6 +786,7 @@ var init_transform_promise = __esm({
|
|
|
753
786
|
"src/utils/transform-promise.js"() {
|
|
754
787
|
"use strict";
|
|
755
788
|
init_is_promise();
|
|
789
|
+
__name(transformPromise, "transformPromise");
|
|
756
790
|
}
|
|
757
791
|
});
|
|
758
792
|
|
|
@@ -786,6 +820,7 @@ var init_select_object_keys = __esm({
|
|
|
786
820
|
"src/utils/select-object-keys.js"() {
|
|
787
821
|
"use strict";
|
|
788
822
|
init_errors2();
|
|
823
|
+
__name(selectObjectKeys, "selectObjectKeys");
|
|
789
824
|
}
|
|
790
825
|
});
|
|
791
826
|
|
|
@@ -805,6 +840,7 @@ var init_exclude_object_keys = __esm({
|
|
|
805
840
|
"src/utils/exclude-object-keys.js"() {
|
|
806
841
|
"use strict";
|
|
807
842
|
init_errors2();
|
|
843
|
+
__name(excludeObjectKeys, "excludeObjectKeys");
|
|
808
844
|
}
|
|
809
845
|
});
|
|
810
846
|
|
|
@@ -843,6 +879,7 @@ var init_get_decorator_target_type = __esm({
|
|
|
843
879
|
STATIC_METHOD_PARAMETER: "staticMethodParameter",
|
|
844
880
|
INSTANCE_METHOD_PARAMETER: "instanceMethodParameter"
|
|
845
881
|
};
|
|
882
|
+
__name(getDecoratorTargetType, "getDecoratorTargetType");
|
|
846
883
|
}
|
|
847
884
|
});
|
|
848
885
|
|
|
@@ -883,14 +920,14 @@ function compareFn(a, b) {
|
|
|
883
920
|
}
|
|
884
921
|
return 0;
|
|
885
922
|
}
|
|
886
|
-
var OrderClauseTool;
|
|
923
|
+
var _OrderClauseTool, OrderClauseTool;
|
|
887
924
|
var init_order_clause_tool = __esm({
|
|
888
925
|
"src/filter/order-clause-tool.js"() {
|
|
889
926
|
"use strict";
|
|
890
927
|
init_src2();
|
|
891
928
|
init_utils2();
|
|
892
929
|
init_errors2();
|
|
893
|
-
|
|
930
|
+
_OrderClauseTool = class _OrderClauseTool extends Service {
|
|
894
931
|
/**
|
|
895
932
|
* Sort.
|
|
896
933
|
*
|
|
@@ -955,11 +992,14 @@ var init_order_clause_tool = __esm({
|
|
|
955
992
|
return clause;
|
|
956
993
|
}
|
|
957
994
|
};
|
|
995
|
+
__name(_OrderClauseTool, "OrderClauseTool");
|
|
996
|
+
OrderClauseTool = _OrderClauseTool;
|
|
997
|
+
__name(compareFn, "compareFn");
|
|
958
998
|
}
|
|
959
999
|
});
|
|
960
1000
|
|
|
961
1001
|
// src/filter/operator-clause-tool.js
|
|
962
|
-
var OperatorClauseTool;
|
|
1002
|
+
var _OperatorClauseTool, OperatorClauseTool;
|
|
963
1003
|
var init_operator_clause_tool = __esm({
|
|
964
1004
|
"src/filter/operator-clause-tool.js"() {
|
|
965
1005
|
"use strict";
|
|
@@ -967,7 +1007,7 @@ var init_operator_clause_tool = __esm({
|
|
|
967
1007
|
init_utils2();
|
|
968
1008
|
init_errors2();
|
|
969
1009
|
init_errors2();
|
|
970
|
-
|
|
1010
|
+
_OperatorClauseTool = class _OperatorClauseTool extends Service {
|
|
971
1011
|
/**
|
|
972
1012
|
* Compare.
|
|
973
1013
|
*
|
|
@@ -1403,11 +1443,13 @@ var init_operator_clause_tool = __esm({
|
|
|
1403
1443
|
}
|
|
1404
1444
|
}
|
|
1405
1445
|
};
|
|
1446
|
+
__name(_OperatorClauseTool, "OperatorClauseTool");
|
|
1447
|
+
OperatorClauseTool = _OperatorClauseTool;
|
|
1406
1448
|
}
|
|
1407
1449
|
});
|
|
1408
1450
|
|
|
1409
1451
|
// src/filter/where-clause-tool.js
|
|
1410
|
-
var WhereClauseTool;
|
|
1452
|
+
var _WhereClauseTool, WhereClauseTool;
|
|
1411
1453
|
var init_where_clause_tool = __esm({
|
|
1412
1454
|
"src/filter/where-clause-tool.js"() {
|
|
1413
1455
|
"use strict";
|
|
@@ -1415,7 +1457,7 @@ var init_where_clause_tool = __esm({
|
|
|
1415
1457
|
init_utils2();
|
|
1416
1458
|
init_errors2();
|
|
1417
1459
|
init_operator_clause_tool();
|
|
1418
|
-
|
|
1460
|
+
_WhereClauseTool = class _WhereClauseTool extends Service {
|
|
1419
1461
|
/**
|
|
1420
1462
|
* Filter by where clause.
|
|
1421
1463
|
*
|
|
@@ -1545,6 +1587,8 @@ var init_where_clause_tool = __esm({
|
|
|
1545
1587
|
);
|
|
1546
1588
|
}
|
|
1547
1589
|
};
|
|
1590
|
+
__name(_WhereClauseTool, "WhereClauseTool");
|
|
1591
|
+
WhereClauseTool = _WhereClauseTool;
|
|
1548
1592
|
}
|
|
1549
1593
|
});
|
|
1550
1594
|
|
|
@@ -1570,7 +1614,7 @@ var init_relation_definition = __esm({
|
|
|
1570
1614
|
});
|
|
1571
1615
|
|
|
1572
1616
|
// src/definition/model/relations/relations-definition-validator.js
|
|
1573
|
-
var RelationsDefinitionValidator;
|
|
1617
|
+
var _RelationsDefinitionValidator, RelationsDefinitionValidator;
|
|
1574
1618
|
var init_relations_definition_validator = __esm({
|
|
1575
1619
|
"src/definition/model/relations/relations-definition-validator.js"() {
|
|
1576
1620
|
"use strict";
|
|
@@ -1578,7 +1622,7 @@ var init_relations_definition_validator = __esm({
|
|
|
1578
1622
|
init_relation_type();
|
|
1579
1623
|
init_relation_type();
|
|
1580
1624
|
init_errors2();
|
|
1581
|
-
|
|
1625
|
+
_RelationsDefinitionValidator = class _RelationsDefinitionValidator extends Service {
|
|
1582
1626
|
/**
|
|
1583
1627
|
* Validate.
|
|
1584
1628
|
*
|
|
@@ -1955,6 +1999,8 @@ var init_relations_definition_validator = __esm({
|
|
|
1955
1999
|
);
|
|
1956
2000
|
}
|
|
1957
2001
|
};
|
|
2002
|
+
__name(_RelationsDefinitionValidator, "RelationsDefinitionValidator");
|
|
2003
|
+
RelationsDefinitionValidator = _RelationsDefinitionValidator;
|
|
1958
2004
|
}
|
|
1959
2005
|
});
|
|
1960
2006
|
|
|
@@ -2005,7 +2051,7 @@ var init_property_uniqueness = __esm({
|
|
|
2005
2051
|
});
|
|
2006
2052
|
|
|
2007
2053
|
// src/definition/model/properties/empty-values-definer.js
|
|
2008
|
-
var EmptyValuesDefiner;
|
|
2054
|
+
var _EmptyValuesDefiner, EmptyValuesDefiner;
|
|
2009
2055
|
var init_empty_values_definer = __esm({
|
|
2010
2056
|
"src/definition/model/properties/empty-values-definer.js"() {
|
|
2011
2057
|
"use strict";
|
|
@@ -2013,7 +2059,7 @@ var init_empty_values_definer = __esm({
|
|
|
2013
2059
|
init_src2();
|
|
2014
2060
|
init_utils2();
|
|
2015
2061
|
init_errors2();
|
|
2016
|
-
|
|
2062
|
+
_EmptyValuesDefiner = class _EmptyValuesDefiner extends Service {
|
|
2017
2063
|
/**
|
|
2018
2064
|
* Empty values map.
|
|
2019
2065
|
*
|
|
@@ -2066,6 +2112,8 @@ var init_empty_values_definer = __esm({
|
|
|
2066
2112
|
return this._emptyValuesMap.get(dataType).some((v) => isDeepEqual(v, value));
|
|
2067
2113
|
}
|
|
2068
2114
|
};
|
|
2115
|
+
__name(_EmptyValuesDefiner, "EmptyValuesDefiner");
|
|
2116
|
+
EmptyValuesDefiner = _EmptyValuesDefiner;
|
|
2069
2117
|
}
|
|
2070
2118
|
});
|
|
2071
2119
|
|
|
@@ -2100,6 +2148,7 @@ var init_regexp_validator = __esm({
|
|
|
2100
2148
|
"use strict";
|
|
2101
2149
|
init_utils2();
|
|
2102
2150
|
init_errors2();
|
|
2151
|
+
__name(regexpValidator, "regexpValidator");
|
|
2103
2152
|
}
|
|
2104
2153
|
});
|
|
2105
2154
|
|
|
@@ -2124,6 +2173,7 @@ var init_max_length_validator = __esm({
|
|
|
2124
2173
|
"src/definition/model/properties/property-validator/builtin/max-length-validator.js"() {
|
|
2125
2174
|
"use strict";
|
|
2126
2175
|
init_errors2();
|
|
2176
|
+
__name(maxLengthValidator, "maxLengthValidator");
|
|
2127
2177
|
}
|
|
2128
2178
|
});
|
|
2129
2179
|
|
|
@@ -2148,6 +2198,7 @@ var init_min_length_validator = __esm({
|
|
|
2148
2198
|
"src/definition/model/properties/property-validator/builtin/min-length-validator.js"() {
|
|
2149
2199
|
"use strict";
|
|
2150
2200
|
init_errors2();
|
|
2201
|
+
__name(minLengthValidator, "minLengthValidator");
|
|
2151
2202
|
}
|
|
2152
2203
|
});
|
|
2153
2204
|
|
|
@@ -2162,7 +2213,7 @@ var init_builtin = __esm({
|
|
|
2162
2213
|
});
|
|
2163
2214
|
|
|
2164
2215
|
// src/definition/model/properties/property-validator/property-validator-registry.js
|
|
2165
|
-
var PropertyValidatorRegistry;
|
|
2216
|
+
var _PropertyValidatorRegistry, PropertyValidatorRegistry;
|
|
2166
2217
|
var init_property_validator_registry = __esm({
|
|
2167
2218
|
"src/definition/model/properties/property-validator/property-validator-registry.js"() {
|
|
2168
2219
|
"use strict";
|
|
@@ -2171,7 +2222,7 @@ var init_property_validator_registry = __esm({
|
|
|
2171
2222
|
init_builtin();
|
|
2172
2223
|
init_builtin();
|
|
2173
2224
|
init_errors2();
|
|
2174
|
-
|
|
2225
|
+
_PropertyValidatorRegistry = class _PropertyValidatorRegistry extends Service {
|
|
2175
2226
|
/**
|
|
2176
2227
|
* Validators.
|
|
2177
2228
|
*
|
|
@@ -2234,6 +2285,8 @@ var init_property_validator_registry = __esm({
|
|
|
2234
2285
|
return validator;
|
|
2235
2286
|
}
|
|
2236
2287
|
};
|
|
2288
|
+
__name(_PropertyValidatorRegistry, "PropertyValidatorRegistry");
|
|
2289
|
+
PropertyValidatorRegistry = _PropertyValidatorRegistry;
|
|
2237
2290
|
}
|
|
2238
2291
|
});
|
|
2239
2292
|
|
|
@@ -2267,6 +2320,7 @@ var init_trim_transformer = __esm({
|
|
|
2267
2320
|
"src/definition/model/properties/property-transformer/builtin/trim-transformer.js"() {
|
|
2268
2321
|
"use strict";
|
|
2269
2322
|
init_errors2();
|
|
2323
|
+
__name(trimTransformer, "trimTransformer");
|
|
2270
2324
|
}
|
|
2271
2325
|
});
|
|
2272
2326
|
|
|
@@ -2284,6 +2338,7 @@ var init_to_lower_case_transformer = __esm({
|
|
|
2284
2338
|
"src/definition/model/properties/property-transformer/builtin/to-lower-case-transformer.js"() {
|
|
2285
2339
|
"use strict";
|
|
2286
2340
|
init_errors2();
|
|
2341
|
+
__name(toLowerCaseTransformer, "toLowerCaseTransformer");
|
|
2287
2342
|
}
|
|
2288
2343
|
});
|
|
2289
2344
|
|
|
@@ -2301,6 +2356,7 @@ var init_to_upper_case_transformer = __esm({
|
|
|
2301
2356
|
"src/definition/model/properties/property-transformer/builtin/to-upper-case-transformer.js"() {
|
|
2302
2357
|
"use strict";
|
|
2303
2358
|
init_errors2();
|
|
2359
|
+
__name(toUpperCaseTransformer, "toUpperCaseTransformer");
|
|
2304
2360
|
}
|
|
2305
2361
|
});
|
|
2306
2362
|
|
|
@@ -2321,6 +2377,7 @@ var init_to_title_case_transformer = __esm({
|
|
|
2321
2377
|
"src/definition/model/properties/property-transformer/builtin/to-title-case-transformer.js"() {
|
|
2322
2378
|
"use strict";
|
|
2323
2379
|
init_errors2();
|
|
2380
|
+
__name(toTitleCaseTransformer, "toTitleCaseTransformer");
|
|
2324
2381
|
}
|
|
2325
2382
|
});
|
|
2326
2383
|
|
|
@@ -2336,7 +2393,7 @@ var init_builtin2 = __esm({
|
|
|
2336
2393
|
});
|
|
2337
2394
|
|
|
2338
2395
|
// src/definition/model/properties/property-transformer/property-transformer-registry.js
|
|
2339
|
-
var PropertyTransformerRegistry;
|
|
2396
|
+
var _PropertyTransformerRegistry, PropertyTransformerRegistry;
|
|
2340
2397
|
var init_property_transformer_registry = __esm({
|
|
2341
2398
|
"src/definition/model/properties/property-transformer/property-transformer-registry.js"() {
|
|
2342
2399
|
"use strict";
|
|
@@ -2346,7 +2403,7 @@ var init_property_transformer_registry = __esm({
|
|
|
2346
2403
|
init_builtin2();
|
|
2347
2404
|
init_builtin2();
|
|
2348
2405
|
init_errors2();
|
|
2349
|
-
|
|
2406
|
+
_PropertyTransformerRegistry = class _PropertyTransformerRegistry extends Service {
|
|
2350
2407
|
/**
|
|
2351
2408
|
* Transformers.
|
|
2352
2409
|
*
|
|
@@ -2410,6 +2467,8 @@ var init_property_transformer_registry = __esm({
|
|
|
2410
2467
|
return transformer;
|
|
2411
2468
|
}
|
|
2412
2469
|
};
|
|
2470
|
+
__name(_PropertyTransformerRegistry, "PropertyTransformerRegistry");
|
|
2471
|
+
PropertyTransformerRegistry = _PropertyTransformerRegistry;
|
|
2413
2472
|
}
|
|
2414
2473
|
});
|
|
2415
2474
|
|
|
@@ -2423,7 +2482,7 @@ var init_property_transformer2 = __esm({
|
|
|
2423
2482
|
});
|
|
2424
2483
|
|
|
2425
2484
|
// src/definition/definition-registry.js
|
|
2426
|
-
var DefinitionRegistry;
|
|
2485
|
+
var _DefinitionRegistry, DefinitionRegistry;
|
|
2427
2486
|
var init_definition_registry = __esm({
|
|
2428
2487
|
"src/definition/definition-registry.js"() {
|
|
2429
2488
|
"use strict";
|
|
@@ -2431,7 +2490,7 @@ var init_definition_registry = __esm({
|
|
|
2431
2490
|
init_errors2();
|
|
2432
2491
|
init_model();
|
|
2433
2492
|
init_definition();
|
|
2434
|
-
|
|
2493
|
+
_DefinitionRegistry = class _DefinitionRegistry extends Service {
|
|
2435
2494
|
/**
|
|
2436
2495
|
* Datasources.
|
|
2437
2496
|
*
|
|
@@ -2514,11 +2573,13 @@ var init_definition_registry = __esm({
|
|
|
2514
2573
|
return modelDef;
|
|
2515
2574
|
}
|
|
2516
2575
|
};
|
|
2576
|
+
__name(_DefinitionRegistry, "DefinitionRegistry");
|
|
2577
|
+
DefinitionRegistry = _DefinitionRegistry;
|
|
2517
2578
|
}
|
|
2518
2579
|
});
|
|
2519
2580
|
|
|
2520
2581
|
// src/definition/model/model-definition-utils.js
|
|
2521
|
-
var DEFAULT_PRIMARY_KEY_PROPERTY_NAME, ModelDefinitionUtils;
|
|
2582
|
+
var DEFAULT_PRIMARY_KEY_PROPERTY_NAME, _ModelDefinitionUtils, ModelDefinitionUtils;
|
|
2522
2583
|
var init_model_definition_utils = __esm({
|
|
2523
2584
|
"src/definition/model/model-definition-utils.js"() {
|
|
2524
2585
|
"use strict";
|
|
@@ -2530,7 +2591,7 @@ var init_model_definition_utils = __esm({
|
|
|
2530
2591
|
init_errors2();
|
|
2531
2592
|
init_definition_registry();
|
|
2532
2593
|
DEFAULT_PRIMARY_KEY_PROPERTY_NAME = "id";
|
|
2533
|
-
|
|
2594
|
+
_ModelDefinitionUtils = class _ModelDefinitionUtils extends Service {
|
|
2534
2595
|
/**
|
|
2535
2596
|
* Get primary key as property name.
|
|
2536
2597
|
*
|
|
@@ -2780,7 +2841,7 @@ var init_model_definition_utils = __esm({
|
|
|
2780
2841
|
getPropertiesDefinitionInBaseModelHierarchy(modelName) {
|
|
2781
2842
|
let result = {};
|
|
2782
2843
|
let pkPropDefs = {};
|
|
2783
|
-
const recursion = (currModelName, prevModelName = void 0) => {
|
|
2844
|
+
const recursion = /* @__PURE__ */ __name((currModelName, prevModelName = void 0) => {
|
|
2784
2845
|
if (currModelName === prevModelName)
|
|
2785
2846
|
throw new InvalidArgumentError2(
|
|
2786
2847
|
"The model %v has a circular inheritance.",
|
|
@@ -2794,7 +2855,7 @@ var init_model_definition_utils = __esm({
|
|
|
2794
2855
|
result = { ...regularPropDefs, ...result };
|
|
2795
2856
|
const modelDef = this.getService(DefinitionRegistry).getModel(currModelName);
|
|
2796
2857
|
if (modelDef.base) recursion(modelDef.base, currModelName);
|
|
2797
|
-
};
|
|
2858
|
+
}, "recursion");
|
|
2798
2859
|
recursion(modelName);
|
|
2799
2860
|
return result;
|
|
2800
2861
|
}
|
|
@@ -2817,7 +2878,7 @@ var init_model_definition_utils = __esm({
|
|
|
2817
2878
|
*/
|
|
2818
2879
|
getRelationsDefinitionInBaseModelHierarchy(modelName) {
|
|
2819
2880
|
let result = {};
|
|
2820
|
-
const recursion = (currModelName, prevModelName = void 0) => {
|
|
2881
|
+
const recursion = /* @__PURE__ */ __name((currModelName, prevModelName = void 0) => {
|
|
2821
2882
|
var _a;
|
|
2822
2883
|
if (currModelName === prevModelName)
|
|
2823
2884
|
throw new InvalidArgumentError2(
|
|
@@ -2828,7 +2889,7 @@ var init_model_definition_utils = __esm({
|
|
|
2828
2889
|
const ownRelDefs = (_a = modelDef.relations) != null ? _a : {};
|
|
2829
2890
|
result = { ...ownRelDefs, ...result };
|
|
2830
2891
|
if (modelDef.base) recursion(modelDef.base, currModelName);
|
|
2831
|
-
};
|
|
2892
|
+
}, "recursion");
|
|
2832
2893
|
recursion(modelName);
|
|
2833
2894
|
return result;
|
|
2834
2895
|
}
|
|
@@ -2875,11 +2936,13 @@ var init_model_definition_utils = __esm({
|
|
|
2875
2936
|
return excludeObjectKeys(modelData, relNames);
|
|
2876
2937
|
}
|
|
2877
2938
|
};
|
|
2939
|
+
__name(_ModelDefinitionUtils, "ModelDefinitionUtils");
|
|
2940
|
+
ModelDefinitionUtils = _ModelDefinitionUtils;
|
|
2878
2941
|
}
|
|
2879
2942
|
});
|
|
2880
2943
|
|
|
2881
2944
|
// src/definition/model/properties/property-uniqueness-validator.js
|
|
2882
|
-
var PropertyUniquenessValidator;
|
|
2945
|
+
var _PropertyUniquenessValidator, PropertyUniquenessValidator;
|
|
2883
2946
|
var init_property_uniqueness_validator = __esm({
|
|
2884
2947
|
"src/definition/model/properties/property-uniqueness-validator.js"() {
|
|
2885
2948
|
"use strict";
|
|
@@ -2890,7 +2953,7 @@ var init_property_uniqueness_validator = __esm({
|
|
|
2890
2953
|
init_empty_values_definer();
|
|
2891
2954
|
init_errors2();
|
|
2892
2955
|
init_model_definition_utils();
|
|
2893
|
-
|
|
2956
|
+
_PropertyUniquenessValidator = class _PropertyUniquenessValidator extends Service {
|
|
2894
2957
|
/**
|
|
2895
2958
|
* Validate.
|
|
2896
2959
|
*
|
|
@@ -2931,12 +2994,12 @@ var init_property_uniqueness_validator = __esm({
|
|
|
2931
2994
|
const idProp = this.getService(ModelDefinitionUtils).getPrimaryKeyAsPropertyName(
|
|
2932
2995
|
modelName
|
|
2933
2996
|
);
|
|
2934
|
-
const createError = (propName, propValue) => new InvalidArgumentError2(
|
|
2997
|
+
const createError = /* @__PURE__ */ __name((propName, propValue) => new InvalidArgumentError2(
|
|
2935
2998
|
"An existing document of the model %v already has the property %v with the value %v and should be unique.",
|
|
2936
2999
|
modelName,
|
|
2937
3000
|
propName,
|
|
2938
3001
|
propValue
|
|
2939
|
-
);
|
|
3002
|
+
), "createError");
|
|
2940
3003
|
let willBeReplaced = void 0;
|
|
2941
3004
|
const emptyValuesDefiner = this.getService(EmptyValuesDefiner);
|
|
2942
3005
|
for (const propName of propNames) {
|
|
@@ -2993,18 +3056,20 @@ var init_property_uniqueness_validator = __esm({
|
|
|
2993
3056
|
}
|
|
2994
3057
|
}
|
|
2995
3058
|
};
|
|
3059
|
+
__name(_PropertyUniquenessValidator, "PropertyUniquenessValidator");
|
|
3060
|
+
PropertyUniquenessValidator = _PropertyUniquenessValidator;
|
|
2996
3061
|
}
|
|
2997
3062
|
});
|
|
2998
3063
|
|
|
2999
3064
|
// src/definition/model/properties/primary-keys-definition-validator.js
|
|
3000
|
-
var PrimaryKeysDefinitionValidator;
|
|
3065
|
+
var _PrimaryKeysDefinitionValidator, PrimaryKeysDefinitionValidator;
|
|
3001
3066
|
var init_primary_keys_definition_validator = __esm({
|
|
3002
3067
|
"src/definition/model/properties/primary-keys-definition-validator.js"() {
|
|
3003
3068
|
"use strict";
|
|
3004
3069
|
init_src2();
|
|
3005
3070
|
init_errors2();
|
|
3006
3071
|
init_model_definition_utils();
|
|
3007
|
-
|
|
3072
|
+
_PrimaryKeysDefinitionValidator = class _PrimaryKeysDefinitionValidator extends Service {
|
|
3008
3073
|
/**
|
|
3009
3074
|
* Validate.
|
|
3010
3075
|
*
|
|
@@ -3043,11 +3108,13 @@ var init_primary_keys_definition_validator = __esm({
|
|
|
3043
3108
|
}
|
|
3044
3109
|
}
|
|
3045
3110
|
};
|
|
3111
|
+
__name(_PrimaryKeysDefinitionValidator, "PrimaryKeysDefinitionValidator");
|
|
3112
|
+
PrimaryKeysDefinitionValidator = _PrimaryKeysDefinitionValidator;
|
|
3046
3113
|
}
|
|
3047
3114
|
});
|
|
3048
3115
|
|
|
3049
3116
|
// src/definition/model/properties/properties-definition-validator.js
|
|
3050
|
-
var PropertiesDefinitionValidator;
|
|
3117
|
+
var _PropertiesDefinitionValidator, PropertiesDefinitionValidator;
|
|
3051
3118
|
var init_properties_definition_validator = __esm({
|
|
3052
3119
|
"src/definition/model/properties/properties-definition-validator.js"() {
|
|
3053
3120
|
"use strict";
|
|
@@ -3059,7 +3126,7 @@ var init_properties_definition_validator = __esm({
|
|
|
3059
3126
|
init_property_validator2();
|
|
3060
3127
|
init_property_transformer2();
|
|
3061
3128
|
init_primary_keys_definition_validator();
|
|
3062
|
-
|
|
3129
|
+
_PropertiesDefinitionValidator = class _PropertiesDefinitionValidator extends Service {
|
|
3063
3130
|
/**
|
|
3064
3131
|
* Validate.
|
|
3065
3132
|
*
|
|
@@ -3331,6 +3398,8 @@ var init_properties_definition_validator = __esm({
|
|
|
3331
3398
|
);
|
|
3332
3399
|
}
|
|
3333
3400
|
};
|
|
3401
|
+
__name(_PropertiesDefinitionValidator, "PropertiesDefinitionValidator");
|
|
3402
|
+
PropertiesDefinitionValidator = _PropertiesDefinitionValidator;
|
|
3334
3403
|
}
|
|
3335
3404
|
});
|
|
3336
3405
|
|
|
@@ -3358,7 +3427,7 @@ var init_model_definition = __esm({
|
|
|
3358
3427
|
});
|
|
3359
3428
|
|
|
3360
3429
|
// src/definition/model/model-data-validator.js
|
|
3361
|
-
var ModelDataValidator;
|
|
3430
|
+
var _ModelDataValidator, ModelDataValidator;
|
|
3362
3431
|
var init_model_data_validator = __esm({
|
|
3363
3432
|
"src/definition/model/model-data-validator.js"() {
|
|
3364
3433
|
"use strict";
|
|
@@ -3370,7 +3439,7 @@ var init_model_data_validator = __esm({
|
|
|
3370
3439
|
init_errors2();
|
|
3371
3440
|
init_properties();
|
|
3372
3441
|
init_model_definition_utils();
|
|
3373
|
-
|
|
3442
|
+
_ModelDataValidator = class _ModelDataValidator extends Service {
|
|
3374
3443
|
/**
|
|
3375
3444
|
* Validate.
|
|
3376
3445
|
*
|
|
@@ -3458,7 +3527,7 @@ var init_model_data_validator = __esm({
|
|
|
3458
3527
|
} else {
|
|
3459
3528
|
expectingType = typeof propDef !== "string" ? propDef.type : propDef;
|
|
3460
3529
|
}
|
|
3461
|
-
const createError = (expected) => {
|
|
3530
|
+
const createError = /* @__PURE__ */ __name((expected) => {
|
|
3462
3531
|
const pattern = isArrayValue ? "The array property %v of the model %v must have %s element, but %s given." : "The property %v of the model %v must have %s, but %s given.";
|
|
3463
3532
|
const ctorName = getCtorName(propValue);
|
|
3464
3533
|
const givenStr = ctorName != null ? ctorName : typeof propValue;
|
|
@@ -3469,7 +3538,7 @@ var init_model_data_validator = __esm({
|
|
|
3469
3538
|
expected,
|
|
3470
3539
|
givenStr
|
|
3471
3540
|
);
|
|
3472
|
-
};
|
|
3541
|
+
}, "createError");
|
|
3473
3542
|
switch (expectingType) {
|
|
3474
3543
|
// STRING
|
|
3475
3544
|
case DataType.STRING:
|
|
@@ -3517,14 +3586,14 @@ var init_model_data_validator = __esm({
|
|
|
3517
3586
|
if (typeof propDef === "string" || propDef.validate == null) return;
|
|
3518
3587
|
const validateDef = propDef.validate;
|
|
3519
3588
|
const validatorRegistry = this.getService(PropertyValidatorRegistry);
|
|
3520
|
-
const createError = (validatorName) => new InvalidArgumentError2(
|
|
3589
|
+
const createError = /* @__PURE__ */ __name((validatorName) => new InvalidArgumentError2(
|
|
3521
3590
|
"The property %v of the model %v has an invalid value %v that caught by the validator %v.",
|
|
3522
3591
|
propName,
|
|
3523
3592
|
modelName,
|
|
3524
3593
|
propValue,
|
|
3525
3594
|
validatorName
|
|
3526
|
-
);
|
|
3527
|
-
const validateBy = (validatorName, validatorOptions = void 0) => {
|
|
3595
|
+
), "createError");
|
|
3596
|
+
const validateBy = /* @__PURE__ */ __name((validatorName, validatorOptions = void 0) => {
|
|
3528
3597
|
const validator = validatorRegistry.getValidator(validatorName);
|
|
3529
3598
|
const context = { validatorName, modelName, propName };
|
|
3530
3599
|
const valid = validator(propValue, validatorOptions, context);
|
|
@@ -3536,7 +3605,7 @@ var init_model_data_validator = __esm({
|
|
|
3536
3605
|
} else if (valid !== true) {
|
|
3537
3606
|
throw createError(validatorName);
|
|
3538
3607
|
}
|
|
3539
|
-
};
|
|
3608
|
+
}, "validateBy");
|
|
3540
3609
|
if (validateDef && typeof validateDef === "string") {
|
|
3541
3610
|
validateBy(validateDef);
|
|
3542
3611
|
} else if (Array.isArray(validateDef)) {
|
|
@@ -3558,18 +3627,20 @@ var init_model_data_validator = __esm({
|
|
|
3558
3627
|
}
|
|
3559
3628
|
}
|
|
3560
3629
|
};
|
|
3630
|
+
__name(_ModelDataValidator, "ModelDataValidator");
|
|
3631
|
+
ModelDataValidator = _ModelDataValidator;
|
|
3561
3632
|
}
|
|
3562
3633
|
});
|
|
3563
3634
|
|
|
3564
3635
|
// src/definition/model/model-data-sanitizer.js
|
|
3565
|
-
var ModelDataSanitizer;
|
|
3636
|
+
var _ModelDataSanitizer, ModelDataSanitizer;
|
|
3566
3637
|
var init_model_data_sanitizer = __esm({
|
|
3567
3638
|
"src/definition/model/model-data-sanitizer.js"() {
|
|
3568
3639
|
"use strict";
|
|
3569
3640
|
init_src2();
|
|
3570
3641
|
init_errors2();
|
|
3571
3642
|
init_model_definition_utils();
|
|
3572
|
-
|
|
3643
|
+
_ModelDataSanitizer = class _ModelDataSanitizer extends Service {
|
|
3573
3644
|
/**
|
|
3574
3645
|
* Validate.
|
|
3575
3646
|
*
|
|
@@ -3593,11 +3664,13 @@ var init_model_data_sanitizer = __esm({
|
|
|
3593
3664
|
).excludeObjectKeysByRelationNames(modelName, modelData);
|
|
3594
3665
|
}
|
|
3595
3666
|
};
|
|
3667
|
+
__name(_ModelDataSanitizer, "ModelDataSanitizer");
|
|
3668
|
+
ModelDataSanitizer = _ModelDataSanitizer;
|
|
3596
3669
|
}
|
|
3597
3670
|
});
|
|
3598
3671
|
|
|
3599
3672
|
// src/definition/model/model-data-transformer.js
|
|
3600
|
-
var ModelDataTransformer;
|
|
3673
|
+
var _ModelDataTransformer, ModelDataTransformer;
|
|
3601
3674
|
var init_model_data_transformer = __esm({
|
|
3602
3675
|
"src/definition/model/model-data-transformer.js"() {
|
|
3603
3676
|
"use strict";
|
|
@@ -3609,7 +3682,7 @@ var init_model_data_transformer = __esm({
|
|
|
3609
3682
|
init_errors2();
|
|
3610
3683
|
init_model_definition_utils();
|
|
3611
3684
|
init_properties();
|
|
3612
|
-
|
|
3685
|
+
_ModelDataTransformer = class _ModelDataTransformer extends Service {
|
|
3613
3686
|
/**
|
|
3614
3687
|
* Transform.
|
|
3615
3688
|
*
|
|
@@ -3667,11 +3740,11 @@ var init_model_data_transformer = __esm({
|
|
|
3667
3740
|
return propValue;
|
|
3668
3741
|
const transformDef = propDef.transform;
|
|
3669
3742
|
const transformerRegistry = this.getService(PropertyTransformerRegistry);
|
|
3670
|
-
const transformFn = (value, transformerName, transformerOptions = void 0) => {
|
|
3743
|
+
const transformFn = /* @__PURE__ */ __name((value, transformerName, transformerOptions = void 0) => {
|
|
3671
3744
|
const transformer = transformerRegistry.getTransformer(transformerName);
|
|
3672
3745
|
const context = { transformerName, modelName, propName };
|
|
3673
3746
|
return transformer(value, transformerOptions, context);
|
|
3674
|
-
};
|
|
3747
|
+
}, "transformFn");
|
|
3675
3748
|
if (transformDef && typeof transformDef === "string") {
|
|
3676
3749
|
return transformFn(propValue, transformDef);
|
|
3677
3750
|
} else if (Array.isArray(transformDef)) {
|
|
@@ -3700,11 +3773,13 @@ var init_model_data_transformer = __esm({
|
|
|
3700
3773
|
}
|
|
3701
3774
|
}
|
|
3702
3775
|
};
|
|
3776
|
+
__name(_ModelDataTransformer, "ModelDataTransformer");
|
|
3777
|
+
ModelDataTransformer = _ModelDataTransformer;
|
|
3703
3778
|
}
|
|
3704
3779
|
});
|
|
3705
3780
|
|
|
3706
3781
|
// src/definition/model/model-definition-validator.js
|
|
3707
|
-
var ModelDefinitionValidator;
|
|
3782
|
+
var _ModelDefinitionValidator, ModelDefinitionValidator;
|
|
3708
3783
|
var init_model_definition_validator = __esm({
|
|
3709
3784
|
"src/definition/model/model-definition-validator.js"() {
|
|
3710
3785
|
"use strict";
|
|
@@ -3712,7 +3787,7 @@ var init_model_definition_validator = __esm({
|
|
|
3712
3787
|
init_errors2();
|
|
3713
3788
|
init_relations();
|
|
3714
3789
|
init_properties();
|
|
3715
|
-
|
|
3790
|
+
_ModelDefinitionValidator = class _ModelDefinitionValidator extends Service {
|
|
3716
3791
|
/**
|
|
3717
3792
|
* Validate.
|
|
3718
3793
|
*
|
|
@@ -3775,6 +3850,8 @@ var init_model_definition_validator = __esm({
|
|
|
3775
3850
|
}
|
|
3776
3851
|
}
|
|
3777
3852
|
};
|
|
3853
|
+
__name(_ModelDefinitionValidator, "ModelDefinitionValidator");
|
|
3854
|
+
ModelDefinitionValidator = _ModelDefinitionValidator;
|
|
3778
3855
|
}
|
|
3779
3856
|
});
|
|
3780
3857
|
|
|
@@ -3794,13 +3871,13 @@ var init_model = __esm({
|
|
|
3794
3871
|
});
|
|
3795
3872
|
|
|
3796
3873
|
// src/definition/datasource/datasource-definition-validator.js
|
|
3797
|
-
var DatasourceDefinitionValidator;
|
|
3874
|
+
var _DatasourceDefinitionValidator, DatasourceDefinitionValidator;
|
|
3798
3875
|
var init_datasource_definition_validator = __esm({
|
|
3799
3876
|
"src/definition/datasource/datasource-definition-validator.js"() {
|
|
3800
3877
|
"use strict";
|
|
3801
3878
|
init_src2();
|
|
3802
3879
|
init_errors2();
|
|
3803
|
-
|
|
3880
|
+
_DatasourceDefinitionValidator = class _DatasourceDefinitionValidator extends Service {
|
|
3804
3881
|
/**
|
|
3805
3882
|
* Validate.
|
|
3806
3883
|
*
|
|
@@ -3825,6 +3902,8 @@ var init_datasource_definition_validator = __esm({
|
|
|
3825
3902
|
);
|
|
3826
3903
|
}
|
|
3827
3904
|
};
|
|
3905
|
+
__name(_DatasourceDefinitionValidator, "DatasourceDefinitionValidator");
|
|
3906
|
+
DatasourceDefinitionValidator = _DatasourceDefinitionValidator;
|
|
3828
3907
|
}
|
|
3829
3908
|
});
|
|
3830
3909
|
|
|
@@ -3847,7 +3926,7 @@ var init_definition = __esm({
|
|
|
3847
3926
|
});
|
|
3848
3927
|
|
|
3849
3928
|
// src/filter/fields-clause-tool.js
|
|
3850
|
-
var FieldsClauseTool;
|
|
3929
|
+
var _FieldsClauseTool, FieldsClauseTool;
|
|
3851
3930
|
var init_fields_clause_tool = __esm({
|
|
3852
3931
|
"src/filter/fields-clause-tool.js"() {
|
|
3853
3932
|
"use strict";
|
|
@@ -3855,7 +3934,7 @@ var init_fields_clause_tool = __esm({
|
|
|
3855
3934
|
init_utils2();
|
|
3856
3935
|
init_errors2();
|
|
3857
3936
|
init_definition();
|
|
3858
|
-
|
|
3937
|
+
_FieldsClauseTool = class _FieldsClauseTool extends Service {
|
|
3859
3938
|
/**
|
|
3860
3939
|
* Filter.
|
|
3861
3940
|
*
|
|
@@ -3933,11 +4012,13 @@ var init_fields_clause_tool = __esm({
|
|
|
3933
4012
|
return fields;
|
|
3934
4013
|
}
|
|
3935
4014
|
};
|
|
4015
|
+
__name(_FieldsClauseTool, "FieldsClauseTool");
|
|
4016
|
+
FieldsClauseTool = _FieldsClauseTool;
|
|
3936
4017
|
}
|
|
3937
4018
|
});
|
|
3938
4019
|
|
|
3939
4020
|
// src/relations/has-one-resolver.js
|
|
3940
|
-
var HasOneResolver;
|
|
4021
|
+
var _HasOneResolver, HasOneResolver;
|
|
3941
4022
|
var init_has_one_resolver = __esm({
|
|
3942
4023
|
"src/relations/has-one-resolver.js"() {
|
|
3943
4024
|
"use strict";
|
|
@@ -3947,7 +4028,7 @@ var init_has_one_resolver = __esm({
|
|
|
3947
4028
|
init_errors2();
|
|
3948
4029
|
init_repository2();
|
|
3949
4030
|
init_definition();
|
|
3950
|
-
|
|
4031
|
+
_HasOneResolver = class _HasOneResolver extends Service {
|
|
3951
4032
|
/**
|
|
3952
4033
|
* Include to.
|
|
3953
4034
|
*
|
|
@@ -4186,11 +4267,13 @@ var init_has_one_resolver = __esm({
|
|
|
4186
4267
|
);
|
|
4187
4268
|
}
|
|
4188
4269
|
};
|
|
4270
|
+
__name(_HasOneResolver, "HasOneResolver");
|
|
4271
|
+
HasOneResolver = _HasOneResolver;
|
|
4189
4272
|
}
|
|
4190
4273
|
});
|
|
4191
4274
|
|
|
4192
4275
|
// src/relations/has-many-resolver.js
|
|
4193
|
-
var HasManyResolver;
|
|
4276
|
+
var _HasManyResolver, HasManyResolver;
|
|
4194
4277
|
var init_has_many_resolver = __esm({
|
|
4195
4278
|
"src/relations/has-many-resolver.js"() {
|
|
4196
4279
|
"use strict";
|
|
@@ -4200,7 +4283,7 @@ var init_has_many_resolver = __esm({
|
|
|
4200
4283
|
init_errors2();
|
|
4201
4284
|
init_repository2();
|
|
4202
4285
|
init_definition();
|
|
4203
|
-
|
|
4286
|
+
_HasManyResolver = class _HasManyResolver extends Service {
|
|
4204
4287
|
/**
|
|
4205
4288
|
* Include to.
|
|
4206
4289
|
*
|
|
@@ -4449,11 +4532,13 @@ var init_has_many_resolver = __esm({
|
|
|
4449
4532
|
);
|
|
4450
4533
|
}
|
|
4451
4534
|
};
|
|
4535
|
+
__name(_HasManyResolver, "HasManyResolver");
|
|
4536
|
+
HasManyResolver = _HasManyResolver;
|
|
4452
4537
|
}
|
|
4453
4538
|
});
|
|
4454
4539
|
|
|
4455
4540
|
// src/relations/belongs-to-resolver.js
|
|
4456
|
-
var BelongsToResolver;
|
|
4541
|
+
var _BelongsToResolver, BelongsToResolver;
|
|
4457
4542
|
var init_belongs_to_resolver = __esm({
|
|
4458
4543
|
"src/relations/belongs-to-resolver.js"() {
|
|
4459
4544
|
"use strict";
|
|
@@ -4463,7 +4548,7 @@ var init_belongs_to_resolver = __esm({
|
|
|
4463
4548
|
init_errors2();
|
|
4464
4549
|
init_repository2();
|
|
4465
4550
|
init_definition();
|
|
4466
|
-
|
|
4551
|
+
_BelongsToResolver = class _BelongsToResolver extends Service {
|
|
4467
4552
|
/**
|
|
4468
4553
|
* Include to.
|
|
4469
4554
|
*
|
|
@@ -4655,11 +4740,13 @@ var init_belongs_to_resolver = __esm({
|
|
|
4655
4740
|
});
|
|
4656
4741
|
}
|
|
4657
4742
|
};
|
|
4743
|
+
__name(_BelongsToResolver, "BelongsToResolver");
|
|
4744
|
+
BelongsToResolver = _BelongsToResolver;
|
|
4658
4745
|
}
|
|
4659
4746
|
});
|
|
4660
4747
|
|
|
4661
4748
|
// src/relations/references-many-resolver.js
|
|
4662
|
-
var ReferencesManyResolver;
|
|
4749
|
+
var _ReferencesManyResolver, ReferencesManyResolver;
|
|
4663
4750
|
var init_references_many_resolver = __esm({
|
|
4664
4751
|
"src/relations/references-many-resolver.js"() {
|
|
4665
4752
|
"use strict";
|
|
@@ -4669,7 +4756,7 @@ var init_references_many_resolver = __esm({
|
|
|
4669
4756
|
init_errors2();
|
|
4670
4757
|
init_repository2();
|
|
4671
4758
|
init_definition();
|
|
4672
|
-
|
|
4759
|
+
_ReferencesManyResolver = class _ReferencesManyResolver extends Service {
|
|
4673
4760
|
/**
|
|
4674
4761
|
* Include to.
|
|
4675
4762
|
*
|
|
@@ -4754,6 +4841,8 @@ var init_references_many_resolver = __esm({
|
|
|
4754
4841
|
});
|
|
4755
4842
|
}
|
|
4756
4843
|
};
|
|
4844
|
+
__name(_ReferencesManyResolver, "ReferencesManyResolver");
|
|
4845
|
+
ReferencesManyResolver = _ReferencesManyResolver;
|
|
4757
4846
|
}
|
|
4758
4847
|
});
|
|
4759
4848
|
|
|
@@ -4769,7 +4858,7 @@ var init_relations2 = __esm({
|
|
|
4769
4858
|
});
|
|
4770
4859
|
|
|
4771
4860
|
// src/filter/include-clause-tool.js
|
|
4772
|
-
var IncludeClauseTool;
|
|
4861
|
+
var _IncludeClauseTool, IncludeClauseTool;
|
|
4773
4862
|
var init_include_clause_tool = __esm({
|
|
4774
4863
|
"src/filter/include-clause-tool.js"() {
|
|
4775
4864
|
"use strict";
|
|
@@ -4785,7 +4874,7 @@ var init_include_clause_tool = __esm({
|
|
|
4785
4874
|
init_fields_clause_tool();
|
|
4786
4875
|
init_definition();
|
|
4787
4876
|
init_relations2();
|
|
4788
|
-
|
|
4877
|
+
_IncludeClauseTool = class _IncludeClauseTool extends Service {
|
|
4789
4878
|
/**
|
|
4790
4879
|
* Include to.
|
|
4791
4880
|
*
|
|
@@ -5103,6 +5192,8 @@ var init_include_clause_tool = __esm({
|
|
|
5103
5192
|
return void 0;
|
|
5104
5193
|
}
|
|
5105
5194
|
};
|
|
5195
|
+
__name(_IncludeClauseTool, "IncludeClauseTool");
|
|
5196
|
+
IncludeClauseTool = _IncludeClauseTool;
|
|
5106
5197
|
}
|
|
5107
5198
|
});
|
|
5108
5199
|
|
|
@@ -5120,7 +5211,7 @@ var init_filter = __esm({
|
|
|
5120
5211
|
});
|
|
5121
5212
|
|
|
5122
5213
|
// src/adapter/decorator/inclusion-decorator.js
|
|
5123
|
-
var InclusionDecorator;
|
|
5214
|
+
var _InclusionDecorator, InclusionDecorator;
|
|
5124
5215
|
var init_inclusion_decorator = __esm({
|
|
5125
5216
|
"src/adapter/decorator/inclusion-decorator.js"() {
|
|
5126
5217
|
"use strict";
|
|
@@ -5128,7 +5219,7 @@ var init_inclusion_decorator = __esm({
|
|
|
5128
5219
|
init_src2();
|
|
5129
5220
|
init_filter();
|
|
5130
5221
|
init_errors2();
|
|
5131
|
-
|
|
5222
|
+
_InclusionDecorator = class _InclusionDecorator extends Service {
|
|
5132
5223
|
/**
|
|
5133
5224
|
* Decorate.
|
|
5134
5225
|
*
|
|
@@ -5141,7 +5232,7 @@ var init_inclusion_decorator = __esm({
|
|
|
5141
5232
|
adapter
|
|
5142
5233
|
);
|
|
5143
5234
|
const tool = adapter.getService(IncludeClauseTool);
|
|
5144
|
-
const includeTo = (...args) => tool.includeTo(...args);
|
|
5235
|
+
const includeTo = /* @__PURE__ */ __name((...args) => tool.includeTo(...args), "includeTo");
|
|
5145
5236
|
const create = adapter.create;
|
|
5146
5237
|
adapter.create = async function(modelName, modelData, filter) {
|
|
5147
5238
|
const retvalData = await create.call(this, modelName, modelData, filter);
|
|
@@ -5203,11 +5294,13 @@ var init_inclusion_decorator = __esm({
|
|
|
5203
5294
|
};
|
|
5204
5295
|
}
|
|
5205
5296
|
};
|
|
5297
|
+
__name(_InclusionDecorator, "InclusionDecorator");
|
|
5298
|
+
InclusionDecorator = _InclusionDecorator;
|
|
5206
5299
|
}
|
|
5207
5300
|
});
|
|
5208
5301
|
|
|
5209
5302
|
// src/adapter/decorator/default-values-decorator.js
|
|
5210
|
-
var DefaultValuesDecorator;
|
|
5303
|
+
var _DefaultValuesDecorator, DefaultValuesDecorator;
|
|
5211
5304
|
var init_default_values_decorator = __esm({
|
|
5212
5305
|
"src/adapter/decorator/default-values-decorator.js"() {
|
|
5213
5306
|
"use strict";
|
|
@@ -5215,7 +5308,7 @@ var init_default_values_decorator = __esm({
|
|
|
5215
5308
|
init_src2();
|
|
5216
5309
|
init_errors2();
|
|
5217
5310
|
init_definition();
|
|
5218
|
-
|
|
5311
|
+
_DefaultValuesDecorator = class _DefaultValuesDecorator extends Service {
|
|
5219
5312
|
/**
|
|
5220
5313
|
* Decorate.
|
|
5221
5314
|
*
|
|
@@ -5228,7 +5321,7 @@ var init_default_values_decorator = __esm({
|
|
|
5228
5321
|
adapter
|
|
5229
5322
|
);
|
|
5230
5323
|
const utils = adapter.getService(ModelDefinitionUtils);
|
|
5231
|
-
const setDefaults = (...args) => utils.setDefaultValuesToEmptyProperties(...args);
|
|
5324
|
+
const setDefaults = /* @__PURE__ */ __name((...args) => utils.setDefaultValuesToEmptyProperties(...args), "setDefaults");
|
|
5232
5325
|
const create = adapter.create;
|
|
5233
5326
|
adapter.create = function(modelName, modelData, filter) {
|
|
5234
5327
|
modelData = setDefaults(modelName, modelData);
|
|
@@ -5266,11 +5359,13 @@ var init_default_values_decorator = __esm({
|
|
|
5266
5359
|
};
|
|
5267
5360
|
}
|
|
5268
5361
|
};
|
|
5362
|
+
__name(_DefaultValuesDecorator, "DefaultValuesDecorator");
|
|
5363
|
+
DefaultValuesDecorator = _DefaultValuesDecorator;
|
|
5269
5364
|
}
|
|
5270
5365
|
});
|
|
5271
5366
|
|
|
5272
5367
|
// src/adapter/decorator/data-sanitizing-decorator.js
|
|
5273
|
-
var DataSanitizingDecorator;
|
|
5368
|
+
var _DataSanitizingDecorator, DataSanitizingDecorator;
|
|
5274
5369
|
var init_data_sanitizing_decorator = __esm({
|
|
5275
5370
|
"src/adapter/decorator/data-sanitizing-decorator.js"() {
|
|
5276
5371
|
"use strict";
|
|
@@ -5278,7 +5373,7 @@ var init_data_sanitizing_decorator = __esm({
|
|
|
5278
5373
|
init_src2();
|
|
5279
5374
|
init_errors2();
|
|
5280
5375
|
init_definition();
|
|
5281
|
-
|
|
5376
|
+
_DataSanitizingDecorator = class _DataSanitizingDecorator extends Service {
|
|
5282
5377
|
/**
|
|
5283
5378
|
* Decorate.
|
|
5284
5379
|
*
|
|
@@ -5291,7 +5386,7 @@ var init_data_sanitizing_decorator = __esm({
|
|
|
5291
5386
|
adapter
|
|
5292
5387
|
);
|
|
5293
5388
|
const sanitizer = adapter.getService(ModelDataSanitizer);
|
|
5294
|
-
const sanitize = (...args) => sanitizer.sanitize(...args);
|
|
5389
|
+
const sanitize = /* @__PURE__ */ __name((...args) => sanitizer.sanitize(...args), "sanitize");
|
|
5295
5390
|
const create = adapter.create;
|
|
5296
5391
|
adapter.create = async function(modelName, modelData, filter) {
|
|
5297
5392
|
modelData = sanitize(modelName, modelData);
|
|
@@ -5319,11 +5414,13 @@ var init_data_sanitizing_decorator = __esm({
|
|
|
5319
5414
|
};
|
|
5320
5415
|
}
|
|
5321
5416
|
};
|
|
5417
|
+
__name(_DataSanitizingDecorator, "DataSanitizingDecorator");
|
|
5418
|
+
DataSanitizingDecorator = _DataSanitizingDecorator;
|
|
5322
5419
|
}
|
|
5323
5420
|
});
|
|
5324
5421
|
|
|
5325
5422
|
// src/adapter/decorator/data-validation-decorator.js
|
|
5326
|
-
var DataValidationDecorator;
|
|
5423
|
+
var _DataValidationDecorator, DataValidationDecorator;
|
|
5327
5424
|
var init_data_validation_decorator = __esm({
|
|
5328
5425
|
"src/adapter/decorator/data-validation-decorator.js"() {
|
|
5329
5426
|
"use strict";
|
|
@@ -5331,7 +5428,7 @@ var init_data_validation_decorator = __esm({
|
|
|
5331
5428
|
init_src2();
|
|
5332
5429
|
init_errors2();
|
|
5333
5430
|
init_definition();
|
|
5334
|
-
|
|
5431
|
+
_DataValidationDecorator = class _DataValidationDecorator extends Service {
|
|
5335
5432
|
/**
|
|
5336
5433
|
* Decorate.
|
|
5337
5434
|
*
|
|
@@ -5371,11 +5468,13 @@ var init_data_validation_decorator = __esm({
|
|
|
5371
5468
|
};
|
|
5372
5469
|
}
|
|
5373
5470
|
};
|
|
5471
|
+
__name(_DataValidationDecorator, "DataValidationDecorator");
|
|
5472
|
+
DataValidationDecorator = _DataValidationDecorator;
|
|
5374
5473
|
}
|
|
5375
5474
|
});
|
|
5376
5475
|
|
|
5377
5476
|
// src/adapter/decorator/fields-filtering-decorator.js
|
|
5378
|
-
var FieldsFilteringDecorator;
|
|
5477
|
+
var _FieldsFilteringDecorator, FieldsFilteringDecorator;
|
|
5379
5478
|
var init_fields_filtering_decorator = __esm({
|
|
5380
5479
|
"src/adapter/decorator/fields-filtering-decorator.js"() {
|
|
5381
5480
|
"use strict";
|
|
@@ -5383,7 +5482,7 @@ var init_fields_filtering_decorator = __esm({
|
|
|
5383
5482
|
init_src2();
|
|
5384
5483
|
init_filter();
|
|
5385
5484
|
init_errors2();
|
|
5386
|
-
|
|
5485
|
+
_FieldsFilteringDecorator = class _FieldsFilteringDecorator extends Service {
|
|
5387
5486
|
/**
|
|
5388
5487
|
* Decorate.
|
|
5389
5488
|
*
|
|
@@ -5396,7 +5495,7 @@ var init_fields_filtering_decorator = __esm({
|
|
|
5396
5495
|
adapter
|
|
5397
5496
|
);
|
|
5398
5497
|
const tool = adapter.getService(FieldsClauseTool);
|
|
5399
|
-
const selectFields = (...args) => tool.filter(...args);
|
|
5498
|
+
const selectFields = /* @__PURE__ */ __name((...args) => tool.filter(...args), "selectFields");
|
|
5400
5499
|
const create = adapter.create;
|
|
5401
5500
|
adapter.create = async function(modelName, modelData, filter) {
|
|
5402
5501
|
let result = await create.call(this, modelName, modelData, filter);
|
|
@@ -5452,11 +5551,13 @@ var init_fields_filtering_decorator = __esm({
|
|
|
5452
5551
|
};
|
|
5453
5552
|
}
|
|
5454
5553
|
};
|
|
5554
|
+
__name(_FieldsFilteringDecorator, "FieldsFilteringDecorator");
|
|
5555
|
+
FieldsFilteringDecorator = _FieldsFilteringDecorator;
|
|
5455
5556
|
}
|
|
5456
5557
|
});
|
|
5457
5558
|
|
|
5458
5559
|
// src/adapter/decorator/data-transformation-decorator.js
|
|
5459
|
-
var DataTransformationDecorator;
|
|
5560
|
+
var _DataTransformationDecorator, DataTransformationDecorator;
|
|
5460
5561
|
var init_data_transformation_decorator = __esm({
|
|
5461
5562
|
"src/adapter/decorator/data-transformation-decorator.js"() {
|
|
5462
5563
|
"use strict";
|
|
@@ -5464,7 +5565,7 @@ var init_data_transformation_decorator = __esm({
|
|
|
5464
5565
|
init_src2();
|
|
5465
5566
|
init_errors2();
|
|
5466
5567
|
init_definition();
|
|
5467
|
-
|
|
5568
|
+
_DataTransformationDecorator = class _DataTransformationDecorator extends Service {
|
|
5468
5569
|
/**
|
|
5469
5570
|
* Decorate.
|
|
5470
5571
|
*
|
|
@@ -5504,11 +5605,13 @@ var init_data_transformation_decorator = __esm({
|
|
|
5504
5605
|
};
|
|
5505
5606
|
}
|
|
5506
5607
|
};
|
|
5608
|
+
__name(_DataTransformationDecorator, "DataTransformationDecorator");
|
|
5609
|
+
DataTransformationDecorator = _DataTransformationDecorator;
|
|
5507
5610
|
}
|
|
5508
5611
|
});
|
|
5509
5612
|
|
|
5510
5613
|
// src/adapter/decorator/property-uniqueness-decorator.js
|
|
5511
|
-
var PropertyUniquenessDecorator;
|
|
5614
|
+
var _PropertyUniquenessDecorator, PropertyUniquenessDecorator;
|
|
5512
5615
|
var init_property_uniqueness_decorator = __esm({
|
|
5513
5616
|
"src/adapter/decorator/property-uniqueness-decorator.js"() {
|
|
5514
5617
|
"use strict";
|
|
@@ -5516,7 +5619,7 @@ var init_property_uniqueness_decorator = __esm({
|
|
|
5516
5619
|
init_src2();
|
|
5517
5620
|
init_errors2();
|
|
5518
5621
|
init_definition();
|
|
5519
|
-
|
|
5622
|
+
_PropertyUniquenessDecorator = class _PropertyUniquenessDecorator extends Service {
|
|
5520
5623
|
/**
|
|
5521
5624
|
* Decorate.
|
|
5522
5625
|
*
|
|
@@ -5578,6 +5681,8 @@ var init_property_uniqueness_decorator = __esm({
|
|
|
5578
5681
|
};
|
|
5579
5682
|
}
|
|
5580
5683
|
};
|
|
5684
|
+
__name(_PropertyUniquenessDecorator, "PropertyUniquenessDecorator");
|
|
5685
|
+
PropertyUniquenessDecorator = _PropertyUniquenessDecorator;
|
|
5581
5686
|
}
|
|
5582
5687
|
});
|
|
5583
5688
|
|
|
@@ -5596,7 +5701,7 @@ var init_decorator = __esm({
|
|
|
5596
5701
|
});
|
|
5597
5702
|
|
|
5598
5703
|
// src/adapter/adapter.js
|
|
5599
|
-
var Adapter;
|
|
5704
|
+
var _Adapter, Adapter;
|
|
5600
5705
|
var init_adapter = __esm({
|
|
5601
5706
|
"src/adapter/adapter.js"() {
|
|
5602
5707
|
"use strict";
|
|
@@ -5609,15 +5714,7 @@ var init_adapter = __esm({
|
|
|
5609
5714
|
init_decorator();
|
|
5610
5715
|
init_decorator();
|
|
5611
5716
|
init_decorator();
|
|
5612
|
-
|
|
5613
|
-
/**
|
|
5614
|
-
* Kind.
|
|
5615
|
-
*
|
|
5616
|
-
* @type {string}
|
|
5617
|
-
*/
|
|
5618
|
-
get kind() {
|
|
5619
|
-
return _Adapter.name;
|
|
5620
|
-
}
|
|
5717
|
+
_Adapter = class _Adapter extends Service {
|
|
5621
5718
|
/**
|
|
5622
5719
|
* Settings.
|
|
5623
5720
|
*
|
|
@@ -5803,6 +5900,14 @@ var init_adapter = __esm({
|
|
|
5803
5900
|
);
|
|
5804
5901
|
}
|
|
5805
5902
|
};
|
|
5903
|
+
__name(_Adapter, "Adapter");
|
|
5904
|
+
/**
|
|
5905
|
+
* Kind.
|
|
5906
|
+
*
|
|
5907
|
+
* @type {string}
|
|
5908
|
+
*/
|
|
5909
|
+
__publicField(_Adapter, "kind", "Adapter");
|
|
5910
|
+
Adapter = _Adapter;
|
|
5806
5911
|
}
|
|
5807
5912
|
});
|
|
5808
5913
|
|
|
@@ -5811,7 +5916,7 @@ var memory_adapter_exports = {};
|
|
|
5811
5916
|
__export(memory_adapter_exports, {
|
|
5812
5917
|
MemoryAdapter: () => MemoryAdapter
|
|
5813
5918
|
});
|
|
5814
|
-
var MemoryAdapter;
|
|
5919
|
+
var _MemoryAdapter, MemoryAdapter;
|
|
5815
5920
|
var init_memory_adapter = __esm({
|
|
5816
5921
|
"src/adapter/builtin/memory-adapter.js"() {
|
|
5817
5922
|
"use strict";
|
|
@@ -5824,7 +5929,7 @@ var init_memory_adapter = __esm({
|
|
|
5824
5929
|
init_filter();
|
|
5825
5930
|
init_errors2();
|
|
5826
5931
|
init_definition();
|
|
5827
|
-
|
|
5932
|
+
_MemoryAdapter = class _MemoryAdapter extends Adapter {
|
|
5828
5933
|
/**
|
|
5829
5934
|
* Tables.
|
|
5830
5935
|
*
|
|
@@ -6183,6 +6288,8 @@ var init_memory_adapter = __esm({
|
|
|
6183
6288
|
return modelItems.length;
|
|
6184
6289
|
}
|
|
6185
6290
|
};
|
|
6291
|
+
__name(_MemoryAdapter, "MemoryAdapter");
|
|
6292
|
+
MemoryAdapter = _MemoryAdapter;
|
|
6186
6293
|
}
|
|
6187
6294
|
});
|
|
6188
6295
|
|
|
@@ -6202,14 +6309,14 @@ function findAdapterCtorInModule(module2) {
|
|
|
6202
6309
|
if (!module2 || typeof module2 !== "object" || Array.isArray(module2)) return;
|
|
6203
6310
|
for (const ctor of Object.values(module2)) {
|
|
6204
6311
|
console.log(ctor);
|
|
6205
|
-
if (typeof ctor === "function" && ctor.
|
|
6312
|
+
if (typeof ctor === "function" && ctor.kind === Adapter.name) {
|
|
6206
6313
|
adapterCtor = ctor;
|
|
6207
6314
|
break;
|
|
6208
6315
|
}
|
|
6209
6316
|
}
|
|
6210
6317
|
return adapterCtor;
|
|
6211
6318
|
}
|
|
6212
|
-
var AdapterLoader;
|
|
6319
|
+
var _AdapterLoader, AdapterLoader;
|
|
6213
6320
|
var init_adapter_loader = __esm({
|
|
6214
6321
|
"src/adapter/adapter-loader.js"() {
|
|
6215
6322
|
"use strict";
|
|
@@ -6217,7 +6324,7 @@ var init_adapter_loader = __esm({
|
|
|
6217
6324
|
init_src2();
|
|
6218
6325
|
init_errors2();
|
|
6219
6326
|
init_();
|
|
6220
|
-
|
|
6327
|
+
_AdapterLoader = class _AdapterLoader extends Service {
|
|
6221
6328
|
/**
|
|
6222
6329
|
* Load by name.
|
|
6223
6330
|
*
|
|
@@ -6251,11 +6358,14 @@ var init_adapter_loader = __esm({
|
|
|
6251
6358
|
return new adapterCtor(this.container, settings);
|
|
6252
6359
|
}
|
|
6253
6360
|
};
|
|
6361
|
+
__name(_AdapterLoader, "AdapterLoader");
|
|
6362
|
+
AdapterLoader = _AdapterLoader;
|
|
6363
|
+
__name(findAdapterCtorInModule, "findAdapterCtorInModule");
|
|
6254
6364
|
}
|
|
6255
6365
|
});
|
|
6256
6366
|
|
|
6257
6367
|
// src/adapter/adapter-registry.js
|
|
6258
|
-
var AdapterRegistry;
|
|
6368
|
+
var _AdapterRegistry, AdapterRegistry;
|
|
6259
6369
|
var init_adapter_registry = __esm({
|
|
6260
6370
|
"src/adapter/adapter-registry.js"() {
|
|
6261
6371
|
"use strict";
|
|
@@ -6263,7 +6373,7 @@ var init_adapter_registry = __esm({
|
|
|
6263
6373
|
init_src2();
|
|
6264
6374
|
init_adapter_loader();
|
|
6265
6375
|
init_definition();
|
|
6266
|
-
|
|
6376
|
+
_AdapterRegistry = class _AdapterRegistry extends Service {
|
|
6267
6377
|
/**
|
|
6268
6378
|
* Adapters.
|
|
6269
6379
|
*
|
|
@@ -6289,6 +6399,8 @@ var init_adapter_registry = __esm({
|
|
|
6289
6399
|
return adapter;
|
|
6290
6400
|
}
|
|
6291
6401
|
};
|
|
6402
|
+
__name(_AdapterRegistry, "AdapterRegistry");
|
|
6403
|
+
AdapterRegistry = _AdapterRegistry;
|
|
6292
6404
|
}
|
|
6293
6405
|
});
|
|
6294
6406
|
|
|
@@ -6303,7 +6415,7 @@ var init_adapter2 = __esm({
|
|
|
6303
6415
|
});
|
|
6304
6416
|
|
|
6305
6417
|
// src/repository/repository.js
|
|
6306
|
-
var Repository;
|
|
6418
|
+
var _Repository, Repository;
|
|
6307
6419
|
var init_repository = __esm({
|
|
6308
6420
|
"src/repository/repository.js"() {
|
|
6309
6421
|
"use strict";
|
|
@@ -6312,7 +6424,7 @@ var init_repository = __esm({
|
|
|
6312
6424
|
init_adapter2();
|
|
6313
6425
|
init_errors2();
|
|
6314
6426
|
init_definition();
|
|
6315
|
-
|
|
6427
|
+
_Repository = class _Repository extends Service {
|
|
6316
6428
|
/**
|
|
6317
6429
|
* Model name.
|
|
6318
6430
|
*
|
|
@@ -6500,18 +6612,20 @@ var init_repository = __esm({
|
|
|
6500
6612
|
return adapter.count(this.modelName, where);
|
|
6501
6613
|
}
|
|
6502
6614
|
};
|
|
6615
|
+
__name(_Repository, "Repository");
|
|
6616
|
+
Repository = _Repository;
|
|
6503
6617
|
}
|
|
6504
6618
|
});
|
|
6505
6619
|
|
|
6506
6620
|
// src/repository/repository-registry.js
|
|
6507
|
-
var RepositoryRegistry;
|
|
6621
|
+
var _RepositoryRegistry, RepositoryRegistry;
|
|
6508
6622
|
var init_repository_registry = __esm({
|
|
6509
6623
|
"src/repository/repository-registry.js"() {
|
|
6510
6624
|
"use strict";
|
|
6511
6625
|
init_src2();
|
|
6512
6626
|
init_repository();
|
|
6513
6627
|
init_errors2();
|
|
6514
|
-
|
|
6628
|
+
_RepositoryRegistry = class _RepositoryRegistry extends Service {
|
|
6515
6629
|
/**
|
|
6516
6630
|
* Repositories.
|
|
6517
6631
|
*
|
|
@@ -6553,6 +6667,8 @@ var init_repository_registry = __esm({
|
|
|
6553
6667
|
return repository;
|
|
6554
6668
|
}
|
|
6555
6669
|
};
|
|
6670
|
+
__name(_RepositoryRegistry, "RepositoryRegistry");
|
|
6671
|
+
RepositoryRegistry = _RepositoryRegistry;
|
|
6556
6672
|
}
|
|
6557
6673
|
});
|
|
6558
6674
|
|
|
@@ -6628,7 +6744,7 @@ init_src2();
|
|
|
6628
6744
|
init_repository2();
|
|
6629
6745
|
init_definition();
|
|
6630
6746
|
init_repository2();
|
|
6631
|
-
var
|
|
6747
|
+
var _Schema = class _Schema extends Service {
|
|
6632
6748
|
/**
|
|
6633
6749
|
* Define datasource.
|
|
6634
6750
|
*
|
|
@@ -6659,6 +6775,8 @@ var Schema = class extends Service {
|
|
|
6659
6775
|
return this.getService(RepositoryRegistry).getRepository(modelName);
|
|
6660
6776
|
}
|
|
6661
6777
|
};
|
|
6778
|
+
__name(_Schema, "Schema");
|
|
6779
|
+
var Schema = _Schema;
|
|
6662
6780
|
|
|
6663
6781
|
// src/index.js
|
|
6664
6782
|
init_utils2();
|