@lukiteam/churos-be-general 0.0.1 → 0.0.3
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 +2 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/postgresql/entity/face-identites.entity.d.ts +12 -0
- package/dist/postgresql/entity/face-identites.entity.js +75 -0
- package/dist/postgresql/entity/face-identites.entity.js.map +1 -0
- package/dist/postgresql/index.d.ts +2 -1
- package/dist/postgresql/index.js +3 -1
- package/dist/postgresql/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './models/dto/notification-data.dto';
|
|
|
14
14
|
export * from './models/dto/notification-revoke.dto';
|
|
15
15
|
export * from './constants/param-key';
|
|
16
16
|
export * from './constants/rabbitmq';
|
|
17
|
+
export * from './constants/redis-key';
|
|
17
18
|
export * from './i18n/mobile.paths';
|
|
18
19
|
export * from './i18n/admin.paths';
|
|
19
20
|
export * from './i18n/notification.paths';
|
|
@@ -30,6 +31,7 @@ export { default as Purchase } from './postgresql/entity/purchase.entity';
|
|
|
30
31
|
export { default as SystemLogs } from './postgresql/entity/system-logs.entity';
|
|
31
32
|
export { default as SystemSettings } from './postgresql/entity/system-settings.entity';
|
|
32
33
|
export { default as MemberSubscription } from './postgresql/entity/member-subscription.entity';
|
|
34
|
+
export { default as FaceIdentities } from './postgresql/entity/face-identites.entity';
|
|
33
35
|
export { Contents, ContentsSchema, } from './mongo/schema/notification/contents.entity';
|
|
34
36
|
export type { ContentsDocument } from './mongo/schema/notification/contents.entity';
|
|
35
37
|
export { DefinedTexts, DefinedTextsSchema, } from './mongo/schema/notification/defined-texts.entity';
|
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.ForbiddenWordRecordSchema = exports.ForbiddenWordRecord = exports.ForbiddenWordSchema = exports.ForbiddenWord = exports.MemberNotificationSchema = exports.MemberNotification = exports.MemberViewSchema = exports.MemberView = exports.MemberCacheSchema = exports.MemberCache = exports.MemberSchema = exports.Members = exports.SystemLogSchema = exports.SystemLog = exports.SpendLogSchema = exports.SpendLog = exports.RolesSchema = exports.Roles = exports.RolesRightsSchema = exports.RolesRights = exports.RightsSchema = exports.Rights = exports.NotificationSchema = exports.Notifications = exports.MemberRolesSchema = exports.MemberRoles = exports.MemberConfigSchema = exports.MemberConfigs = exports.DefinedTextsSchema = exports.DefinedTexts = exports.ContentsSchema = exports.Contents = exports.MemberSubscription = exports.SystemSettings = exports.SystemLogs = exports.Purchase = exports.ProductPurchase = exports.Message = exports.Member = exports.MemberLiked = exports.MemberConnections = exports.MemberConfig = exports.MemberBlocked = exports.FeedbackAndComplaint = exports.BlockedPhone = exports.MONGO_SCHEMAS = exports.POSTGRES_ENTITIES = void 0;
|
|
20
|
+
exports.ForbiddenWordRecordSchema = exports.ForbiddenWordRecord = exports.ForbiddenWordSchema = exports.ForbiddenWord = exports.MemberNotificationSchema = exports.MemberNotification = exports.MemberViewSchema = exports.MemberView = exports.MemberCacheSchema = exports.MemberCache = exports.MemberSchema = exports.Members = exports.SystemLogSchema = exports.SystemLog = exports.SpendLogSchema = exports.SpendLog = exports.RolesSchema = exports.Roles = exports.RolesRightsSchema = exports.RolesRights = exports.RightsSchema = exports.Rights = exports.NotificationSchema = exports.Notifications = exports.MemberRolesSchema = exports.MemberRoles = exports.MemberConfigSchema = exports.MemberConfigs = exports.DefinedTextsSchema = exports.DefinedTexts = exports.ContentsSchema = exports.Contents = exports.FaceIdentities = exports.MemberSubscription = exports.SystemSettings = exports.SystemLogs = exports.Purchase = exports.ProductPurchase = exports.Message = exports.Member = exports.MemberLiked = exports.MemberConnections = exports.MemberConfig = exports.MemberBlocked = exports.FeedbackAndComplaint = exports.BlockedPhone = exports.MONGO_SCHEMAS = exports.POSTGRES_ENTITIES = void 0;
|
|
21
21
|
const index_1 = require("./postgresql/index");
|
|
22
22
|
Object.defineProperty(exports, "POSTGRES_ENTITIES", { enumerable: true, get: function () { return index_1.POSTGRES_ENTITIES; } });
|
|
23
23
|
const index_2 = require("./mongo/index");
|
|
@@ -34,6 +34,7 @@ __exportStar(require("./models/dto/notification-data.dto"), exports);
|
|
|
34
34
|
__exportStar(require("./models/dto/notification-revoke.dto"), exports);
|
|
35
35
|
__exportStar(require("./constants/param-key"), exports);
|
|
36
36
|
__exportStar(require("./constants/rabbitmq"), exports);
|
|
37
|
+
__exportStar(require("./constants/redis-key"), exports);
|
|
37
38
|
__exportStar(require("./i18n/mobile.paths"), exports);
|
|
38
39
|
__exportStar(require("./i18n/admin.paths"), exports);
|
|
39
40
|
__exportStar(require("./i18n/notification.paths"), exports);
|
|
@@ -63,6 +64,8 @@ var system_settings_entity_1 = require("./postgresql/entity/system-settings.enti
|
|
|
63
64
|
Object.defineProperty(exports, "SystemSettings", { enumerable: true, get: function () { return __importDefault(system_settings_entity_1).default; } });
|
|
64
65
|
var member_subscription_entity_1 = require("./postgresql/entity/member-subscription.entity");
|
|
65
66
|
Object.defineProperty(exports, "MemberSubscription", { enumerable: true, get: function () { return __importDefault(member_subscription_entity_1).default; } });
|
|
67
|
+
var face_identites_entity_1 = require("./postgresql/entity/face-identites.entity");
|
|
68
|
+
Object.defineProperty(exports, "FaceIdentities", { enumerable: true, get: function () { return __importDefault(face_identites_entity_1).default; } });
|
|
66
69
|
var contents_entity_1 = require("./mongo/schema/notification/contents.entity");
|
|
67
70
|
Object.defineProperty(exports, "Contents", { enumerable: true, get: function () { return contents_entity_1.Contents; } });
|
|
68
71
|
Object.defineProperty(exports, "ContentsSchema", { enumerable: true, get: function () { return contents_entity_1.ContentsSchema; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8CAAuD;AAG9C,kGAHA,yBAAiB,OAGA;AAF1B,yCAA8C;AAGrC,8FAHA,qBAAa,OAGA;AAEtB,4EAA0D;AAC1D,8EAA4D;AAC5D,uEAAqD;AACrD,0EAAwD;AACxD,2EAAyD;AAEzD,gDAA8B;AAE9B,uEAAqD;AACrD,mEAAiD;AACjD,qEAAmD;AACnD,uEAAqD;AAGrD,wDAAsC;AACtC,uDAAqC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8CAAuD;AAG9C,kGAHA,yBAAiB,OAGA;AAF1B,yCAA8C;AAGrC,8FAHA,qBAAa,OAGA;AAEtB,4EAA0D;AAC1D,8EAA4D;AAC5D,uEAAqD;AACrD,0EAAwD;AACxD,2EAAyD;AAEzD,gDAA8B;AAE9B,uEAAqD;AACrD,mEAAiD;AACjD,qEAAmD;AACnD,uEAAqD;AAGrD,wDAAsC;AACtC,uDAAqC;AACrC,wDAAsC;AAEtC,sDAAoC;AACpC,qDAAmC;AACnC,4DAA0C;AAE1C,iFAAmF;AAA1E,qIAAA,OAAO,OAAgB;AAChC,mGAAoG;AAA3F,sJAAA,OAAO,OAAwB;AACxC,mFAAqF;AAA5E,uIAAA,OAAO,OAAiB;AACjC,iFAAmF;AAA1E,qIAAA,OAAO,OAAgB;AAChC,2FAA6F;AAApF,+IAAA,OAAO,OAAqB;AACrC,+EAAiF;AAAxE,mIAAA,OAAO,OAAe;AAC/B,mEAAsE;AAA7D,wHAAA,OAAO,OAAU;AAC1B,qEAAwE;AAA/D,0HAAA,OAAO,OAAW;AAC3B,uFAAyF;AAAhF,2IAAA,OAAO,OAAmB;AACnC,uEAA0E;AAAjE,4HAAA,OAAO,OAAY;AAC5B,6EAA+E;AAAtE,iIAAA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}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { EnumStatus } from '../../models/enum';
|
|
3
|
+
declare class FaceIdentities extends Model {
|
|
4
|
+
id: number;
|
|
5
|
+
unique_id: string;
|
|
6
|
+
phash: string;
|
|
7
|
+
embedding: number[];
|
|
8
|
+
similarity: number;
|
|
9
|
+
risk_level: string;
|
|
10
|
+
status: EnumStatus;
|
|
11
|
+
}
|
|
12
|
+
export default FaceIdentities;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const enum_1 = require("../../models/enum");
|
|
14
|
+
let FaceIdentities = class FaceIdentities extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
sequelize_typescript_1.PrimaryKey,
|
|
18
|
+
sequelize_typescript_1.AutoIncrement,
|
|
19
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.BIGINT),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], FaceIdentities.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, sequelize_typescript_1.Index)({ unique: true }),
|
|
24
|
+
(0, sequelize_typescript_1.Column)({
|
|
25
|
+
type: sequelize_typescript_1.DataType.STRING(100),
|
|
26
|
+
allowNull: false
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], FaceIdentities.prototype, "unique_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
sequelize_typescript_1.Index,
|
|
32
|
+
(0, sequelize_typescript_1.Column)({
|
|
33
|
+
type: sequelize_typescript_1.DataType.BIGINT,
|
|
34
|
+
allowNull: false
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], FaceIdentities.prototype, "phash", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, sequelize_typescript_1.Column)({
|
|
40
|
+
type: 'VECTOR(512)',
|
|
41
|
+
allowNull: false
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], FaceIdentities.prototype, "embedding", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, sequelize_typescript_1.Column)({
|
|
47
|
+
type: sequelize_typescript_1.DataType.FLOAT,
|
|
48
|
+
allowNull: true
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], FaceIdentities.prototype, "similarity", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, sequelize_typescript_1.Column)({
|
|
54
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
|
55
|
+
allowNull: true
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], FaceIdentities.prototype, "risk_level", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, sequelize_typescript_1.Column)({
|
|
61
|
+
type: sequelize_typescript_1.DataType.ENUM('A', 'P', 'W'),
|
|
62
|
+
allowNull: false,
|
|
63
|
+
defaultValue: enum_1.EnumStatus.P
|
|
64
|
+
}),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], FaceIdentities.prototype, "status", void 0);
|
|
67
|
+
FaceIdentities = __decorate([
|
|
68
|
+
(0, sequelize_typescript_1.Table)({
|
|
69
|
+
timestamps: true,
|
|
70
|
+
freezeTableName: true,
|
|
71
|
+
tableName: 'FaceIdentities',
|
|
72
|
+
})
|
|
73
|
+
], FaceIdentities);
|
|
74
|
+
exports.default = FaceIdentities;
|
|
75
|
+
//# sourceMappingURL=face-identites.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"face-identites.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/face-identites.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAwG;AACxG,4CAA+C;AAO/C,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CA6CjC,CAAA;AA3CG;IAAC,iCAAU;IACV,oCAAa;IACb,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;0CACZ;AAEZ;IAAC,IAAA,4BAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;QAC1B,SAAS,EAAE,KAAK;KACnB,CAAC;;iDACiB;AAEnB;IAAC,4BAAK;IACL,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACnB,CAAC;;6CACa;AAEf;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,KAAK;KACnB,CAAC;;iDACmB;AAErB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,KAAK;QACpB,SAAS,EAAE,IAAI;KAClB,CAAC;;kDACkB;AAEpB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,SAAS,EAAE,IAAI;KAClB,CAAC;;kDACkB;AAEpB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;QAClC,SAAS,EAAE,KAAK;QAChB,YAAY,EAAE,iBAAU,CAAC,CAAC;KAC7B,CAAC;;8CACkB;AA5ClB,cAAc;IALnB,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,gBAAgB;KAC9B,CAAC;GACI,cAAc,CA6CnB;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -11,7 +11,8 @@ import Purchase from "./entity/purchase.entity";
|
|
|
11
11
|
import SystemLogs from "./entity/system-logs.entity";
|
|
12
12
|
import SystemSettings from "./entity/system-settings.entity";
|
|
13
13
|
import MemberSubscription from "./entity/member-subscription.entity";
|
|
14
|
-
|
|
14
|
+
import FaceIdentities from "./entity/face-identites.entity";
|
|
15
|
+
export declare const POSTGRES_ENTITIES: (typeof FaceIdentities | typeof BlockedPhone | typeof FeedbackAndComplaint | typeof MemberBlocked | typeof MemberConfig | typeof MemberConnections | typeof MemberLiked | typeof Member | typeof Message | typeof ProductPurchase | typeof Purchase | typeof SystemLogs | typeof SystemSettings | {
|
|
15
16
|
new (title: string, options?: NotificationOptions): Notification;
|
|
16
17
|
prototype: Notification;
|
|
17
18
|
readonly permission: NotificationPermission;
|
package/dist/postgresql/index.js
CHANGED
|
@@ -17,6 +17,7 @@ const purchase_entity_1 = __importDefault(require("./entity/purchase.entity"));
|
|
|
17
17
|
const system_logs_entity_1 = __importDefault(require("./entity/system-logs.entity"));
|
|
18
18
|
const system_settings_entity_1 = __importDefault(require("./entity/system-settings.entity"));
|
|
19
19
|
const member_subscription_entity_1 = __importDefault(require("./entity/member-subscription.entity"));
|
|
20
|
+
const face_identites_entity_1 = __importDefault(require("./entity/face-identites.entity"));
|
|
20
21
|
exports.POSTGRES_ENTITIES = [
|
|
21
22
|
blocked_phone_entity_1.default,
|
|
22
23
|
feedback_and_complaint_entity_1.default,
|
|
@@ -31,6 +32,7 @@ exports.POSTGRES_ENTITIES = [
|
|
|
31
32
|
system_logs_entity_1.default,
|
|
32
33
|
system_settings_entity_1.default,
|
|
33
34
|
Notification,
|
|
34
|
-
member_subscription_entity_1.default
|
|
35
|
+
member_subscription_entity_1.default,
|
|
36
|
+
face_identites_entity_1.default
|
|
35
37
|
];
|
|
36
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/postgresql/index.ts"],"names":[],"mappings":";;;;;;AAAA,yFAAyD;AACzD,2GAA0E;AAC1E,2FAA2D;AAC3D,yFAAyD;AACzD,mGAAmE;AACnE,uFAAuD;AACvD,2EAA4C;AAC5C,6EAA8C;AAC9C,+FAA+D;AAC/D,+EAAgD;AAChD,qFAAqD;AACrD,6FAA6D;AAC7D,qGAAqE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/postgresql/index.ts"],"names":[],"mappings":";;;;;;AAAA,yFAAyD;AACzD,2GAA0E;AAC1E,2FAA2D;AAC3D,yFAAyD;AACzD,mGAAmE;AACnE,uFAAuD;AACvD,2EAA4C;AAC5C,6EAA8C;AAC9C,+FAA+D;AAC/D,+EAAgD;AAChD,qFAAqD;AACrD,6FAA6D;AAC7D,qGAAqE;AACrE,2FAA4D;AAE/C,QAAA,iBAAiB,GAAG;IAC/B,8BAAY;IACZ,uCAAoB;IACpB,+BAAa;IACb,8BAAY;IACZ,mCAAiB;IACjB,6BAAW;IACX,uBAAM;IACN,wBAAO;IACP,iCAAe;IACf,yBAAQ;IACR,4BAAU;IACV,gCAAc;IACd,YAAY;IACZ,oCAAkB;IAClB,+BAAc;CACf,CAAC"}
|