@things-factory/font-base 4.3.582 → 4.3.671

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/font-base",
3
- "version": "4.3.582",
3
+ "version": "4.3.671",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -23,8 +23,8 @@
23
23
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
24
24
  },
25
25
  "dependencies": {
26
- "@things-factory/auth-base": "^4.3.582",
27
- "@things-factory/shell": "^4.3.535"
26
+ "@things-factory/auth-base": "^4.3.671",
27
+ "@things-factory/shell": "^4.3.671"
28
28
  },
29
- "gitHead": "00d138f3862bca8dd019dc457eaff707d38b6b60"
29
+ "gitHead": "ef524cb207378186ec71917d9a8546363d4300b2"
30
30
  }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getAllGoogleFonts = void 0;
7
- const env_1 = require("@things-factory/env");
8
- const node_fetch_1 = __importDefault(require("node-fetch"));
9
- const address = 'https://www.googleapis.com/webfonts/v1/webfonts?key=';
10
- async function getAllGoogleFonts() {
11
- var key = env_1.config.get('googleFontAPIKey');
12
- if (!key) {
13
- console.warn("[things-factory/font-base] Could not read API key. Please check 'googleFontAPIKey' property in your configuration.");
14
- return [];
15
- }
16
- var response = await (0, node_fetch_1.default)(`${address}${key}`);
17
- if (response.ok) {
18
- return (await response.json()).items.map(font => font.family);
19
- }
20
- else {
21
- let errorMsg = '';
22
- errorMsg += `[things-factory/font-base] ${response.status} - ${response.statusText}.`;
23
- switch (response.status) {
24
- case 400:
25
- errorMsg += '\nYour API key may be incorrect or expired.';
26
- break;
27
- }
28
- console.warn(errorMsg);
29
- return [];
30
- }
31
- }
32
- exports.getAllGoogleFonts = getAllGoogleFonts;
33
- //# sourceMappingURL=google-fonts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"google-fonts.js","sourceRoot":"","sources":["../../server/controllers/google-fonts.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAC5C,4DAA8B;AAE9B,MAAM,OAAO,GAAG,sDAAsD,CAAA;AAE/D,KAAK,UAAU,iBAAiB;IACrC,IAAI,GAAG,GAAG,YAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAA;IACxC,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,CAAC,IAAI,CACV,oHAAoH,CACrH,CAAA;QACD,OAAO,EAAE,CAAA;KACV;IACD,IAAI,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,OAAO,GAAG,GAAG,EAAE,CAAC,CAAA;IAC9C,IAAI,QAAQ,CAAC,EAAE,EAAE;QACf,OAAO,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;KAC9D;SAAM;QACL,IAAI,QAAQ,GAAG,EAAE,CAAA;QACjB,QAAQ,IAAI,8BAA8B,QAAQ,CAAC,MAAM,MAAM,QAAQ,CAAC,UAAU,GAAG,CAAA;QACrF,QAAQ,QAAQ,CAAC,MAAM,EAAE;YACvB,KAAK,GAAG;gBACN,QAAQ,IAAI,6CAA6C,CAAA;gBACzD,MAAK;SACR;QACD,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACtB,OAAO,EAAE,CAAA;KACV;AACH,CAAC;AAtBD,8CAsBC"}
@@ -1,20 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./service"), exports);
18
- __exportStar(require("./migrations"), exports);
19
- require("./routes");
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B;AAE5B,oBAAiB"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.seedFonts1556862253039 = void 0;
4
- const typeorm_1 = require("typeorm");
5
- const shell_1 = require("@things-factory/shell");
6
- const font_1 = require("../service/font/font");
7
- const SEED_FONTS = ['Roboto', 'Pangolin', 'Railway', 'Slabo', 'Skranji'];
8
- class seedFonts1556862253039 {
9
- async up(queryRunner) {
10
- const repository = (0, typeorm_1.getRepository)(font_1.Font);
11
- const domainRepository = (0, typeorm_1.getRepository)(shell_1.Domain);
12
- const domain = await domainRepository.findOne({
13
- name: 'SYSTEM'
14
- });
15
- return await Promise.all(SEED_FONTS.map(async (font) => {
16
- await repository.save({
17
- name: font,
18
- domain,
19
- provider: 'google',
20
- uri: '',
21
- path: '',
22
- active: true
23
- });
24
- }));
25
- }
26
- async down(queryRunner) {
27
- const repository = (0, typeorm_1.getRepository)(font_1.Font);
28
- SEED_FONTS.reverse().forEach(async (font) => {
29
- let record = await repository.findOne({ name: font });
30
- await repository.remove(record);
31
- });
32
- }
33
- }
34
- exports.seedFonts1556862253039 = seedFonts1556862253039;
35
- //# sourceMappingURL=1556862253039-SeedFont.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"1556862253039-SeedFont.js","sourceRoot":"","sources":["../../server/migrations/1556862253039-SeedFont.ts"],"names":[],"mappings":";;;AAEA,qCAAuC;AACvC,iDAA8C;AAC9C,+CAA2C;AAE3C,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAA;AAExE,MAAa,sBAAsB;IAC1B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,WAAI,CAAC,CAAA;QACtC,MAAM,gBAAgB,GAAG,IAAA,uBAAa,EAAC,cAAM,CAAC,CAAA;QAC9C,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC;YAC5C,IAAI,EAAE,QAAQ;SACf,CAAC,CAAA;QAEF,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,UAAU,CAAC,GAAG,CAAC,KAAK,EAAC,IAAI,EAAC,EAAE;YAC1B,MAAM,UAAU,CAAC,IAAI,CAAC;gBACpB,IAAI,EAAE,IAAI;gBACV,MAAM;gBACN,QAAQ,EAAE,QAAQ;gBAClB,GAAG,EAAE,EAAE;gBACP,IAAI,EAAE,EAAE;gBACR,MAAM,EAAE,IAAI;aACb,CAAC,CAAA;QACJ,CAAC,CAAC,CACH,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,WAAI,CAAC,CAAA;QAEtC,UAAU,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,EAAC,IAAI,EAAC,EAAE;YACxC,IAAI,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;YACrD,MAAM,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACjC,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AA9BD,wDA8BC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.migrations = void 0;
4
- const glob = require('glob');
5
- const path = require('path');
6
- exports.migrations = [];
7
- glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function (file) {
8
- if (file.indexOf('index.js') !== -1)
9
- return;
10
- exports.migrations = exports.migrations.concat(Object.values(require(path.resolve(file))) || []);
11
- });
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/migrations/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAEjB,QAAA,UAAU,GAAG,EAAE,CAAA;AAE1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,UAAS,IAAI;IACzE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAAE,OAAM;IAC3C,kBAAU,GAAG,kBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;AAClF,CAAC,CAAC,CAAA"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const google_fonts_1 = require("./controllers/google-fonts");
4
- process.on('bootstrap-module-global-public-route', (app, routes) => {
5
- routes.get('/all-google-fonts', async (context, next) => {
6
- context.type = 'application/json';
7
- context.body = await (0, google_fonts_1.getAllGoogleFonts)();
8
- });
9
- });
10
- //# sourceMappingURL=routes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAAA,6DAA8D;AAE9D,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;IACxE,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QACtD,OAAO,CAAC,IAAI,GAAG,kBAAkB,CAAA;QACjC,OAAO,CAAC,IAAI,GAAG,MAAM,IAAA,gCAAiB,GAAE,CAAA;IAC1C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,101 +0,0 @@
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 __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.FontMutation = void 0;
16
- const type_graphql_1 = require("type-graphql");
17
- const typeorm_1 = require("typeorm");
18
- const shell_1 = require("@things-factory/shell");
19
- const font_1 = require("./font");
20
- const font_type_1 = require("./font-type");
21
- function notifyChanges(event, domain, font) {
22
- const { name, provider, uri, path, active } = font;
23
- const { subdomain } = domain;
24
- shell_1.pubsub.publish('notify-font-changed', {
25
- event,
26
- font: {
27
- domain: {
28
- subdomain
29
- },
30
- name,
31
- provider,
32
- uri,
33
- path,
34
- active
35
- }
36
- });
37
- }
38
- let FontMutation = class FontMutation {
39
- async createFont(font, context) {
40
- const { domain, user } = context.state;
41
- const repository = (0, typeorm_1.getRepository)(font_1.Font);
42
- const created = await repository.save(Object.assign({ domain, creator: user, updater: user }, font));
43
- notifyChanges('created', domain, created);
44
- return created;
45
- }
46
- async updateFont(id, patch, context) {
47
- const { domain, user } = context.state;
48
- const repository = (0, typeorm_1.getRepository)(font_1.Font);
49
- const font = await repository.findOne({
50
- where: {
51
- domain,
52
- id
53
- }
54
- });
55
- const updated = await repository.save(Object.assign(Object.assign(Object.assign({}, font), patch), { updater: user }));
56
- notifyChanges('updated', domain, updated);
57
- return updated;
58
- }
59
- async deleteFont(id, context) {
60
- const { domain } = context.state;
61
- const repository = (0, typeorm_1.getRepository)(font_1.Font);
62
- const font = await repository.findOne({
63
- where: { domain, id }
64
- });
65
- if (font) {
66
- await repository.remove(font);
67
- }
68
- notifyChanges('removed', domain, font);
69
- return true;
70
- }
71
- };
72
- __decorate([
73
- (0, type_graphql_1.Mutation)(returns => font_1.Font, { description: 'To create new Font' }),
74
- __param(0, (0, type_graphql_1.Arg)('font')),
75
- __param(1, (0, type_graphql_1.Ctx)()),
76
- __metadata("design:type", Function),
77
- __metadata("design:paramtypes", [font_type_1.NewFont, Object]),
78
- __metadata("design:returntype", Promise)
79
- ], FontMutation.prototype, "createFont", null);
80
- __decorate([
81
- (0, type_graphql_1.Mutation)(returns => font_1.Font, { description: 'To modify Font information' }),
82
- __param(0, (0, type_graphql_1.Arg)('id')),
83
- __param(1, (0, type_graphql_1.Arg)('patch')),
84
- __param(2, (0, type_graphql_1.Ctx)()),
85
- __metadata("design:type", Function),
86
- __metadata("design:paramtypes", [String, font_type_1.FontPatch, Object]),
87
- __metadata("design:returntype", Promise)
88
- ], FontMutation.prototype, "updateFont", null);
89
- __decorate([
90
- (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete Font' }),
91
- __param(0, (0, type_graphql_1.Arg)('id')),
92
- __param(1, (0, type_graphql_1.Ctx)()),
93
- __metadata("design:type", Function),
94
- __metadata("design:paramtypes", [String, Object]),
95
- __metadata("design:returntype", Promise)
96
- ], FontMutation.prototype, "deleteFont", null);
97
- FontMutation = __decorate([
98
- (0, type_graphql_1.Resolver)(font_1.Font)
99
- ], FontMutation);
100
- exports.FontMutation = FontMutation;
101
- //# sourceMappingURL=font-mutation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"font-mutation.js","sourceRoot":"","sources":["../../../server/service/font/font-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA2D;AAC3D,qCAAuC;AAEvC,iDAA8C;AAE9C,iCAA6B;AAC7B,2CAAgD;AAEhD,SAAS,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI;IACxC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAClD,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAA;IAC5B,cAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE;QACpC,KAAK;QACL,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,SAAS;aACV;YACD,IAAI;YACJ,QAAQ;YACR,GAAG;YACH,IAAI;YACJ,MAAM;SACP;KACF,CAAC,CAAA;AACJ,CAAC;AAEM,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEjB,AAAN,KAAK,CAAC,UAAU,CAAc,IAAa,EAAS,OAAY;QAC9D,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,WAAI,CAAC,CAAA;QAEtC,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,IAAI,iBACnC,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACV,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C;IAC/C,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IAAiB,WAAA,IAAA,kBAAG,GAAE,CAAA;;qCAAf,mBAAO;;8CAe1C;AAGK;IADL,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,WAAI,EAAE,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IACvD,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,EAAC,OAAO,CAAC,CAAA;IAAoB,WAAA,IAAA,kBAAG,GAAE,CAAA;;6CAAjB,qBAAS;;8CAoBrE;AAGK;IADL,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAC9C,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;8CAe7C;AA1DU,YAAY;IADxB,IAAA,uBAAQ,EAAC,WAAI,CAAC;GACF,YAAY,CA2DxB;AA3DY,oCAAY"}
@@ -1,87 +0,0 @@
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 __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var _a;
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.FontQuery = void 0;
17
- const type_graphql_1 = require("type-graphql");
18
- const typeorm_1 = require("typeorm");
19
- const shell_1 = require("@things-factory/shell");
20
- const auth_base_1 = require("@things-factory/auth-base");
21
- const font_1 = require("./font");
22
- const font_type_1 = require("./font-type");
23
- let FontQuery = class FontQuery {
24
- async font(id, context) {
25
- const { domain } = context.state;
26
- return await (0, typeorm_1.getRepository)(font_1.Font).findOne({
27
- where: { domain, id }
28
- });
29
- }
30
- async fonts(params, context) {
31
- const { domain } = context.state;
32
- const convertedParams = (0, shell_1.convertListParams)(params, domain.id);
33
- const [items, total] = await (0, typeorm_1.getRepository)(font_1.Font).findAndCount(convertedParams);
34
- return { items, total };
35
- }
36
- async domain(font) {
37
- return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(font.domainId);
38
- }
39
- async updater(font) {
40
- return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(font.updaterId);
41
- }
42
- async creator(font) {
43
- return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(font.creatorId);
44
- }
45
- };
46
- __decorate([
47
- (0, type_graphql_1.Query)(returns => font_1.Font, { description: 'To fetch a Font' }),
48
- __param(0, (0, type_graphql_1.Arg)('id')),
49
- __param(1, (0, type_graphql_1.Ctx)()),
50
- __metadata("design:type", Function),
51
- __metadata("design:paramtypes", [String, Object]),
52
- __metadata("design:returntype", Promise)
53
- ], FontQuery.prototype, "font", null);
54
- __decorate([
55
- (0, type_graphql_1.Query)(returns => font_type_1.FontList, { description: 'To fetch multiple Fonts' }),
56
- __param(0, (0, type_graphql_1.Args)()),
57
- __param(1, (0, type_graphql_1.Ctx)()),
58
- __metadata("design:type", Function),
59
- __metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
60
- __metadata("design:returntype", Promise)
61
- ], FontQuery.prototype, "fonts", null);
62
- __decorate([
63
- (0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
64
- __param(0, (0, type_graphql_1.Root)()),
65
- __metadata("design:type", Function),
66
- __metadata("design:paramtypes", [font_1.Font]),
67
- __metadata("design:returntype", Promise)
68
- ], FontQuery.prototype, "domain", null);
69
- __decorate([
70
- (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
71
- __param(0, (0, type_graphql_1.Root)()),
72
- __metadata("design:type", Function),
73
- __metadata("design:paramtypes", [font_1.Font]),
74
- __metadata("design:returntype", Promise)
75
- ], FontQuery.prototype, "updater", null);
76
- __decorate([
77
- (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
78
- __param(0, (0, type_graphql_1.Root)()),
79
- __metadata("design:type", Function),
80
- __metadata("design:paramtypes", [font_1.Font]),
81
- __metadata("design:returntype", Promise)
82
- ], FontQuery.prototype, "creator", null);
83
- FontQuery = __decorate([
84
- (0, type_graphql_1.Resolver)(font_1.Font)
85
- ], FontQuery);
86
- exports.FontQuery = FontQuery;
87
- //# sourceMappingURL=font-query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"font-query.js","sourceRoot":"","sources":["../../../server/service/font/font-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA8F;AAC9F,qCAAuC;AACvC,iDAA4E;AAC5E,yDAAgD;AAChD,iCAA6B;AAC7B,2CAAsC;AAG/B,IAAM,SAAS,GAAf,MAAM,SAAS;IAEd,AAAN,KAAK,CAAC,IAAI,CAAY,EAAU,EAAS,OAAY;QACnD,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,uBAAa,EAAC,WAAI,CAAC,CAAC,OAAO,CAAC;YACvC,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;SACtB,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,KAAK,CAAS,MAAiB,EAAS,OAAY;QACxD,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,e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AChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAO,WAAI;;uCAE9B;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAO,WAAI;;wCAE/B;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAO,WAAI;;wCAE/B;AAjCU,SAAS;IADrB,IAAA,uBAAQ,EAAC,WAAI,CAAC;GACF,SAAS,CAkCrB;AAlCY,8BAAS"}
@@ -1,81 +0,0 @@
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.FontList = exports.FontPatch = exports.NewFont = void 0;
13
- const type_graphql_1 = require("type-graphql");
14
- const font_1 = require("./font");
15
- let NewFont = class NewFont {
16
- };
17
- __decorate([
18
- (0, type_graphql_1.Field)(),
19
- __metadata("design:type", String)
20
- ], NewFont.prototype, "name", void 0);
21
- __decorate([
22
- (0, type_graphql_1.Field)({ nullable: true }),
23
- __metadata("design:type", String)
24
- ], NewFont.prototype, "provider", void 0);
25
- __decorate([
26
- (0, type_graphql_1.Field)({ nullable: true }),
27
- __metadata("design:type", String)
28
- ], NewFont.prototype, "uri", void 0);
29
- __decorate([
30
- (0, type_graphql_1.Field)({ nullable: true }),
31
- __metadata("design:type", String)
32
- ], NewFont.prototype, "path", void 0);
33
- __decorate([
34
- (0, type_graphql_1.Field)({ nullable: true }),
35
- __metadata("design:type", Boolean)
36
- ], NewFont.prototype, "active", void 0);
37
- NewFont = __decorate([
38
- (0, type_graphql_1.InputType)()
39
- ], NewFont);
40
- exports.NewFont = NewFont;
41
- let FontPatch = class FontPatch {
42
- };
43
- __decorate([
44
- (0, type_graphql_1.Field)({ nullable: true }),
45
- __metadata("design:type", String)
46
- ], FontPatch.prototype, "name", void 0);
47
- __decorate([
48
- (0, type_graphql_1.Field)({ nullable: true }),
49
- __metadata("design:type", String)
50
- ], FontPatch.prototype, "provider", void 0);
51
- __decorate([
52
- (0, type_graphql_1.Field)({ nullable: true }),
53
- __metadata("design:type", String)
54
- ], FontPatch.prototype, "uri", void 0);
55
- __decorate([
56
- (0, type_graphql_1.Field)({ nullable: true }),
57
- __metadata("design:type", String)
58
- ], FontPatch.prototype, "path", void 0);
59
- __decorate([
60
- (0, type_graphql_1.Field)({ nullable: true }),
61
- __metadata("design:type", Boolean)
62
- ], FontPatch.prototype, "active", void 0);
63
- FontPatch = __decorate([
64
- (0, type_graphql_1.InputType)()
65
- ], FontPatch);
66
- exports.FontPatch = FontPatch;
67
- let FontList = class FontList {
68
- };
69
- __decorate([
70
- (0, type_graphql_1.Field)(type => [font_1.Font]),
71
- __metadata("design:type", Array)
72
- ], FontList.prototype, "items", void 0);
73
- __decorate([
74
- (0, type_graphql_1.Field)(type => type_graphql_1.Int),
75
- __metadata("design:type", Number)
76
- ], FontList.prototype, "total", void 0);
77
- FontList = __decorate([
78
- (0, type_graphql_1.ObjectType)()
79
- ], FontList);
80
- exports.FontList = FontList;
81
- //# sourceMappingURL=font-type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"font-type.js","sourceRoot":"","sources":["../../../server/service/font/font-type.ts"],"names":[],"mappings":";;;;;;;;;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,yBAAU,GAAE;GACA,QAAQ,CAMpB;AANY,4BAAQ"}
@@ -1,101 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.Font = void 0;
14
- const type_graphql_1 = require("type-graphql");
15
- const typeorm_1 = require("typeorm");
16
- const auth_base_1 = require("@things-factory/auth-base");
17
- const shell_1 = require("@things-factory/shell");
18
- let Font = class Font {
19
- };
20
- __decorate([
21
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
- (0, type_graphql_1.Field)(type => type_graphql_1.ID),
23
- __metadata("design:type", String)
24
- ], Font.prototype, "id", void 0);
25
- __decorate([
26
- (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
27
- (0, type_graphql_1.Field)({ nullable: true }),
28
- __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
29
- ], Font.prototype, "domain", void 0);
30
- __decorate([
31
- (0, typeorm_1.RelationId)((font) => font.domain),
32
- __metadata("design:type", String)
33
- ], Font.prototype, "domainId", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)(),
36
- (0, type_graphql_1.Field)(),
37
- __metadata("design:type", String)
38
- ], Font.prototype, "name", void 0);
39
- __decorate([
40
- (0, typeorm_1.Column)(),
41
- (0, type_graphql_1.Field)(),
42
- __metadata("design:type", String)
43
- ], Font.prototype, "provider", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({
46
- nullable: true
47
- }),
48
- (0, type_graphql_1.Field)({ nullable: true }),
49
- __metadata("design:type", String)
50
- ], Font.prototype, "uri", void 0);
51
- __decorate([
52
- (0, typeorm_1.Column)({
53
- nullable: true
54
- }),
55
- (0, type_graphql_1.Field)({ nullable: true }),
56
- __metadata("design:type", String)
57
- ], Font.prototype, "path", void 0);
58
- __decorate([
59
- (0, typeorm_1.Column)(),
60
- (0, type_graphql_1.Field)(),
61
- __metadata("design:type", Boolean)
62
- ], Font.prototype, "active", void 0);
63
- __decorate([
64
- (0, typeorm_1.CreateDateColumn)(),
65
- (0, type_graphql_1.Field)({ nullable: true }),
66
- __metadata("design:type", Date)
67
- ], Font.prototype, "createdAt", void 0);
68
- __decorate([
69
- (0, typeorm_1.UpdateDateColumn)(),
70
- (0, type_graphql_1.Field)({ nullable: true }),
71
- __metadata("design:type", Date)
72
- ], Font.prototype, "updatedAt", void 0);
73
- __decorate([
74
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
75
- nullable: true
76
- }),
77
- (0, type_graphql_1.Field)({ nullable: true }),
78
- __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
79
- ], Font.prototype, "creator", void 0);
80
- __decorate([
81
- (0, typeorm_1.RelationId)((font) => font.creator),
82
- __metadata("design:type", String)
83
- ], Font.prototype, "creatorId", void 0);
84
- __decorate([
85
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
86
- nullable: true
87
- }),
88
- (0, type_graphql_1.Field)({ nullable: true }),
89
- __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
90
- ], Font.prototype, "updater", void 0);
91
- __decorate([
92
- (0, typeorm_1.RelationId)((font) => font.creator),
93
- __metadata("design:type", String)
94
- ], Font.prototype, "updaterId", void 0);
95
- Font = __decorate([
96
- (0, typeorm_1.Entity)(),
97
- (0, typeorm_1.Index)('ix_font_0', (font) => [font.domain, font.name], { unique: true }),
98
- (0, type_graphql_1.ObjectType)({ description: 'Entity for Font' })
99
- ], Font);
100
- exports.Font = Font;
101
- //# sourceMappingURL=font.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"font.js","sourceRoot":"","sources":["../../../server/service/font/font.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAKvC,IAAM,IAAI,GAAV,MAAM,IAAI;CA6DhB,CAAA;AA5DC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjB,cAAM,oBAAN,cAAM;oCAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;;sCACvB;AAEjB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;kCACI;AAEZ;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;sCACQ;AAEhB;IAAC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iCACd;AAEZ;IAAC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACb;AAEb;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;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1 = require("./font");
5
- const font_query_1 = require("./font-query");
6
- const font_mutation_1 = require("./font-mutation");
7
- exports.entities = [font_1.Font];
8
- exports.resolvers = [font_query_1.FontQuery, font_mutation_1.FontMutation];
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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,34 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.schema = exports.entities = void 0;
18
- /* IMPORT ENTITIES AND RESOLVERS */
19
- const font_1 = require("./font");
20
- /* EXPORT ENTITY TYPES */
21
- __exportStar(require("./font/font"), exports);
22
- /* EXPORT TYPES */
23
- __exportStar(require("./font/font-type"), exports);
24
- exports.entities = [
25
- /* ENTITIES */
26
- ...font_1.entities
27
- ];
28
- exports.schema = {
29
- resolverClasses: [
30
- /* RESOLVER CLASSES */
31
- ...font_1.resolvers
32
- ]
33
- };
34
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mCAAmC;AACnC,iCAA6E;AAE7E,yBAAyB;AACzB,8CAA2B;AAE3B,kBAAkB;AAClB,mDAAgC;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"}