@opengis/surveyor 0.0.11 → 0.0.12

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 (50) hide show
  1. package/dist/chunks/{AppIcon-CCLzEE-_.js → AppIcon-CO70tpMX.js} +1 -1
  2. package/dist/chunks/{AppealDetailField-CI-1qhs3.js → AppealDetailField-DNRGpnyD.js} +2 -2
  3. package/dist/chunks/{AppealStatusBadge-CzzI6x8I.js → AppealStatusBadge-BlAaNUSK.js} +2 -2
  4. package/dist/chunks/{AppealStatusBadge-DYBe9hqP.js → AppealStatusBadge-Ct3EcB4_.js} +15 -1
  5. package/dist/chunks/{ApplicationHistorySection-CPCU_DXH.js → ApplicationHistorySection-D7KPV2cX.js} +155 -141
  6. package/dist/chunks/{BaseModal-DnwqlJhc.js → BaseModal-SjP521X9.js} +2 -2
  7. package/dist/chunks/{FormFilePicker-Dss6pGmO.js → FormFilePicker-DxPQlxgy.js} +2 -2
  8. package/dist/chunks/{MapLayerMenu-DjYCxEc3.js → MapLayerMenu-AUeTqgEp.js} +1 -1
  9. package/dist/chunks/{RegistryForm-CEUqFmsF.js → RegistryForm-BlK1lExt.js} +2 -2
  10. package/dist/chunks/{RegistryFormModal-C-Z4MMHi.js → RegistryFormModal-DhzEpxys.js} +3 -3
  11. package/dist/chunks/{RegistryToolbar-CI1MRqzw.js → RegistryToolbar-DXOEcD84.js} +45 -154
  12. package/dist/chunks/{SurveyorTeleport-BLEO6we9.js → SurveyorTeleport-CnSF0Ptl.js} +1 -1
  13. package/dist/chunks/TablePagination-CUtnDQQ_.js +116 -0
  14. package/dist/chunks/{UserAccessBadge-D8JfgGfN.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
  15. package/dist/chunks/{UserTypeBadge-YIwwoCho.js → UserTypeBadge-LvnMuKGo.js} +1 -1
  16. package/dist/chunks/{VerifiedBadge-B__Vs_ce.js → VerifiedBadge-bk0n-rlC.js} +2 -2
  17. package/dist/chunks/{buildSchema-CccjX9TJ.js → buildSchema-DEfhZEM8.js} +1 -1
  18. package/dist/chunks/{card-BElHsAFl.js → card-BBx1zR0E.js} +316 -306
  19. package/dist/chunks/{card-CUDo4kUH.js → card-Bj4zFzbe.js} +47 -44
  20. package/dist/chunks/{card-DL7yHB1C.js → card-C-ohjNkC.js} +5 -5
  21. package/dist/chunks/{card-UG1mWhcg.js → card-DEJs9IIP.js} +6 -6
  22. package/dist/chunks/card-VnUCFC7v.js +609 -0
  23. package/dist/chunks/{card-sDIYR6YI.js → card-_YyJbLNI.js} +13 -10
  24. package/dist/chunks/{certificates-BnseQylH.js → certificates-Be6u7Cix.js} +1 -1
  25. package/dist/chunks/{certificates-DKi9CSfc.js → certificates-DtfZTFN9.js} +13 -12
  26. package/dist/chunks/{create-DVZv77Uw.js → create-Cgeu7aKO.js} +348 -293
  27. package/dist/chunks/{filterQuery-CvfZrkTC.js → filterQuery-Dka-mIso.js} +7 -3
  28. package/dist/chunks/{forgot-BVzXMKGA.js → forgot-DoG6vXhq.js} +2 -2
  29. package/dist/chunks/{form-DDjELqZ9.js → form-CEfc_shb.js} +1 -1
  30. package/dist/chunks/{form-Bh6i5n1U.js → form-DZ3CbtkT.js} +1 -1
  31. package/dist/chunks/{login-BCib_dtl.js → login-BWGylcSU.js} +2 -2
  32. package/dist/chunks/{map-CNX1_COE.js → map-DkKsEnCM.js} +1126 -831
  33. package/dist/chunks/{map-layers-CCJ7G7ZK.js → map-layers-BmuIMLHa.js} +13 -12
  34. package/dist/chunks/{organizations-BuMFRKjw.js → organizations-BO1dIl7v.js} +15 -14
  35. package/dist/chunks/{profile-BI_RIHN1.js → profile-CkwMFh82.js} +3 -3
  36. package/dist/chunks/{registration-6nn7GgDS.js → registration-3GLgq-ae.js} +2 -2
  37. package/dist/chunks/{requests-DQRmDemb.js → requests-BZ2jrt5J.js} +12 -11
  38. package/dist/chunks/{requests-Dh5jxF06.js → requests-rWq8ok3C.js} +5 -5
  39. package/dist/chunks/{resendSurveyorRegistration-BHTTVIw1.js → resendSurveyorRegistration-BQjL9IgM.js} +1 -1
  40. package/dist/chunks/{reset-D2uXDfB6.js → reset-CP9LsLkC.js} +2 -2
  41. package/dist/chunks/{resources-2e8RFqWR.js → resources-Cj8BzrBX.js} +18 -13
  42. package/dist/chunks/{surveyorAccount-C7UiiIYg.js → surveyorAccount-Cfba7ZVZ.js} +1 -1
  43. package/dist/chunks/{useEntityPath-n7hCq8zh.js → useEntityPath-C5Owtidc.js} +1 -1
  44. package/dist/chunks/{users-LbXn1F2y.js → users-DOiQeVwn.js} +15 -14
  45. package/dist/index.css +1 -1
  46. package/dist/index.js +40 -40
  47. package/package.json +1 -1
  48. package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
  49. package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
  50. package/dist/chunks/card-CU2THiBT.js +0 -539
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { t as r } from "./chunks/_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { t as i } from "./chunks/auth-acuaYbYM.js";
4
4
  import { i as a, r as o } from "./chunks/profile-aXlo4qqA.js";
5
5
  import { i as s, o as c, s as l, t as u } from "./chunks/organizations-DbVDoURw.js";
6
- import { t as d } from "./chunks/AppIcon-CCLzEE-_.js";
6
+ import { t as d } from "./chunks/AppIcon-CO70tpMX.js";
7
7
  import { t as f } from "./chunks/list-search-D5VdmGdV.js";
8
8
  import { Fragment as p, computed as m, createApp as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineAsyncComponent as S, defineComponent as C, inject as w, normalizeClass as T, onBeforeUnmount as E, onMounted as D, openBlock as O, provide as ee, ref as k, renderList as te, renderSlot as A, resolveDynamicComponent as j, toDisplayString as M, vModelText as ne, watch as re, withCtx as N, withDirectives as ie } from "vue";
9
9
  import { RouterView as P, createRouter as ae, createWebHistory as oe, useRoute as se, useRouter as F } from "vue-router";
@@ -57,13 +57,13 @@ function z(e, t, n, r, i, a) {
57
57
  var B = /*#__PURE__*/ r(I, [
58
58
  ["render", z],
59
59
  ["__scopeId", "data-v-ee198999"],
60
- ["__file", "D:/Softpro/surveyor/src/wrappers/SurveyorEmbedShell.vue"]
60
+ ["__file", "C:/softpro/surveyor/src/wrappers/SurveyorEmbedShell.vue"]
61
61
  ]), V = /*@__PURE__*/ C({
62
62
  __name: "Map",
63
63
  setup(e, { expose: t }) {
64
64
  t();
65
65
  let n = {
66
- MapPage: S(() => import("./chunks/map-CNX1_COE.js")),
66
+ MapPage: S(() => import("./chunks/map-DkKsEnCM.js")),
67
67
  SurveyorEmbedShell: B
68
68
  };
69
69
  return Object.defineProperty(n, "__isScriptSetup", {
@@ -83,7 +83,7 @@ function H(e, t, n, r, i, a) {
83
83
  _: 1
84
84
  });
85
85
  }
86
- var U = /*#__PURE__*/ r(V, [["render", H], ["__file", "D:/Softpro/surveyor/src/wrappers/Map.vue"]]), W = /*@__PURE__*/ C({
86
+ var U = /*#__PURE__*/ r(V, [["render", H], ["__file", "C:/softpro/surveyor/src/wrappers/Map.vue"]]), W = /*@__PURE__*/ C({
87
87
  __name: "BaseEntityWrapper",
88
88
  props: {
89
89
  list: {
@@ -134,13 +134,13 @@ var U = /*#__PURE__*/ r(V, [["render", H], ["__file", "D:/Softpro/surveyor/src/w
134
134
  function G(e, t, n, r, i, a) {
135
135
  return O(), g(j(r.activeComponent), { key: r.activeKey || "list" });
136
136
  }
137
- var K = /*#__PURE__*/ r(W, [["render", G], ["__file", "D:/Softpro/surveyor/src/wrappers/BaseEntityWrapper.vue"]]), ce = /*@__PURE__*/ C({
137
+ var K = /*#__PURE__*/ r(W, [["render", G], ["__file", "C:/softpro/surveyor/src/wrappers/BaseEntityWrapper.vue"]]), ce = /*@__PURE__*/ C({
138
138
  __name: "Requests",
139
139
  setup(e, { expose: t }) {
140
140
  t();
141
141
  let n = {
142
- Index: S(() => import("./chunks/requests-DQRmDemb.js")),
143
- Card: S(() => import("./chunks/card-CUDo4kUH.js")),
142
+ Index: S(() => import("./chunks/requests-BZ2jrt5J.js")),
143
+ Card: S(() => import("./chunks/card-Bj4zFzbe.js")),
144
144
  BaseEntityWrapper: K,
145
145
  SurveyorEmbedShell: B
146
146
  };
@@ -162,13 +162,13 @@ function le(e, t, n, r, i, a) {
162
162
  _: 1
163
163
  });
164
164
  }
165
- var ue = /*#__PURE__*/ r(ce, [["render", le], ["__file", "D:/Softpro/surveyor/src/wrappers/Requests.vue"]]), de = /*@__PURE__*/ C({
165
+ var ue = /*#__PURE__*/ r(ce, [["render", le], ["__file", "C:/softpro/surveyor/src/wrappers/Requests.vue"]]), de = /*@__PURE__*/ C({
166
166
  __name: "Organisations",
167
167
  setup(e, { expose: t }) {
168
168
  t();
169
169
  let n = {
170
- Index: S(() => import("./chunks/organizations-BuMFRKjw.js")),
171
- Card: S(() => import("./chunks/card-BElHsAFl.js")),
170
+ Index: S(() => import("./chunks/organizations-BO1dIl7v.js")),
171
+ Card: S(() => import("./chunks/card-BBx1zR0E.js")),
172
172
  BaseEntityWrapper: K,
173
173
  SurveyorEmbedShell: B
174
174
  };
@@ -190,13 +190,13 @@ function fe(e, t, n, r, i, a) {
190
190
  _: 1
191
191
  });
192
192
  }
193
- var pe = /*#__PURE__*/ r(de, [["render", fe], ["__file", "D:/Softpro/surveyor/src/wrappers/Organisations.vue"]]), me = /*@__PURE__*/ C({
193
+ var pe = /*#__PURE__*/ r(de, [["render", fe], ["__file", "C:/softpro/surveyor/src/wrappers/Organisations.vue"]]), me = /*@__PURE__*/ C({
194
194
  __name: "Certificates",
195
195
  setup(e, { expose: t }) {
196
196
  t();
197
197
  let n = {
198
- Index: S(() => import("./chunks/certificates-DKi9CSfc.js")),
199
- Card: S(() => import("./chunks/card-sDIYR6YI.js")),
198
+ Index: S(() => import("./chunks/certificates-DtfZTFN9.js")),
199
+ Card: S(() => import("./chunks/card-_YyJbLNI.js")),
200
200
  BaseEntityWrapper: K,
201
201
  SurveyorEmbedShell: B
202
202
  };
@@ -218,13 +218,13 @@ function he(e, t, n, r, i, a) {
218
218
  _: 1
219
219
  });
220
220
  }
221
- var ge = /*#__PURE__*/ r(me, [["render", he], ["__file", "D:/Softpro/surveyor/src/wrappers/Certificates.vue"]]), _e = /*@__PURE__*/ C({
221
+ var ge = /*#__PURE__*/ r(me, [["render", he], ["__file", "C:/softpro/surveyor/src/wrappers/Certificates.vue"]]), _e = /*@__PURE__*/ C({
222
222
  __name: "Users",
223
223
  setup(e, { expose: t }) {
224
224
  t();
225
225
  let n = {
226
- Index: S(() => import("./chunks/users-LbXn1F2y.js")),
227
- Card: S(() => import("./chunks/card-CU2THiBT.js")),
226
+ Index: S(() => import("./chunks/users-DOiQeVwn.js")),
227
+ Card: S(() => import("./chunks/card-VnUCFC7v.js")),
228
228
  BaseEntityWrapper: K,
229
229
  SurveyorEmbedShell: B
230
230
  };
@@ -246,13 +246,13 @@ function ve(e, t, n, r, i, a) {
246
246
  _: 1
247
247
  });
248
248
  }
249
- var ye = /*#__PURE__*/ r(_e, [["render", ve], ["__file", "D:/Softpro/surveyor/src/wrappers/Users.vue"]]), be = /*@__PURE__*/ C({
249
+ var ye = /*#__PURE__*/ r(_e, [["render", ve], ["__file", "C:/softpro/surveyor/src/wrappers/Users.vue"]]), be = /*@__PURE__*/ C({
250
250
  __name: "MapLayers",
251
251
  setup(e, { expose: t }) {
252
252
  t();
253
253
  let n = {
254
- Index: S(() => import("./chunks/map-layers-CCJ7G7ZK.js")),
255
- Card: S(() => import("./chunks/card-UG1mWhcg.js")),
254
+ Index: S(() => import("./chunks/map-layers-BmuIMLHa.js")),
255
+ Card: S(() => import("./chunks/card-DEJs9IIP.js")),
256
256
  BaseEntityWrapper: K,
257
257
  SurveyorEmbedShell: B
258
258
  };
@@ -274,14 +274,14 @@ function xe(e, t, n, r, i, a) {
274
274
  _: 1
275
275
  });
276
276
  }
277
- var Se = /*#__PURE__*/ r(be, [["render", xe], ["__file", "D:/Softpro/surveyor/src/wrappers/MapLayers.vue"]]), Ce = /*@__PURE__*/ C({
277
+ var Se = /*#__PURE__*/ r(be, [["render", xe], ["__file", "C:/softpro/surveyor/src/wrappers/MapLayers.vue"]]), Ce = /*@__PURE__*/ C({
278
278
  __name: "CabinetRequests",
279
279
  setup(e, { expose: t }) {
280
280
  t();
281
281
  let n = {
282
- Index: S(() => import("./chunks/requests-Dh5jxF06.js")),
283
- Create: S(() => import("./chunks/create-DVZv77Uw.js")),
284
- Card: S(() => import("./chunks/card-DL7yHB1C.js")),
282
+ Index: S(() => import("./chunks/requests-rWq8ok3C.js")),
283
+ Create: S(() => import("./chunks/create-Cgeu7aKO.js")),
284
+ Card: S(() => import("./chunks/card-C-ohjNkC.js")),
285
285
  BaseEntityWrapper: K,
286
286
  SurveyorEmbedShell: B
287
287
  };
@@ -309,12 +309,12 @@ function we(e, t, n, r, i, a) {
309
309
  _: 1
310
310
  });
311
311
  }
312
- var Te = /*#__PURE__*/ r(Ce, [["render", we], ["__file", "D:/Softpro/surveyor/src/wrappers/CabinetRequests.vue"]]), Ee = /*@__PURE__*/ C({
312
+ var Te = /*#__PURE__*/ r(Ce, [["render", we], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetRequests.vue"]]), Ee = /*@__PURE__*/ C({
313
313
  __name: "CabinetProfile",
314
314
  setup(e, { expose: t }) {
315
315
  t();
316
316
  let n = {
317
- Profile: S(() => import("./chunks/profile-BI_RIHN1.js")),
317
+ Profile: S(() => import("./chunks/profile-CkwMFh82.js")),
318
318
  SurveyorEmbedShell: B
319
319
  };
320
320
  return Object.defineProperty(n, "__isScriptSetup", {
@@ -331,7 +331,7 @@ function De(e, t, n, r, i, a) {
331
331
  _: 1
332
332
  });
333
333
  }
334
- var Oe = /*#__PURE__*/ r(Ee, [["render", De], ["__file", "D:/Softpro/surveyor/src/wrappers/CabinetProfile.vue"]]), ke = /*@__PURE__*/ C({
334
+ var Oe = /*#__PURE__*/ r(Ee, [["render", De], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetProfile.vue"]]), ke = /*@__PURE__*/ C({
335
335
  __name: "SurveyorRoot",
336
336
  setup(r, { expose: i }) {
337
337
  i(), ee(t, !0);
@@ -355,7 +355,7 @@ function Me(e, t, n, r, i, a) {
355
355
  class: "surveyor-root min-h-screen bg-slate-50 text-slate-800 antialiased"
356
356
  }, [A(e.$slots, "default"), y("div", { id: r.SURVEYOR_PORTAL_ID }, null, 8, je)], 8, Ae);
357
357
  }
358
- var q = /*#__PURE__*/ r(ke, [["render", Me], ["__file", "D:/Softpro/surveyor/shared/surveyor/SurveyorRoot.vue"]]), Ne = /*@__PURE__*/ C({
358
+ var q = /*#__PURE__*/ r(ke, [["render", Me], ["__file", "C:/softpro/surveyor/shared/surveyor/SurveyorRoot.vue"]]), Ne = /*@__PURE__*/ C({
359
359
  __name: "Cabinet",
360
360
  setup(e, { expose: t }) {
361
361
  t();
@@ -379,7 +379,7 @@ function Pe(e, t, n, r, i, a) {
379
379
  _: 1
380
380
  });
381
381
  }
382
- var J = /*#__PURE__*/ r(Ne, [["render", Pe], ["__file", "D:/Softpro/surveyor/src/wrappers/Cabinet.vue"]]), Fe = /*@__PURE__*/ C({
382
+ var J = /*#__PURE__*/ r(Ne, [["render", Pe], ["__file", "C:/softpro/surveyor/src/wrappers/Cabinet.vue"]]), Fe = /*@__PURE__*/ C({
383
383
  __name: "OrgSwitcher",
384
384
  props: {
385
385
  organizations: {
@@ -461,7 +461,7 @@ function Xe(e, t, n, r, i, a) {
461
461
  })) : _("", !0)
462
462
  ], 10, Ke))), 128))])])) : _("", !0)], 512)) : _("", !0);
463
463
  }
464
- var Ze = /*#__PURE__*/ r(Fe, [["render", Xe], ["__file", "D:/Softpro/surveyor/cabinet/src/components/OrgSwitcher.vue"]]), Qe = /*@__PURE__*/ C({
464
+ var Ze = /*#__PURE__*/ r(Fe, [["render", Xe], ["__file", "C:/softpro/surveyor/cabinet/src/components/OrgSwitcher.vue"]]), Qe = /*@__PURE__*/ C({
465
465
  __name: "CabinetTopNav",
466
466
  setup(e, { expose: t }) {
467
467
  t();
@@ -603,7 +603,7 @@ function lt(e, t, n, r, i, a) {
603
603
  ])) : _("", !0)], 512)
604
604
  ])]);
605
605
  }
606
- var ut = /*#__PURE__*/ r(Qe, [["render", lt], ["__file", "D:/Softpro/surveyor/cabinet/src/layouts/CabinetTopNav.vue"]]), dt = /*@__PURE__*/ C({
606
+ var ut = /*#__PURE__*/ r(Qe, [["render", lt], ["__file", "C:/softpro/surveyor/cabinet/src/layouts/CabinetTopNav.vue"]]), dt = /*@__PURE__*/ C({
607
607
  __name: "CabinetLayout",
608
608
  setup(e, { expose: t }) {
609
609
  t(), D(() => {
@@ -630,7 +630,7 @@ var X = [
630
630
  {
631
631
  path: "/login",
632
632
  name: "login",
633
- component: () => import("./chunks/login-BCib_dtl.js"),
633
+ component: () => import("./chunks/login-BWGylcSU.js"),
634
634
  meta: {
635
635
  public: !0,
636
636
  title: "Вхід"
@@ -639,7 +639,7 @@ var X = [
639
639
  {
640
640
  path: "/registration/:token",
641
641
  name: "registration-complete",
642
- component: () => import("./chunks/registration-6nn7GgDS.js"),
642
+ component: () => import("./chunks/registration-3GLgq-ae.js"),
643
643
  meta: {
644
644
  public: !0,
645
645
  title: "Завершення реєстрації"
@@ -648,7 +648,7 @@ var X = [
648
648
  {
649
649
  path: "/password/forgot",
650
650
  name: "password-forgot",
651
- component: () => import("./chunks/forgot-BVzXMKGA.js"),
651
+ component: () => import("./chunks/forgot-DoG6vXhq.js"),
652
652
  meta: {
653
653
  public: !0,
654
654
  title: "Відновлення пароля"
@@ -657,7 +657,7 @@ var X = [
657
657
  {
658
658
  path: "/password/reset/:token",
659
659
  name: "password-reset",
660
- component: () => import("./chunks/reset-D2uXDfB6.js"),
660
+ component: () => import("./chunks/reset-CP9LsLkC.js"),
661
661
  meta: {
662
662
  public: !0,
663
663
  title: "Новий пароль"
@@ -665,7 +665,7 @@ var X = [
665
665
  },
666
666
  {
667
667
  path: "/",
668
- component: /* @__PURE__ */ r(dt, [["render", pt], ["__file", "D:/Softpro/surveyor/cabinet/src/layouts/CabinetLayout.vue"]]),
668
+ component: /* @__PURE__ */ r(dt, [["render", pt], ["__file", "C:/softpro/surveyor/cabinet/src/layouts/CabinetLayout.vue"]]),
669
669
  children: [
670
670
  {
671
671
  path: "",
@@ -674,7 +674,7 @@ var X = [
674
674
  {
675
675
  path: "requests",
676
676
  name: "requests",
677
- component: () => import("./chunks/requests-Dh5jxF06.js"),
677
+ component: () => import("./chunks/requests-rWq8ok3C.js"),
678
678
  meta: {
679
679
  title: "Звернення",
680
680
  label: "Звернення на видачу та прийом матеріалів",
@@ -684,7 +684,7 @@ var X = [
684
684
  {
685
685
  path: "requests/new",
686
686
  name: "request-create",
687
- component: () => import("./chunks/create-DVZv77Uw.js"),
687
+ component: () => import("./chunks/create-Cgeu7aKO.js"),
688
688
  meta: {
689
689
  title: "Нове звернення",
690
690
  section: "requests"
@@ -693,7 +693,7 @@ var X = [
693
693
  {
694
694
  path: "requests/:number",
695
695
  name: "request-detail",
696
- component: () => import("./chunks/card-DL7yHB1C.js"),
696
+ component: () => import("./chunks/card-C-ohjNkC.js"),
697
697
  meta: {
698
698
  title: "Звернення",
699
699
  section: "requests"
@@ -702,7 +702,7 @@ var X = [
702
702
  {
703
703
  path: "profile",
704
704
  name: "profile",
705
- component: () => import("./chunks/profile-BI_RIHN1.js"),
705
+ component: () => import("./chunks/profile-CkwMFh82.js"),
706
706
  meta: {
707
707
  title: "Профайл",
708
708
  label: "Профайл",
@@ -772,7 +772,7 @@ var mt = /*@__PURE__*/ C({
772
772
  function gt(e, t, n, r, i, a) {
773
773
  return O(), v("div", ht, null, 512);
774
774
  }
775
- var _t = /*#__PURE__*/ r(mt, [["render", gt], ["__file", "D:/Softpro/surveyor/src/wrappers/CabinetHost.vue"]]), Q = {
775
+ var _t = /*#__PURE__*/ r(mt, [["render", gt], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetHost.vue"]]), Q = {
776
776
  map: "/map",
777
777
  requests: "/requests",
778
778
  organizations: "/organizations",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/surveyor",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "author": "Softpro",
6
6
  "description": "Surveyor admin and geodesist cabinet UI for embedded host applications",
@@ -1,41 +1,41 @@
1
- import { randomBytes } from "node:crypto";
2
- import type { AppContext, User } from "@opengis/fcore";
3
- import { NotFoundError, hashPassword } from "@opengis/fcore";
4
- import { admin } from "../utils/shared.js";
5
- import { sendAdminPasswordChangedEmail } from "../utils/mail.js";
6
-
7
- /** Змінює пароль зареєстрованого геодезиста адміністратором та повідомляє його листом. */
8
- export async function changeSurveyorPasswordByAdmin(
9
- { id, user, ctx }: {
10
- id: string;
11
- user: User | undefined;
12
- ctx: AppContext;
13
- }
14
- ) {
15
- const uid = admin(user);
16
- const password = randomBytes(16).toString("hex");
17
- const passwordHash = await hashPassword(password);
18
- const surveyor = await ctx.pg.query<{ surveyor_id: string; email: string }>(
19
- `UPDATE surveyor.surveyors
20
- SET password_hash = $2,
21
- password_changed_at = now(),
22
- updated_by = $3,
23
- updated_at = now()
24
- WHERE surveyor_id = $1
25
- AND registered_at IS NOT NULL
26
- RETURNING surveyor_id, email`,
27
- [id, passwordHash, uid]
28
- );
29
- if (!surveyor.rows[0]) {
30
- throw new NotFoundError("Registered surveyor not found");
31
- }
32
- await ctx.audit.write({
33
- module: "surveyor",
34
- resource: "surveyors",
35
- resourceId: id,
36
- action: "changePasswordByAdmin",
37
- userId: uid,
38
- });
39
- await sendAdminPasswordChangedEmail({ email: surveyor.rows[0].email, password });
40
- return { success: true };
41
- }
1
+ import { randomBytes } from "node:crypto";
2
+ import type { AppContext, User } from "@opengis/fcore";
3
+ import { NotFoundError, hashPassword } from "@opengis/fcore";
4
+ import { admin } from "../utils/shared.js";
5
+ import { sendAdminPasswordChangedEmail } from "../utils/mail.js";
6
+
7
+ /** Змінює пароль зареєстрованого геодезиста адміністратором та повідомляє його листом. */
8
+ export async function changeSurveyorPasswordByAdmin(
9
+ { id, user, ctx }: {
10
+ id: string;
11
+ user: User | undefined;
12
+ ctx: AppContext;
13
+ }
14
+ ) {
15
+ const uid = admin(user);
16
+ const password = randomBytes(16).toString("hex");
17
+ const passwordHash = await hashPassword(password);
18
+ const surveyor = await ctx.pg.query<{ surveyor_id: string; email: string }>(
19
+ `UPDATE surveyor.surveyors
20
+ SET password_hash = $2,
21
+ password_changed_at = now(),
22
+ updated_by = $3,
23
+ updated_at = now()
24
+ WHERE surveyor_id = $1
25
+ AND registered_at IS NOT NULL
26
+ RETURNING surveyor_id, email`,
27
+ [id, passwordHash, uid]
28
+ );
29
+ if (!surveyor.rows[0]) {
30
+ throw new NotFoundError("Registered surveyor not found");
31
+ }
32
+ await ctx.audit.write({
33
+ module: "surveyor",
34
+ resource: "surveyors",
35
+ resourceId: id,
36
+ action: "changePasswordByAdmin",
37
+ userId: uid,
38
+ });
39
+ await sendAdminPasswordChangedEmail({ email: surveyor.rows[0].email, password });
40
+ return { success: true };
41
+ }
@@ -1,79 +1,79 @@
1
- <!DOCTYPE html>
2
- <html lang="uk">
3
-
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>Пароль змінено</title>
8
- <style>
9
- body {
10
- font-family: Arial, sans-serif;
11
- color: #333;
12
- background-color: #f4f4f4;
13
- padding: 20px;
14
- }
15
-
16
- .email-container {
17
- max-width: 600px;
18
- margin: 0 auto;
19
- background-color: #ffffff;
20
- padding: 20px;
21
- border-radius: 5px;
22
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
23
- }
24
-
25
- h1 {
26
- font-size: 20px;
27
- color: #000;
28
- margin-bottom: 20px;
29
- }
30
-
31
- p {
32
- line-height: 1.6;
33
- margin: 10px 0;
34
- }
35
-
36
- .credentials {
37
- font-weight: bold;
38
- margin-top: 10px;
39
- }
40
-
41
- a {
42
- color: #007bff;
43
- text-decoration: none;
44
- }
45
-
46
- a:hover {
47
- text-decoration: underline;
48
- }
49
-
50
- .footer {
51
- font-size: 12px;
52
- color: #777;
53
- margin-top: 20px;
54
- text-align: center;
55
- }
56
- </style>
57
- </head>
58
-
59
- <body>
60
- <div class="email-container">
61
- <h1>Адміністратор порталу змінив Вам пароль до
62
- <a target="_blank" href="{{protocol}}://{{host}}">кабінету геодезиста</a>
63
- </h1>
64
- <p class="credentials">
65
- Логін: <strong>{{login}}</strong><br>
66
- Пароль: <strong>{{password}}</strong>
67
- </p>
68
- <p>
69
- Ви можете увійти на сайт, натиснувши на цьому посиланні або скопіювавши його в адресний рядок вашого
70
- браузера:<br>
71
- <a target="_blank" href="{{protocol}}://{{host}}">{{protocol}}://{{host}}</a>
72
- </p>
73
- <div class="footer">
74
- Це автоматично створений лист, будь ласка, не відповідайте на нього.
75
- </div>
76
- </div>
77
- </body>
78
-
79
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="uk">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>Пароль змінено</title>
8
+ <style>
9
+ body {
10
+ font-family: Arial, sans-serif;
11
+ color: #333;
12
+ background-color: #f4f4f4;
13
+ padding: 20px;
14
+ }
15
+
16
+ .email-container {
17
+ max-width: 600px;
18
+ margin: 0 auto;
19
+ background-color: #ffffff;
20
+ padding: 20px;
21
+ border-radius: 5px;
22
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
23
+ }
24
+
25
+ h1 {
26
+ font-size: 20px;
27
+ color: #000;
28
+ margin-bottom: 20px;
29
+ }
30
+
31
+ p {
32
+ line-height: 1.6;
33
+ margin: 10px 0;
34
+ }
35
+
36
+ .credentials {
37
+ font-weight: bold;
38
+ margin-top: 10px;
39
+ }
40
+
41
+ a {
42
+ color: #007bff;
43
+ text-decoration: none;
44
+ }
45
+
46
+ a:hover {
47
+ text-decoration: underline;
48
+ }
49
+
50
+ .footer {
51
+ font-size: 12px;
52
+ color: #777;
53
+ margin-top: 20px;
54
+ text-align: center;
55
+ }
56
+ </style>
57
+ </head>
58
+
59
+ <body>
60
+ <div class="email-container">
61
+ <h1>Адміністратор порталу змінив Вам пароль до
62
+ <a target="_blank" href="{{protocol}}://{{host}}">кабінету геодезиста</a>
63
+ </h1>
64
+ <p class="credentials">
65
+ Логін: <strong>{{login}}</strong><br>
66
+ Пароль: <strong>{{password}}</strong>
67
+ </p>
68
+ <p>
69
+ Ви можете увійти на сайт, натиснувши на цьому посиланні або скопіювавши його в адресний рядок вашого
70
+ браузера:<br>
71
+ <a target="_blank" href="{{protocol}}://{{host}}">{{protocol}}://{{host}}</a>
72
+ </p>
73
+ <div class="footer">
74
+ Це автоматично створений лист, будь ласка, не відповідайте на нього.
75
+ </div>
76
+ </div>
77
+ </body>
78
+
79
+ </html>