@goatlab/fluent 0.5.12 → 0.5.16
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/BaseConnector.js +4 -1
- package/dist/BaseConnector.js.map +1 -1
- package/dist/Helpers/Combinations.js +20 -15
- package/dist/Helpers/Combinations.js.map +1 -1
- package/dist/Helpers/Formio/parser/getBaseModel.d.ts +11 -0
- package/dist/Helpers/Formio/parser/getBaseModel.js +37 -2
- package/dist/Helpers/Formio/parser/getBaseModel.js.map +1 -1
- package/dist/Helpers/Formio/validator/Logic/Validator.js.map +1 -1
- package/dist/core/Loopback/query.js.map +1 -1
- package/dist/core/Nestjs/types/utils/get-fields-and-decorator.util.js.map +1 -1
- package/dist/core/types.d.ts +4 -6
- package/dist/core/types.js +5 -11
- package/dist/core/types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/CHANGELOG.md +0 -714
- package/dist/Fluent/start.Xspec.d.ts +0 -1
- package/dist/Fluent/start.Xspec.js +0 -87
- package/dist/Fluent/start.Xspec.js.map +0 -1
- package/dist/core/Nestjs/Form/form.dto.d.ts +0 -17
- package/dist/core/Nestjs/Form/form.dto.js +0 -58
- package/dist/core/Nestjs/Form/form.dto.js.map +0 -1
- package/dist/core/Nestjs/Form/form.entity.d.ts +0 -23
- package/dist/core/Nestjs/Form/form.entity.js +0 -128
- package/dist/core/Nestjs/Form/form.entity.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
require("babel-polyfill");
|
|
5
|
-
const chai_1 = (0, tslib_1.__importDefault)(require("chai"));
|
|
6
|
-
const start_js_1 = (0, tslib_1.__importDefault)(require("./start.js"));
|
|
7
|
-
const appTranslations_1 = (0, tslib_1.__importDefault)(require("../test/resources/Localizations/appTranslations"));
|
|
8
|
-
chai_1.default.expect();
|
|
9
|
-
const expect = chai_1.default.expect;
|
|
10
|
-
let fast;
|
|
11
|
-
let APP_CONFIG_ID = '5b50a6571c8da0f446286093';
|
|
12
|
-
let CONFIG_URL = 'https://ydvahgxgqliaeuf.form.io/configuration/submission/';
|
|
13
|
-
let OFFLINE_START = true;
|
|
14
|
-
let appConf = {
|
|
15
|
-
type: 'remote',
|
|
16
|
-
appConfigId: APP_CONFIG_ID,
|
|
17
|
-
appConfigUrl: CONFIG_URL,
|
|
18
|
-
i18n: appTranslations_1.default,
|
|
19
|
-
offlineStart: OFFLINE_START,
|
|
20
|
-
offlineFiles: {
|
|
21
|
-
Configuration: require('../test/resources/offline/Configuration.json'),
|
|
22
|
-
Roles: require('../test/resources/offline/Roles.json'),
|
|
23
|
-
lastUpdated: require('../test/resources/offline/lastUpdate.json'),
|
|
24
|
-
Translations: require('../test/resources/offline/Translations.json'),
|
|
25
|
-
Pages: require('../test/resources/offline/Pages.json'),
|
|
26
|
-
Forms: require('../test/resources/offline/Forms.json')
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
describe('Given FAST start', () => {
|
|
30
|
-
before(async () => {
|
|
31
|
-
fast = await start_js_1.default.start({ appConf });
|
|
32
|
-
});
|
|
33
|
-
it('Should return the formatted configuration', () => {
|
|
34
|
-
delete fast.config.$loki;
|
|
35
|
-
delete fast.config._id;
|
|
36
|
-
delete fast.config.meta;
|
|
37
|
-
delete fast.config.fastUpdated;
|
|
38
|
-
let config = {
|
|
39
|
-
project: 'FAST',
|
|
40
|
-
APP_ENV: 'dev',
|
|
41
|
-
IS_SURVEY: true,
|
|
42
|
-
APP_FANTACY_NAME: 'FAST',
|
|
43
|
-
APP_PHRASE: 'FAST Demo',
|
|
44
|
-
APP_URL: 'https://vnikkswzjatywzi.form.io',
|
|
45
|
-
APP_NAME: 'vnikkswzjatywzi',
|
|
46
|
-
HEARTBEAT_URL: 'https://dog.ceo/api/breeds/list/all',
|
|
47
|
-
OPEN_CPU_URL: 'https://public.opencpu.org/',
|
|
48
|
-
HAS_ABOUT: true,
|
|
49
|
-
TAB_MENU: false,
|
|
50
|
-
HAS_SCORES: false,
|
|
51
|
-
HAS_REPORT: false,
|
|
52
|
-
ENABLE_REGISTER: true,
|
|
53
|
-
MULTILANGUAGE: true,
|
|
54
|
-
PARALLEL_SURVEYS: false,
|
|
55
|
-
DATA_REVIEWERS: true,
|
|
56
|
-
LOCAL_DB_PASSWORD: 'onePassword123',
|
|
57
|
-
MD5_KEY: 'my_super_secure_key',
|
|
58
|
-
OFFLINE_FIRST: true,
|
|
59
|
-
OFFLINE_USE: true,
|
|
60
|
-
LOCAL_DRAFT_ENABLED: true,
|
|
61
|
-
NAVIGATION_OPENED: false,
|
|
62
|
-
NAVIGATION_AUTOCLOSE_ON_SELECTION: true,
|
|
63
|
-
SAVE_REDIRECT: 'dashboard',
|
|
64
|
-
submit: true
|
|
65
|
-
};
|
|
66
|
-
expect(fast.config).to.deep.equal(config);
|
|
67
|
-
});
|
|
68
|
-
it('Should return the formatted DefaultLanguage', () => {
|
|
69
|
-
expect(fast.defaultLanguage).to.be.equal('en');
|
|
70
|
-
});
|
|
71
|
-
it('Should return the formatted Translations', () => {
|
|
72
|
-
let translations = {
|
|
73
|
-
label: {
|
|
74
|
-
'Filter results...': 'Filter results...',
|
|
75
|
-
'New Survey': 'New Survey',
|
|
76
|
-
'Collected data': 'Collected data'
|
|
77
|
-
},
|
|
78
|
-
en: {
|
|
79
|
-
'Filter results...': 'Filter results...',
|
|
80
|
-
'New Survey': 'New Survey',
|
|
81
|
-
'Collected data': 'Collected data'
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
expect(fast.translations).to.deep.equal(translations);
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
//# sourceMappingURL=start.Xspec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start.Xspec.js","sourceR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AE,gBAAgB;aACnC;SACF,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IPaginationLinks, IPaginationMeta } from '../../dtos/pagination.dto';
|
|
2
|
-
import { Form } from './form.entity';
|
|
3
|
-
declare const FormDtoOut_base: import("../types/common").Type<Omit<Form, "deleted" | "access" | "submissionAccess">>;
|
|
4
|
-
export declare class FormDtoOut extends FormDtoOut_base {
|
|
5
|
-
}
|
|
6
|
-
declare const FormDtoIn_base: import("../types/common").Type<Omit<Form, "id" | "created" | "updated" | "deleted" | "access" | "submissionAccess">>;
|
|
7
|
-
export declare class FormDtoIn extends FormDtoIn_base {
|
|
8
|
-
}
|
|
9
|
-
declare const FormDtoPatch_base: import("../types/common").Type<Partial<FormDtoIn>>;
|
|
10
|
-
export declare class FormDtoPatch extends FormDtoPatch_base {
|
|
11
|
-
}
|
|
12
|
-
export declare class FormDtoPaginated {
|
|
13
|
-
items: FormDtoOut[];
|
|
14
|
-
meta: IPaginationMeta;
|
|
15
|
-
links: IPaginationLinks;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormDtoPaginated = exports.FormDtoPatch = exports.FormDtoIn = exports.FormDtoOut = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const types_1 = require("../../../core/types");
|
|
6
|
-
const pagination_dto_1 = require("../../dtos/pagination.dto");
|
|
7
|
-
const form_entity_1 = require("./form.entity");
|
|
8
|
-
let FormDtoOut = class FormDtoOut extends (0, types_1.OmitType)(form_entity_1.Form, [
|
|
9
|
-
'deleted',
|
|
10
|
-
'access',
|
|
11
|
-
'submissionAccess'
|
|
12
|
-
]) {
|
|
13
|
-
};
|
|
14
|
-
FormDtoOut = (0, tslib_1.__decorate)([
|
|
15
|
-
(0, types_1.InputType)()
|
|
16
|
-
], FormDtoOut);
|
|
17
|
-
exports.FormDtoOut = FormDtoOut;
|
|
18
|
-
let FormDtoIn = class FormDtoIn extends (0, types_1.OmitType)(form_entity_1.Form, [
|
|
19
|
-
'id',
|
|
20
|
-
'created',
|
|
21
|
-
'updated',
|
|
22
|
-
'deleted',
|
|
23
|
-
'access',
|
|
24
|
-
'submissionAccess'
|
|
25
|
-
]) {
|
|
26
|
-
};
|
|
27
|
-
FormDtoIn = (0, tslib_1.__decorate)([
|
|
28
|
-
(0, types_1.InputType)()
|
|
29
|
-
], FormDtoIn);
|
|
30
|
-
exports.FormDtoIn = FormDtoIn;
|
|
31
|
-
let FormDtoPatch = class FormDtoPatch extends (0, types_1.PartialType)(FormDtoIn) {
|
|
32
|
-
};
|
|
33
|
-
FormDtoPatch = (0, tslib_1.__decorate)([
|
|
34
|
-
(0, types_1.InputType)()
|
|
35
|
-
], FormDtoPatch);
|
|
36
|
-
exports.FormDtoPatch = FormDtoPatch;
|
|
37
|
-
let FormDtoPaginated = class FormDtoPaginated {
|
|
38
|
-
};
|
|
39
|
-
(0, tslib_1.__decorate)([
|
|
40
|
-
(0, types_1.Column)(type => FormDtoOut),
|
|
41
|
-
(0, types_1.ApiProperty)({ isArray: true, type: FormDtoOut }),
|
|
42
|
-
(0, tslib_1.__metadata)("design:type", Array)
|
|
43
|
-
], FormDtoPaginated.prototype, "items", void 0);
|
|
44
|
-
(0, tslib_1.__decorate)([
|
|
45
|
-
(0, types_1.Column)(type => pagination_dto_1.IPaginationMeta),
|
|
46
|
-
(0, types_1.ApiProperty)({ type: pagination_dto_1.IPaginationMeta }),
|
|
47
|
-
(0, tslib_1.__metadata)("design:type", pagination_dto_1.IPaginationMeta)
|
|
48
|
-
], FormDtoPaginated.prototype, "meta", void 0);
|
|
49
|
-
(0, tslib_1.__decorate)([
|
|
50
|
-
(0, types_1.Column)(type => pagination_dto_1.IPaginationLinks),
|
|
51
|
-
(0, types_1.ApiProperty)({ type: pagination_dto_1.IPaginationLinks }),
|
|
52
|
-
(0, tslib_1.__metadata)("design:type", pagination_dto_1.IPaginationLinks)
|
|
53
|
-
], FormDtoPaginated.prototype, "links", void 0);
|
|
54
|
-
FormDtoPaginated = (0, tslib_1.__decorate)([
|
|
55
|
-
(0, types_1.InputType)()
|
|
56
|
-
], FormDtoPaginated);
|
|
57
|
-
exports.FormDtoPaginated = FormDtoPaginated;
|
|
58
|
-
//# sourceMappingURL=form.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form.dto.js","sourceRoot":"","sources":["../../../../src/core/Nestjs/Form/form.dto.ts"],"names":[],"mappings":";;;;AAAA,+CAM4B;AAC5B,8DAA6E;AAC7E,+CAAoC;AAMpC,IAAa,UAAU,GAAvB,MAAa,UAAW,SAAQ,IAAA,gBAAQ,EAAC,kBAAI,EAAE;IAC7C,SAAS;IACT,QAAQ;IACR,kBAAkB;CACV,CAAC;CAAG,CAAA;AAJD,UAAU;IADtB,IAAA,iBAAS,GAAE;GACC,UAAU,CAIT;AAJD,gCAAU;AAUvB,IAAa,SAAS,GAAtB,MAAa,SAAU,SAAQ,IAAA,gBAAQ,EAAC,kBAAI,EAAE;IAC5C,IAAI;IACJ,SAAS;IACT,SAAS;IACT,SAAS;IACT,QAAQ;IACR,kBAAkB;CACV,CAAC;CAAG,CAAA;AAPD,SAAS;IADrB,IAAA,iBAAS,GAAE;GACC,SAAS,CAOR;AAPD,8BAAS;AAatB,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,IAAA,mBAAW,EAAC,SAAS,CAAC;CAAG,CAAA;AAA9C,YAAY;IADxB,IAAA,iBAAS,GAAE;GACC,YAAY,CAAkC;AAA9C,oCAAY;AAMzB,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;CAY5B,CAAA;AATC;IAFC,IAAA,cAAM,EAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC;IAC1B,IAAA,mBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;+CAC9B;AAInB;IAFC,IAAA,cAAM,EAAC,IAAI,CAAC,EAAE,CAAC,gCAAe,CAAC;IAC/B,IAAA,mBAAW,EAAC,EAAE,IAAI,EAAE,gCAAe,EAAE,CAAC;2CACjC,gCAAe;8CAAA;AAIrB;IAFC,IAAA,cAAM,EAAC,IAAI,CAAC,EAAE,CAAC,iCAAgB,CAAC;IAChC,IAAA,mBAAW,EAAC,EAAE,IAAI,EAAE,iCAAgB,EAAE,CAAC;2CACjC,iCAAgB;+CAAA;AAXZ,gBAAgB;IAD5B,IAAA,iBAAS,GAAE;GACC,gBAAgB,CAY5B;AAZY,4CAAgB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Access } from '../../dtos/access.dto';
|
|
2
|
-
export declare class Form {
|
|
3
|
-
id: string;
|
|
4
|
-
path: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
type?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
tags?: string[];
|
|
10
|
-
display?: string;
|
|
11
|
-
action?: string;
|
|
12
|
-
owner: string;
|
|
13
|
-
settings: number;
|
|
14
|
-
properties: number;
|
|
15
|
-
machineName?: string;
|
|
16
|
-
created: Date;
|
|
17
|
-
updated: Date;
|
|
18
|
-
deleted: Date;
|
|
19
|
-
components?: string;
|
|
20
|
-
access?: Access[];
|
|
21
|
-
submissionAccess?: Access[];
|
|
22
|
-
}
|
|
23
|
-
export declare const fakeForm: () => Form;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fakeForm = exports.Form = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const faker = (0, tslib_1.__importStar)(require("faker"));
|
|
6
|
-
const access_dto_1 = require("../../dtos/access.dto");
|
|
7
|
-
const types_1 = require("../../../core/types");
|
|
8
|
-
const decorators_1 = require("../../database/decorators");
|
|
9
|
-
let Form = class Form {
|
|
10
|
-
};
|
|
11
|
-
(0, tslib_1.__decorate)([
|
|
12
|
-
decorators_1.Decorators.id(),
|
|
13
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
14
|
-
], Form.prototype, "id", void 0);
|
|
15
|
-
(0, tslib_1.__decorate)([
|
|
16
|
-
decorators_1.Decorators.property({ unique: true }),
|
|
17
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
18
|
-
], Form.prototype, "path", void 0);
|
|
19
|
-
(0, tslib_1.__decorate)([
|
|
20
|
-
decorators_1.Decorators.property({ required: false }),
|
|
21
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
22
|
-
], Form.prototype, "title", void 0);
|
|
23
|
-
(0, tslib_1.__decorate)([
|
|
24
|
-
decorators_1.Decorators.property({ required: false }),
|
|
25
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
26
|
-
], Form.prototype, "name", void 0);
|
|
27
|
-
(0, tslib_1.__decorate)([
|
|
28
|
-
decorators_1.Decorators.property({ required: false }),
|
|
29
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
30
|
-
], Form.prototype, "type", void 0);
|
|
31
|
-
(0, tslib_1.__decorate)([
|
|
32
|
-
decorators_1.Decorators.property({ required: false }),
|
|
33
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
34
|
-
], Form.prototype, "description", void 0);
|
|
35
|
-
(0, tslib_1.__decorate)([
|
|
36
|
-
(0, types_1.Column)({ type: 'simple-array', nullable: true }),
|
|
37
|
-
(0, types_1.ApiProperty)({ type: [String], nullable: true, required: false }),
|
|
38
|
-
(0, tslib_1.__metadata)("design:type", Array)
|
|
39
|
-
], Form.prototype, "tags", void 0);
|
|
40
|
-
(0, tslib_1.__decorate)([
|
|
41
|
-
decorators_1.Decorators.property({ required: false }),
|
|
42
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
43
|
-
], Form.prototype, "display", void 0);
|
|
44
|
-
(0, tslib_1.__decorate)([
|
|
45
|
-
decorators_1.Decorators.property({ required: false }),
|
|
46
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
47
|
-
], Form.prototype, "action", void 0);
|
|
48
|
-
(0, tslib_1.__decorate)([
|
|
49
|
-
decorators_1.Decorators.property({ required: true }),
|
|
50
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
51
|
-
], Form.prototype, "owner", void 0);
|
|
52
|
-
(0, tslib_1.__decorate)([
|
|
53
|
-
decorators_1.Decorators.property({ required: true }),
|
|
54
|
-
(0, tslib_1.__metadata)("design:type", Number)
|
|
55
|
-
], Form.prototype, "settings", void 0);
|
|
56
|
-
(0, tslib_1.__decorate)([
|
|
57
|
-
decorators_1.Decorators.property({ required: true }),
|
|
58
|
-
(0, tslib_1.__metadata)("design:type", Number)
|
|
59
|
-
], Form.prototype, "properties", void 0);
|
|
60
|
-
(0, tslib_1.__decorate)([
|
|
61
|
-
decorators_1.Decorators.property({ required: false }),
|
|
62
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
63
|
-
], Form.prototype, "machineName", void 0);
|
|
64
|
-
(0, tslib_1.__decorate)([
|
|
65
|
-
decorators_1.Decorators.created(),
|
|
66
|
-
(0, tslib_1.__metadata)("design:type", Date)
|
|
67
|
-
], Form.prototype, "created", void 0);
|
|
68
|
-
(0, tslib_1.__decorate)([
|
|
69
|
-
decorators_1.Decorators.updated(),
|
|
70
|
-
(0, tslib_1.__metadata)("design:type", Date)
|
|
71
|
-
], Form.prototype, "updated", void 0);
|
|
72
|
-
(0, tslib_1.__decorate)([
|
|
73
|
-
decorators_1.Decorators.deleted(),
|
|
74
|
-
(0, tslib_1.__metadata)("design:type", Date)
|
|
75
|
-
], Form.prototype, "deleted", void 0);
|
|
76
|
-
(0, tslib_1.__decorate)([
|
|
77
|
-
decorators_1.Decorators.property({ required: false }),
|
|
78
|
-
(0, tslib_1.__metadata)("design:type", String)
|
|
79
|
-
], Form.prototype, "components", void 0);
|
|
80
|
-
(0, tslib_1.__decorate)([
|
|
81
|
-
(0, types_1.Column)(type => access_dto_1.Access),
|
|
82
|
-
(0, types_1.ApiProperty)({ isArray: true, type: access_dto_1.Access, nullable: true, required: false }),
|
|
83
|
-
(0, tslib_1.__metadata)("design:type", Array)
|
|
84
|
-
], Form.prototype, "access", void 0);
|
|
85
|
-
(0, tslib_1.__decorate)([
|
|
86
|
-
(0, types_1.Column)(type => access_dto_1.Access),
|
|
87
|
-
(0, types_1.ApiProperty)({ isArray: true, type: access_dto_1.Access, nullable: true, required: false }),
|
|
88
|
-
(0, tslib_1.__metadata)("design:type", Array)
|
|
89
|
-
], Form.prototype, "submissionAccess", void 0);
|
|
90
|
-
Form = (0, tslib_1.__decorate)([
|
|
91
|
-
decorators_1.Decorators.entity('form')
|
|
92
|
-
], Form);
|
|
93
|
-
exports.Form = Form;
|
|
94
|
-
const fakeForm = () => {
|
|
95
|
-
return {
|
|
96
|
-
id: faker.random.uuid(),
|
|
97
|
-
path: faker.name.firstName(),
|
|
98
|
-
title: faker.name.firstName(),
|
|
99
|
-
name: faker.name.firstName(),
|
|
100
|
-
type: faker.name.firstName(),
|
|
101
|
-
description: faker.random.words(),
|
|
102
|
-
tags: [faker.random.word(), faker.random.word(), faker.random.word()],
|
|
103
|
-
display: String(faker.random.boolean()),
|
|
104
|
-
action: faker.random.word(),
|
|
105
|
-
owner: faker.random.uuid(),
|
|
106
|
-
settings: faker.random.number(),
|
|
107
|
-
properties: faker.random.number(),
|
|
108
|
-
machineName: faker.random.word(),
|
|
109
|
-
created: faker.date.recent(),
|
|
110
|
-
updated: faker.date.recent(),
|
|
111
|
-
deleted: faker.date.recent(),
|
|
112
|
-
components: '',
|
|
113
|
-
access: [
|
|
114
|
-
{
|
|
115
|
-
type: faker.random.word(),
|
|
116
|
-
roles: [faker.random.uuid(), faker.random.uuid()]
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
submissionAccess: [
|
|
120
|
-
{
|
|
121
|
-
type: faker.random.word(),
|
|
122
|
-
roles: [faker.random.uuid(), faker.random.uuid()]
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
exports.fakeForm = fakeForm;
|
|
128
|
-
//# sourceMappingURL=form.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form.entity.js","sourceRoot":"","sources":["../../../../src/core/Nestjs/Form/form.entity.ts"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,sDAA8C;AAC9C,+CAAyD;AACzD,0DAAsD;AAGtD,IAAa,IAAI,GAAjB,MAAa,IAAI;CA4DhB,CAAA;AA1DC;IADC,uBAAU,CAAC,EAAE,EAAE;;gCACN;AAGV;IADC,uBAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kCAC1B;AAGZ;IADC,uBAAU,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;mCAC3B;AAGd;IADC,uBAAU,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kCAC5B;AAGb;IADC,uBAAU,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kCAC5B;AAGb;IADC,uBAAU,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yCACrB;AAIpB;IAFC,IAAA,cAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChD,IAAA,mBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kCAClD;AAGf;IADC,uBAAU,CAAC,QAAQ,CAAC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