namirasoft-field-node 1.4.54 → 1.4.56
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/database/attributes/EntityCategoryAttributes.d.ts +3 -2
- package/dist/database/attributes/EntityCategoryAttributes.js +2 -2
- package/dist/database/attributes/EntityCategoryAttributes.js.map +1 -1
- package/dist/database/attributes/EntityFieldAttributes.d.ts +3 -2
- package/dist/database/attributes/EntityFieldAttributes.js +2 -2
- package/dist/database/attributes/EntityFieldAttributes.js.map +1 -1
- package/dist/database/attributes/EntityTagAttributes.d.ts +3 -2
- package/dist/database/attributes/EntityTagAttributes.js +2 -2
- package/dist/database/attributes/EntityTagAttributes.js.map +1 -1
- package/package.json +6 -6
- package/src/database/attributes/EntityCategoryAttributes.ts +5 -4
- package/src/database/attributes/EntityFieldAttributes.ts +5 -4
- package/src/database/attributes/EntityTagAttributes.ts +5 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { Attributes
|
|
1
|
+
import { Attributes } from "sequelize";
|
|
2
2
|
import { EntityCategoryModel } from "../model/EntityCategoryModel";
|
|
3
|
-
|
|
3
|
+
import { BaseSequelizeModelAttributes } from "namirasoft-node-mysql";
|
|
4
|
+
export declare function EntityCategoryAttributes(): BaseSequelizeModelAttributes<EntityCategoryModel, Attributes<EntityCategoryModel>>;
|
|
@@ -4,8 +4,8 @@ exports.EntityCategoryAttributes = EntityCategoryAttributes;
|
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
5
|
function EntityCategoryAttributes() {
|
|
6
6
|
return {
|
|
7
|
-
id: { type: sequelize_1.DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true },
|
|
8
|
-
user_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false },
|
|
7
|
+
id: { type: sequelize_1.DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true, read_only: true },
|
|
8
|
+
user_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false, read_only: true },
|
|
9
9
|
entity_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false },
|
|
10
10
|
category_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false }
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityCategoryAttributes.js","sourceRoot":"","sources":["../../../src/database/attributes/EntityCategoryAttributes.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"EntityCategoryAttributes.js","sourceRoot":"","sources":["../../../src/database/attributes/EntityCategoryAttributes.ts"],"names":[],"mappings":";;AAIA,4DAWC;AAfD,yCAAkD;AAIlD,SAAgB,wBAAwB;IAKvC,OAAO;QACN,EAAE,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE;QACzG,OAAO,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE;QACxE,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;QACzD,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;KAC3D,CAAC;AACH,CAAC;AAAA,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { Attributes
|
|
1
|
+
import { Attributes } from "sequelize";
|
|
2
2
|
import { EntityFieldModel } from "../model/EntityFieldModel";
|
|
3
|
-
|
|
3
|
+
import { BaseSequelizeModelAttributes } from "namirasoft-node-mysql";
|
|
4
|
+
export declare function EntityFieldAttributes(): BaseSequelizeModelAttributes<EntityFieldModel, Attributes<EntityFieldModel>>;
|
|
@@ -4,8 +4,8 @@ exports.EntityFieldAttributes = EntityFieldAttributes;
|
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
5
|
function EntityFieldAttributes() {
|
|
6
6
|
return {
|
|
7
|
-
id: { type: sequelize_1.DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true },
|
|
8
|
-
user_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false },
|
|
7
|
+
id: { type: sequelize_1.DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true, read_only: true },
|
|
8
|
+
user_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false, read_only: true },
|
|
9
9
|
entity_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false },
|
|
10
10
|
field_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false },
|
|
11
11
|
value: { type: sequelize_1.DataTypes.JSON, allowNull: true },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityFieldAttributes.js","sourceRoot":"","sources":["../../../src/database/attributes/EntityFieldAttributes.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"EntityFieldAttributes.js","sourceRoot":"","sources":["../../../src/database/attributes/EntityFieldAttributes.ts"],"names":[],"mappings":";;AAIA,sDAYC;AAhBD,yCAAkD;AAIlD,SAAgB,qBAAqB;IAKpC,OAAO;QACN,EAAE,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE;QACzG,OAAO,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE;QACxE,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;QACzD,QAAQ,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;QACxD,KAAK,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE;KAChD,CAAC;AACH,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { Attributes
|
|
1
|
+
import { Attributes } from "sequelize";
|
|
2
2
|
import { EntityTagModel } from "../model/EntityTagModel";
|
|
3
|
-
|
|
3
|
+
import { BaseSequelizeModelAttributes } from "namirasoft-node-mysql";
|
|
4
|
+
export declare function EntityTagAttributes(): BaseSequelizeModelAttributes<EntityTagModel, Attributes<EntityTagModel>>;
|
|
@@ -4,8 +4,8 @@ exports.EntityTagAttributes = EntityTagAttributes;
|
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
5
|
function EntityTagAttributes() {
|
|
6
6
|
return {
|
|
7
|
-
id: { type: sequelize_1.DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true },
|
|
8
|
-
user_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false },
|
|
7
|
+
id: { type: sequelize_1.DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true, read_only: true },
|
|
8
|
+
user_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false, read_only: true },
|
|
9
9
|
entity_id: { type: sequelize_1.DataTypes.CHAR(20), allowNull: false },
|
|
10
10
|
name: { type: sequelize_1.DataTypes.STRING, allowNull: false },
|
|
11
11
|
value: { type: sequelize_1.DataTypes.TEXT, allowNull: true }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityTagAttributes.js","sourceRoot":"","sources":["../../../src/database/attributes/EntityTagAttributes.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"EntityTagAttributes.js","sourceRoot":"","sources":["../../../src/database/attributes/EntityTagAttributes.ts"],"names":[],"mappings":";;AAIA,kDAYC;AAhBD,yCAAkD;AAIlD,SAAgB,mBAAmB;IAKlC,OAAO;QACN,EAAE,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE;QACzG,OAAO,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE;QACxE,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;QACzD,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE;QAClD,KAAK,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE;KAChD,CAAC;IAAA,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.56",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"build": ""
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"namirasoft-access": "^1.4.
|
|
21
|
-
"namirasoft-account-node": "^1.4.
|
|
22
|
-
"namirasoft-core": "^1.4.
|
|
20
|
+
"namirasoft-access": "^1.4.61",
|
|
21
|
+
"namirasoft-account-node": "^1.4.149",
|
|
22
|
+
"namirasoft-core": "^1.4.53",
|
|
23
23
|
"namirasoft-field": "^1.4.20",
|
|
24
|
-
"namirasoft-node": "^1.4.
|
|
25
|
-
"namirasoft-node-mysql": "^1.4.
|
|
24
|
+
"namirasoft-node": "^1.4.83",
|
|
25
|
+
"namirasoft-node-mysql": "^1.4.47",
|
|
26
26
|
"namirasoft-schema": "^1.4.25"
|
|
27
27
|
},
|
|
28
28
|
"bin": {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { DataTypes, Attributes
|
|
1
|
+
import { DataTypes, Attributes } from "sequelize";
|
|
2
2
|
import { EntityCategoryModel } from "../model/EntityCategoryModel";
|
|
3
|
+
import { BaseSequelizeModelAttributes } from "namirasoft-node-mysql";
|
|
3
4
|
|
|
4
|
-
export function EntityCategoryAttributes():
|
|
5
|
+
export function EntityCategoryAttributes(): BaseSequelizeModelAttributes<
|
|
5
6
|
EntityCategoryModel,
|
|
6
7
|
Attributes<EntityCategoryModel>
|
|
7
8
|
>
|
|
8
9
|
{
|
|
9
10
|
return {
|
|
10
|
-
id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true },
|
|
11
|
-
user_id: { type: DataTypes.CHAR(20), allowNull: false },
|
|
11
|
+
id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true, read_only: true },
|
|
12
|
+
user_id: { type: DataTypes.CHAR(20), allowNull: false, read_only: true },
|
|
12
13
|
entity_id: { type: DataTypes.CHAR(20), allowNull: false },
|
|
13
14
|
category_id: { type: DataTypes.CHAR(20), allowNull: false }
|
|
14
15
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { DataTypes, Attributes
|
|
1
|
+
import { DataTypes, Attributes } from "sequelize";
|
|
2
2
|
import { EntityFieldModel } from "../model/EntityFieldModel";
|
|
3
|
+
import { BaseSequelizeModelAttributes } from "namirasoft-node-mysql";
|
|
3
4
|
|
|
4
|
-
export function EntityFieldAttributes():
|
|
5
|
+
export function EntityFieldAttributes(): BaseSequelizeModelAttributes<
|
|
5
6
|
EntityFieldModel,
|
|
6
7
|
Attributes<EntityFieldModel>
|
|
7
8
|
>
|
|
8
9
|
{
|
|
9
10
|
return {
|
|
10
|
-
id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true },
|
|
11
|
-
user_id: { type: DataTypes.CHAR(20), allowNull: false },
|
|
11
|
+
id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true, read_only: true },
|
|
12
|
+
user_id: { type: DataTypes.CHAR(20), allowNull: false, read_only: true },
|
|
12
13
|
entity_id: { type: DataTypes.CHAR(20), allowNull: false },
|
|
13
14
|
field_id: { type: DataTypes.CHAR(20), allowNull: false },
|
|
14
15
|
value: { type: DataTypes.JSON, allowNull: true },
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { DataTypes, Attributes
|
|
1
|
+
import { DataTypes, Attributes } from "sequelize";
|
|
2
2
|
import { EntityTagModel } from "../model/EntityTagModel";
|
|
3
|
+
import { BaseSequelizeModelAttributes } from "namirasoft-node-mysql";
|
|
3
4
|
|
|
4
|
-
export function EntityTagAttributes():
|
|
5
|
+
export function EntityTagAttributes(): BaseSequelizeModelAttributes<
|
|
5
6
|
EntityTagModel,
|
|
6
7
|
Attributes<EntityTagModel>
|
|
7
8
|
>
|
|
8
9
|
{
|
|
9
10
|
return {
|
|
10
|
-
id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true },
|
|
11
|
-
user_id: { type: DataTypes.CHAR(20), allowNull: false },
|
|
11
|
+
id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true, read_only: true },
|
|
12
|
+
user_id: { type: DataTypes.CHAR(20), allowNull: false, read_only: true },
|
|
12
13
|
entity_id: { type: DataTypes.CHAR(20), allowNull: false },
|
|
13
14
|
name: { type: DataTypes.STRING, allowNull: false },
|
|
14
15
|
value: { type: DataTypes.TEXT, allowNull: true }
|