@autofleet/sadot 0.5.5-beta.21 → 0.5.5-beta.23
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/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/utils/helpers/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/utils/helpers/index.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { CustomFieldOptions, ModelFetcher } from './types';
|
|
|
4
4
|
export * from './utils/validations/custom-fields';
|
|
5
5
|
export * from './utils/constants';
|
|
6
6
|
export * from './utils/helpers';
|
|
7
|
+
export { CustomFieldDefinitionType } from './utils/validations/type';
|
|
7
8
|
/**
|
|
8
9
|
* Adding custom fields enrichment to the models inside the MODELS_FILE_NAME json file
|
|
9
10
|
* @see {@link 'custom-fields/config'} for configurations
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.disableCustomFields = void 0;
|
|
20
|
+
exports.disableCustomFields = exports.CustomFieldDefinitionType = void 0;
|
|
21
21
|
const models_1 = require("./models");
|
|
22
22
|
const api_1 = __importDefault(require("./api"));
|
|
23
23
|
const db_1 = __importDefault(require("./utils/db"));
|
|
@@ -26,6 +26,8 @@ const init_1 = require("./utils/init");
|
|
|
26
26
|
__exportStar(require("./utils/validations/custom-fields"), exports);
|
|
27
27
|
__exportStar(require("./utils/constants"), exports);
|
|
28
28
|
__exportStar(require("./utils/helpers"), exports);
|
|
29
|
+
var type_1 = require("./utils/validations/type");
|
|
30
|
+
Object.defineProperty(exports, "CustomFieldDefinitionType", { enumerable: true, get: function () { return type_1.CustomFieldDefinitionType; } });
|
|
29
31
|
/**
|
|
30
32
|
* Adding custom fields enrichment to the models inside the MODELS_FILE_NAME json file
|
|
31
33
|
* @see {@link 'custom-fields/config'} for configurations
|
|
@@ -14,7 +14,7 @@ const generateCustomFieldSearchQueryPayload = (searchTerm, model, entityId, excl
|
|
|
14
14
|
+ ` ON cd.entity_id = '${entityId}'`
|
|
15
15
|
+ ' AND cv.custom_field_definition_id = cd.id'
|
|
16
16
|
+ ` AND cd.model_type = '${model.name}'`
|
|
17
|
-
+ ` AND cd.field_type NOT IN (${
|
|
17
|
+
+ ` AND cd.field_type NOT IN (${excludedTypesString})`
|
|
18
18
|
+ ' WHERE'
|
|
19
19
|
+ ' "cv"."deleted_at" IS NULL'
|
|
20
20
|
+ ` AND "cv"."model_id" = "${model.name}"."id"`
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -14,6 +14,8 @@ export * from './utils/validations/custom-fields';
|
|
|
14
14
|
export * from './utils/constants';
|
|
15
15
|
|
|
16
16
|
export * from './utils/helpers';
|
|
17
|
+
|
|
18
|
+
export { CustomFieldDefinitionType } from './utils/validations/type';
|
|
17
19
|
/**
|
|
18
20
|
* Adding custom fields enrichment to the models inside the MODELS_FILE_NAME json file
|
|
19
21
|
* @see {@link 'custom-fields/config'} for configurations
|
|
@@ -38,7 +38,7 @@ export const generateCustomFieldSearchQueryPayload = (
|
|
|
38
38
|
+ ` ON cd.entity_id = '${entityId}'`
|
|
39
39
|
+ ' AND cv.custom_field_definition_id = cd.id'
|
|
40
40
|
+ ` AND cd.model_type = '${model.name}'`
|
|
41
|
-
+ ` AND cd.field_type NOT IN (${
|
|
41
|
+
+ ` AND cd.field_type NOT IN (${excludedTypesString})`
|
|
42
42
|
+ ' WHERE'
|
|
43
43
|
+ ' "cv"."deleted_at" IS NULL'
|
|
44
44
|
+ ` AND "cv"."model_id" = "${model.name}"."id"`
|