@things-factory/biz-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.
Files changed (79) hide show
  1. package/dist-server/index.js +4 -17
  2. package/dist-server/index.js.map +1 -1
  3. package/dist-server/middlewares/index.js.map +1 -1
  4. package/dist-server/migrations/index.js.map +1 -1
  5. package/dist-server/service/biz-option/biz-option-mutation.js +38 -45
  6. package/dist-server/service/biz-option/biz-option-mutation.js.map +1 -1
  7. package/dist-server/service/biz-option/biz-option-query.js +17 -30
  8. package/dist-server/service/biz-option/biz-option-query.js.map +1 -1
  9. package/dist-server/service/biz-option/biz-option-types.js +24 -33
  10. package/dist-server/service/biz-option/biz-option-types.js.map +1 -1
  11. package/dist-server/service/biz-option/biz-option.js +22 -31
  12. package/dist-server/service/biz-option/biz-option.js.map +1 -1
  13. package/dist-server/service/biz-option/index.js.map +1 -1
  14. package/dist-server/service/biz-option-detail/biz-option-detail-mutation.js +34 -44
  15. package/dist-server/service/biz-option-detail/biz-option-detail-mutation.js.map +1 -1
  16. package/dist-server/service/biz-option-detail/biz-option-detail-query.js +16 -29
  17. package/dist-server/service/biz-option-detail/biz-option-detail-query.js.map +1 -1
  18. package/dist-server/service/biz-option-detail/biz-option-detail-types.js +20 -29
  19. package/dist-server/service/biz-option-detail/biz-option-detail-types.js.map +1 -1
  20. package/dist-server/service/biz-option-detail/biz-option-detail.js +20 -29
  21. package/dist-server/service/biz-option-detail/biz-option-detail.js.map +1 -1
  22. package/dist-server/service/biz-option-detail/index.js.map +1 -1
  23. package/dist-server/service/bizplace/bizplace-mutation.js +53 -65
  24. package/dist-server/service/bizplace/bizplace-mutation.js.map +1 -1
  25. package/dist-server/service/bizplace/bizplace-query.js +79 -88
  26. package/dist-server/service/bizplace/bizplace-query.js.map +1 -1
  27. package/dist-server/service/bizplace/bizplace-types.js +53 -62
  28. package/dist-server/service/bizplace/bizplace-types.js.map +1 -1
  29. package/dist-server/service/bizplace/bizplace.js +33 -42
  30. package/dist-server/service/bizplace/bizplace.js.map +1 -1
  31. package/dist-server/service/bizplace/index.js.map +1 -1
  32. package/dist-server/service/company/company-mutation.js +40 -51
  33. package/dist-server/service/company/company-mutation.js.map +1 -1
  34. package/dist-server/service/company/company-query.js +28 -44
  35. package/dist-server/service/company/company-query.js.map +1 -1
  36. package/dist-server/service/company/company-types.js +42 -50
  37. package/dist-server/service/company/company-types.js.map +1 -1
  38. package/dist-server/service/company/company.js +38 -47
  39. package/dist-server/service/company/company.js.map +1 -1
  40. package/dist-server/service/company/index.js.map +1 -1
  41. package/dist-server/service/contact-point/contact-point-mutation.js +45 -56
  42. package/dist-server/service/contact-point/contact-point-mutation.js.map +1 -1
  43. package/dist-server/service/contact-point/contact-point-query.js +17 -30
  44. package/dist-server/service/contact-point/contact-point-query.js.map +1 -1
  45. package/dist-server/service/contact-point/contact-point-types.js +80 -89
  46. package/dist-server/service/contact-point/contact-point-types.js.map +1 -1
  47. package/dist-server/service/contact-point/contact-point.js +48 -57
  48. package/dist-server/service/contact-point/contact-point.js.map +1 -1
  49. package/dist-server/service/contact-point/index.js.map +1 -1
  50. package/dist-server/service/index.js +13 -26
  51. package/dist-server/service/index.js.map +1 -1
  52. package/dist-server/service/worker/index.js.map +1 -1
  53. package/dist-server/service/worker/worker-mutation.js +40 -50
  54. package/dist-server/service/worker/worker-mutation.js.map +1 -1
  55. package/dist-server/service/worker/worker-query.js +16 -28
  56. package/dist-server/service/worker/worker-query.js.map +1 -1
  57. package/dist-server/service/worker/worker-types.js +28 -37
  58. package/dist-server/service/worker/worker-types.js.map +1 -1
  59. package/dist-server/service/worker/worker.js +22 -31
  60. package/dist-server/service/worker/worker.js.map +1 -1
  61. package/dist-server/tsconfig.tsbuildinfo +1 -0
  62. package/dist-server/utils/get-permitted-bizplaces.js +30 -24
  63. package/dist-server/utils/get-permitted-bizplaces.js.map +1 -1
  64. package/dist-server/utils/index.js +2 -15
  65. package/dist-server/utils/index.js.map +1 -1
  66. package/package.json +3 -3
  67. package/server/service/biz-option/biz-option-mutation.ts +26 -12
  68. package/server/service/biz-option/biz-option-query.ts +4 -5
  69. package/server/service/biz-option-detail/biz-option-detail-mutation.ts +13 -8
  70. package/server/service/biz-option-detail/biz-option-detail-query.ts +3 -4
  71. package/server/service/bizplace/bizplace-mutation.ts +11 -12
  72. package/server/service/bizplace/bizplace-query.ts +44 -37
  73. package/server/service/company/company-mutation.ts +15 -9
  74. package/server/service/company/company-query.ts +9 -14
  75. package/server/service/contact-point/contact-point-mutation.ts +18 -16
  76. package/server/service/contact-point/contact-point-query.ts +4 -5
  77. package/server/service/worker/worker-mutation.ts +10 -10
  78. package/server/service/worker/worker-query.ts +4 -4
  79. package/server/utils/get-permitted-bizplaces.ts +15 -9
