@things-factory/biz-base 5.0.7 → 5.0.11

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 (69) 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 +27 -38
  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 +14 -25
  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 -32
  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 -30
  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 +27 -38
  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 +13 -24
  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 -28
  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 -28
  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 +38 -49
  24. package/dist-server/service/bizplace/bizplace-mutation.js.map +1 -1
  25. package/dist-server/service/bizplace/bizplace-query.js +65 -76
  26. package/dist-server/service/bizplace/bizplace-query.js.map +1 -1
  27. package/dist-server/service/bizplace/bizplace-types.js +53 -61
  28. package/dist-server/service/bizplace/bizplace-types.js.map +1 -1
  29. package/dist-server/service/bizplace/bizplace.js +33 -41
  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 +32 -43
  33. package/dist-server/service/company/company-mutation.js.map +1 -1
  34. package/dist-server/service/company/company-query.js +23 -38
  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 -46
  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 +33 -44
  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 +14 -25
  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 -88
  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 -56
  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 +32 -43
  54. package/dist-server/service/worker/worker-mutation.js.map +1 -1
  55. package/dist-server/service/worker/worker-query.js +14 -25
  56. package/dist-server/service/worker/worker-query.js.map +1 -1
  57. package/dist-server/service/worker/worker-types.js +28 -36
  58. package/dist-server/service/worker/worker-types.js.map +1 -1
  59. package/dist-server/service/worker/worker.js +22 -30
  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.map +1 -1
  63. package/dist-server/utils/index.js +2 -15
  64. package/dist-server/utils/index.js.map +1 -1
  65. package/package.json +3 -3
  66. package/server/service/bizplace/bizplace-query.ts +28 -27
  67. package/server/service/company/company-query.ts +0 -5
  68. package/server/service/contact-point/contact-point-mutation.ts +1 -1
  69. package/server/utils/get-permitted-bizplaces.ts +3 -3
@@ -1,19 +1,8 @@
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
2
  var _a;
15
3
  Object.defineProperty(exports, "__esModule", { value: true });
16
4
  exports.ContactPointQuery = void 0;
5
+ const tslib_1 = require("tslib");
17
6
  const type_graphql_1 = require("type-graphql");
18
7
  const typeorm_1 = require("typeorm");
19
8
  const shell_1 = require("@things-factory/shell");
@@ -40,25 +29,25 @@ let ContactPointQuery = class ContactPointQuery {
40
29
  return { items, total };
41
30
  }
42
31
  };
