@opengis/surveyor 0.0.7 → 0.0.9
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/chunks/{applications-CLhv5l_j.js → applications-D6pHAQaK.js} +1 -1
- package/dist/chunks/{card-9r6Si3cz.js → card-6z-m7UkM.js} +3 -3
- package/dist/chunks/{card-rXkTqZqA.js → card-Dlp8_KhV.js} +4 -4
- package/dist/chunks/{create-BAsyL76t.js → create-DR8tXNYj.js} +409 -409
- package/dist/chunks/map-DvwFkxAS.js +2763 -0
- package/dist/chunks/{requests-BM6XqgpC.js → requests-rWq8ok3C.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/server/modules/surveyor/route.ts +4 -2
- package/server/modules/surveyor/schema.ts +19 -1
- package/server/modules/surveyor/services/applicationTile.ts +36 -8
- package/server/modules/surveyor/services/createApplication.ts +3 -2
- package/server/modules/surveyor/utils/application.ts +1 -0
- package/server/resources/surveyor-admin/applications.ts +1 -1
- package/server/resources/surveyor-user/applications.ts +2 -2
- package/dist/chunks/map-UTBxwT7-.js +0 -2776
|
@@ -14,7 +14,7 @@ async function i(n = {}) {
|
|
|
14
14
|
return i.json();
|
|
15
15
|
}
|
|
16
16
|
async function a(n) {
|
|
17
|
-
let r = await fetch(t(`/api/resource/public_applications/${encodeURIComponent(n)}?include=
|
|
17
|
+
let r = await fetch(t(`/api/resource/public_applications/${encodeURIComponent(n)}?include=status_history`), { credentials: "include" });
|
|
18
18
|
if (r.status === 404) return null;
|
|
19
19
|
if (!r.ok) throw Error(e(await r.text(), r.status));
|
|
20
20
|
let i = await r.json();
|
|
@@ -510,7 +510,7 @@ var Fe = /*#__PURE__*/ e(me, [["render", Pe], ["__file", "C:/softpro/surveyor/ad
|
|
|
510
510
|
async function _() {
|
|
511
511
|
p.value = !0, m.value = [];
|
|
512
512
|
try {
|
|
513
|
-
let e = new URLSearchParams({ q: "" }), t = await fetch(s(`/api/
|
|
513
|
+
let e = new URLSearchParams({ q: "" }), t = await fetch(s(`/api/suggestion/gis-layers?${e}`), { credentials: "include" });
|
|
514
514
|
if (!t.ok) {
|
|
515
515
|
let e = await t.text();
|
|
516
516
|
throw Error(a(e, t.status));
|
|
@@ -750,7 +750,7 @@ var et = /*#__PURE__*/ e(Re, [["render", $e], ["__file", "C:/softpro/surveyor/ad
|
|
|
750
750
|
async function U(e) {
|
|
751
751
|
b.value = !0, x.value = "", u.value = null, v.value = "";
|
|
752
752
|
try {
|
|
753
|
-
u.value = await r(`/api/resource/applications/${encodeURIComponent(e)}?include=organization,surveyor,
|
|
753
|
+
u.value = await r(`/api/resource/applications/${encodeURIComponent(e)}?include=organization,surveyor,status_history&limit=100`), await H(I(u.value.surveyor)?.certificate_id);
|
|
754
754
|
} catch (e) {
|
|
755
755
|
u.value = null, x.value = e instanceof Error ? e.message : "Не вдалося завантажити звернення";
|
|
756
756
|
} finally {
|
|
@@ -1142,7 +1142,7 @@ function Vt(e, t, n, r, i, a) {
|
|
|
1142
1142
|
"resolve-author": r.resolveNoteAuthor
|
|
1143
1143
|
}, null, 8, ["application-id", "current-author"])) : x("", !0),
|
|
1144
1144
|
T(r.ApplicationHistorySection, {
|
|
1145
|
-
items: r.application.
|
|
1145
|
+
items: r.application.status_history || [],
|
|
1146
1146
|
variant: "admin"
|
|
1147
1147
|
}, null, 8, ["items"])
|
|
1148
1148
|
]), C("div", It, [C("div", Lt, [r.showMap && r.application ? (k(), b(r.AppealDetailMap, {
|
|
@@ -6,7 +6,7 @@ import { r as o } from "./geometry-DyhIVRcw.js";
|
|
|
6
6
|
import { a as s, i as c, n as ee, r as te, t as ne } from "./ApplicationHistorySection-Cwq0-Frd.js";
|
|
7
7
|
import { t as re } from "./FormFilePicker-DxPQlxgy.js";
|
|
8
8
|
import { n as l, t as ie } from "./AppealStatusBadge-BlAaNUSK.js";
|
|
9
|
-
import { a as ae, n as u, t as d } from "./applications-
|
|
9
|
+
import { a as ae, n as u, t as d } from "./applications-D6pHAQaK.js";
|
|
10
10
|
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, normalizeClass as x, openBlock as S, ref as C, renderList as w, toDisplayString as T, vModelText as E, watch as oe, withCtx as D, withDirectives as O } from "vue";
|
|
11
11
|
import { RouterLink as se, useRoute as ce } from "vue-router";
|
|
12
12
|
//#region cabinet/src/api/application-workflow.ts
|
|
@@ -63,7 +63,7 @@ function A(e, t) {
|
|
|
63
63
|
return r;
|
|
64
64
|
}
|
|
65
65
|
function fe(e, t) {
|
|
66
|
-
let n = e.status ?? "", r = [], i = A(e.
|
|
66
|
+
let n = e.status ?? "", r = [], i = A(e.status_history, e);
|
|
67
67
|
return t && r.push({
|
|
68
68
|
id: "geometry",
|
|
69
69
|
typeLabel: "Межі заявки",
|
|
@@ -90,7 +90,7 @@ function fe(e, t) {
|
|
|
90
90
|
}), r);
|
|
91
91
|
}
|
|
92
92
|
function pe(e) {
|
|
93
|
-
return e.status === "dataIssued" ? e.note_4_file_corrected_geodetic_survey?.trim() || A(e.
|
|
93
|
+
return e.status === "dataIssued" ? e.note_4_file_corrected_geodetic_survey?.trim() || A(e.status_history, e).corrected : void 0;
|
|
94
94
|
}
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region cabinet/src/pages/requests/card.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -496,7 +496,7 @@ function rt(e, t, n, r, i, a) {
|
|
|
496
496
|
"resolve-author": r.resolveNoteAuthor
|
|
497
497
|
}, null, 8, ["application-id", "current-author"])) : h("", !0),
|
|
498
498
|
y(r.ApplicationHistorySection, {
|
|
499
|
-
items: r.application
|
|
499
|
+
items: r.application?.status_history || [],
|
|
500
500
|
variant: "cabinet"
|
|
501
501
|
}, null, 8, ["items"])
|
|
502
502
|
]), _("div", be, [
|