finamaze_schema 1.54.0 → 1.58.0
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/entity/onboarding-schema.entity.js +55 -0
- package/dist/entity/onboarding-schema.entity.js.map +1 -0
- package/dist/entity/onboarding_group.entity.js +63 -0
- package/dist/entity/onboarding_group.entity.js.map +1 -0
- package/dist/entity/onboarding_question.entity.js +67 -0
- package/dist/entity/onboarding_question.entity.js.map +1 -0
- package/dist/entity/onboarding_sessions.entity.js +64 -0
- package/dist/entity/onboarding_sessions.entity.js.map +1 -0
- package/dist/entity/onboarding_step.entity.js +65 -0
- package/dist/entity/onboarding_step.entity.js.map +1 -0
- package/dist/entity/onboarding_substep.entity.js +63 -0
- package/dist/entity/onboarding_substep.entity.js.map +1 -0
- package/dist/entity/onboarding_user-answer.entity.js +52 -0
- package/dist/entity/onboarding_user-answer.entity.js.map +1 -0
- package/dist/entity/user-substep-progress.entity.js +55 -0
- package/dist/entity/user-substep-progress.entity.js.map +1 -0
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/migrations/1752793116098-version9.js +46 -0
- package/dist/migrations/1752793116098-version9.js.map +1 -0
- package/dist/migrations/1753000000000-version10.js +1927 -0
- package/dist/migrations/1753000000000-version10.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/entity-structure.json +449 -0
- package/package.json +1 -1
@@ -0,0 +1,55 @@
|
|
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
|
+
exports.OnboardingSchema = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const onboarding_step_entity_1 = require("./onboarding_step.entity");
|
15
|
+
let OnboardingSchema = class OnboardingSchema {
|
16
|
+
};
|
17
|
+
exports.OnboardingSchema = OnboardingSchema;
|
18
|
+
__decorate([
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
20
|
+
__metadata("design:type", String)
|
21
|
+
], OnboardingSchema.prototype, "id", void 0);
|
22
|
+
__decorate([
|
23
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
24
|
+
__metadata("design:type", String)
|
25
|
+
], OnboardingSchema.prototype, "name", void 0);
|
26
|
+
__decorate([
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
|
28
|
+
__metadata("design:type", String)
|
29
|
+
], OnboardingSchema.prototype, "version", void 0);
|
30
|
+
__decorate([
|
31
|
+
(0, typeorm_1.Column)({ type: 'clob', nullable: true }),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], OnboardingSchema.prototype, "description", void 0);
|
34
|
+
__decorate([
|
35
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
36
|
+
__metadata("design:type", Number)
|
37
|
+
], OnboardingSchema.prototype, "total_steps", void 0);
|
38
|
+
__decorate([
|
39
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp' }),
|
40
|
+
__metadata("design:type", Date)
|
41
|
+
], OnboardingSchema.prototype, "created_at", void 0);
|
42
|
+
__decorate([
|
43
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp' }),
|
44
|
+
__metadata("design:type", Date)
|
45
|
+
], OnboardingSchema.prototype, "updated_at", void 0);
|
46
|
+
__decorate([
|
47
|
+
(0, typeorm_1.OneToMany)(() => onboarding_step_entity_1.Step, (step) => step.onboarding_schema, {
|
48
|
+
cascade: true,
|
49
|
+
}),
|
50
|
+
__metadata("design:type", Array)
|
51
|
+
], OnboardingSchema.prototype, "steps", void 0);
|
52
|
+
exports.OnboardingSchema = OnboardingSchema = __decorate([
|
53
|
+
(0, typeorm_1.Entity)('onboarding_schemas')
|
54
|
+
], OnboardingSchema);
|
55
|
+
//# sourceMappingURL=onboarding-schema.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"onboarding-schema.entity.js","sourceRoot":"","sources":["../../src/entity/onboarding-schema.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,qEAAgD;AAQzC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CA8D5B,CAAA;AA9DY,4CAAgB;AAM3B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACpB;AAOX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;8CAC5B;AAQb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;iDACxB;AAShB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACrB;AAQpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDAChB;AAQpB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;oDAAC;AAMjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;oDAAC;AAQjB;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE;QACvD,OAAO,EAAE,IAAI;KACd,CAAC;;+CACY;2BA5DH,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,gBAAgB,CA8D5B"}
|
@@ -0,0 +1,63 @@
|
|
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
|
+
exports.Group = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const onboarding_substep_entity_1 = require("./onboarding_substep.entity");
|
15
|
+
const onboarding_question_entity_1 = require("./onboarding_question.entity");
|
16
|
+
let Group = class Group {
|
17
|
+
};
|
18
|
+
exports.Group = Group;
|
19
|
+
__decorate([
|
20
|
+
(0, typeorm_1.PrimaryColumn)('varchar'),
|
21
|
+
__metadata("design:type", String)
|
22
|
+
], Group.prototype, "id", void 0);
|
23
|
+
__decorate([
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], Group.prototype, "title_en", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], Group.prototype, "title_ar", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
33
|
+
__metadata("design:type", Number)
|
34
|
+
], Group.prototype, "order", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, typeorm_1.Column)({ default: false }),
|
37
|
+
__metadata("design:type", Boolean)
|
38
|
+
], Group.prototype, "required", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, typeorm_1.Column)({ type: 'clob', nullable: true }),
|
41
|
+
__metadata("design:type", Object)
|
42
|
+
], Group.prototype, "metadata", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, typeorm_1.ManyToOne)(() => onboarding_substep_entity_1.Substep, (substep) => substep.groups),
|
45
|
+
(0, typeorm_1.JoinColumn)({ name: 'substep_id' }),
|
46
|
+
__metadata("design:type", onboarding_substep_entity_1.Substep)
|
47
|
+
], Group.prototype, "substep", void 0);
|
48
|
+
__decorate([
|
49
|
+
(0, typeorm_1.OneToMany)(() => onboarding_question_entity_1.Question, (question) => question.group),
|
50
|
+
__metadata("design:type", Array)
|
51
|
+
], Group.prototype, "questions", void 0);
|
52
|
+
__decorate([
|
53
|
+
(0, typeorm_1.CreateDateColumn)(),
|
54
|
+
__metadata("design:type", Date)
|
55
|
+
], Group.prototype, "created_at", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
58
|
+
__metadata("design:type", Date)
|
59
|
+
], Group.prototype, "updated_at", void 0);
|
60
|
+
exports.Group = Group = __decorate([
|
61
|
+
(0, typeorm_1.Entity)('onboarding_groups')
|
62
|
+
], Group);
|
63
|
+
//# sourceMappingURL=onboarding_group.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"onboarding_group.entity.js","sourceRoot":"","sources":["../../src/entity/onboarding_group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8H;AAC9H,2EAAsD;AACtD,6EAAwD;AAQjD,IAAM,KAAK,GAAX,MAAM,KAAK;CAqEjB,CAAA;AArEY,sBAAK;AAMhB;IADC,IAAA,uBAAa,EAAC,SAAS,CAAC;;iCACd;AAOX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;uCACxB;AAOjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACxC;AAOjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;oCACV;AAOd;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uCACT;AAOlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC3B;AAQd;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;IACrD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,mCAAO;sCAAC;AAOjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;;wCAClC;AAMtB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;yCAAC;AAMjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;yCAAC;gBApEN,KAAK;IADjB,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,KAAK,CAqEjB"}
|
@@ -0,0 +1,67 @@
|
|
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
|
+
exports.Question = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const onboarding_group_entity_1 = require("./onboarding_group.entity");
|
15
|
+
let Question = class Question {
|
16
|
+
};
|
17
|
+
exports.Question = Question;
|
18
|
+
__decorate([
|
19
|
+
(0, typeorm_1.PrimaryColumn)('varchar'),
|
20
|
+
__metadata("design:type", String)
|
21
|
+
], Question.prototype, "id", void 0);
|
22
|
+
__decorate([
|
23
|
+
(0, typeorm_1.ManyToOne)(() => onboarding_group_entity_1.Group, (group) => group.questions),
|
24
|
+
(0, typeorm_1.JoinColumn)({ name: 'group_id' }),
|
25
|
+
__metadata("design:type", onboarding_group_entity_1.Group)
|
26
|
+
], Question.prototype, "group", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, typeorm_1.Column)(),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], Question.prototype, "label_en", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, typeorm_1.Column)(),
|
33
|
+
__metadata("design:type", String)
|
34
|
+
], Question.prototype, "label_ar", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, typeorm_1.Column)({
|
37
|
+
type: 'varchar',
|
38
|
+
length: 50
|
39
|
+
}),
|
40
|
+
__metadata("design:type", String)
|
41
|
+
], Question.prototype, "type", void 0);
|
42
|
+
__decorate([
|
43
|
+
(0, typeorm_1.Column)({ type: 'clob', nullable: true }),
|
44
|
+
__metadata("design:type", Object)
|
45
|
+
], Question.prototype, "metadata", void 0);
|
46
|
+
__decorate([
|
47
|
+
(0, typeorm_1.Column)({ default: false }),
|
48
|
+
__metadata("design:type", Boolean)
|
49
|
+
], Question.prototype, "required", void 0);
|
50
|
+
__decorate([
|
51
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp' }),
|
52
|
+
__metadata("design:type", Date)
|
53
|
+
], Question.prototype, "created_at", void 0);
|
54
|
+
__decorate([
|
55
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp' }),
|
56
|
+
__metadata("design:type", Date)
|
57
|
+
], Question.prototype, "updated_at", void 0);
|
58
|
+
__decorate([
|
59
|
+
(0, typeorm_1.OneToMany)('UserAnswer', (answer) => answer.question, {
|
60
|
+
cascade: true,
|
61
|
+
}),
|
62
|
+
__metadata("design:type", Array)
|
63
|
+
], Question.prototype, "answers", void 0);
|
64
|
+
exports.Question = Question = __decorate([
|
65
|
+
(0, typeorm_1.Entity)('onboarding_questions')
|
66
|
+
], Question);
|
67
|
+
//# sourceMappingURL=onboarding_question.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"onboarding_question.entity.js","sourceRoot":"","sources":["../../src/entity/onboarding_question.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AACjB,uEAAkD;AAS3C,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAsGpB,CAAA;AAtGY,4BAAQ;AAMnB;IADC,IAAA,uBAAa,EAAC,SAAS,CAAC;;oCACd;AAQX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+BAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IAClD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BAC1B,+BAAK;uCAAC;AAOb;IADC,IAAA,gBAAM,GAAE;;0CACQ;AAOjB;IADC,IAAA,gBAAM,GAAE;;0CACQ;AA0BjB;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACX,CAAC;;sCACuL;AAoBzL;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC3B;AAOd;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0CACT;AAMlB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;4CAAC;AAMjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;4CAAC;AAQjB;IAHC,IAAA,mBAAS,EAAC,YAAY,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE;QACzD,OAAO,EAAE,IAAI;KACd,CAAC;;yCACa;mBArGJ,QAAQ;IADpB,IAAA,gBAAM,EAAC,sBAAsB,CAAC;GAClB,QAAQ,CAsGpB"}
|
@@ -0,0 +1,64 @@
|
|
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
|
+
exports.OnboardingSession = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let OnboardingSession = class OnboardingSession {
|
15
|
+
};
|
16
|
+
exports.OnboardingSession = OnboardingSession;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
19
|
+
__metadata("design:type", String)
|
20
|
+
], OnboardingSession.prototype, "id", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, unique: true }),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], OnboardingSession.prototype, "sessionId", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp' }),
|
27
|
+
__metadata("design:type", Date)
|
28
|
+
], OnboardingSession.prototype, "created_at", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, typeorm_1.Column)({ type: 'timestamp' }),
|
31
|
+
__metadata("design:type", Date)
|
32
|
+
], OnboardingSession.prototype, "expires_at", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, typeorm_1.Column)({
|
35
|
+
type: 'varchar',
|
36
|
+
length: 20,
|
37
|
+
default: 'active'
|
38
|
+
}),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], OnboardingSession.prototype, "status", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', default: 1 }),
|
43
|
+
__metadata("design:type", Number)
|
44
|
+
], OnboardingSession.prototype, "onboardingVersion", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp' }),
|
47
|
+
__metadata("design:type", Date)
|
48
|
+
], OnboardingSession.prototype, "updated_at", void 0);
|
49
|
+
__decorate([
|
50
|
+
(0, typeorm_1.OneToMany)('UserSubstepProgress', (progress) => progress.session, {
|
51
|
+
cascade: true,
|
52
|
+
}),
|
53
|
+
__metadata("design:type", Array)
|
54
|
+
], OnboardingSession.prototype, "substep_progress", void 0);
|
55
|
+
__decorate([
|
56
|
+
(0, typeorm_1.OneToMany)('UserAnswer', (answer) => answer.session, {
|
57
|
+
cascade: true,
|
58
|
+
}),
|
59
|
+
__metadata("design:type", Array)
|
60
|
+
], OnboardingSession.prototype, "answers", void 0);
|
61
|
+
exports.OnboardingSession = OnboardingSession = __decorate([
|
62
|
+
(0, typeorm_1.Entity)('onboarding_sessions')
|
63
|
+
], OnboardingSession);
|
64
|
+
//# sourceMappingURL=onboarding_sessions.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"onboarding_sessions.entity.js","sourceRoot":"","sources":["../../src/entity/onboarding_sessions.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AAQV,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAwE7B,CAAA;AAxEY,8CAAiB;AAM5B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;6CACpB;AAQX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;oDACrC;AAOlB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;qDAAC;AAOjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAClB,IAAI;qDAAC;AAYjB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,QAAQ;KAClB,CAAC;;iDAC6B;AAS/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACV;AAM1B;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;qDAAC;AAQjB;IAHC,IAAA,mBAAS,EAAC,qBAAqB,EAAE,CAAC,QAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE;QACrE,OAAO,EAAE,IAAI;KACd,CAAC;;2DACsB;AAQxB;IAHC,IAAA,mBAAS,EAAC,YAAY,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE;QACxD,OAAO,EAAE,IAAI;KACd,CAAC;;kDACa;4BAvEJ,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,iBAAiB,CAwE7B"}
|
@@ -0,0 +1,65 @@
|
|
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
|
+
exports.Step = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const onboarding_substep_entity_1 = require("./onboarding_substep.entity");
|
15
|
+
const onboarding_schema_entity_1 = require("./onboarding-schema.entity");
|
16
|
+
let Step = class Step {
|
17
|
+
};
|
18
|
+
exports.Step = Step;
|
19
|
+
__decorate([
|
20
|
+
(0, typeorm_1.PrimaryColumn)('varchar'),
|
21
|
+
__metadata("design:type", String)
|
22
|
+
], Step.prototype, "id", void 0);
|
23
|
+
__decorate([
|
24
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
25
|
+
__metadata("design:type", Number)
|
26
|
+
], Step.prototype, "order", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, typeorm_1.Column)(),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], Step.prototype, "title_en", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, typeorm_1.Column)(),
|
33
|
+
__metadata("design:type", String)
|
34
|
+
], Step.prototype, "title_ar", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, typeorm_1.Column)({ type: "clob", nullable: true }),
|
37
|
+
__metadata("design:type", String)
|
38
|
+
], Step.prototype, "step_description_en", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, typeorm_1.Column)({ type: "clob", nullable: true }),
|
41
|
+
__metadata("design:type", String)
|
42
|
+
], Step.prototype, "step_description_ar", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp' }),
|
45
|
+
__metadata("design:type", Date)
|
46
|
+
], Step.prototype, "created_at", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp' }),
|
49
|
+
__metadata("design:type", Date)
|
50
|
+
], Step.prototype, "updated_at", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, typeorm_1.ManyToOne)(() => onboarding_schema_entity_1.OnboardingSchema, (schema) => schema.steps),
|
53
|
+
(0, typeorm_1.JoinColumn)({ name: 'onboarding_schema_id' }),
|
54
|
+
__metadata("design:type", onboarding_schema_entity_1.OnboardingSchema)
|
55
|
+
], Step.prototype, "onboarding_schema", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, typeorm_1.OneToMany)(() => onboarding_substep_entity_1.Substep, (substep) => substep.step, {
|
58
|
+
cascade: true,
|
59
|
+
}),
|
60
|
+
__metadata("design:type", Array)
|
61
|
+
], Step.prototype, "substeps", void 0);
|
62
|
+
exports.Step = Step = __decorate([
|
63
|
+
(0, typeorm_1.Entity)('onboarding_steps')
|
64
|
+
], Step);
|
65
|
+
//# sourceMappingURL=onboarding_step.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"onboarding_step.entity.js","sourceRoot":"","sources":["../../src/entity/onboarding_step.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AACjB,2EAAsD;AACtD,yEAA8D;AAQvD,IAAM,IAAI,GAAV,MAAM,IAAI;CAuEhB,CAAA;AAvEY,oBAAI;AAMf;IADC,IAAA,uBAAa,EAAC,SAAS,CAAC;;gCACd;AAOX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mCACV;AAOd;IADC,IAAA,gBAAM,GAAE;;sCACQ;AAOjB;IADC,IAAA,gBAAM,GAAE;;sCACQ;AAOjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACb;AAO5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACb;AAO5B;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;wCAAC;AAMjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;wCAAC;AAQjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;IAC3D,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;8BAC1B,2CAAgB;+CAAC;AAQpC;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE;QACnD,OAAO,EAAE,IAAI;KACd,CAAC;;sCACkB;eAtET,IAAI;IADhB,IAAA,gBAAM,EAAC,kBAAkB,CAAC;GACd,IAAI,CAuEhB"}
|
@@ -0,0 +1,63 @@
|
|
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
|
+
exports.Substep = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const onboarding_step_entity_1 = require("./onboarding_step.entity");
|
15
|
+
const onboarding_group_entity_1 = require("./onboarding_group.entity");
|
16
|
+
let Substep = class Substep {
|
17
|
+
};
|
18
|
+
exports.Substep = Substep;
|
19
|
+
__decorate([
|
20
|
+
(0, typeorm_1.PrimaryColumn)('varchar'),
|
21
|
+
__metadata("design:type", String)
|
22
|
+
], Substep.prototype, "id", void 0);
|
23
|
+
__decorate([
|
24
|
+
(0, typeorm_1.ManyToOne)(() => onboarding_step_entity_1.Step, (step) => step.substeps),
|
25
|
+
(0, typeorm_1.JoinColumn)({ name: 'step_id' }),
|
26
|
+
__metadata("design:type", onboarding_step_entity_1.Step)
|
27
|
+
], Substep.prototype, "step", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
30
|
+
__metadata("design:type", Number)
|
31
|
+
], Substep.prototype, "order", void 0);
|
32
|
+
__decorate([
|
33
|
+
(0, typeorm_1.Column)(),
|
34
|
+
__metadata("design:type", String)
|
35
|
+
], Substep.prototype, "title_en", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, typeorm_1.Column)(),
|
38
|
+
__metadata("design:type", String)
|
39
|
+
], Substep.prototype, "title_ar", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp' }),
|
42
|
+
__metadata("design:type", Date)
|
43
|
+
], Substep.prototype, "created_at", void 0);
|
44
|
+
__decorate([
|
45
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp' }),
|
46
|
+
__metadata("design:type", Date)
|
47
|
+
], Substep.prototype, "updated_at", void 0);
|
48
|
+
__decorate([
|
49
|
+
(0, typeorm_1.OneToMany)(() => onboarding_group_entity_1.Group, (group) => group.substep, {
|
50
|
+
cascade: true,
|
51
|
+
}),
|
52
|
+
__metadata("design:type", Array)
|
53
|
+
], Substep.prototype, "groups", void 0);
|
54
|
+
__decorate([
|
55
|
+
(0, typeorm_1.OneToMany)('UserSubstepProgress', (progress) => progress.substep, {
|
56
|
+
cascade: true,
|
57
|
+
}),
|
58
|
+
__metadata("design:type", Array)
|
59
|
+
], Substep.prototype, "progress", void 0);
|
60
|
+
exports.Substep = Substep = __decorate([
|
61
|
+
(0, typeorm_1.Entity)('onboarding_substeps')
|
62
|
+
], Substep);
|
63
|
+
//# sourceMappingURL=onboarding_substep.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"onboarding_substep.entity.js","sourceRoot":"","sources":["../../src/entity/onboarding_substep.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AACjB,qEAAgD;AAChD,uEAAkD;AAQ3C,IAAM,OAAO,GAAb,MAAM,OAAO;CAgEnB,CAAA;AAhEY,0BAAO;AAMlB;IADC,IAAA,uBAAa,EAAC,SAAS,CAAC;;mCACd;AAQX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,6BAAI;qCAAC;AAOX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;sCACV;AAOd;IADC,IAAA,gBAAM,GAAE;;yCACQ;AAOjB;IADC,IAAA,gBAAM,GAAE;;yCACQ;AAMjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;2CAAC;AAMjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;2CAAC;AAQjB;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+BAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE;QAChD,OAAO,EAAE,IAAI;KACd,CAAC;;uCACc;AAQhB;IAHC,IAAA,mBAAS,EAAC,qBAAqB,EAAE,CAAC,QAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE;QACrE,OAAO,EAAE,IAAI;KACd,CAAC;;yCACc;kBA/DL,OAAO;IADnB,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,OAAO,CAgEnB"}
|
@@ -0,0 +1,52 @@
|
|
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
|
+
exports.UserAnswer = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const onboarding_sessions_entity_1 = require("./onboarding_sessions.entity");
|
15
|
+
const onboarding_question_entity_1 = require("./onboarding_question.entity");
|
16
|
+
let UserAnswer = class UserAnswer {
|
17
|
+
};
|
18
|
+
exports.UserAnswer = UserAnswer;
|
19
|
+
__decorate([
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
21
|
+
__metadata("design:type", String)
|
22
|
+
], UserAnswer.prototype, "id", void 0);
|
23
|
+
__decorate([
|
24
|
+
(0, typeorm_1.ManyToOne)(() => onboarding_sessions_entity_1.OnboardingSession, (session) => session.answers),
|
25
|
+
(0, typeorm_1.JoinColumn)({ name: 'session_id' }),
|
26
|
+
__metadata("design:type", onboarding_sessions_entity_1.OnboardingSession)
|
27
|
+
], UserAnswer.prototype, "session", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, typeorm_1.ManyToOne)(() => onboarding_question_entity_1.Question, (question) => question.answers),
|
30
|
+
(0, typeorm_1.JoinColumn)({ name: 'question_id' }),
|
31
|
+
__metadata("design:type", onboarding_question_entity_1.Question)
|
32
|
+
], UserAnswer.prototype, "question", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, typeorm_1.Column)({ type: 'clob' }),
|
35
|
+
__metadata("design:type", Object)
|
36
|
+
], UserAnswer.prototype, "answer", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, typeorm_1.Column)({ type: 'timestamp' }),
|
39
|
+
__metadata("design:type", Date)
|
40
|
+
], UserAnswer.prototype, "answered_at", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp' }),
|
43
|
+
__metadata("design:type", Date)
|
44
|
+
], UserAnswer.prototype, "created_at", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp' }),
|
47
|
+
__metadata("design:type", Date)
|
48
|
+
], UserAnswer.prototype, "updated_at", void 0);
|
49
|
+
exports.UserAnswer = UserAnswer = __decorate([
|
50
|
+
(0, typeorm_1.Entity)('onboarding_user_answers')
|
51
|
+
], UserAnswer);
|
52
|
+
//# sourceMappingURL=onboarding_user-answer.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"onboarding_user-answer.entity.js","sourceRoot":"","sources":["../../src/entity/onboarding_user-answer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,6EAAiE;AACjE,6EAAwD;AAQjD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAwDtB,CAAA;AAxDY,gCAAU;AAMrB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACpB;AAQX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;IAChE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,8CAAiB;2CAAC;AAQ3B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;IACzD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,qCAAQ;4CAAC;AAcnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACb;AAOZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjB,IAAI;+CAAC;AAMlB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;8CAAC;AAMjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;8CAAC;qBAvDN,UAAU;IADtB,IAAA,gBAAM,EAAC,yBAAyB,CAAC;GACrB,UAAU,CAwDtB"}
|
@@ -0,0 +1,55 @@
|
|
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
|
+
exports.UserSubstepProgress = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const onboarding_sessions_entity_1 = require("./onboarding_sessions.entity");
|
15
|
+
const onboarding_substep_entity_1 = require("./onboarding_substep.entity");
|
16
|
+
let UserSubstepProgress = class UserSubstepProgress {
|
17
|
+
};
|
18
|
+
exports.UserSubstepProgress = UserSubstepProgress;
|
19
|
+
__decorate([
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
21
|
+
__metadata("design:type", String)
|
22
|
+
], UserSubstepProgress.prototype, "id", void 0);
|
23
|
+
__decorate([
|
24
|
+
(0, typeorm_1.ManyToOne)(() => onboarding_sessions_entity_1.OnboardingSession, (session) => session.substep_progress),
|
25
|
+
(0, typeorm_1.JoinColumn)({ name: 'session_id' }),
|
26
|
+
__metadata("design:type", onboarding_sessions_entity_1.OnboardingSession)
|
27
|
+
], UserSubstepProgress.prototype, "session", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, typeorm_1.ManyToOne)(() => onboarding_substep_entity_1.Substep, (substep) => substep.progress),
|
30
|
+
(0, typeorm_1.JoinColumn)({ name: 'substep_id' }),
|
31
|
+
__metadata("design:type", onboarding_substep_entity_1.Substep)
|
32
|
+
], UserSubstepProgress.prototype, "substep", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, typeorm_1.Column)({
|
35
|
+
type: 'varchar',
|
36
|
+
length: 20
|
37
|
+
}),
|
38
|
+
__metadata("design:type", String)
|
39
|
+
], UserSubstepProgress.prototype, "status", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
42
|
+
__metadata("design:type", Date)
|
43
|
+
], UserSubstepProgress.prototype, "completed_at", void 0);
|
44
|
+
__decorate([
|
45
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp' }),
|
46
|
+
__metadata("design:type", Date)
|
47
|
+
], UserSubstepProgress.prototype, "created_at", void 0);
|
48
|
+
__decorate([
|
49
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp' }),
|
50
|
+
__metadata("design:type", Date)
|
51
|
+
], UserSubstepProgress.prototype, "updated_at", void 0);
|
52
|
+
exports.UserSubstepProgress = UserSubstepProgress = __decorate([
|
53
|
+
(0, typeorm_1.Entity)('onboarding_user_substep_progress')
|
54
|
+
], UserSubstepProgress);
|
55
|
+
//# sourceMappingURL=user-substep-progress.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"user-substep-progress.entity.js","sourceRoot":"","sources":["../../src/entity/user-substep-progress.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,6EAAiE;AACjE,2EAAsD;AAQ/C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAqD/B,CAAA;AArDY,kDAAmB;AAM9B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;+CACpB;AAQX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACzE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,8CAAiB;oDAAC;AAQ3B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;IACvD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,mCAAO;oDAAC;AAWjB;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACX,CAAC;;mDACgC;AAOlC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAChC,IAAI;yDAAC;AAMnB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;uDAAC;AAMjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;uDAAC;8BApDN,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,kCAAkC,CAAC;GAC9B,mBAAmB,CAqD/B"}
|
package/dist/index.js
CHANGED
@@ -22,5 +22,13 @@ __exportStar(require("./entity/goalPlan.entity"), exports);
|
|
22
22
|
__exportStar(require("./entity/document.entity"), exports);
|
23
23
|
__exportStar(require("./entity/role.entity"), exports);
|
24
24
|
__exportStar(require("./entity/permission.entity"), exports);
|
25
|
-
__exportStar(require("./entity/
|
25
|
+
__exportStar(require("./entity/onboarding_group.entity"), exports);
|
26
|
+
__exportStar(require("./entity/user-onboarding-progress.entity"), exports);
|
27
|
+
__exportStar(require("./entity/onboarding_sessions.entity"), exports);
|
28
|
+
__exportStar(require("./entity/onboarding_step.entity"), exports);
|
29
|
+
__exportStar(require("./entity/onboarding_substep.entity"), exports);
|
30
|
+
__exportStar(require("./entity/onboarding_question.entity"), exports);
|
31
|
+
__exportStar(require("./entity/user-substep-progress.entity"), exports);
|
32
|
+
__exportStar(require("./entity/onboarding_user-answer.entity"), exports);
|
33
|
+
__exportStar(require("./entity/onboarding-schema.entity"), exports);
|
26
34
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAQA,uDAAqC;AACrC,0DAAwC;AACxC,+DAA6C;AAC7C,wDAAsC;AACtC,2DAAyC;AACzC,2DAAyC;AACzC,uDAAqC;AACrC,6DAA2C;AAC3C,mEAAiD;AACjD,2EAAyD;AAGzD,sEAAoD;AACpD,kEAAgD;AAChD,qEAAmD;AACnD,sEAAoD;AACpD,wEAAsD;AACtD,yEAAuD;AAGvD,oEAAkD"}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Version91752793116098 = void 0;
|
4
|
+
class Version91752793116098 {
|
5
|
+
constructor() {
|
6
|
+
this.name = 'Version91752793116098';
|
7
|
+
}
|
8
|
+
async up(queryRunner) {
|
9
|
+
await queryRunner.query(`CREATE TABLE "onboarding_sessions" ("id" varchar2(36), "sessionId" varchar2(255) NOT NULL, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "expires_at" timestamp NOT NULL, "status" varchar2(20) DEFAULT 'active' NOT NULL, "onboardingVersion" number DEFAULT 1 NOT NULL, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, CONSTRAINT "UQ_5388b26dffb73a0c0c65e365b87" UNIQUE ("sessionId"), CONSTRAINT "PK_9553e455cbfe1aeebc6f43ae379" PRIMARY KEY ("id"))`);
|
10
|
+
await queryRunner.query(`CREATE TABLE "onboarding_schemas" ("id" varchar2(36), "name" varchar2(255) NOT NULL, "version" varchar2(20) NOT NULL, "description" clob, "total_steps" number DEFAULT 0 NOT NULL, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, CONSTRAINT "PK_5090c5e99d2a43211c1cec1bcf3" PRIMARY KEY ("id"))`);
|
11
|
+
await queryRunner.query(`CREATE TABLE "onboarding_steps" ("id" varchar2(255) NOT NULL, "order" number NOT NULL, "title_en" varchar2(255) NOT NULL, "title_ar" varchar2(255) NOT NULL, "step_description_en" clob, "step_description_ar" clob, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "onboarding_schema_id" varchar2(36), CONSTRAINT "PK_d7cbc8d9a41ce2b2cadd6f08929" PRIMARY KEY ("id"))`);
|
12
|
+
await queryRunner.query(`CREATE TABLE "onboarding_questions" ("id" varchar2(255) NOT NULL, "label_en" varchar2(255) NOT NULL, "label_ar" varchar2(255) NOT NULL, "type" varchar2(50) NOT NULL, "metadata" clob, "required" number DEFAULT 0 NOT NULL, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "group_id" varchar2(255), CONSTRAINT "PK_7943027b3715df8b0932c611fe0" PRIMARY KEY ("id"))`);
|
13
|
+
await queryRunner.query(`CREATE TABLE "onboarding_groups" ("id" varchar2(255) NOT NULL, "title_en" varchar2(255) NOT NULL, "title_ar" varchar2(255), "order" number NOT NULL, "required" number DEFAULT 0 NOT NULL, "metadata" clob, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "substep_id" varchar2(255), CONSTRAINT "PK_7087c33c643eae48ace3d94e21e" PRIMARY KEY ("id"))`);
|
14
|
+
await queryRunner.query(`CREATE TABLE "onboarding_substeps" ("id" varchar2(255) NOT NULL, "order" number NOT NULL, "title_en" varchar2(255) NOT NULL, "title_ar" varchar2(255) NOT NULL, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "step_id" varchar2(255), CONSTRAINT "PK_a49d838cdf710f52cd939faa1eb" PRIMARY KEY ("id"))`);
|
15
|
+
await queryRunner.query(`CREATE TABLE "onboarding_user_substep_progress" ("id" varchar2(36), "status" varchar2(20) NOT NULL, "completed_at" timestamp, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "session_id" varchar2(36), "substep_id" varchar2(255), CONSTRAINT "PK_b5547bf3a9fb78efbf350b7ef34" PRIMARY KEY ("id"))`);
|
16
|
+
await queryRunner.query(`CREATE TABLE "onboarding_user_answers" ("id" varchar2(36), "answer" clob NOT NULL, "answered_at" timestamp NOT NULL, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "session_id" varchar2(36), "question_id" varchar2(255), CONSTRAINT "PK_69b4198c4a65de50276abdab0bd" PRIMARY KEY ("id"))`);
|
17
|
+
await queryRunner.query(`ALTER TABLE "onboarding_steps" ADD CONSTRAINT "FK_eb13a46b18b48ccaeeb9ae0d4c6" FOREIGN KEY ("onboarding_schema_id") REFERENCES "onboarding_schemas" ("id")`);
|
18
|
+
await queryRunner.query(`ALTER TABLE "onboarding_questions" ADD CONSTRAINT "FK_804c3821f2adb3e313aef46312c" FOREIGN KEY ("group_id") REFERENCES "onboarding_groups" ("id")`);
|
19
|
+
await queryRunner.query(`ALTER TABLE "onboarding_groups" ADD CONSTRAINT "FK_6c516a90e0243a5cd667965ee88" FOREIGN KEY ("substep_id") REFERENCES "onboarding_substeps" ("id")`);
|
20
|
+
await queryRunner.query(`ALTER TABLE "onboarding_substeps" ADD CONSTRAINT "FK_2c73f0feb12ee89a804e0999538" FOREIGN KEY ("step_id") REFERENCES "onboarding_steps" ("id")`);
|
21
|
+
await queryRunner.query(`ALTER TABLE "onboarding_user_substep_progress" ADD CONSTRAINT "FK_b7f213be13ad1db9a717e080261" FOREIGN KEY ("session_id") REFERENCES "onboarding_sessions" ("id")`);
|
22
|
+
await queryRunner.query(`ALTER TABLE "onboarding_user_substep_progress" ADD CONSTRAINT "FK_0a6807aef463c0699e9a450cf78" FOREIGN KEY ("substep_id") REFERENCES "onboarding_substeps" ("id")`);
|
23
|
+
await queryRunner.query(`ALTER TABLE "onboarding_user_answers" ADD CONSTRAINT "FK_fb831f309c579c4eef7927ea7c9" FOREIGN KEY ("session_id") REFERENCES "onboarding_sessions" ("id")`);
|
24
|
+
await queryRunner.query(`ALTER TABLE "onboarding_user_answers" ADD CONSTRAINT "FK_d5b614927f1c50f60ccd4b424ad" FOREIGN KEY ("question_id") REFERENCES "onboarding_questions" ("id")`);
|
25
|
+
}
|
26
|
+
async down(queryRunner) {
|
27
|
+
await queryRunner.query(`ALTER TABLE "onboarding_user_answers" DROP CONSTRAINT "FK_d5b614927f1c50f60ccd4b424ad"`);
|
28
|
+
await queryRunner.query(`ALTER TABLE "onboarding_user_answers" DROP CONSTRAINT "FK_fb831f309c579c4eef7927ea7c9"`);
|
29
|
+
await queryRunner.query(`ALTER TABLE "onboarding_user_substep_progress" DROP CONSTRAINT "FK_0a6807aef463c0699e9a450cf78"`);
|
30
|
+
await queryRunner.query(`ALTER TABLE "onboarding_user_substep_progress" DROP CONSTRAINT "FK_b7f213be13ad1db9a717e080261"`);
|
31
|
+
await queryRunner.query(`ALTER TABLE "onboarding_substeps" DROP CONSTRAINT "FK_2c73f0feb12ee89a804e0999538"`);
|
32
|
+
await queryRunner.query(`ALTER TABLE "onboarding_groups" DROP CONSTRAINT "FK_6c516a90e0243a5cd667965ee88"`);
|
33
|
+
await queryRunner.query(`ALTER TABLE "onboarding_questions" DROP CONSTRAINT "FK_804c3821f2adb3e313aef46312c"`);
|
34
|
+
await queryRunner.query(`ALTER TABLE "onboarding_steps" DROP CONSTRAINT "FK_eb13a46b18b48ccaeeb9ae0d4c6"`);
|
35
|
+
await queryRunner.query(`DROP TABLE "onboarding_user_answers"`);
|
36
|
+
await queryRunner.query(`DROP TABLE "onboarding_user_substep_progress"`);
|
37
|
+
await queryRunner.query(`DROP TABLE "onboarding_substeps"`);
|
38
|
+
await queryRunner.query(`DROP TABLE "onboarding_groups"`);
|
39
|
+
await queryRunner.query(`DROP TABLE "onboarding_questions"`);
|
40
|
+
await queryRunner.query(`DROP TABLE "onboarding_steps"`);
|
41
|
+
await queryRunner.query(`DROP TABLE "onboarding_schemas"`);
|
42
|
+
await queryRunner.query(`DROP TABLE "onboarding_sessions"`);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
exports.Version91752793116098 = Version91752793116098;
|
46
|
+
//# sourceMappingURL=1752793116098-version9.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1752793116098-version9.js","sourceRoot":"","sources":["../../src/migrations/1752793116098-version9.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;IAAlC;QACI,SAAI,GAAG,uBAAuB,CAAA;IAwClC,CAAC;IAtCU,KAAK,CAAC,EAAE,CAAC,WAAwB;QACpC,MAAM,WAAW,CAAC,KAAK,CAAC,qdAAqd,CAAC,CAAC;QAC/e,MAAM,WAAW,CAAC,KAAK,CAAC,0WAA0W,CAAC,CAAC;QACpY,MAAM,WAAW,CAAC,KAAK,CAAC,ibAAib,CAAC,CAAC;QAC3c,MAAM,WAAW,CAAC,KAAK,CAAC,8aAA8a,CAAC,CAAC;QACxc,MAAM,WAAW,CAAC,KAAK,CAAC,+ZAA+Z,CAAC,CAAC;QACzb,MAAM,WAAW,CAAC,KAAK,CAAC,gXAAgX,CAAC,CAAC;QAC1Y,MAAM,WAAW,CAAC,KAAK,CAAC,4WAA4W,CAAC,CAAC;QACtY,MAAM,WAAW,CAAC,KAAK,CAAC,oWAAoW,CAAC,CAAC;QAC9X,MAAM,WAAW,CAAC,KAAK,CAAC,4JAA4J,CAAC,CAAC;QACtL,MAAM,WAAW,CAAC,KAAK,CAAC,mJAAmJ,CAAC,CAAC;QAC7K,MAAM,WAAW,CAAC,KAAK,CAAC,oJAAoJ,CAAC,CAAC;QAC9K,MAAM,WAAW,CAAC,KAAK,CAAC,gJAAgJ,CAAC,CAAC;QAC1K,MAAM,WAAW,CAAC,KAAK,CAAC,mKAAmK,CAAC,CAAC;QAC7L,MAAM,WAAW,CAAC,KAAK,CAAC,mKAAmK,CAAC,CAAC;QAC7L,MAAM,WAAW,CAAC,KAAK,CAAC,0JAA0J,CAAC,CAAC;QACpL,MAAM,WAAW,CAAC,KAAK,CAAC,4JAA4J,CAAC,CAAC;IAC1L,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC,wFAAwF,CAAC,CAAC;QAClH,MAAM,WAAW,CAAC,KAAK,CAAC,wFAAwF,CAAC,CAAC;QAClH,MAAM,WAAW,CAAC,KAAK,CAAC,iGAAiG,CAAC,CAAC;QAC3H,MAAM,WAAW,CAAC,KAAK,CAAC,iGAAiG,CAAC,CAAC;QAC3H,MAAM,WAAW,CAAC,KAAK,CAAC,oFAAoF,CAAC,CAAC;QAC9G,MAAM,WAAW,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;QAC5G,MAAM,WAAW,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAC;QAC/G,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAC;QAC3G,MAAM,WAAW,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAChE,MAAM,WAAW,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACzE,MAAM,WAAW,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAC5D,MAAM,WAAW,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QAC1D,MAAM,WAAW,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;QAC7D,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACzD,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;QAC3D,MAAM,WAAW,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAChE,CAAC;CAEJ;AAzCD,sDAyCC"}
|