@freedom_sky/feige-lib 5.18.0 → 5.20.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.
@@ -144,6 +144,7 @@ declare class Const {
144
144
  MEMBER_NAME_MAX_LENGTH: number;
145
145
  MEMBER_NOTE_MAX_LENGTH: number;
146
146
  MEMBER_TRANSACTION_NOTE_MAX_LENGTH: number;
147
+ ADDRESS_DETAIL_MAX_LENGTH: number;
147
148
  };
148
149
  BUSINESS: {
149
150
  BASE: {
@@ -148,6 +148,7 @@ var Const = /** @class */ (function () {
148
148
  MEMBER_NAME_MAX_LENGTH: 30,
149
149
  MEMBER_NOTE_MAX_LENGTH: 200,
150
150
  MEMBER_TRANSACTION_NOTE_MAX_LENGTH: 200,
151
+ ADDRESS_DETAIL_MAX_LENGTH: 100,
151
152
  };
152
153
  this.BUSINESS = {
153
154
  BASE: {
@@ -57,6 +57,19 @@ export interface Store {
57
57
  readonly needAuditNames: boolean;
58
58
  readonly img: string;
59
59
  readonly phone?: string;
60
+ /**
61
+ * Geographic location for the store. Optional — old stores may not have it.
62
+ * Set via the manager's map-location picker flow on the App; consumed by
63
+ * delivery distance / static-map thumbnails / future routing features.
64
+ * Mirrors the server-side Mongoose subdoc shape in
65
+ * order-multi-server/src/stores/schemas/store.schema.ts.
66
+ */
67
+ readonly location?: {
68
+ lat: number;
69
+ lng: number;
70
+ formattedAddress?: string;
71
+ placeId?: string;
72
+ };
60
73
  description: string;
61
74
  readonly descriptions?: object;
62
75
  readonly type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freedom_sky/feige-lib",
3
- "version": "5.18.0",
3
+ "version": "5.20.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -8,7 +8,8 @@
8
8
  "build": "npm run test && tsc",
9
9
  "lint": "tsc --noEmit && eslint 'src/**/*.{js,ts}' --quiet --fix",
10
10
  "test": "jest",
11
- "publish": "npm run build && npm publish --access public"
11
+ "prepublishOnly": "npm run build",
12
+ "release": "npm publish"
12
13
  },
13
14
  "husky": {
14
15
  "hooks": {
@@ -30,6 +31,9 @@
30
31
  "url": "https://github.com/freedom-git/feige-lib/issues"
31
32
  },
32
33
  "homepage": "https://github.com/freedom-git/feige-lib#readme",
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
33
37
  "devDependencies": {
34
38
  "@types/big.js": "^6.1.2",
35
39
  "@types/jest": "^25.2.1",