sumba 2.44.0 → 2.45.0

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.
@@ -1,5 +1,6 @@
1
1
  async function address (opts = {}) {
2
- return {
2
+ opts.latLng = opts.latLng ?? true
3
+ const item = {
3
4
  properties: [{
4
5
  name: 'address1',
5
6
  type: 'string'
@@ -36,12 +37,32 @@ async function address (opts = {}) {
36
37
  name: 'website',
37
38
  type: 'string',
38
39
  maxLength: 100
40
+ }, {
41
+ name: 'lat',
42
+ type: 'sumba:lat',
43
+ required: false
44
+ }, {
45
+ name: 'lng',
46
+ type: 'sumba:lng',
47
+ required: false
39
48
  }],
40
49
  rules: [{
41
50
  rule: 'trim',
42
51
  fields: ['address1', 'address2', 'city', 'zipCode', 'provinceState', 'phone', 'website']
43
52
  }]
44
53
  }
54
+ if (opts.latLng) {
55
+ item.properties.push({
56
+ name: 'lat',
57
+ type: 'sumba:lat',
58
+ required: false
59
+ }, {
60
+ name: 'lng',
61
+ type: 'sumba:lng',
62
+ required: false
63
+ })
64
+ }
65
+ return item
45
66
  }
46
67
 
47
68
  export default address
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.44.0",
3
+ "version": "2.45.0",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-08-08
4
+
5
+ - [2.45.0] Add `lat` & `lng` columns to `site` schema
6
+ - [2.45.0] Add `lat` & `lng` columns to `user` schema
7
+
3
8
  ## 2026-08-06
4
9
 
5
10
  - [2.44.0] Update `start()` to use the new `app.lib.setInterval()`