@@ -1,33 +1,20 @@
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 __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var _a;
15
2
  Object.defineProperty(exports, "__esModule", { value: true });
16
3
  exports.ContactPointQuery = void 0;
4
+ const tslib_1 = require("tslib");
17
5
  const type_graphql_1 = require("type-graphql");
18
- const typeorm_1 = require("typeorm");
19
6
  const shell_1 = require("@things-factory/shell");
20
7
  const contact_point_1 = require("./contact-point");
21
8
  const contact_point_types_1 = require("./contact-point-types");
22
9
  let ContactPointQuery = class ContactPointQuery {
23
10
  async contactPoint(name, context) {
24
- return await (0, typeorm_1.getRepository)(contact_point_1.ContactPoint).findOne({
25
- where: { domain: context.state.domain, name },
11
+ return await (0, shell_1.getRepository)(contact_point_1.ContactPoint).findOne({
12
+ where: { domain: { id: context.state.domain.id }, name },
26
13
  relations: ['domain', 'bizplace', 'creator', 'updater']
27
14
  });
28
15
  }
29
16
  async contactPoints(params, context) {
30
- const queryBuilder = (0, typeorm_1.getRepository)(contact_point_1.ContactPoint).createQueryBuilder();
17
+ const queryBuilder = (0, shell_1.getRepository)(contact_point_1.ContactPoint).createQueryBuilder();
31
18
  (0, shell_1.buildQuery)(queryBuilder, params, context, {
32
19
  searchables: ['name', 'address', 'postCode', 'phone']
33
20
  });
@@ -40,25 +27,25 @@ let ContactPointQuery = class ContactPointQuery {
40
27
  return { items, total };
41
28
  }
42
29
  };
43
- __decorate([
30
+ tslib_1.__decorate([
44
31
  (0, type_graphql_1.Directive)('@privilege(category: "contact_point", privilege: "query")'),
45
32
  (0, type_graphql_1.Query)(returns => contact_point_1.ContactPoint),
46
- __param(0, (0, type_graphql_1.Arg)('name')),
47
- __param(1, (0, type_graphql_1.Ctx)()),
48
- __metadata("design:type", Function),
49
- __metadata("design:paramtypes", [String, Object]),
50
- __metadata("design:returntype", Promise)
33
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('name')),
34
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
35
+ tslib_1.__metadata("design:type", Function),
36
+ tslib_1.__metadata("design:paramtypes", [String, Object]),
37
+ tslib_1.__metadata("design:returntype", Promise)
51
38
  ], ContactPointQuery.prototype, "contactPoint", null);
52
- __decorate([
39
+ tslib_1.__decorate([
53
40
  (0, type_graphql_1.Directive)('@privilege(category: "contact_point", privilege: "query")'),
54
41
  (0, type_graphql_1.Query)(returns => contact_point_types_1.ContactPointList),
55
- __param(0, (0, type_graphql_1.Args)()),
56
- __param(1, (0, type_graphql_1.Ctx)()),
57
- __metadata("design:type", Function),
58
- __metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
59
- __metadata("design:returntype", Promise)
42
+ tslib_1.__param(0, (0, type_graphql_1.Args)()),
43
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
44
+ tslib_1.__metadata("design:type", Function),
45
+ tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
46
+ tslib_1.__metadata("design:returntype", Promise)
60
47
  ], ContactPointQuery.prototype, "contactPoints", null);
61
- ContactPointQuery = __decorate([
48
+ ContactPointQuery = tslib_1.__decorate([
62
49
  (0, type_graphql_1.Resolver)(contact_point_1.ContactPoint)
63
50
  ], ContactPointQuery);
64
51
  exports.ContactPointQuery = ContactPointQuery;
@@ -1 +1 @@
1
- {"version":3,"file":"contact-point-query.js","sourceRoot":"","sources":["../../../server/service/contact-point/contact-point-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAyE;AACzE,qCAAuC;AAEvC,iDAA6D;AAE7D,mDAA8C;AAC9C,+DAAwD;AAGxD,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAG5B,KAAK,CAAC,YAAY,CAAc,IAAY,EAAS,OAAY;QAC/D,OAAO,MAAM,IAAA,uBAAa,EAAC,4BAAY,CAAC,CAAC,OAAO,CAAC;YAC/C,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE;YAC7C,SAAS,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC;SACxD,CAAC,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,aAAa,CAAS,MAAiB,EAAS,OAAY;QAChE,MAAM,YAAY,GAAG,IAAA,uBAAa,EAAC,4BAAY,CAAC,CAAC,kBAAkB,EAAE,CAAA;QACrE,IAAA,kBAAU,EAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE;YACxC,WAAW,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC;SACtD,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY;aACtC,iBAAiB,CAAC,qBAAqB,EAAE,QAAQ,CAAC;aAClD,iBAAiB,CAAC,uBAAuB,EAAE,UAAU,CAAC;aACtD,iBAAiB,CAAC,sBAAsB,EAAE,SAAS,CAAC;aACpD,iBAAiB,CAAC,sBAAsB,EAAE,SAAS,CAAC;aACpD,eAAe,EAAE,CAAA;QAEpB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;CACF,CAAA;AAxBC;IAFC,IAAA,wBAAS,EAAC,2DAA2D,CAAC;IACtE,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,4BAAY,CAAC;IACX,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;qDAKnD;AAID;IAFC,IAAA,wBAAS,EAAC,2DAA2D,CAAC;IACtE,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,sCAAgB,CAAC;IACd,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;sDAc5C;AA1BU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,4BAAY,CAAC;GACV,iBAAiB,CA2B7B;AA3BY,8CAAiB"}
1
+ {"version":3,"file":"contact-point-query.js","sourceRoot":"","sources":["../../../server/service/contact-point/contact-point-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAyE;AAEzE,iDAA4E;AAE5E,mDAA8C;AAC9C,+DAAwD;AAGxD,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAG5B,KAAK,CAAC,YAAY,CAAc,IAAY,EAAS,OAAwB;QAC3E,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AAC;IACd,mBAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CAAjB,iBAAS;;sDAc5C;AA1BU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,4BAAY,CAAC;GACV,iBAAiB,CA2B7B;AA3BY,8CAAiB","sourcesContent":["import { Arg, Args, Ctx, Directive, Query, Resolver } from 'type-graphql'\n\nimport { buildQuery, getRepository, ListParam } from '@things-factory/shell'\n\nimport { ContactPoint } from './contact-point'\nimport { ContactPointList } from './contact-point-types'\n\n@Resolver(ContactPoint)\nexport class ContactPointQuery {\n @Directive('@privilege(category: \"contact_point\", privilege: \"query\")')\n @Query(returns => ContactPoint)\n async contactPoint(@Arg('name') name: string, @Ctx() context: ResolverContext): Promise<ContactPoint> {\n return await getRepository(ContactPoint).findOne({\n where: { domain: { id: context.state.domain.id }, name },\n relations: ['domain', 'bizplace', 'creator', 'updater']\n })\n }\n\n @Directive('@privilege(category: \"contact_point\", privilege: \"query\")')\n @Query(returns => ContactPointList)\n async contactPoints(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ContactPointList> {\n const queryBuilder = getRepository(ContactPoint).createQueryBuilder()\n buildQuery(queryBuilder, params, context, {\n searchables: ['name', 'address', 'postCode', 'phone']\n })\n\n const [items, total] = await queryBuilder\n .leftJoinAndSelect('ContactPoint.domain', 'Domain')\n .leftJoinAndSelect('ContactPoint.bizplace', 'Bizplace')\n .leftJoinAndSelect('ContactPoint.creator', 'Creator')\n .leftJoinAndSelect('ContactPoint.updater', 'Updater')\n .getManyAndCount()\n\n return { items, total }\n }\n}\n"]}
@@ -1,186 +1,177 @@
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;
12
2
  Object.defineProperty(exports, "__esModule", { value: true });
13
3
  exports.NewContactPoint = exports.ContactPointPatch = exports.ContactPointList = void 0;
4
+ const tslib_1 = require("tslib");
14
5
  const type_graphql_1 = require("type-graphql");
15
6
  const shell_1 = require("@things-factory/shell");
16
7
  const contact_point_1 = require("./contact-point");
17
8
  let ContactPointList = class ContactPointList {
18
9
  };
19
- __decorate([
10
+ tslib_1.__decorate([
20
11
  (0, type_graphql_1.Field)(type => [contact_point_1.ContactPoint], { nullable: true }),
21
- __metadata("design:type", Array)
12
+ tslib_1.__metadata("design:type", Array)
22
13
  ], ContactPointList.prototype, "items", void 0);
23
- __decorate([
14
+ tslib_1.__decorate([
24
15
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
25
- __metadata("design:type", Number)
16
+ tslib_1.__metadata("design:type", Number)
26
17
  ], ContactPointList.prototype, "total", void 0);
27
- ContactPointList = __decorate([
18
+ ContactPointList = tslib_1.__decorate([
28
19
  (0, type_graphql_1.ObjectType)()
29
20
  ], ContactPointList);
30
21
  exports.ContactPointList = ContactPointList;
31
22
  let ContactPointPatch = class ContactPointPatch {
32
23
  };
33
- __decorate([
24
+ tslib_1.__decorate([
34
25
  (0, type_graphql_1.Field)({ nullable: true }),
35
- __metadata("design:type", String)
26
+ tslib_1.__metadata("design:type", String)
36
27
  ], ContactPointPatch.prototype, "id", void 0);
37
- __decorate([
28
+ tslib_1.__decorate([
38
29
  (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
39
- __metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
30
+ tslib_1.__metadata("design:type", shell_1.ObjectRef)
40
31
  ], ContactPointPatch.prototype, "bizplace", void 0);
41
- __decorate([
32
+ tslib_1.__decorate([
42
33
  (0, type_graphql_1.Field)({ nullable: true }),
43
- __metadata("design:type", String)
34
+ tslib_1.__metadata("design:type", String)
44
35
  ], ContactPointPatch.prototype, "name", void 0);
45
- __decorate([
36
+ tslib_1.__decorate([
46
37
  (0, type_graphql_1.Field)({ nullable: true }),
47
- __metadata("design:type", String)
38
+ tslib_1.__metadata("design:type", String)
48
39
  ], ContactPointPatch.prototype, "email", void 0);
49
- __decorate([
40
+ tslib_1.__decorate([
50
41
  (0, type_graphql_1.Field)({ nullable: true }),
51
- __metadata("design:type", String)
42
+ tslib_1.__metadata("design:type", String)
52
43
  ], ContactPointPatch.prototype, "companyName", void 0);
53
- __decorate([
44
+ tslib_1.__decorate([
54
45
  (0, type_graphql_1.Field)({ nullable: true }),
55
- __metadata("design:type", String)
46
+ tslib_1.__metadata("design:type", String)
56
47
  ], ContactPointPatch.prototype, "accountNo", void 0);
57
- __decorate([
48
+ tslib_1.__decorate([
58
49
  (0, type_graphql_1.Field)({ nullable: true }),
59
- __metadata("design:type", String)
50
+ tslib_1.__metadata("design:type", String)
60
51
  ], ContactPointPatch.prototype, "address", void 0);
61
- __decorate([
52
+ tslib_1.__decorate([
62
53
  (0, type_graphql_1.Field)({ nullable: true }),
63
- __metadata("design:type", String)
54
+ tslib_1.__metadata("design:type", String)
64
55
  ], ContactPointPatch.prototype, "address2", void 0);
65
- __decorate([
56
+ tslib_1.__decorate([
66
57
  (0, type_graphql_1.Field)({ nullable: true }),
67
- __metadata("design:type", String)
58
+ tslib_1.__metadata("design:type", String)
68
59
  ], ContactPointPatch.prototype, "city", void 0);
69
- __decorate([
60
+ tslib_1.__decorate([
70
61
  (0, type_graphql_1.Field)({ nullable: true }),
71
- __metadata("design:type", String)
62
+ tslib_1.__metadata("design:type", String)
72
63
  ], ContactPointPatch.prototype, "state", void 0);
73
- __decorate([
64
+ tslib_1.__decorate([
74
65
  (0, type_graphql_1.Field)({ nullable: true }),
75
- __metadata("design:type", String)
66
+ tslib_1.__metadata("design:type", String)
76
67
  ], ContactPointPatch.prototype, "postCode", void 0);
77
- __decorate([
68
+ tslib_1.__decorate([
78
69
  (0, type_graphql_1.Field)({ nullable: true }),
79
- __metadata("design:type", String)
70
+ tslib_1.__metadata("design:type", String)
80
71
  ], ContactPointPatch.prototype, "billingAddress", void 0);
81
- __decorate([
72
+ tslib_1.__decorate([
82
73
  (0, type_graphql_1.Field)({ nullable: true }),
83
- __metadata("design:type", String)
74
+ tslib_1.__metadata("design:type", String)
84
75
  ], ContactPointPatch.prototype, "fax", void 0);
85
- __decorate([
76
+ tslib_1.__decorate([
86
77
  (0, type_graphql_1.Field)({ nullable: true }),
87
- __metadata("design:type", String)
78
+ tslib_1.__metadata("design:type", String)
88
79
  ], ContactPointPatch.prototype, "phone", void 0);
89
- __decorate([
80
+ tslib_1.__decorate([
90
81
  (0, type_graphql_1.Field)({ nullable: true }),
91
- __metadata("design:type", String)
82
+ tslib_1.__metadata("design:type", String)
92
83
  ], ContactPointPatch.prototype, "description", void 0);
93
- __decorate([
84
+ tslib_1.__decorate([
94
85
  (0, type_graphql_1.Field)({ nullable: true }),
95
- __metadata("design:type", String)
86
+ tslib_1.__metadata("design:type", String)
96
87
  ], ContactPointPatch.prototype, "type", void 0);
97
- __decorate([
88
+ tslib_1.__decorate([
98
89
  (0, type_graphql_1.Field)({ nullable: true }),
99
- __metadata("design:type", String)
90
+ tslib_1.__metadata("design:type", String)
100
91
  ], ContactPointPatch.prototype, "registrationNo", void 0);
101
- __decorate([
92
+ tslib_1.__decorate([
102
93
  (0, type_graphql_1.Field)({ nullable: true }),
103
- __metadata("design:type", String)
94
+ tslib_1.__metadata("design:type", String)
104
95
  ], ContactPointPatch.prototype, "businessType", void 0);
105
- __decorate([
96
+ tslib_1.__decorate([
106
97
  (0, type_graphql_1.Field)({ nullable: true }),
107
- __metadata("design:type", String)
98
+ tslib_1.__metadata("design:type", String)
108
99
  ], ContactPointPatch.prototype, "cuFlag", void 0);
109
- ContactPointPatch = __decorate([
100
+ ContactPointPatch = tslib_1.__decorate([
110
101
  (0, type_graphql_1.InputType)()
111
102
  ], ContactPointPatch);
112
103
  exports.ContactPointPatch = ContactPointPatch;
113
104
  let NewContactPoint = class NewContactPoint {
114
105
  };
115
- __decorate([
106
+ tslib_1.__decorate([
116
107
  (0, type_graphql_1.Field)(type => shell_1.ObjectRef),
117
- __metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
108
+ tslib_1.__metadata("design:type", shell_1.ObjectRef)
118
109
  ], NewContactPoint.prototype, "bizplace", void 0);
119
- __decorate([
110
+ tslib_1.__decorate([
120
111
  (0, type_graphql_1.Field)(),
121
- __metadata("design:type", String)
112
+ tslib_1.__metadata("design:type", String)
122
113
  ], NewContactPoint.prototype, "name", void 0);
123
- __decorate([
114
+ tslib_1.__decorate([
124
115
  (0, type_graphql_1.Field)({ nullable: true }),
125
- __metadata("design:type", String)
116
+ tslib_1.__metadata("design:type", String)
126
117
  ], NewContactPoint.prototype, "email", void 0);
127
- __decorate([
118
+ tslib_1.__decorate([
128
119
  (0, type_graphql_1.Field)({ nullable: true }),
129
- __metadata("design:type", String)
120
+ tslib_1.__metadata("design:type", String)
130
121
  ], NewContactPoint.prototype, "companyName", void 0);
131
- __decorate([
122
+ tslib_1.__decorate([
132
123
  (0, type_graphql_1.Field)({ nullable: true }),
133
- __metadata("design:type", String)
124
+ tslib_1.__metadata("design:type", String)
134
125
  ], NewContactPoint.prototype, "accountNo", void 0);
135
- __decorate([
126
+ tslib_1.__decorate([
136
127
  (0, type_graphql_1.Field)({ nullable: true }),
137
- __metadata("design:type", String)
128
+ tslib_1.__metadata("design:type", String)
138
129
  ], NewContactPoint.prototype, "address", void 0);
139
- __decorate([
130
+ tslib_1.__decorate([
140
131
  (0, type_graphql_1.Field)({ nullable: true }),
141
- __metadata("design:type", String)
132
+ tslib_1.__metadata("design:type", String)
142
133
  ], NewContactPoint.prototype, "address2", void 0);
143
- __decorate([
134
+ tslib_1.__decorate([
144
135
  (0, type_graphql_1.Field)({ nullable: true }),
145
- __metadata("design:type", String)
136
+ tslib_1.__metadata("design:type", String)
146
137
  ], NewContactPoint.prototype, "city", void 0);
147
- __decorate([
138
+ tslib_1.__decorate([
148
139
  (0, type_graphql_1.Field)({ nullable: true }),
149
- __metadata("design:type", String)
140
+ tslib_1.__metadata("design:type", String)
150
141
  ], NewContactPoint.prototype, "state", void 0);
151
- __decorate([
142
+ tslib_1.__decorate([
152
143
  (0, type_graphql_1.Field)({ nullable: true }),
153
- __metadata("design:type", String)
144
+ tslib_1.__metadata("design:type", String)
154
145
  ], NewContactPoint.prototype, "postCode", void 0);
155
- __decorate([
146
+ tslib_1.__decorate([
156
147
  (0, type_graphql_1.Field)({ nullable: true }),
157
- __metadata("design:type", String)
148
+ tslib_1.__metadata("design:type", String)
158
149
  ], NewContactPoint.prototype, "billingAddress", void 0);
159
- __decorate([
150
+ tslib_1.__decorate([
160
151
  (0, type_graphql_1.Field)({ nullable: true }),
161
- __metadata("design:type", String)
152
+ tslib_1.__metadata("design:type", String)
162
153
  ], NewContactPoint.prototype, "fax", void 0);
163
- __decorate([
154
+ tslib_1.__decorate([
164
155
  (0, type_graphql_1.Field)({ nullable: true }),
165
- __metadata("design:type", String)
156
+ tslib_1.__metadata("design:type", String)
166
157
  ], NewContactPoint.prototype, "phone", void 0);
167
- __decorate([
158
+ tslib_1.__decorate([
168
159
  (0, type_graphql_1.Field)({ nullable: true }),
169
- __metadata("design:type", String)
160
+ tslib_1.__metadata("design:type", String)
170
161
  ], NewContactPoint.prototype, "description", void 0);
171
- __decorate([
162
+ tslib_1.__decorate([
172
163
  (0, type_graphql_1.Field)({ nullable: true }),
173
- __metadata("design:type", String)
164
+ tslib_1.__metadata("design:type", String)
174
165
  ], NewContactPoint.prototype, "type", void 0);
175
- __decorate([
166
+ tslib_1.__decorate([
176
167
  (0, type_graphql_1.Field)({ nullable: true }),
177
- __metadata("design:type", String)
168
+ tslib_1.__metadata("design:type", String)
178
169
  ], NewContactPoint.prototype, "registrationNo", void 0);
179
- __decorate([
170
+ tslib_1.__decorate([
180
171
  (0, type_graphql_1.Field)({ nullable: true }),
181
- __metadata("design:type", String)
172
+ tslib_1.__metadata("design:type", String)
182
173
  ], NewContactPoint.prototype, "businessType", void 0);
183
- NewContactPoint = __decorate([
174
+ NewContactPoint = tslib_1.__decorate([
184
175
  (0, type_graphql_1.InputType)()
185
176
  ], NewContactPoint);
186
177
  exports.NewContactPoint = NewContactPoint;
@@ -1 +1 @@
1
- {"version":3,"file":"contact-point-types.js","sourceRoot":"","sources":["../../../server/service/contact-point/contact-point-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAgE;AAEhE,iDAAiD;AAEjD,mDAA8C;AAG9C,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;CAM5B,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC7B;AAGrB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC1B;AALF,gBAAgB;IAD5B,IAAA,yBAAU,GAAE;GACA,gBAAgB,CAM5B;AANY,4CAAgB;AAS7B,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;CAyD7B,CAAA;AAvDC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACf;AAGX;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAClC,iBAAS,oBAAT,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,EAAE,CAAC;;oDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACH;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACL;AAlDV,eAAe;IAD3B,IAAA,wBAAS,GAAE;GACC,eAAe,CAmD3B;AAnDY,0CAAe"}
1
+ {"version":3,"file":"contact-point-types.js","sourceRoot":"","sources":["../../../server/service/contact-point/contact-point-types.ts"],"names":[],"mappings":";;;;AAAA,+CAAgE;AAEhE,iDAAiD;AAEjD,mDAA8C;AAG9C,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;CAM5B,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC7B;AAGrB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC1B;AALF,gBAAgB;IAD5B,IAAA,yBAAU,GAAE;GACA,gBAAgB,CAM5B;AANY,4CAAgB;AAS7B,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;CAyD7B,CAAA;AAvDC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACf;AAGX;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAClC,iBAAS;mDAAA;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;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GvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACL;AAlDV,eAAe;IAD3B,IAAA,wBAAS,GAAE;GACC,eAAe,CAmD3B;AAnDY,0CAAe","sourcesContent":["import { Field, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nimport { ContactPoint } from './contact-point'\n\n@ObjectType()\nexport class ContactPointList {\n @Field(type => [ContactPoint], { nullable: true })\n items: ContactPoint[]\n\n @Field(type => Int, { nullable: true })\n total: number\n}\n\n@InputType()\nexport class ContactPointPatch {\n @Field({ nullable: true })\n id?: string\n\n @Field(type => ObjectRef, { nullable: true })\n bizplace?: ObjectRef\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n email?: string\n\n @Field({ nullable: true })\n companyName?: string\n\n @Field({ nullable: true })\n accountNo?: string\n\n @Field({ nullable: true })\n address?: string\n\n @Field({ nullable: true })\n address2?: string\n\n @Field({ nullable: true })\n city?: string\n\n @Field({ nullable: true })\n state?: string\n\n @Field({ nullable: true })\n postCode?: string\n\n @Field({ nullable: true })\n billingAddress?: string\n\n @Field({ nullable: true })\n fax?: string\n\n @Field({ nullable: true })\n phone?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Field({ nullable: true })\n registrationNo?: string\n\n @Field({ nullable: true })\n businessType?: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@InputType()\nexport class NewContactPoint {\n @Field(type => ObjectRef)\n bizplace: ObjectRef\n\n @Field()\n name: string\n\n @Field({ nullable: true })\n email?: string\n\n @Field({ nullable: true })\n companyName?: string\n\n @Field({ nullable: true })\n accountNo?: string\n\n @Field({ nullable: true })\n address?: string\n\n @Field({ nullable: true })\n address2?: string\n\n @Field({ nullable: true })\n city?: string\n\n @Field({ nullable: true })\n state?: string\n\n @Field({ nullable: true })\n postCode?: string\n\n @Field({ nullable: true })\n billingAddress?: string\n\n @Field({ nullable: true })\n fax?: string\n\n @Field({ nullable: true })\n phone?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Field({ nullable: true })\n registrationNo?: string\n\n @Field({ nullable: true })\n businessType?: string\n}\n"]}
@@ -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.ContactPoint = 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 auth_base_1 = require("@things-factory/auth-base");
@@ -18,122 +9,122 @@ const shell_1 = require("@things-factory/shell");
18
9
  const bizplace_1 = require("../bizplace/bizplace");
19
10
  let ContactPoint = class ContactPoint {
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
  ], ContactPoint.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)(),
29
- __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
20
+ tslib_1.__metadata("design:type", shell_1.Domain)
30
21
  ], ContactPoint.prototype, "domain", void 0);
31
- __decorate([
22
+ tslib_1.__decorate([
32
23
  (0, typeorm_1.ManyToOne)(type => bizplace_1.Bizplace),
33
24
  (0, type_graphql_1.Field)(type => bizplace_1.Bizplace),
34
- __metadata("design:type", bizplace_1.Bizplace)
25
+ tslib_1.__metadata("design:type", bizplace_1.Bizplace)
35
26
  ], ContactPoint.prototype, "bizplace", void 0);
36
- __decorate([
27
+ tslib_1.__decorate([
37
28
  (0, typeorm_1.Column)(),
38
29
  (0, type_graphql_1.Field)(),
39
- __metadata("design:type", String)
30
+ tslib_1.__metadata("design:type", String)
40
31
  ], ContactPoint.prototype, "name", void 0);
41
- __decorate([
32
+ tslib_1.__decorate([
42
33
  (0, typeorm_1.Column)({ nullable: true }),
43
34
  (0, type_graphql_1.Field)({ nullable: true }),
44
- __metadata("design:type", String)
35
+ tslib_1.__metadata("design:type", String)
45
36
  ], ContactPoint.prototype, "email", void 0);
46
- __decorate([
37
+ tslib_1.__decorate([
47
38
  (0, typeorm_1.Column)({ nullable: true }),
48
39
  (0, type_graphql_1.Field)({ nullable: true }),
49
- __metadata("design:type", String)
40
+ tslib_1.__metadata("design:type", String)
50
41
  ], ContactPoint.prototype, "address", void 0);
51
- __decorate([
42
+ tslib_1.__decorate([
52
43
  (0, typeorm_1.Column)({ nullable: true }),
53
44
  (0, type_graphql_1.Field)({ nullable: true }),
54
- __metadata("design:type", String)
45
+ tslib_1.__metadata("design:type", String)
55
46
  ], ContactPoint.prototype, "address2", void 0);
56
- __decorate([
47
+ tslib_1.__decorate([
57
48
  (0, typeorm_1.Column)({ nullable: true }),
58
49
  (0, type_graphql_1.Field)({ nullable: true }),
59
- __metadata("design:type", String)
50
+ tslib_1.__metadata("design:type", String)
60
51
  ], ContactPoint.prototype, "postCode", void 0);
61
- __decorate([
52
+ tslib_1.__decorate([
62
53
  (0, typeorm_1.Column)({ nullable: true }),
63
54
  (0, type_graphql_1.Field)({ nullable: true }),
64
- __metadata("design:type", String)
55
+ tslib_1.__metadata("design:type", String)
65
56
  ], ContactPoint.prototype, "city", void 0);
66
- __decorate([
57
+ tslib_1.__decorate([
67
58
  (0, typeorm_1.Column)({ nullable: true }),
68
59
  (0, type_graphql_1.Field)({ nullable: true }),
69
- __metadata("design:type", String)
60
+ tslib_1.__metadata("design:type", String)
70
61
  ], ContactPoint.prototype, "state", void 0);
71
- __decorate([
62
+ tslib_1.__decorate([
72
63
  (0, typeorm_1.Column)({ nullable: true }),
73
64
  (0, type_graphql_1.Field)({ nullable: true }),
74
- __metadata("design:type", String)
65
+ tslib_1.__metadata("design:type", String)
75
66
  ], ContactPoint.prototype, "billingAddress", void 0);
76
- __decorate([
67
+ tslib_1.__decorate([
77
68
  (0, typeorm_1.Column)({ nullable: true }),
78
69
  (0, type_graphql_1.Field)({ nullable: true }),
79
- __metadata("design:type", String)
70
+ tslib_1.__metadata("design:type", String)
80
71
  ], ContactPoint.prototype, "fax", void 0);
81
- __decorate([
72
+ tslib_1.__decorate([
82
73
  (0, typeorm_1.Column)({ nullable: true }),
83
74
  (0, type_graphql_1.Field)({ nullable: true }),
84
- __metadata("design:type", String)
75
+ tslib_1.__metadata("design:type", String)
85
76
  ], ContactPoint.prototype, "phone", void 0);
86
- __decorate([
77
+ tslib_1.__decorate([
87
78
  (0, typeorm_1.Column)({ nullable: true }),
88
79
  (0, type_graphql_1.Field)({ nullable: true }),
89
- __metadata("design:type", String)
80
+ tslib_1.__metadata("design:type", String)
90
81
  ], ContactPoint.prototype, "companyName", void 0);
91
- __decorate([
82
+ tslib_1.__decorate([
92
83
  (0, typeorm_1.Column)({ nullable: true }),
93
84
  (0, type_graphql_1.Field)({ nullable: true }),
94
- __metadata("design:type", String)
85
+ tslib_1.__metadata("design:type", String)
95
86
  ], ContactPoint.prototype, "accountNo", void 0);
96
- __decorate([
87
+ tslib_1.__decorate([
97
88
  (0, typeorm_1.Column)({ nullable: true }),
98
89
  (0, type_graphql_1.Field)({ nullable: true }),
99
- __metadata("design:type", String)
90
+ tslib_1.__metadata("design:type", String)
100
91
  ], ContactPoint.prototype, "type", void 0);
101
- __decorate([
92
+ tslib_1.__decorate([
102
93
  (0, typeorm_1.Column)({ nullable: true }),
103
94
  (0, type_graphql_1.Field)({ nullable: true }),
104
- __metadata("design:type", String)
95
+ tslib_1.__metadata("design:type", String)
105
96
  ], ContactPoint.prototype, "description", void 0);
106
- __decorate([
97
+ tslib_1.__decorate([
107
98
  (0, typeorm_1.Column)({ nullable: true }),
108
99
  (0, type_graphql_1.Field)({ nullable: true }),
109
- __metadata("design:type", String)
100
+ tslib_1.__metadata("design:type", String)
110
101
  ], ContactPoint.prototype, "registrationNo", void 0);
111
- __decorate([
102
+ tslib_1.__decorate([
112
103
  (0, typeorm_1.Column)({ nullable: true }),
113
104
  (0, type_graphql_1.Field)({ nullable: true }),
114
- __metadata("design:type", String)
105
+ tslib_1.__metadata("design:type", String)
115
106
  ], ContactPoint.prototype, "businessType", void 0);
116
- __decorate([
107
+ tslib_1.__decorate([
117
108
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
118
109
  (0, type_graphql_1.Field)({ nullable: true }),
119
- __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
110
+ tslib_1.__metadata("design:type", auth_base_1.User)
120
111
  ], ContactPoint.prototype, "creator", void 0);
121
- __decorate([
112
+ tslib_1.__decorate([
122
113
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
123
114
  (0, type_graphql_1.Field)({ nullable: true }),
124
- __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
115
+ tslib_1.__metadata("design:type", auth_base_1.User)
125
116
  ], ContactPoint.prototype, "updater", void 0);
126
- __decorate([
117
+ tslib_1.__decorate([
127
118
  (0, typeorm_1.CreateDateColumn)(),
128
119
  (0, type_graphql_1.Field)({ nullable: true }),
129
- __metadata("design:type", Date)
120
+ tslib_1.__metadata("design:type", Date)
130
121
  ], ContactPoint.prototype, "createdAt", void 0);
131
- __decorate([
122
+ tslib_1.__decorate([
132
123
  (0, typeorm_1.UpdateDateColumn)(),
133
124
  (0, type_graphql_1.Field)({ nullable: true }),
134
- __metadata("design:type", Date)
125
+ tslib_1.__metadata("design:type", Date)
135
126
  ], ContactPoint.prototype, "updatedAt", void 0);
136
- ContactPoint = __decorate([
127
+ ContactPoint = tslib_1.__decorate([
137
128
  (0, typeorm_1.Entity)(),
138
129
  (0, typeorm_1.Index)('ix_contact_points_0', (contactPoint) => [
139
130
  contactPoint.name,
@@ -1 +1 @@
1
- {"version":3,"file":"contact-point.js","sourceRoot":"","sources":["../../../server/service/contact-point/contact-point.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoD;AACpD,qCAAsH;AAEtH,yDAAgD;AAChD,iDAA8C;AAE9C,mDAA+C;AAgB/C,IAAa,YAAY,GAAzB,MAAa,YAAY;CA4FxB,CAAA;AAzFC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;wCACR;AAIV;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,GAAE;kDACA,cAAM,oBAAN,cAAM;4CAAA;AAId;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,CAAC;IAC3B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,CAAC;8BACd,mBAAQ;8CAAA;AAIlB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;0CACI;AAIZ;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,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CAAA;AAIb;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACf,IAAI;+CAAA;AAIf;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACf,IAAI;+CAAA;AA3FJ,YAAY;IAdxB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,qBAAqB,EACrB,CAAC,YAA0B,EAAE,EAAE,CAAC;QAC9B,YAAY,CAAC,IAAI;QACjB,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,WAAW;QACxB,YAAY,CAAC,OAAO;QACpB,YAAY,CAAC,cAAc;QAC3B,YAAY,CAAC,SAAS;KACvB,EACD,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,GAAE;GACA,YAAY,CA4FxB;AA5FY,oCAAY","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { Bizplace } from '../bizplace/bizplace'\n\n@Entity()\n@Index(\n 'ix_contact_points_0',\n (contactPoint: ContactPoint) => [\n contactPoint.name,\n contactPoint.email,\n contactPoint.companyName,\n contactPoint.address,\n contactPoint.billingAddress,\n contactPoint.accountNo\n ],\n { unique: true }\n)\n@ObjectType()\nexport class ContactPoint {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n id: string\n\n @ManyToOne(type => Domain)\n @Field()\n domain: Domain\n\n @ManyToOne(type => Bizplace)\n @Field(type => Bizplace)\n bizplace: Bizplace\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n email: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n address: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n address2: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n postCode: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n city: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n billingAddress: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n fax: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n phone: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n companyName: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n accountNo: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n type: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n registrationNo: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n businessType: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n creator: User\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater: User\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/contact-point/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAC9C,qEAA+D;AAC/D,+DAAyD;AAE5C,QAAA,QAAQ,GAAG,CAAC,4BAAY,CAAC,CAAA;AACzB,QAAA,SAAS,GAAG,CAAC,uCAAiB,EAAE,6CAAoB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/contact-point/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAC9C,qEAA+D;AAC/D,+DAAyD;AAE5C,QAAA,QAAQ,GAAG,CAAC,4BAAY,CAAC,CAAA;AACzB,QAAA,SAAS,GAAG,CAAC,uCAAiB,EAAE,6CAAoB,CAAC,CAAA","sourcesContent":["import { ContactPoint } from './contact-point'\nimport { ContactPointMutation } from './contact-point-mutation'\nimport { ContactPointQuery } from './contact-point-query'\n\nexport const entities = [ContactPoint]\nexport const resolvers = [ContactPointQuery, ContactPointMutation]\n"]}