@things-factory/font-base 5.0.7 → 6.0.0-alpha.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-server/controllers/google-fonts.js +2 -4
- package/dist-server/controllers/google-fonts.js.map +1 -1
- package/dist-server/index.js +3 -16
- package/dist-server/index.js.map +1 -1
- package/dist-server/migrations/1556862253039-SeedFont.js +5 -6
- package/dist-server/migrations/1556862253039-SeedFont.js.map +1 -1
- package/dist-server/migrations/index.js.map +1 -1
- package/dist-server/routes.js.map +1 -1
- package/dist-server/service/font/font-mutation.js +28 -40
- package/dist-server/service/font/font-mutation.js.map +1 -1
- package/dist-server/service/font/font-query.js +43 -56
- package/dist-server/service/font/font-query.js.map +1 -1
- package/dist-server/service/font/font-type.js +33 -44
- package/dist-server/service/font/font-type.js.map +1 -1
- package/dist-server/service/font/font.js +32 -41
- package/dist-server/service/font/font.js.map +1 -1
- package/dist-server/service/font/index.js.map +1 -1
- package/dist-server/service/index.js +3 -16
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +6 -6
- package/server/migrations/1556862253039-SeedFont.ts +5 -5
- package/server/service/font/font-mutation.ts +6 -7
- package/server/service/font/font-query.ts +10 -11
|
@@ -1,16 +1,7 @@
|
|
|
1
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
|
-
var _a, _b, _c;
|
|
12
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
3
|
exports.Font = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
14
5
|
const type_graphql_1 = require("type-graphql");
|
|
15
6
|
const typeorm_1 = require("typeorm");
|
|
16
7
|
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
@@ -18,86 +9,86 @@ const auth_base_1 = require("@things-factory/auth-base");
|
|
|
18
9
|
const shell_1 = require("@things-factory/shell");
|
|
19
10
|
let Font = class Font {
|
|
20
11
|
};
|
|
21
|
-
__decorate([
|
|
12
|
+
tslib_1.__decorate([
|
|
22
13
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
23
14
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
24
|
-
__metadata("design:type", String)
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
25
16
|
], Font.prototype, "id", void 0);
|
|
26
|
-
__decorate([
|
|
17
|
+
tslib_1.__decorate([
|
|
27
18
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
28
19
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
29
|
-
__metadata("design:type",
|
|
20
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
30
21
|
], Font.prototype, "domain", void 0);
|
|
31
|
-
__decorate([
|
|
22
|
+
tslib_1.__decorate([
|
|
32
23
|
(0, typeorm_1.RelationId)((font) => font.domain),
|
|
33
|
-
__metadata("design:type", String)
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
34
25
|
], Font.prototype, "domainId", void 0);
|
|
35
|
-
__decorate([
|
|
26
|
+
tslib_1.__decorate([
|
|
36
27
|
(0, typeorm_1.Column)(),
|
|
37
28
|
(0, type_graphql_1.Field)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
39
30
|
], Font.prototype, "name", void 0);
|
|
40
|
-
__decorate([
|
|
31
|
+
tslib_1.__decorate([
|
|
41
32
|
(0, typeorm_1.Column)(),
|
|
42
33
|
(0, type_graphql_1.Field)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
34
|
+
tslib_1.__metadata("design:type", String)
|
|
44
35
|
], Font.prototype, "provider", void 0);
|
|
45
|
-
__decorate([
|
|
36
|
+
tslib_1.__decorate([
|
|
46
37
|
(0, typeorm_1.Column)({
|
|
47
38
|
nullable: true
|
|
48
39
|
}),
|
|
49
40
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
50
|
-
__metadata("design:type", String)
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
51
42
|
], Font.prototype, "uri", void 0);
|
|
52
|
-
__decorate([
|
|
43
|
+
tslib_1.__decorate([
|
|
53
44
|
(0, typeorm_1.Column)({
|
|
54
45
|
nullable: true
|
|
55
46
|
}),
|
|
56
47
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
57
|
-
__metadata("design:type", String)
|
|
48
|
+
tslib_1.__metadata("design:type", String)
|
|
58
49
|
], Font.prototype, "path", void 0);
|
|
59
|
-
__decorate([
|
|
50
|
+
tslib_1.__decorate([
|
|
60
51
|
(0, typeorm_1.Column)(),
|
|
61
52
|
(0, type_graphql_1.Field)(),
|
|
62
|
-
__metadata("design:type", Boolean)
|
|
53
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
63
54
|
], Font.prototype, "active", void 0);
|
|
64
|
-
__decorate([
|
|
55
|
+
tslib_1.__decorate([
|
|
65
56
|
(0, type_graphql_1.Field)(type => [attachment_base_1.Attachment], { nullable: true }),
|
|
66
|
-
__metadata("design:type", Array)
|
|
57
|
+
tslib_1.__metadata("design:type", Array)
|
|
67
58
|
], Font.prototype, "files", void 0);
|
|
68
|
-
__decorate([
|
|
59
|
+
tslib_1.__decorate([
|
|
69
60
|
(0, typeorm_1.CreateDateColumn)(),
|
|
70
61
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
71
|
-
__metadata("design:type", Date)
|
|
62
|
+
tslib_1.__metadata("design:type", Date)
|
|
72
63
|
], Font.prototype, "createdAt", void 0);
|
|
73
|
-
__decorate([
|
|
64
|
+
tslib_1.__decorate([
|
|
74
65
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
75
66
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
76
|
-
__metadata("design:type", Date)
|
|
67
|
+
tslib_1.__metadata("design:type", Date)
|
|
77
68
|
], Font.prototype, "updatedAt", void 0);
|
|
78
|
-
__decorate([
|
|
69
|
+
tslib_1.__decorate([
|
|
79
70
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
80
71
|
nullable: true
|
|
81
72
|
}),
|
|
82
73
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
83
|
-
__metadata("design:type",
|
|
74
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
84
75
|
], Font.prototype, "creator", void 0);
|
|
85
|
-
__decorate([
|
|
76
|
+
tslib_1.__decorate([
|
|
86
77
|
(0, typeorm_1.RelationId)((font) => font.creator),
|
|
87
|
-
__metadata("design:type", String)
|
|
78
|
+
tslib_1.__metadata("design:type", String)
|
|
88
79
|
], Font.prototype, "creatorId", void 0);
|
|
89
|
-
__decorate([
|
|
80
|
+
tslib_1.__decorate([
|
|
90
81
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
91
82
|
nullable: true
|
|
92
83
|
}),
|
|
93
84
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
94
|
-
__metadata("design:type",
|
|
85
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
95
86
|
], Font.prototype, "updater", void 0);
|
|
96
|
-
__decorate([
|
|
87
|
+
tslib_1.__decorate([
|
|
97
88
|
(0, typeorm_1.RelationId)((font) => font.creator),
|
|
98
|
-
__metadata("design:type", String)
|
|
89
|
+
tslib_1.__metadata("design:type", String)
|
|
99
90
|
], Font.prototype, "updaterId", void 0);
|
|
100
|
-
Font = __decorate([
|
|
91
|
+
Font = tslib_1.__decorate([
|
|
101
92
|
(0, typeorm_1.Entity)(),
|
|
102
93
|
(0, typeorm_1.Index)('ix_font_0', (font) => [font.domain, font.name], { unique: true }),
|
|
103
94
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for Font' })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"font.js","sourceRoot":"","sources":["../../../server/service/font/font.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"font.js","sourceRoot":"","sources":["../../../server/service/font/font.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,qEAA4D;AAC5D,yDAAgD;AAChD,iDAA8C;AAK9C,IAAa,IAAI,GAAjB,MAAa,IAAI;CAgEhB,CAAA;AA7DC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gCACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;oCAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;;sCACvB;AAIjB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;kCACI;AAIZ;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;sCACQ;AAMhB;IAJC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iCACd;AAMZ;IAJC,IAAA,gBAAM,EAAC;QACN,QAAQ,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,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9E,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;GAClC,IAAI,CAgEhB;AAhEY,oBAAI","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { Attachment } from '@things-factory/attachment-base'\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\n@Entity()\n@Index('ix_font_0', (font: Font) => [font.domain, font.name], { unique: true })\n@ObjectType({ description: 'Entity for Font' })\nexport class Font {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((font: Font) => font.domain)\n domainId?: string\n\n @Column()\n @Field()\n name: string\n\n @Column()\n @Field()\n provider: string // custom, typekit, google,\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n uri?: string // For typekit, custom,\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n path?: string // Uploaded path for custom\n\n @Column()\n @Field()\n active: boolean\n\n @Field(type => [Attachment], { nullable: true })\n files?: Attachment[]\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((font: Font) => font.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((font: Font) => font.creator)\n updaterId?: string\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/font/index.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,6CAAwC;AACxC,mDAA8C;AAEjC,QAAA,QAAQ,GAAG,CAAC,WAAI,CAAC,CAAA;AACjB,QAAA,SAAS,GAAG,CAAC,sBAAS,EAAE,4BAAY,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/font/index.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,6CAAwC;AACxC,mDAA8C;AAEjC,QAAA,QAAQ,GAAG,CAAC,WAAI,CAAC,CAAA;AACjB,QAAA,SAAS,GAAG,CAAC,sBAAS,EAAE,4BAAY,CAAC,CAAA","sourcesContent":["import { Font } from './font'\nimport { FontQuery } from './font-query'\nimport { FontMutation } from './font-mutation'\n\nexport const entities = [Font]\nexport const resolvers = [FontQuery, FontMutation]\n"]}
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.schema = exports.entities = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
18
5
|
/* IMPORT ENTITIES AND RESOLVERS */
|
|
19
6
|
const font_1 = require("./font");
|
|
20
7
|
/* EXPORT ENTITY TYPES */
|
|
21
|
-
__exportStar(require("./font/font"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./font/font"), exports);
|
|
22
9
|
/* EXPORT TYPES */
|
|
23
|
-
__exportStar(require("./font/font-type"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./font/font-type"), exports);
|
|
24
11
|
exports.entities = [
|
|
25
12
|
/* ENTITIES */
|
|
26
13
|
...font_1.entities
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,mCAAmC;AACnC,iCAA6E;AAE7E,yBAAyB;AACzB,sDAA2B;AAE3B,kBAAkB;AAClB,2DAAgC;AAEnB,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,eAAY;CAChB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,gBAAa;KACjB;CACF,CAAA","sourcesContent":["/* IMPORT ENTITIES AND RESOLVERS */\nimport { entities as FontEntities, resolvers as FontResolvers } from './font'\n\n/* EXPORT ENTITY TYPES */\nexport * from './font/font'\n\n/* EXPORT TYPES */\nexport * from './font/font-type'\n\nexport const entities = [\n /* ENTITIES */\n ...FontEntities\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n ...FontResolvers\n ]\n}\n"]}
|