@opengis/surveyor 0.0.6 → 0.0.8
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/{ApplicationHistorySection-PwToBfej.js → ApplicationHistorySection-Cwq0-Frd.js} +252 -247
- package/dist/chunks/{applications-CLhv5l_j.js → applications-D6pHAQaK.js} +1 -1
- package/dist/chunks/{card-B_SfARf7.js → card-6z-m7UkM.js} +317 -317
- package/dist/chunks/{card-BDqeihxR.js → card-Dlp8_KhV.js} +75 -75
- package/dist/chunks/create-CAVC1qXJ.js +1306 -0
- package/dist/chunks/{map-dvA3ayAK.js → map-UTBxwT7-.js} +1 -1
- package/dist/chunks/{mapLayersApi-CWoQ2be-.js → mapLayersApi-CBLcbADa.js} +1 -1
- 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/schema.ts +1 -0
- 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 +1 -1
- package/dist/chunks/create-BPWuoys6.js +0 -1047
package/dist/index.js
CHANGED
|
@@ -63,7 +63,7 @@ var B = /*#__PURE__*/ r(I, [
|
|
|
63
63
|
setup(e, { expose: t }) {
|
|
64
64
|
t();
|
|
65
65
|
let n = {
|
|
66
|
-
MapPage: S(() => import("./chunks/map-
|
|
66
|
+
MapPage: S(() => import("./chunks/map-UTBxwT7-.js")),
|
|
67
67
|
SurveyorEmbedShell: B
|
|
68
68
|
};
|
|
69
69
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
@@ -140,7 +140,7 @@ var K = /*#__PURE__*/ r(W, [["render", G], ["__file", "C:/softpro/surveyor/src/w
|
|
|
140
140
|
t();
|
|
141
141
|
let n = {
|
|
142
142
|
Index: S(() => import("./chunks/requests-BTpLXrNj.js")),
|
|
143
|
-
Card: S(() => import("./chunks/card-
|
|
143
|
+
Card: S(() => import("./chunks/card-6z-m7UkM.js")),
|
|
144
144
|
BaseEntityWrapper: K,
|
|
145
145
|
SurveyorEmbedShell: B
|
|
146
146
|
};
|
|
@@ -279,9 +279,9 @@ var Se = /*#__PURE__*/ r(be, [["render", xe], ["__file", "C:/softpro/surveyor/sr
|
|
|
279
279
|
setup(e, { expose: t }) {
|
|
280
280
|
t();
|
|
281
281
|
let n = {
|
|
282
|
-
Index: S(() => import("./chunks/requests-
|
|
283
|
-
Create: S(() => import("./chunks/create-
|
|
284
|
-
Card: S(() => import("./chunks/card-
|
|
282
|
+
Index: S(() => import("./chunks/requests-rWq8ok3C.js")),
|
|
283
|
+
Create: S(() => import("./chunks/create-CAVC1qXJ.js")),
|
|
284
|
+
Card: S(() => import("./chunks/card-Dlp8_KhV.js")),
|
|
285
285
|
BaseEntityWrapper: K,
|
|
286
286
|
SurveyorEmbedShell: B
|
|
287
287
|
};
|
|
@@ -674,7 +674,7 @@ var X = [
|
|
|
674
674
|
{
|
|
675
675
|
path: "requests",
|
|
676
676
|
name: "requests",
|
|
677
|
-
component: () => import("./chunks/requests-
|
|
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-
|
|
687
|
+
component: () => import("./chunks/create-CAVC1qXJ.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-
|
|
696
|
+
component: () => import("./chunks/card-Dlp8_KhV.js"),
|
|
697
697
|
meta: {
|
|
698
698
|
title: "Звернення",
|
|
699
699
|
section: "requests"
|
package/package.json
CHANGED
|
@@ -138,6 +138,7 @@ export const surveyorSchemas = {
|
|
|
138
138
|
work_type: { type: "string", enum: workTypes.items.map((item) => item.code) },
|
|
139
139
|
description: { type: "string" },
|
|
140
140
|
execution_basis: { type: "string" },
|
|
141
|
+
notes: { type: "string" },
|
|
141
142
|
settlement_id: nonBlank,
|
|
142
143
|
is_found_address_id: { type: "boolean" },
|
|
143
144
|
address_id: nonBlank,
|
|
@@ -137,10 +137,10 @@ export async function createApplication(
|
|
|
137
137
|
`INSERT INTO surveyor.applications (
|
|
138
138
|
number, org_id, surveyor_id, status, work_type, description,
|
|
139
139
|
execution_basis, settlement_id, is_found_address_id, address_id,
|
|
140
|
-
location, area, geom, created_by
|
|
140
|
+
location, area, geom, created_by, notes
|
|
141
141
|
) VALUES (
|
|
142
142
|
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12,
|
|
143
|
-
ST_SetSRID(ST_GeomFromGeoJSON($13), 4326), $14
|
|
143
|
+
ST_SetSRID(ST_GeomFromGeoJSON($13), 4326), $14, $15
|
|
144
144
|
) RETURNING app_id`,
|
|
145
145
|
[
|
|
146
146
|
number,
|
|
@@ -157,6 +157,7 @@ export async function createApplication(
|
|
|
157
157
|
area.toFixed(4),
|
|
158
158
|
geojson,
|
|
159
159
|
uid,
|
|
160
|
+
input.notes ?? null,
|
|
160
161
|
]
|
|
161
162
|
);
|
|
162
163
|
const id = inserted.rows[0]!.app_id;
|