43
- __decorate([
32
+ tslib_1.__decorate([
44
33
  (0, type_graphql_1.Directive)('@privilege(category: "contact_point", privilege: "query")'),
45
34
  (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)
35
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('name')),
36
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
37
+ tslib_1.__metadata("design:type", Function),
38
+ tslib_1.__metadata("design:paramtypes", [String, Object]),
39
+ tslib_1.__metadata("design:returntype", Promise)
51
40
  ], ContactPointQuery.prototype, "contactPoint", null);
52
- __decorate([
41
+ tslib_1.__decorate([
53
42
  (0, type_graphql_1.Directive)('@privilege(category: "contact_point", privilege: "query")'),
54
43
  (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)
44
+ tslib_1.__param(0, (0, type_graphql_1.Args)()),
45
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
46
+ tslib_1.__metadata("design:type", Function),
47
+ tslib_1.__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
48
+ tslib_1.__metadata("design:returntype", Promise)
60
49
  ], ContactPointQuery.prototype, "contactPoints", null);
61
- ContactPointQuery = __decorate([
50
+ ContactPointQuery = tslib_1.__decorate([
62
51
  (0, type_graphql_1.Resolver)(contact_point_1.ContactPoint)
63
52
  ], ContactPointQuery);
64
53
  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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,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;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,mBAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IAAgB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;qDAKnD;AAID;IAFC,IAAA,wBAAS,EAAC,2DAA2D,CAAC;IACtE,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,sCAAgB,CAAC;IACd,mBAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;iEAAjB,iBAAS,oBAAT,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'\nimport { getRepository } from 'typeorm'\n\nimport { buildQuery, 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: any): Promise<ContactPoint> {\n return await getRepository(ContactPoint).findOne({\n where: { domain: context.state.domain, 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: any): 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,178 @@
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
2
  var _a, _b;
12
3
  Object.defineProperty(exports, "__esModule", { value: true });
13
4
  exports.NewContactPoint = exports.ContactPointPatch = exports.ContactPointList = void 0;
5
+ const tslib_1 = require("tslib");
14
6
  const type_graphql_1 = require("type-graphql");
15
7
  const shell_1 = require("@things-factory/shell");
16
8
  const contact_point_1 = require("./contact-point");
17
9
  let ContactPointList = class ContactPointList {
18
10
  };
19
- __decorate([
11
+ tslib_1.__decorate([
20
12
  (0, type_graphql_1.Field)(type => [contact_point_1.ContactPoint], { nullable: true }),
21
- __metadata("design:type", Array)
13
+ tslib_1.__metadata("design:type", Array)
22
14
  ], ContactPointList.prototype, "items", void 0);
23
- __decorate([
15
+ tslib_1.__decorate([
24
16
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
25
- __metadata("design:type", Number)
17
+ tslib_1.__metadata("design:type", Number)
26
18
  ], ContactPointList.prototype, "total", void 0);
27
- ContactPointList = __decorate([
19
+ ContactPointList = tslib_1.__decorate([
28
20
  (0, type_graphql_1.ObjectType)()
29
21
  ], ContactPointList);
30
22
  exports.ContactPointList = ContactPointList;
31
23
  let ContactPointPatch = class ContactPointPatch {
32
24
  };
33
- __decorate([
25
+ tslib_1.__decorate([
34
26
  (0, type_graphql_1.Field)({ nullable: true }),
35
- __metadata("design:type", String)
27
+ tslib_1.__metadata("design:type", String)
36
28
  ], ContactPointPatch.prototype, "id", void 0);
37
- __decorate([
29
+ tslib_1.__decorate([
38
30
  (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)
31
+ tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
40
32
  ], ContactPointPatch.prototype, "bizplace", void 0);
41
- __decorate([
33
+ tslib_1.__decorate([
42
34
  (0, type_graphql_1.Field)({ nullable: true }),
43
- __metadata("design:type", String)
35
+ tslib_1.__metadata("design:type", String)
44
36
  ], ContactPointPatch.prototype, "name", void 0);
45
- __decorate([
37
+ tslib_1.__decorate([
46
38
  (0, type_graphql_1.Field)({ nullable: true }),
47
- __metadata("design:type", String)
39
+ tslib_1.__metadata("design:type", String)
48
40
  ], ContactPointPatch.prototype, "email", void 0);
49
- __decorate([
41
+ tslib_1.__decorate([
50
42
  (0, type_graphql_1.Field)({ nullable: true }),
51
- __metadata("design:type", String)
43
+ tslib_1.__metadata("design:type", String)
52
44
  ], ContactPointPatch.prototype, "companyName", void 0);
53
- __decorate([
45
+ tslib_1.__decorate([
54
46
  (0, type_graphql_1.Field)({ nullable: true }),
55
- __metadata("design:type", String)
47
+ tslib_1.__metadata("design:type", String)
56
48
  ], ContactPointPatch.prototype, "accountNo", void 0);
57
- __decorate([
49
+ tslib_1.__decorate([
58
50
  (0, type_graphql_1.Field)({ nullable: true }),
59
- __metadata("design:type", String)
51
+ tslib_1.__metadata("design:type", String)
60
52
  ], ContactPointPatch.prototype, "address", void 0);
61
- __decorate([
53
+ tslib_1.__decorate([
62
54
  (0, type_graphql_1.Field)({ nullable: true }),
63
- __metadata("design:type", String)
55
+ tslib_1.__metadata("design:type", String)
64
56
  ], ContactPointPatch.prototype, "address2", void 0);
65
- __decorate([
57
+ tslib_1.__decorate([
66
58
  (0, type_graphql_1.Field)({ nullable: true }),
67
- __metadata("design:type", String)
59
+ tslib_1.__metadata("design:type", String)
68
60
  ], ContactPointPatch.prototype, "city", void 0);
69
- __decorate([
61
+ tslib_1.__decorate([
70
62
  (0, type_graphql_1.Field)({ nullable: true }),
71
- __metadata("design:type", String)
63
+ tslib_1.__metadata("design:type", String)
72
64
  ], ContactPointPatch.prototype, "state", void 0);
73
- __decorate([
65
+ tslib_1.__decorate([
74
66
  (0, type_graphql_1.Field)({ nullable: true }),
75
- __metadata("design:type", String)
67
+ tslib_1.__metadata("design:type", String)
76
68
  ], ContactPointPatch.prototype, "postCode", void 0);
77
- __decorate([
69
+ tslib_1.__decorate([
78
70
  (0, type_graphql_1.Field)({ nullable: true }),
79
- __metadata("design:type", String)
71
+ tslib_1.__metadata("design:type", String)
80
72
  ], ContactPointPatch.prototype, "billingAddress", void 0);
81
- __decorate([
73
+ tslib_1.__decorate([
82
74
  (0, type_graphql_1.Field)({ nullable: true }),
83
- __metadata("design:type", String)
75
+ tslib_1.__metadata("design:type", String)
84
76
  ], ContactPointPatch.prototype, "fax", void 0);
85
- __decorate([
77
+ tslib_1.__decorate([
86
78
  (0, type_graphql_1.Field)({ nullable: true }),
87
- __metadata("design:type", String)
79
+ tslib_1.__metadata("design:type", String)
88
80
  ], ContactPointPatch.prototype, "phone", void 0);
89
- __decorate([
81
+ tslib_1.__decorate([
90
82
  (0, type_graphql_1.Field)({ nullable: true }),
91
- __metadata("design:type", String)
83
+ tslib_1.__metadata("design:type", String)
92
84
  ], ContactPointPatch.prototype, "description", void 0);
93
- __decorate([
85
+ tslib_1.__decorate([
94
86
  (0, type_graphql_1.Field)({ nullable: true }),
95
- __metadata("design:type", String)
87
+ tslib_1.__metadata("design:type", String)
96
88
  ], ContactPointPatch.prototype, "type", void 0);
97
- __decorate([
89
+ tslib_1.__decorate([
98
90
  (0, type_graphql_1.Field)({ nullable: true }),
99
- __metadata("design:type", String)
91
+ tslib_1.__metadata("design:type", String)
100
92
  ], ContactPointPatch.prototype, "registrationNo", void 0);
101
- __decorate([
93
+ tslib_1.__decorate([
102
94
  (0, type_graphql_1.Field)({ nullable: true }),
103
- __metadata("design:type", String)
95
+ tslib_1.__metadata("design:type", String)
104
96
  ], ContactPointPatch.prototype, "businessType", void 0);
105
- __decorate([
97
+ tslib_1.__decorate([
106
98
  (0, type_graphql_1.Field)({ nullable: true }),
107
- __metadata("design:type", String)
99
+ tslib_1.__metadata("design:type", String)
108
100
  ], ContactPointPatch.prototype, "cuFlag", void 0);
109
- ContactPointPatch = __decorate([
101
+ ContactPointPatch = tslib_1.__decorate([
110
102
  (0, type_graphql_1.InputType)()
111
103
  ], ContactPointPatch);
112
104
  exports.ContactPointPatch = ContactPointPatch;
113
105
  let NewContactPoint = class NewContactPoint {
114
106
  };
115
- __decorate([
107
+ tslib_1.__decorate([
116
108
  (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)
109
+ tslib_1.__metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
118
110
  ], NewContactPoint.prototype, "bizplace", void 0);
119
- __decorate([
111
+ tslib_1.__decorate([
120
112
  (0, type_graphql_1.Field)(),
121
- __metadata("design:type", String)
113
+ tslib_1.__metadata("design:type", String)
122
114
  ], NewContactPoint.prototype, "name", void 0);
123
- __decorate([
115
+ tslib_1.__decorate([
124
116
  (0, type_graphql_1.Field)({ nullable: true }),
125
- __metadata("design:type", String)
117
+ tslib_1.__metadata("design:type", String)
126
118
  ], NewContactPoint.prototype, "email", void 0);
127
- __decorate([
119
+ tslib_1.__decorate([
128
120
  (0, type_graphql_1.Field)({ nullable: true }),
129
- __metadata("design:type", String)
121
+ tslib_1.__metadata("design:type", String)
130
122
  ], NewContactPoint.prototype, "companyName", void 0);
131
- __decorate([
123
+ tslib_1.__decorate([
132
124
  (0, type_graphql_1.Field)({ nullable: true }),
133
- __metadata("design:type", String)
125
+ tslib_1.__metadata("design:type", String)
134
126
  ], NewContactPoint.prototype, "accountNo", void 0);
135
- __decorate([
127
+ tslib_1.__decorate([
136
128
  (0, type_graphql_1.Field)({ nullable: true }),
137
- __metadata("design:type", String)
129
+ tslib_1.__metadata("design:type", String)
138
130
  ], NewContactPoint.prototype, "address", void 0);
139
- __decorate([
131
+ tslib_1.__decorate([
140
132
  (0, type_graphql_1.Field)({ nullable: true }),
141
- __metadata("design:type", String)
133
+ tslib_1.__metadata("design:type", String)
142
134
  ], NewContactPoint.prototype, "address2", void 0);
143
- __decorate([
135
+ tslib_1.__decorate([
144
136
  (0, type_graphql_1.Field)({ nullable: true }),
145
- __metadata("design:type", String)
137
+ tslib_1.__metadata("design:type", String)
146
138
  ], NewContactPoint.prototype, "city", void 0);
147
- __decorate([
139
+ tslib_1.__decorate([
148
140
  (0, type_graphql_1.Field)({ nullable: true }),
149
- __metadata("design:type", String)
141
+ tslib_1.__metadata("design:type", String)
150
142
  ], NewContactPoint.prototype, "state", void 0);
151
- __decorate([
143
+ tslib_1.__decorate([
152
144
  (0, type_graphql_1.Field)({ nullable: true }),
153
- __metadata("design:type", String)
145
+ tslib_1.__metadata("design:type", String)
154
146
  ], NewContactPoint.prototype, "postCode", void 0);
155
- __decorate([
147
+ tslib_1.__decorate([
156
148
  (0, type_graphql_1.Field)({ nullable: true }),
157
- __metadata("design:type", String)
149
+ tslib_1.__metadata("design:type", String)
158
150
  ], NewContactPoint.prototype, "billingAddress", void 0);
159
- __decorate([
151
+ tslib_1.__decorate([
160
152
  (0, type_graphql_1.Field)({ nullable: true }),
161
- __metadata("design:type", String)
153
+ tslib_1.__metadata("design:type", String)
162
154
  ], NewContactPoint.prototype, "fax", void 0);
163
- __decorate([
155
+ tslib_1.__decorate([
164
156
  (0, type_graphql_1.Field)({ nullable: true }),
165
- __metadata("design:type", String)
157
+ tslib_1.__metadata("design:type", String)
166
158
  ], NewContactPoint.prototype, "phone", void 0);
167
- __decorate([
159
+ tslib_1.__decorate([
168
160
  (0, type_graphql_1.Field)({ nullable: true }),
169
- __metadata("design:type", String)
161
+ tslib_1.__metadata("design:type", String)
170
162
  ], NewContactPoint.prototype, "description", void 0);
171
- __decorate([
163
+ tslib_1.__decorate([
172
164
  (0, type_graphql_1.Field)({ nullable: true }),
173
- __metadata("design:type", String)
165
+ tslib_1.__metadata("design:type", String)
174
166
  ], NewContactPoint.prototype, "type", void 0);
175
- __decorate([
167
+ tslib_1.__decorate([
176
168
  (0, type_graphql_1.Field)({ nullable: true }),
177
- __metadata("design:type", String)
169
+ tslib_1.__metadata("design:type", String)
178
170
  ], NewContactPoint.prototype, "registrationNo", void 0);
179
- __decorate([
171
+ tslib_1.__decorate([
180
172
  (0, type_graphql_1.Field)({ nullable: true }),
181
- __metadata("design:type", String)
173
+ tslib_1.__metadata("design:type", String)
182
174
  ], NewContactPoint.prototype, "businessType", void 0);
183
- NewContactPoint = __decorate([
175
+ NewContactPoint = tslib_1.__decorate([
184
176
  (0, type_graphql_1.InputType)()
185
177
  ], NewContactPoint);
186
178
  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,CAA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E,IAAI,EAAE,CAAC;;6CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACH;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACd;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,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;IA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Q,EAAE,IAAI,EAAE,CAAC;;iDACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACH;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACd;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,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","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,8 @@
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
2
  var _a, _b, _c;
12
3
  Object.defineProperty(exports, "__esModule", { value: true });
13
4
  exports.ContactPoint = void 0;
5
+ const tslib_1 = require("tslib");
14
6
  const type_graphql_1 = require("type-graphql");
15
7
  const typeorm_1 = require("typeorm");
16
8
  const auth_base_1 = require("@things-factory/auth-base");
@@ -18,122 +10,122 @@ const shell_1 = require("@things-factory/shell");
18
10
  const bizplace_1 = require("../bizplace/bizplace");
19
11
  let ContactPoint = class ContactPoint {
20
12
  };
21
- __decorate([
13
+ tslib_1.__decorate([
22
14
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
23
15
  (0, type_graphql_1.Field)(type => type_graphql_1.ID),
24
- __metadata("design:type", String)
16
+ tslib_1.__metadata("design:type", String)
25
17
  ], ContactPoint.prototype, "id", void 0);
26
- __decorate([
18
+ tslib_1.__decorate([
27
19
  (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
28
20
  (0, type_graphql_1.Field)(),
29
- __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
21
+ tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
30
22
  ], ContactPoint.prototype, "domain", void 0);
31
- __decorate([
23
+ tslib_1.__decorate([
32
24
  (0, typeorm_1.ManyToOne)(type => bizplace_1.Bizplace),
33
25
  (0, type_graphql_1.Field)(type => bizplace_1.Bizplace),
34
- __metadata("design:type", bizplace_1.Bizplace)
26
+ tslib_1.__metadata("design:type", bizplace_1.Bizplace)
35
27
  ], ContactPoint.prototype, "bizplace", void 0);
36
- __decorate([
28
+ tslib_1.__decorate([
37
29
  (0, typeorm_1.Column)(),
38
30
  (0, type_graphql_1.Field)(),
39
- __metadata("design:type", String)
31
+ tslib_1.__metadata("design:type", String)
40
32
  ], ContactPoint.prototype, "name", void 0);
41
- __decorate([
33
+ tslib_1.__decorate([
42
34
  (0, typeorm_1.Column)({ nullable: true }),
43
35
  (0, type_graphql_1.Field)({ nullable: true }),
44
- __metadata("design:type", String)
36
+ tslib_1.__metadata("design:type", String)
45
37
  ], ContactPoint.prototype, "email", void 0);
46
- __decorate([
38
+ tslib_1.__decorate([
47
39
  (0, typeorm_1.Column)({ nullable: true }),
48
40
  (0, type_graphql_1.Field)({ nullable: true }),
49
- __metadata("design:type", String)
41
+ tslib_1.__metadata("design:type", String)
50
42
  ], ContactPoint.prototype, "address", void 0);
51
- __decorate([
43
+ tslib_1.__decorate([
52
44
  (0, typeorm_1.Column)({ nullable: true }),
53
45
  (0, type_graphql_1.Field)({ nullable: true }),
54
- __metadata("design:type", String)
46
+ tslib_1.__metadata("design:type", String)
55
47
  ], ContactPoint.prototype, "address2", void 0);
56
- __decorate([
48
+ tslib_1.__decorate([
57
49
  (0, typeorm_1.Column)({ nullable: true }),
58
50
  (0, type_graphql_1.Field)({ nullable: true }),
59
- __metadata("design:type", String)
51
+ tslib_1.__metadata("design:type", String)
60
52
  ], ContactPoint.prototype, "postCode", void 0);
61
- __decorate([
53
+ tslib_1.__decorate([
62
54
  (0, typeorm_1.Column)({ nullable: true }),
63
55
  (0, type_graphql_1.Field)({ nullable: true }),
64
- __metadata("design:type", String)
56
+ tslib_1.__metadata("design:type", String)
65
57
  ], ContactPoint.prototype, "city", void 0);
66
- __decorate([
58
+ tslib_1.__decorate([
67
59
  (0, typeorm_1.Column)({ nullable: true }),
68
60
  (0, type_graphql_1.Field)({ nullable: true }),
69
- __metadata("design:type", String)
61
+ tslib_1.__metadata("design:type", String)
70
62
  ], ContactPoint.prototype, "state", void 0);
71
- __decorate([
63
+ tslib_1.__decorate([
72
64
  (0, typeorm_1.Column)({ nullable: true }),
73
65
  (0, type_graphql_1.Field)({ nullable: true }),
74
- __metadata("design:type", String)
66
+ tslib_1.__metadata("design:type", String)
75
67
  ], ContactPoint.prototype, "billingAddress", void 0);
76
- __decorate([
68
+ tslib_1.__decorate([
77
69
  (0, typeorm_1.Column)({ nullable: true }),
78
70
  (0, type_graphql_1.Field)({ nullable: true }),
79
- __metadata("design:type", String)
71
+ tslib_1.__metadata("design:type", String)
80
72
  ], ContactPoint.prototype, "fax", void 0);
81
- __decorate([
73
+ tslib_1.__decorate([
82
74
  (0, typeorm_1.Column)({ nullable: true }),
83
75
  (0, type_graphql_1.Field)({ nullable: true }),
84
- __metadata("design:type", String)
76
+ tslib_1.__metadata("design:type", String)
85
77
  ], ContactPoint.prototype, "phone", void 0);
86
- __decorate([
78
+ tslib_1.__decorate([
87
79
  (0, typeorm_1.Column)({ nullable: true }),
88
80
  (0, type_graphql_1.Field)({ nullable: true }),
89
- __metadata("design:type", String)
81
+ tslib_1.__metadata("design:type", String)
90
82
  ], ContactPoint.prototype, "companyName", void 0);
91
- __decorate([
83
+ tslib_1.__decorate([
92
84
  (0, typeorm_1.Column)({ nullable: true }),
93
85
  (0, type_graphql_1.Field)({ nullable: true }),
94
- __metadata("design:type", String)
86
+ tslib_1.__metadata("design:type", String)
95
87
  ], ContactPoint.prototype, "accountNo", void 0);
96
- __decorate([
88
+ tslib_1.__decorate([
97
89
  (0, typeorm_1.Column)({ nullable: true }),
98
90
  (0, type_graphql_1.Field)({ nullable: true }),
99
- __metadata("design:type", String)
91
+ tslib_1.__metadata("design:type", String)
100
92
  ], ContactPoint.prototype, "type", void 0);
101
- __decorate([
93
+ tslib_1.__decorate([
102
94
  (0, typeorm_1.Column)({ nullable: true }),
103
95
  (0, type_graphql_1.Field)({ nullable: true }),
104
- __metadata("design:type", String)
96
+ tslib_1.__metadata("design:type", String)
105
97
  ], ContactPoint.prototype, "description", void 0);
106
- __decorate([
98
+ tslib_1.__decorate([
107
99
  (0, typeorm_1.Column)({ nullable: true }),
108
100
  (0, type_graphql_1.Field)({ nullable: true }),
109
- __metadata("design:type", String)
101
+ tslib_1.__metadata("design:type", String)
110
102
  ], ContactPoint.prototype, "registrationNo", void 0);
111
- __decorate([
103
+ tslib_1.__decorate([
112
104
  (0, typeorm_1.Column)({ nullable: true }),
113
105
  (0, type_graphql_1.Field)({ nullable: true }),
114
- __metadata("design:type", String)
106
+ tslib_1.__metadata("design:type", String)
115
107
  ], ContactPoint.prototype, "businessType", void 0);
116
- __decorate([
108
+ tslib_1.__decorate([
117
109
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
118
110
  (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)
111
+ tslib_1.__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
120
112
  ], ContactPoint.prototype, "creator", void 0);
121
- __decorate([
113
+ tslib_1.__decorate([
122
114
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
123
115
  (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)
116
+ tslib_1.__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
125
117
  ], ContactPoint.prototype, "updater", void 0);
126
- __decorate([
118
+ tslib_1.__decorate([
127
119
  (0, typeorm_1.CreateDateColumn)(),
128
120
  (0, type_graphql_1.Field)({ nullable: true }),
129
- __metadata("design:type", Date)
121
+ tslib_1.__metadata("design:type", Date)
130
122
  ], ContactPoint.prototype, "createdAt", void 0);
131
- __decorate([
123
+ tslib_1.__decorate([
132
124
  (0, typeorm_1.UpdateDateColumn)(),
133
125
  (0, type_graphql_1.Field)({ nullable: true }),
134
- __metadata("design:type", Date)
126
+ tslib_1.__metadata("design:type", Date)
135
127
  ], ContactPoint.prototype, "updatedAt", void 0);
136
- ContactPoint = __decorate([
128
+ ContactPoint = tslib_1.__decorate([
137
129
  (0, typeorm_1.Entity)(),
138
130
  (0, typeorm_1.Index)('ix_contact_points_0', (contactPoint) => [
139
131
  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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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"]}
@@ -1,20 +1,7 @@
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.updateWorker = exports.deleteWorkers = exports.deleteWorker = exports.createWorker = exports.updateCompany = exports.deleteCompany = exports.deleteCompanies = exports.createCompany = exports.schema = exports.entities = void 0;
4
+ const tslib_1 = require("tslib");
18
5
  /* IMPORT ENTITIES AND RESOLVERS */
19
6
  const biz_option_1 = require("./biz-option");
20
7
  const biz_option_detail_1 = require("./biz-option-detail");
@@ -23,19 +10,19 @@ const company_1 = require("./company");
23
10
  const contact_point_1 = require("./contact-point");
24
11
  const worker_1 = require("./worker");
25
12
  /* EXPORT ENTITY TYPES */
26
- __exportStar(require("./company/company"), exports);
27
- __exportStar(require("./bizplace/bizplace"), exports);
28
- __exportStar(require("./biz-option/biz-option"), exports);
29
- __exportStar(require("./biz-option-detail/biz-option-detail"), exports);
30
- __exportStar(require("./contact-point/contact-point"), exports);
31
- __exportStar(require("./worker/worker"), exports);
13
+ tslib_1.__exportStar(require("./company/company"), exports);
14
+ tslib_1.__exportStar(require("./bizplace/bizplace"), exports);
15
+ tslib_1.__exportStar(require("./biz-option/biz-option"), exports);
16
+ tslib_1.__exportStar(require("./biz-option-detail/biz-option-detail"), exports);
17
+ tslib_1.__exportStar(require("./contact-point/contact-point"), exports);
18
+ tslib_1.__exportStar(require("./worker/worker"), exports);
32
19
  /* EXPORT TYPES */
33
- __exportStar(require("./company/company-types"), exports);
34
- __exportStar(require("./bizplace/bizplace-types"), exports);
35
- __exportStar(require("./biz-option/biz-option-types"), exports);
36
- __exportStar(require("./biz-option-detail/biz-option-detail-types"), exports);
37
- __exportStar(require("./contact-point/contact-point-types"), exports);
38
- __exportStar(require("./worker/worker-types"), exports);
20
+ tslib_1.__exportStar(require("./company/company-types"), exports);
21
+ tslib_1.__exportStar(require("./bizplace/bizplace-types"), exports);
22
+ tslib_1.__exportStar(require("./biz-option/biz-option-types"), exports);
23
+ tslib_1.__exportStar(require("./biz-option-detail/biz-option-detail-types"), exports);
24
+ tslib_1.__exportStar(require("./contact-point/contact-point-types"), exports);
25
+ tslib_1.__exportStar(require("./worker/worker-types"), exports);
39
26
  exports.entities = [
40
27
  ...company_1.entities,
41
28
  ...bizplace_1.entities,