@things-factory/contact 10.1.122 → 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.
Files changed (36) hide show
  1. package/dist-client/components/contact-popup.d.ts +2 -0
  2. package/dist-client/components/contact-popup.js +35 -3
  3. package/dist-client/components/contact-popup.js.map +1 -1
  4. package/dist-client/components/contact-selector.js +11 -7
  5. package/dist-client/components/contact-selector.js.map +1 -1
  6. package/dist-client/pages/contact-importer.d.ts +1 -0
  7. package/dist-client/pages/contact-importer.js +35 -1
  8. package/dist-client/pages/contact-importer.js.map +1 -1
  9. package/dist-client/pages/contact-list-page.js +18 -14
  10. package/dist-client/pages/contact-list-page.js.map +1 -1
  11. package/dist-client/tsconfig.tsbuildinfo +1 -1
  12. package/dist-server/service/contact/contact-counterparty.d.ts +12 -0
  13. package/dist-server/service/contact/contact-counterparty.js +27 -0
  14. package/dist-server/service/contact/contact-counterparty.js.map +1 -0
  15. package/dist-server/service/contact/contact-item.js +8 -8
  16. package/dist-server/service/contact/contact-item.js.map +1 -1
  17. package/dist-server/service/contact/contact-mutation.js +8 -5
  18. package/dist-server/service/contact/contact-mutation.js.map +1 -1
  19. package/dist-server/service/contact/contact-query.d.ts +2 -0
  20. package/dist-server/service/contact/contact-query.js +19 -1
  21. package/dist-server/service/contact/contact-query.js.map +1 -1
  22. package/dist-server/service/contact/contact-type.d.ts +3 -2
  23. package/dist-server/service/contact/contact-type.js +29 -28
  24. package/dist-server/service/contact/contact-type.js.map +1 -1
  25. package/dist-server/service/contact/contact.d.ts +3 -2
  26. package/dist-server/service/contact/contact.js +22 -17
  27. package/dist-server/service/contact/contact.js.map +1 -1
  28. package/dist-server/service/contact/profile.js +11 -11
  29. package/dist-server/service/contact/profile.js.map +1 -1
  30. package/dist-server/tsconfig.tsbuildinfo +1 -1
  31. package/package.json +9 -5
  32. package/translations/en.json +4 -2
  33. package/translations/ja.json +4 -2
  34. package/translations/ko.json +4 -2
  35. package/translations/ms.json +4 -2
  36. package/translations/zh.json +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/contact",
3
- "version": "10.1.122",
3
+ "version": "10.1.134",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -24,17 +24,21 @@
24
24
  "clean:client": "npx rimraf dist-client",
25
25
  "clean:server": "npx rimraf dist-server",
26
26
  "clean": "npm run clean:server && npm run clean:client",
27
+ "test": "node --test test/*.test.mjs",
27
28
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration"
28
29
  },
29
30
  "dependencies": {
31
+ "@operato/app": "^10.0.0",
30
32
  "@operato/contact": "^10.0.0",
31
33
  "@operato/graphql": "^10.0.0",
32
34
  "@operato/i18n": "^10.0.0",
35
+ "@operato/layout": "^10.0.0",
33
36
  "@operato/shell": "^10.0.0",
34
37
  "@operato/styles": "^10.0.0",
35
- "@things-factory/attachment-base": "^10.1.122",
36
- "@things-factory/auth-base": "^10.1.122",
37
- "@things-factory/shell": "^10.1.122"
38
+ "@things-factory/attachment-base": "^10.1.123",
39
+ "@things-factory/auth-base": "^10.1.123",
40
+ "@things-factory/biz-base": "^10.1.134",
41
+ "@things-factory/shell": "^10.1.123"
38
42
  },
39
- "gitHead": "a66715e94ef6064cade05229de57d0fe5798d1fb"
43
+ "gitHead": "ff2f8411fc981fe91fb3ed12274c8d76c1dc33f4"
40
44
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "button.new-contact": "new contact",
3
- "field.company": "company",
3
+ "field.counterparty": "counterparty",
4
4
  "field.address": "address",
5
5
  "field.department": "department",
6
6
  "title.contact": "contact",
@@ -9,5 +9,7 @@
9
9
  "error.contact-not-found": "Contact with ID {contactId} could not be found.",
10
10
  "error.contact-email-not-set": "The contact with ID {contactId} does not have a work email set.",
11
11
  "error.contact-initial-password-required": "An initial password or default password must be provided.",
12
- "error.contact-role-not-found": "The role '{roleName}' could not be found in the domain."
12
+ "error.contact-role-not-found": "The role '{roleName}' could not be found in the domain.",
13
+ "error.contact-counterparty-not-found": "Counterparty {counterpartyId} is not a counterparty of this domain. Choose one of the same domain.",
14
+ "text.contact-counterparty-unknown": "These counterparties are not in this domain: {names}. Register them first, or correct the names, and import again."
13
15
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "button.new-contact": "新しい連絡先",
3
3
  "field.address": "住所",
