@things-factory/contact 10.1.123 → 10.1.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/components/contact-popup.d.ts +2 -0
- package/dist-client/components/contact-popup.js +35 -3
- package/dist-client/components/contact-popup.js.map +1 -1
- package/dist-client/components/contact-selector.js +11 -7
- package/dist-client/components/contact-selector.js.map +1 -1
- package/dist-client/pages/contact-importer.d.ts +1 -0
- package/dist-client/pages/contact-importer.js +35 -1
- package/dist-client/pages/contact-importer.js.map +1 -1
- package/dist-client/pages/contact-list-page.js +18 -14
- package/dist-client/pages/contact-list-page.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/contact/contact-counterparty.d.ts +12 -0
- package/dist-server/service/contact/contact-counterparty.js +27 -0
- package/dist-server/service/contact/contact-counterparty.js.map +1 -0
- package/dist-server/service/contact/contact-item.js +8 -8
- package/dist-server/service/contact/contact-item.js.map +1 -1
- package/dist-server/service/contact/contact-mutation.js +8 -5
- package/dist-server/service/contact/contact-mutation.js.map +1 -1
- package/dist-server/service/contact/contact-query.d.ts +2 -0
- package/dist-server/service/contact/contact-query.js +19 -1
- package/dist-server/service/contact/contact-query.js.map +1 -1
- package/dist-server/service/contact/contact-type.d.ts +3 -2
- package/dist-server/service/contact/contact-type.js +29 -28
- package/dist-server/service/contact/contact-type.js.map +1 -1
- package/dist-server/service/contact/contact.d.ts +3 -2
- package/dist-server/service/contact/contact.js +22 -17
- package/dist-server/service/contact/contact.js.map +1 -1
- package/dist-server/service/contact/index.d.ts +1 -1
- package/dist-server/service/contact/profile.js +11 -11
- package/dist-server/service/contact/profile.js.map +1 -1
- package/dist-server/service/index.d.ts +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -2
- package/translations/en.json +4 -2
- package/translations/ja.json +4 -2
- package/translations/ko.json +4 -2
- package/translations/ms.json +4 -2
- package/translations/zh.json +4 -2
|
@@ -7,6 +7,7 @@ const type_graphql_1 = require("type-graphql");
|
|
|
7
7
|
const graphql_scalars_1 = require("graphql-scalars");
|
|
8
8
|
const shell_1 = require("@things-factory/shell");
|
|
9
9
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
10
|
+
const biz_base_1 = require("@things-factory/biz-base");
|
|
10
11
|
const contact_item_1 = require("./contact-item");
|
|
11
12
|
const profile_1 = require("./profile");
|
|
12
13
|
var ContactField;
|
|
@@ -20,12 +21,11 @@ var ContactField;
|
|
|
20
21
|
ContactField["Profile"] = "profile";
|
|
21
22
|
ContactField["Picture"] = "picture";
|
|
22
23
|
ContactField["Department"] = "department";
|
|
23
|
-
ContactField["Company"] = "company";
|
|
24
24
|
ContactField["Homepage"] = "homepage";
|
|
25
25
|
})(ContactField || (exports.ContactField = ContactField = {}));
|
|
26
26
|
(0, type_graphql_1.registerEnumType)(ContactField, {
|
|
27
27
|
name: 'ContactField',
|
|
28
|
-
description: '
|
|
28
|
+
description: 'The kind of a contact item - phone, email, address and the like'
|
|
29
29
|
});
|
|
30
30
|
let Contact = class Contact {
|
|
31
31
|
getContactItem(type, label) {
|
|
@@ -49,58 +49,62 @@ tslib_1.__decorate([
|
|
|
49
49
|
], Contact.prototype, "domainId", void 0);
|
|
50
50
|
tslib_1.__decorate([
|
|
51
51
|
(0, typeorm_1.Column)(),
|
|
52
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
52
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The name of the person' }),
|
|
53
53
|
tslib_1.__metadata("design:type", String)
|
|
54
54
|
], Contact.prototype, "name", void 0);
|
|
55
55
|
tslib_1.__decorate([
|
|
56
|
-
(0, typeorm_1.
|
|
57
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
56
|
+
(0, typeorm_1.ManyToOne)(type => biz_base_1.Counterparty, { nullable: true }),
|
|
57
|
+
(0, type_graphql_1.Field)(type => biz_base_1.Counterparty, { nullable: true, description: 'The counterparty the person belongs to - one of the same domain' }),
|
|
58
|
+
tslib_1.__metadata("design:type", biz_base_1.Counterparty)
|
|
59
|
+
], Contact.prototype, "counterparty", void 0);
|
|
60
|
+
tslib_1.__decorate([
|
|
61
|
+
(0, typeorm_1.RelationId)((contact) => contact.counterparty),
|
|
58
62
|
tslib_1.__metadata("design:type", String)
|
|
59
|
-
], Contact.prototype, "
|
|
63
|
+
], Contact.prototype, "counterpartyId", void 0);
|
|
60
64
|
tslib_1.__decorate([
|
|
61
|
-
(0, type_graphql_1.Field)(type => graphql_scalars_1.GraphQLEmailAddress, { nullable: true }),
|
|
65
|
+
(0, type_graphql_1.Field)(type => graphql_scalars_1.GraphQLEmailAddress, { nullable: true, description: 'The work email, read from the items' }),
|
|
62
66
|
tslib_1.__metadata("design:type", String)
|
|
63
67
|
], Contact.prototype, "email", void 0);
|
|
64
68
|
tslib_1.__decorate([
|
|
65
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The work phone, read from the items' }),
|
|
66
70
|
tslib_1.__metadata("design:type", String)
|
|
67
71
|
], Contact.prototype, "phone", void 0);
|
|
68
72
|
tslib_1.__decorate([
|
|
69
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The work address, read from the items' }),
|
|
70
74
|
tslib_1.__metadata("design:type", String)
|
|
71
75
|
], Contact.prototype, "address", void 0);
|
|
72
76
|
tslib_1.__decorate([
|
|
73
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The department at work, read from the items' }),
|
|
74
78
|
tslib_1.__metadata("design:type", String)
|
|
75
79
|
], Contact.prototype, "department", void 0);
|
|
76
80
|
tslib_1.__decorate([
|
|
77
81
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
78
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'A note about the person' }),
|
|
79
83
|
tslib_1.__metadata("design:type", String)
|
|
80
84
|
], Contact.prototype, "note", void 0);
|
|
81
85
|
tslib_1.__decorate([
|
|
82
86
|
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
|
83
|
-
(0, type_graphql_1.Field)(type => profile_1.Profile, { nullable: true }),
|
|
87
|
+
(0, type_graphql_1.Field)(type => profile_1.Profile, { nullable: true, description: 'The profile picture and how it is framed' }),
|
|
84
88
|
tslib_1.__metadata("design:type", profile_1.Profile)
|
|
85
89
|
], Contact.prototype, "profile", void 0);
|
|
86
90
|
tslib_1.__decorate([
|
|
87
91
|
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
|
88
|
-
(0, type_graphql_1.Field)(type => [contact_item_1.ContactItem], { nullable: true }),
|
|
92
|
+
(0, type_graphql_1.Field)(type => [contact_item_1.ContactItem], { nullable: true, description: 'Ways to reach the person, each a kind, a label and a value' }),
|
|
89
93
|
tslib_1.__metadata("design:type", Array)
|
|
90
94
|
], Contact.prototype, "items", void 0);
|
|
91
95
|
tslib_1.__decorate([
|
|
92
96
|
(0, typeorm_1.CreateDateColumn)(),
|
|
93
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
97
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'When it was created' }),
|
|
94
98
|
tslib_1.__metadata("design:type", Date)
|
|
95
99
|
], Contact.prototype, "createdAt", void 0);
|
|
96
100
|
tslib_1.__decorate([
|
|
97
101
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
98
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
102
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'When it was last changed' }),
|
|
99
103
|
tslib_1.__metadata("design:type", Date)
|
|
100
104
|
], Contact.prototype, "updatedAt", void 0);
|
|
101
105
|
tslib_1.__decorate([
|
|
102
106
|
(0, typeorm_1.DeleteDateColumn)(),
|
|
103
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
107
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'When it was deleted' }),
|
|
104
108
|
tslib_1.__metadata("design:type", Date)
|
|
105
109
|
], Contact.prototype, "deletedAt", void 0);
|
|
106
110
|
tslib_1.__decorate([
|
|
@@ -124,6 +128,7 @@ tslib_1.__decorate([
|
|
|
124
128
|
exports.Contact = Contact = tslib_1.__decorate([
|
|
125
129
|
(0, typeorm_1.Entity)(),
|
|
126
130
|
(0, typeorm_1.Index)('ix_contact_0', (contact) => [contact.domain, contact.name]),
|
|
127
|
-
(0,
|
|
131
|
+
(0, typeorm_1.Index)('ix_contact_1', (contact) => [contact.domain, contact.counterparty]),
|
|
132
|
+
(0, type_graphql_1.ObjectType)({ description: 'A person to reach, the counterparty they belong to and how to reach them' })
|
|
128
133
|
], Contact);
|
|
129
134
|
//# sourceMappingURL=contact.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.js","sourceRoot":"","sources":["../../../server/service/contact/contact.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAA2E;AAC3E,qDAAqD;AAErD,iDAA4D;AAC5D,yDAAgD;
|
|
1
|
+
{"version":3,"file":"contact.js","sourceRoot":"","sources":["../../../server/service/contact/contact.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAA2E;AAC3E,qDAAqD;AAErD,iDAA4D;AAC5D,yDAAgD;AAChD,uDAAuD;AAEvD,iDAA4C;AAC5C,uCAAmC;AAEnC,IAAY,YAWX;AAXD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,sCAAsB,CAAA;IACtB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,yCAAyB,CAAA;IACzB,qCAAqB,CAAA;AACvB,CAAC,EAXW,YAAY,4BAAZ,YAAY,QAWvB;AAED,IAAA,+BAAgB,EAAC,YAAY,EAAE;IAC7B,IAAI,E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A,yBAAU,EAAC,EAAE,WAAW,EAAE,0EAA0E,EAAE,CAAC;GAC3F,OAAO,CA4EnB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\nimport { GraphQLEmailAddress } from 'graphql-scalars'\n\nimport { Domain, ScalarObject } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Counterparty } from '@things-factory/biz-base'\n\nimport { ContactItem } from './contact-item'\nimport { Profile } from './profile'\n\nexport enum ContactField {\n Name = 'name',\n JobTitle = 'job-title',\n Phone = 'phone',\n Address = 'address',\n Email = 'email',\n Birthday = 'birthday',\n Profile = 'profile',\n Picture = 'picture',\n Department = 'department',\n Homepage = 'homepage'\n}\n\nregisterEnumType(ContactField, {\n name: 'ContactField',\n description: 'The kind of a contact item - phone, email, address and the like'\n})\n\n@Entity()\n@Index('ix_contact_0', (contact: Contact) => [contact.domain, contact.name])\n@Index('ix_contact_1', (contact: Contact) => [contact.domain, contact.counterparty])\n@ObjectType({ description: 'A person to reach, the counterparty they belong to and how to reach them' })\nexport class Contact {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain?: Domain\n\n @RelationId((contact: Contact) => contact.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true, description: 'The name of the person' })\n name?: string\n\n @ManyToOne(type => Counterparty, { nullable: true })\n @Field(type => Counterparty, { nullable: true, description: 'The counterparty the person belongs to - one of the same domain' })\n counterparty?: Counterparty\n\n @RelationId((contact: Contact) => contact.counterparty)\n counterpartyId?: string\n\n @Field(type => GraphQLEmailAddress, { nullable: true, description: 'The work email, read from the items' })\n email?: string\n\n @Field({ nullable: true, description: 'The work phone, read from the items' })\n phone?: string\n\n @Field({ nullable: true, description: 'The work address, read from the items' })\n address?: string\n\n @Field({ nullable: true, description: 'The department at work, read from the items' })\n department?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'A note about the person' })\n note?: string\n\n @Column('simple-json', { nullable: true })\n @Field(type => Profile, { nullable: true, description: 'The profile picture and how it is framed' })\n profile: Profile\n\n @Column('simple-json', { nullable: true })\n @Field(type => [ContactItem], { nullable: true, description: 'Ways to reach the person, each a kind, a label and a value' })\n items?: ContactItem[]\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'When it was created' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'When it was last changed' })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true, description: 'When it was deleted' })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((contact: Contact) => contact.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((contact: Contact) => contact.updater)\n updaterId?: string\n\n getContactItem(type: ContactField, label?: string) {\n return (this.items || []).find(item => item.type === type && (!item.label || item.label === label))?.value\n }\n}\n"]}
|
|
@@ -2,5 +2,5 @@ import { Contact } from './contact';
|
|
|
2
2
|
import { Profile } from './profile';
|
|
3
3
|
import { ContactQuery } from './contact-query';
|
|
4
4
|
import { ContactMutation } from './contact-mutation';
|
|
5
|
-
export declare const entities: (typeof
|
|
5
|
+
export declare const entities: (typeof Profile | typeof Contact)[];
|
|
6
6
|
export declare const resolvers: (typeof ContactQuery | typeof ContactMutation)[];
|
|
@@ -8,48 +8,48 @@ let Profile = class Profile {
|
|
|
8
8
|
};
|
|
9
9
|
exports.Profile = Profile;
|
|
10
10
|
tslib_1.__decorate([
|
|
11
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
11
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The horizontal offset of the picture in its frame' }),
|
|
12
12
|
tslib_1.__metadata("design:type", Number)
|
|
13
13
|
], Profile.prototype, "left", void 0);
|
|
14
14
|
tslib_1.__decorate([
|
|
15
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
15
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The vertical offset of the picture in its frame' }),
|
|
16
16
|
tslib_1.__metadata("design:type", Number)
|
|
17
17
|
], Profile.prototype, "top", void 0);
|
|
18
18
|
tslib_1.__decorate([
|
|
19
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
19
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'How far the picture is zoomed in its frame' }),
|
|
20
20
|
tslib_1.__metadata("design:type", Number)
|
|
21
21
|
], Profile.prototype, "zoom", void 0);
|
|
22
22
|
tslib_1.__decorate([
|
|
23
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
23
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The address of the picture' }),
|
|
24
24
|
tslib_1.__metadata("design:type", String)
|
|
25
25
|
], Profile.prototype, "picture", void 0);
|
|
26
26
|
exports.Profile = Profile = tslib_1.__decorate([
|
|
27
|
-
(0, type_graphql_1.ObjectType)({ description: '
|
|
27
|
+
(0, type_graphql_1.ObjectType)({ description: 'A contact’s profile picture and how it is framed' })
|
|
28
28
|
], Profile);
|
|
29
29
|
let ProfileInput = class ProfileInput {
|
|
30
30
|
};
|
|
31
31
|
exports.ProfileInput = ProfileInput;
|
|
32
32
|
tslib_1.__decorate([
|
|
33
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
33
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The horizontal offset of the picture in its frame' }),
|
|
34
34
|
tslib_1.__metadata("design:type", Number)
|
|
35
35
|
], ProfileInput.prototype, "left", void 0);
|
|
36
36
|
tslib_1.__decorate([
|
|
37
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
37
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The vertical offset of the picture in its frame' }),
|
|
38
38
|
tslib_1.__metadata("design:type", Number)
|
|
39
39
|
], ProfileInput.prototype, "top", void 0);
|
|
40
40
|
tslib_1.__decorate([
|
|
41
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
41
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'How far the picture is zoomed in its frame' }),
|
|
42
42
|
tslib_1.__metadata("design:type", Number)
|
|
43
43
|
], ProfileInput.prototype, "zoom", void 0);
|
|
44
44
|
tslib_1.__decorate([
|
|
45
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The address of the picture' }),
|
|
46
46
|
tslib_1.__metadata("design:type", String)
|
|
47
47
|
], ProfileInput.prototype, "picture", void 0);
|
|
48
48
|
tslib_1.__decorate([
|
|
49
|
-
(0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true }),
|
|
49
|
+
(0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true, description: 'A new picture to upload' }),
|
|
50
50
|
tslib_1.__metadata("design:type", Object)
|
|
51
51
|
], ProfileInput.prototype, "file", void 0);
|
|
52
52
|
exports.ProfileInput = ProfileInput = tslib_1.__decorate([
|
|
53
|
-
(0, type_graphql_1.InputType)({ description: '
|
|
53
|
+
(0, type_graphql_1.InputType)({ description: 'A contact’s profile picture and how it is framed, as it is given' })
|
|
54
54
|
], ProfileInput);
|
|
55
55
|
//# sourceMappingURL=profile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../server/service/contact/profile.ts"],"names":[],"mappings":";;;;AAAA,+CAA2D;AAE3D,+FAA2D;AAGpD,IAAM,OAAO,GAAb,MAAM,OAAO;CAYnB,CAAA;AAZY,0BAAO;AAElB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../server/service/contact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CAAC;;0CACxE;uBAdN,YAAY;IADxB,IAAA,wBAAS,EAAC,EAAE,WAAW,EAAE,kEAAkE,EAAE,CAAC;GAClF,YAAY,CAexB","sourcesContent":["import { ObjectType, Field, InputType } from 'type-graphql'\nimport type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\n\n@ObjectType({ description: 'A contact’s profile picture and how it is framed' })\nexport class Profile {\n @Field({ nullable: true, description: 'The horizontal offset of the picture in its frame' })\n left?: number\n\n @Field({ nullable: true, description: 'The vertical offset of the picture in its frame' })\n top?: number\n\n @Field({ nullable: true, description: 'How far the picture is zoomed in its frame' })\n zoom?: number\n\n @Field({ nullable: true, description: 'The address of the picture' })\n picture?: string\n}\n\n@InputType({ description: 'A contact’s profile picture and how it is framed, as it is given' })\nexport class ProfileInput {\n @Field({ nullable: true, description: 'The horizontal offset of the picture in its frame' })\n left?: number\n\n @Field({ nullable: true, description: 'The vertical offset of the picture in its frame' })\n top?: number\n\n @Field({ nullable: true, description: 'How far the picture is zoomed in its frame' })\n zoom?: number\n\n @Field({ nullable: true, description: 'The address of the picture' })\n picture?: string\n\n @Field(type => GraphQLUpload, { nullable: true, description: 'A new picture to upload' })\n file?: FileUpload\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './contact/profile';
|
|
2
2
|
export * from './contact/contact-item';
|
|
3
3
|
export * from './contact/contact';
|
|
4
|
-
export declare const entities: (typeof import("./contact/
|
|
4
|
+
export declare const entities: (typeof import("./contact/profile").Profile | typeof import("./contact/contact").Contact)[];
|
|
5
5
|
export declare const subscribers: any[];
|
|
6
6
|
export declare const schema: {
|
|
7
7
|
resolverClasses: (typeof import("./contact/contact-query").ContactQuery | typeof import("./contact/contact-mutation").ContactMutation)[];
|