@opengis/surveyor 0.0.10 → 0.0.11
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/{AppIcon-Di5F4Bu_.js → AppIcon-CCLzEE-_.js} +1 -1
- package/dist/chunks/{AppealDetailField-DNpsGpPY.js → AppealDetailField-CI-1qhs3.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-z77wwkFD.js → AppealStatusBadge-CzzI6x8I.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-MP1qD952.js → AppealStatusBadge-DYBe9hqP.js} +1 -1
- package/dist/chunks/{ApplicationHistorySection-DIoFZwH6.js → ApplicationHistorySection-CPCU_DXH.js} +4 -4
- package/dist/chunks/{BaseModal-DP_ilBdg.js → BaseModal-DnwqlJhc.js} +2 -2
- package/dist/chunks/{FormFilePicker-D5fAUE0Z.js → FormFilePicker-Dss6pGmO.js} +2 -2
- package/dist/chunks/{MapLayerMenu-CI5cbLEC.js → MapLayerMenu-DjYCxEc3.js} +1 -1
- package/dist/chunks/{RegistryForm-DbCxZsr0.js → RegistryForm-CEUqFmsF.js} +1 -1
- package/dist/chunks/{RegistryFormModal-D_KLGj2d.js → RegistryFormModal-C-Z4MMHi.js} +3 -3
- package/dist/chunks/{RegistryToolbar-DvbrASlj.js → RegistryToolbar-CI1MRqzw.js} +6 -6
- package/dist/chunks/{SurveyorTeleport-D6-KXe_5.js → SurveyorTeleport-BLEO6we9.js} +1 -1
- package/dist/chunks/{UserAccessBadge-B5Q1LvNv.js → UserAccessBadge-D8JfgGfN.js} +1 -1
- package/dist/chunks/{UserTypeBadge-CuAMctTK.js → UserTypeBadge-YIwwoCho.js} +1 -1
- package/dist/chunks/{VerifiedBadge-D6L7mCdp.js → VerifiedBadge-B__Vs_ce.js} +2 -2
- package/dist/chunks/{card-ylC5NYbz.js → card-BElHsAFl.js} +10 -10
- package/dist/chunks/{card-Cu8QOSIw.js → card-CU2THiBT.js} +4 -4
- package/dist/chunks/{card-BsTSF6aL.js → card-CUDo4kUH.js} +10 -10
- package/dist/chunks/{card-CI7ntIHf.js → card-DL7yHB1C.js} +5 -5
- package/dist/chunks/{card--XUb1kFK.js → card-UG1mWhcg.js} +4 -4
- package/dist/chunks/{card-BrjnXf1N.js → card-sDIYR6YI.js} +6 -6
- package/dist/chunks/{certificates-aJ-hvaP-.js → certificates-DKi9CSfc.js} +5 -5
- package/dist/chunks/{create-Bi7-j9Ri.js → create-DVZv77Uw.js} +9 -9
- package/dist/chunks/{forgot-DnixBqdc.js → forgot-BVzXMKGA.js} +2 -2
- package/dist/chunks/{login-BWCQdEkv.js → login-BCib_dtl.js} +2 -2
- package/dist/chunks/{map-CwsVIW79.js → map-CNX1_COE.js} +10 -10
- package/dist/chunks/{map-layers-BLiEYC4C.js → map-layers-CCJ7G7ZK.js} +5 -5
- package/dist/chunks/{organizations-mc6FlSwe.js → organizations-BuMFRKjw.js} +6 -6
- package/dist/chunks/{profile-F7mr0poI.js → profile-BI_RIHN1.js} +3 -3
- package/dist/chunks/{registration-BRF4985_.js → registration-6nn7GgDS.js} +2 -2
- package/dist/chunks/{requests-7pD2ckdx.js → requests-DQRmDemb.js} +4 -4
- package/dist/chunks/{requests-BCJN-CNx.js → requests-Dh5jxF06.js} +5 -5
- package/dist/chunks/{reset-OZCgLi6f.js → reset-D2uXDfB6.js} +2 -2
- package/dist/chunks/{useEntityPath-8s0Y1tjA.js → useEntityPath-n7hCq8zh.js} +1 -1
- package/dist/chunks/{users-CAEjpaI1.js → users-LbXn1F2y.js} +6 -6
- package/dist/index.css +1 -1
- package/dist/index.js +40 -40
- package/migrations/20261016120000_map_layers.sql +156 -156
- package/migrations/20261016150000_password_reset.sql +15 -15
- package/migrations/20261016180000_settlement_lookup.sql +16 -16
- package/package.json +1 -1
- package/server/dictionaries/index.ts +17 -17
- package/server/dictionaries/surveyor/map_layer_components.ts +11 -11
- package/server/dictionaries/surveyor/map_layer_groups.ts +10 -10
- package/server/dictionaries/surveyor/map_layer_types.ts +11 -11
- package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
- package/server/modules/surveyor/services/mapLayers.ts +61 -61
- package/server/modules/surveyor/services/updateSurveyorAccountStatus.ts +52 -52
- package/server/modules/surveyor/services/updateSurveyorStatus.ts +53 -53
- package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
- package/server/modules/surveyor/utils/templates/ds.surveyor_password_reset.pt.hbs +79 -79
- package/server/plugins/convertVector.ts +1 -1
- package/server/resources/helpers/settlement_lookup.ts +7 -7
- package/server/resources/surveyor-admin/map_layers.ts +69 -69
- package/server/resources/surveyor-admin/organization_surveyors.ts +31 -31
- package/server/resources/surveyor-admin/organizations.ts +61 -61
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import type { ResourceContract } from "@opengis/fcore";
|
|
2
|
-
import { userLookup } from "../helpers/user_lookup.js";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
version: 1,
|
|
6
|
-
name: "organizations",
|
|
7
|
-
module: "surveyor",
|
|
8
|
-
title: "Організації",
|
|
9
|
-
table: "surveyor.organizations",
|
|
10
|
-
key: "org_id",
|
|
11
|
-
display: ["name"],
|
|
12
|
-
access: "admin",
|
|
13
|
-
operations: ["read", "create", "update", "delete"],
|
|
14
|
-
searchable: ["name", "email", "phone"],
|
|
15
|
-
capabilities: ["notes", "files"],
|
|
16
|
-
fields: {
|
|
17
|
-
org_id: {
|
|
18
|
-
type: "text",
|
|
19
|
-
write: false,
|
|
20
|
-
filterable: true,
|
|
21
|
-
lookup: {
|
|
22
|
-
table: "surveyor.organizations",
|
|
23
|
-
value: "org_id",
|
|
24
|
-
text: "name",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
name: { type: "string", write: true, required: true, searchable: true, sortable: true },
|
|
28
|
-
legal_address: { type: "text", write: true },
|
|
29
|
-
phone: { type: "string", write: true, required: true, searchable: true },
|
|
30
|
-
email: { type: "string", write: true, required: true, searchable: true },
|
|
31
|
-
scan_path: { type: "file", write: true },
|
|
32
|
-
created_by: { type: "string", write: false, lookup: userLookup },
|
|
33
|
-
updated_by: { type: "string", write: false, lookup: userLookup },
|
|
34
|
-
created_at: { type: "timestamp", write: false, filterable: true, sortable: true },
|
|
35
|
-
updated_at: { type: "timestamp", write: false, sortable: true },
|
|
36
|
-
verified: { type: "boolean", write: true, filterable: true, dictionary: "yes-no" },
|
|
37
|
-
},
|
|
38
|
-
relations: {
|
|
39
|
-
surveyors: {
|
|
40
|
-
resource: "organization_surveyors",
|
|
41
|
-
localKey: "org_id",
|
|
42
|
-
// `enabled` is the surveyor account flag; the membership flag is exposed separately.
|
|
43
|
-
fields: [
|
|
44
|
-
't."org_id"',
|
|
45
|
-
't."surveyor_id"',
|
|
46
|
-
's."first_name"',
|
|
47
|
-
's."last_name"',
|
|
48
|
-
's."middle_name"',
|
|
49
|
-
's."email"',
|
|
50
|
-
's."phone"',
|
|
51
|
-
's."registered_at"',
|
|
52
|
-
's."certificate_id"',
|
|
53
|
-
's."surveyor_enabled" AS "enabled"',
|
|
54
|
-
't."enabled" AS "membership_enabled"',
|
|
55
|
-
't."created_by"',
|
|
56
|
-
't."created_at"',
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
applications: { resource: "applications", localKey: "org_id", foreignKey: "org_id" },
|
|
60
|
-
},
|
|
61
|
-
} satisfies ResourceContract;
|
|
1
|
+
import type { ResourceContract } from "@opengis/fcore";
|
|
2
|
+
import { userLookup } from "../helpers/user_lookup.js";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
version: 1,
|
|
6
|
+
name: "organizations",
|
|
7
|
+
module: "surveyor",
|
|
8
|
+
title: "Організації",
|
|
9
|
+
table: "surveyor.organizations",
|
|
10
|
+
key: "org_id",
|
|
11
|
+
display: ["name"],
|
|
12
|
+
access: "admin",
|
|
13
|
+
operations: ["read", "create", "update", "delete"],
|
|
14
|
+
searchable: ["name", "email", "phone"],
|
|
15
|
+
capabilities: ["notes", "files"],
|
|
16
|
+
fields: {
|
|
17
|
+
org_id: {
|
|
18
|
+
type: "text",
|
|
19
|
+
write: false,
|
|
20
|
+
filterable: true,
|
|
21
|
+
lookup: {
|
|
22
|
+
table: "surveyor.organizations",
|
|
23
|
+
value: "org_id",
|
|
24
|
+
text: "name",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
name: { type: "string", write: true, required: true, searchable: true, sortable: true },
|
|
28
|
+
legal_address: { type: "text", write: true },
|
|
29
|
+
phone: { type: "string", write: true, required: true, searchable: true },
|
|
30
|
+
email: { type: "string", write: true, required: true, searchable: true },
|
|
31
|
+
scan_path: { type: "file", write: true },
|
|
32
|
+
created_by: { type: "string", write: false, lookup: userLookup },
|
|
33
|
+
updated_by: { type: "string", write: false, lookup: userLookup },
|
|
34
|
+
created_at: { type: "timestamp", write: false, filterable: true, sortable: true },
|
|
35
|
+
updated_at: { type: "timestamp", write: false, sortable: true },
|
|
36
|
+
verified: { type: "boolean", write: true, filterable: true, dictionary: "yes-no" },
|
|
37
|
+
},
|
|
38
|
+
relations: {
|
|
39
|
+
surveyors: {
|
|
40
|
+
resource: "organization_surveyors",
|
|
41
|
+
localKey: "org_id",
|
|
42
|
+
// `enabled` is the surveyor account flag; the membership flag is exposed separately.
|
|
43
|
+
fields: [
|
|
44
|
+
't."org_id"',
|
|
45
|
+
't."surveyor_id"',
|
|
46
|
+
's."first_name"',
|
|
47
|
+
's."last_name"',
|
|
48
|
+
's."middle_name"',
|
|
49
|
+
's."email"',
|
|
50
|
+
's."phone"',
|
|
51
|
+
's."registered_at"',
|
|
52
|
+
's."certificate_id"',
|
|
53
|
+
's."surveyor_enabled" AS "enabled"',
|
|
54
|
+
't."enabled" AS "membership_enabled"',
|
|
55
|
+
't."created_by"',
|
|
56
|
+
't."created_at"',
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
applications: { resource: "applications", localKey: "org_id", foreignKey: "org_id" },
|
|
60
|
+
},
|
|
61
|
+
} satisfies ResourceContract;
|