4
- "field.company": "会社",
4
+ "field.counterparty": "取引先",
5
5
  "field.department": "部署",
6
6
  "title.contact": "連絡先",
7
7
  "title.contact list": "連絡先リスト",
@@ -9,5 +9,7 @@
9
9
  "error.contact-not-found": "ID {contactId} の連絡先が見つかりません。",
10
10
  "error.contact-email-not-set": "ID {contactId} の連絡先には勤務用のメールアドレスが設定されていません。",
11
11
  "error.contact-initial-password-required": "初期パスワードまたはデフォルトパスワードが提供される必要があります。",
12
- "error.contact-role-not-found": "$t(term.domain)内で役割'{roleName}'が見つかりませんでした。"
12
+ "error.contact-role-not-found": "$t(term.domain)内で役割'{roleName}'が見つかりませんでした。",
13
+ "error.contact-counterparty-not-found": "取引先({counterpartyId})はこのドメインの取引先ではありません。同じドメインの取引先を選んでください。",
14
+ "text.contact-counterparty-unknown": "このドメインにない取引先名です: {names}。先に取引先を登録するか、名前を直してから再度インポートしてください。"
13
15
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "button.new-contact": "새 연락처 생성",
3
3
  "field.address": "주소",
4
- "field.company": "회사",
4
+ "field.counterparty": "거래처",
5
5
  "field.department": "부서",
6
6
  "title.contact": "연락처",
7
7
  "title.contact list": "연락처 목록",
@@ -9,5 +9,7 @@
9
9
  "error.contact-not-found": "연락처({contactId})를 찾을 수 없습니다.",
10
10
  "error.contact-email-not-set": "연락처({contactId})에 이메일(work) 정보가 없습니다.",
11
11
  "error.contact-initial-password-required": "초기 비밀번호나 디폴트 비밀번호가 제공되어야 합니다.",
12
- "error.contact-role-not-found": "'{name}'라는 이름의 역할이 정의되어 있지 않습니다."
12
+ "error.contact-role-not-found": "'{name}'라는 이름의 역할이 정의되어 있지 않습니다.",
13
+ "error.contact-counterparty-not-found": "이 사업장의 거래처가 아닙니다({counterpartyId}). 같은 사업장의 거래처를 고르세요.",
14
+ "text.contact-counterparty-unknown": "이 사업장에 없는 거래처 이름입니다: {names}. 거래처를 먼저 등록하거나 이름을 고쳐 다시 가져오세요."
13
15
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "button.new-contact": "kenalan baru",
3
- "field.company": "syarikat",
3
+ "field.counterparty": "rakan niaga",
4
4
  "field.address": "alamat",
5
5
  "field.department": "jabatan",
6
6
  "title.contact": "kenalan",
@@ -9,5 +9,7 @@
9
9
  "error.contact-not-found": "Kenalan dengan ID {contactId} tidak dapat ditemui.",
10
10
  "error.contact-email-not-set": "Kenalan dengan ID {contactId} tidak mempunyai emel kerja yang ditetapkan.",
11
11
  "error.contact-initial-password-required": "kata laluan awal atau kata laluan lalai mesti disediakan.",
12
- "error.contact-role-not-found": "Peranan '{roleName}' tidak dapat ditemui dalam domain."
12
+ "error.contact-role-not-found": "Peranan '{roleName}' tidak dapat ditemui dalam domain.",
13
+ "error.contact-counterparty-not-found": "Rakan niaga {counterpartyId} bukan rakan niaga domain ini. Pilih satu daripada domain yang sama.",
14
+ "text.contact-counterparty-unknown": "Rakan niaga ini tiada dalam domain: {names}. Daftarkan dahulu atau betulkan nama, kemudian import semula."
13
15
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "button.new-contact": "新建联系人",
3
- "field.company": "公司",
3
+ "field.counterparty": "往来单位",
4
4
  "field.address": "地址",
5
5
  "field.department": "部",
6
6
  "title.contact": "接触",
@@ -9,5 +9,7 @@
9
9
  "error.contact-not-found": "无法找到ID为{contactId}的联系人。",
10
10
  "error.contact-email-not-set": "ID为{contactId}的联系人没有设置工作邮箱。",
11
11
  "error.contact-initial-password-required": "必须提供初始密码或默认密码。",
12
- "error.contact-role-not-found": "在域中找不到角色'{roleName}'。"
12
+ "error.contact-role-not-found": "在域中找不到角色'{roleName}'。",
13
+ "error.contact-counterparty-not-found": "往来单位({counterpartyId})不属于此域。请选择同一域的往来单位。",
14
+ "text.contact-counterparty-unknown": "这些往来单位不在此域中: {names}。请先登记或更正名称后重新导入。"
13
15
  }