@dashadmin/dash-interfaces 1.3.25 → 1.3.28

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/README.md CHANGED
@@ -0,0 +1,30 @@
1
+ # @dashadmin/dash-interfaces
2
+
3
+ > Shared TypeScript interfaces and domain types.
4
+
5
+ ## Overview
6
+
7
+ Central type definitions (e.g. `IClient`, `IPackage`, `ITag`, delivery and tracking types) shared across packages to keep contracts consistent.
8
+
9
+ ## Key exports & features
10
+
11
+ - Domain interfaces (`IClient`, `IPackage`, `ITag`, …)
12
+ - Type-only package (no runtime code)
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ # From the public npm registry
18
+ npm install @dashadmin/dash-interfaces
19
+
20
+ # Or the local Verdaccio registry (unscoped)
21
+ npm install dash-interfaces --registry http://localhost:4873
22
+ ```
23
+
24
+ ## Development & publishing
25
+
26
+ This package is part of the **dash-frontend-core** monorepo. See [`DEVELOPMENT.md`](../../DEVELOPMENT.md) for the source-modification workflow, local Verdaccio publishing, npm publishing and version-bump policy.
27
+
28
+ ---
29
+
30
+ _Part of the [Dash Framework](https://www.npmjs.com/org/dashadmin) · `@dashadmin` scope._
package/dist/index.cjs ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/index.tsx
17
+ var index_exports = {};
18
+ module.exports = __toCommonJS(index_exports);
@@ -0,0 +1,173 @@
1
+ interface IClient {
2
+ id: number;
3
+ name: string;
4
+ url: any;
5
+ commune_ids: any[];
6
+ created_at: any;
7
+ updated_at: string;
8
+ }
9
+
10
+ interface IDeliveryCommune {
11
+ id: number;
12
+ name: string;
13
+ active: boolean;
14
+ terms: string;
15
+ region_id: number;
16
+ created_at: any;
17
+ }
18
+
19
+ interface ILogisticCenter {
20
+ id: number;
21
+ name: string;
22
+ address: string;
23
+ address_geocoded: number[];
24
+ detail?: string;
25
+ responsable: string;
26
+ email: string;
27
+ phone: string;
28
+ active: boolean;
29
+ commune_id: number;
30
+ client_id: number;
31
+ created_at?: string;
32
+ updated_at: string;
33
+ volume_id?: number;
34
+ css_mails?: string;
35
+ }
36
+
37
+ interface IMercadoLibreStatus {
38
+ id: number;
39
+ name: string;
40
+ code: string;
41
+ created_at: any;
42
+ }
43
+
44
+ interface IPackageInternalStatus {
45
+ id: number;
46
+ name: string;
47
+ code: any;
48
+ created_at: any;
49
+ }
50
+
51
+ interface IPackageStatus {
52
+ id: number;
53
+ name: string;
54
+ code: string;
55
+ created_at: any;
56
+ }
57
+
58
+ declare enum TagTypeColors {
59
+ 'rgba' = "rgba",
60
+ 'rgb' = "rgb",
61
+ 'hex' = "hex"
62
+ }
63
+ interface ITag {
64
+ id: number;
65
+ name: string;
66
+ description?: string;
67
+ color: string;
68
+ type_color: keyof typeof TagTypeColors;
69
+ client: boolean;
70
+ status: 'active' | 'inactive';
71
+ icon?: string;
72
+ prefix_icon?: string;
73
+ created_at?: string;
74
+ updated_at?: string;
75
+ driver: boolean;
76
+ }
77
+
78
+ interface IPackage {
79
+ id: number;
80
+ internal_id: string;
81
+ order_id: any;
82
+ welivery_id: any;
83
+ client_id: number;
84
+ user_id: number;
85
+ create_method: string;
86
+ driver_withdrawal_id: number;
87
+ rutero_withdrawal_id: any;
88
+ driver_delivery_id: any;
89
+ driver_return_id: any;
90
+ ecommerce_id: number;
91
+ logistic_center_id: number;
92
+ withdrawal_commune_id: any;
93
+ withdrawal_address: any;
94
+ withdrawal_detail: any;
95
+ delivery_commune_id: number;
96
+ delivery_address: string;
97
+ second_delivery_address: any;
98
+ address_geocoded: any;
99
+ second_address_geocoded: any;
100
+ tags_id: any;
101
+ delivery_detail: any;
102
+ package_status_id: number;
103
+ mercadolibre_status_id: number;
104
+ contact_name: string;
105
+ contact_lastname: any;
106
+ contact_email: any;
107
+ contact_phone: any;
108
+ package_internal_status_id: number;
109
+ modified_ml: any;
110
+ estimated_delivery_date: any;
111
+ estimated_handling_limit: any;
112
+ return_date_warehouse: any;
113
+ date_not_delivered: any;
114
+ date_cancelled: any;
115
+ date_delivered: any;
116
+ return_date: any;
117
+ dispatch_date_warehouse: any;
118
+ return_logistic_center_id: any;
119
+ products: any;
120
+ is_xl: boolean;
121
+ driver_delivery_address: any;
122
+ driver_delivery_address_geocoded: any;
123
+ order_route: any;
124
+ high_value: number;
125
+ is_change_tags_massive: boolean;
126
+ sentmail: boolean;
127
+ is_change_status_massive: boolean;
128
+ connection_id: any;
129
+ bsale_id: any;
130
+ created_at: string;
131
+ updated_at: any;
132
+ client: IClient;
133
+ packageStatus: IPackageStatus;
134
+ package_status?: IPackageStatus;
135
+ tags: ITag[];
136
+ logistic_center?: ILogisticCenter;
137
+ deliveryCommune?: IDeliveryCommune;
138
+ delivery_commune: IDeliveryCommune;
139
+ driver_full_name?: string;
140
+ mercadolibreStatus?: IMercadoLibreStatus;
141
+ mercadolibre_status: IMercadoLibreStatus;
142
+ icon_class_internal_status: 'icon--color-proceso' | 'icon--color-alert' | 'icon--color-ok';
143
+ package_internal_status: IPackageInternalStatus;
144
+ logistic_center_address: string;
145
+ package_status_name: string;
146
+ mercadolibre_status_name: string;
147
+ package_internal_status_name: string;
148
+ delivery_commune_name: string;
149
+ }
150
+
151
+ interface ITrackingErrorResponse {
152
+ message: string;
153
+ copy_method: number;
154
+ modal: boolean;
155
+ package?: IPackage;
156
+ packages?: IPackage[];
157
+ }
158
+
159
+ interface IPackagePayload {
160
+ driver_delivery_id: number | string;
161
+ rutero_withdrawal_id: number | string;
162
+ driver_withdrawal_id: number | string;
163
+ code: number | string;
164
+ copy_method: number;
165
+ }
166
+
167
+ interface IHistoryPackage {
168
+ title: string;
169
+ detail: string;
170
+ updated_at: string;
171
+ }
172
+
173
+ export type { IClient, IDeliveryCommune, IHistoryPackage, ILogisticCenter, IMercadoLibreStatus, IPackage, IPackageInternalStatus, IPackagePayload, ITag, ITrackingErrorResponse };
@@ -0,0 +1,173 @@
1
+ interface IClient {
2
+ id: number;
3
+ name: string;
4
+ url: any;
5
+ commune_ids: any[];
6
+ created_at: any;
7
+ updated_at: string;
8
+ }
9
+
10
+ interface IDeliveryCommune {
11
+ id: number;
12
+ name: string;
13
+ active: boolean;
14
+ terms: string;
15
+ region_id: number;
16
+ created_at: any;
17
+ }
18
+
19
+ interface ILogisticCenter {
20
+ id: number;
21
+ name: string;
22
+ address: string;
23
+ address_geocoded: number[];
24
+ detail?: string;
25
+ responsable: string;
26
+ email: string;
27
+ phone: string;
28
+ active: boolean;
29
+ commune_id: number;
30
+ client_id: number;
31
+ created_at?: string;
32
+ updated_at: string;
33
+ volume_id?: number;
34
+ css_mails?: string;
35
+ }
36
+
37
+ interface IMercadoLibreStatus {
38
+ id: number;
39
+ name: string;
40
+ code: string;
41
+ created_at: any;
42
+ }
43
+
44
+ interface IPackageInternalStatus {
45
+ id: number;
46
+ name: string;
47
+ code: any;
48
+ created_at: any;
49
+ }
50
+
51
+ interface IPackageStatus {
52
+ id: number;
53
+ name: string;
54
+ code: string;
55
+ created_at: any;
56
+ }
57
+
58
+ declare enum TagTypeColors {
59
+ 'rgba' = "rgba",
60
+ 'rgb' = "rgb",
61
+ 'hex' = "hex"
62
+ }
63
+ interface ITag {
64
+ id: number;
65
+ name: string;
66
+ description?: string;
67
+ color: string;
68
+ type_color: keyof typeof TagTypeColors;
69
+ client: boolean;
70
+ status: 'active' | 'inactive';
71
+ icon?: string;
72
+ prefix_icon?: string;
73
+ created_at?: string;
74
+ updated_at?: string;
75
+ driver: boolean;
76
+ }
77
+
78
+ interface IPackage {
79
+ id: number;
80
+ internal_id: string;
81
+ order_id: any;
82
+ welivery_id: any;
83
+ client_id: number;
84
+ user_id: number;
85
+ create_method: string;
86
+ driver_withdrawal_id: number;
87
+ rutero_withdrawal_id: any;
88
+ driver_delivery_id: any;
89
+ driver_return_id: any;
90
+ ecommerce_id: number;
91
+ logistic_center_id: number;
92
+ withdrawal_commune_id: any;
93
+ withdrawal_address: any;
94
+ withdrawal_detail: any;
95
+ delivery_commune_id: number;
96
+ delivery_address: string;
97
+ second_delivery_address: any;
98
+ address_geocoded: any;
99
+ second_address_geocoded: any;
100
+ tags_id: any;
101
+ delivery_detail: any;
102
+ package_status_id: number;
103
+ mercadolibre_status_id: number;
104
+ contact_name: string;
105
+ contact_lastname: any;
106
+ contact_email: any;
107
+ contact_phone: any;
108
+ package_internal_status_id: number;
109
+ modified_ml: any;
110
+ estimated_delivery_date: any;
111
+ estimated_handling_limit: any;
112
+ return_date_warehouse: any;
113
+ date_not_delivered: any;
114
+ date_cancelled: any;
115
+ date_delivered: any;
116
+ return_date: any;
117
+ dispatch_date_warehouse: any;
118
+ return_logistic_center_id: any;
119
+ products: any;
120
+ is_xl: boolean;
121
+ driver_delivery_address: any;
122
+ driver_delivery_address_geocoded: any;
123
+ order_route: any;
124
+ high_value: number;
125
+ is_change_tags_massive: boolean;
126
+ sentmail: boolean;
127
+ is_change_status_massive: boolean;
128
+ connection_id: any;
129
+ bsale_id: any;
130
+ created_at: string;
131
+ updated_at: any;
132
+ client: IClient;
133
+ packageStatus: IPackageStatus;
134
+ package_status?: IPackageStatus;
135
+ tags: ITag[];
136
+ logistic_center?: ILogisticCenter;
137
+ deliveryCommune?: IDeliveryCommune;
138
+ delivery_commune: IDeliveryCommune;
139
+ driver_full_name?: string;
140
+ mercadolibreStatus?: IMercadoLibreStatus;
141
+ mercadolibre_status: IMercadoLibreStatus;
142
+ icon_class_internal_status: 'icon--color-proceso' | 'icon--color-alert' | 'icon--color-ok';
143
+ package_internal_status: IPackageInternalStatus;
144
+ logistic_center_address: string;
145
+ package_status_name: string;
146
+ mercadolibre_status_name: string;
147
+ package_internal_status_name: string;
148
+ delivery_commune_name: string;
149
+ }
150
+
151
+ interface ITrackingErrorResponse {
152
+ message: string;
153
+ copy_method: number;
154
+ modal: boolean;
155
+ package?: IPackage;
156
+ packages?: IPackage[];
157
+ }
158
+
159
+ interface IPackagePayload {
160
+ driver_delivery_id: number | string;
161
+ rutero_withdrawal_id: number | string;
162
+ driver_withdrawal_id: number | string;
163
+ code: number | string;
164
+ copy_method: number;
165
+ }
166
+
167
+ interface IHistoryPackage {
168
+ title: string;
169
+ detail: string;
170
+ updated_at: string;
171
+ }
172
+
173
+ export type { IClient, IDeliveryCommune, IHistoryPackage, ILogisticCenter, IMercadoLibreStatus, IPackage, IPackageInternalStatus, IPackagePayload, ITag, ITrackingErrorResponse };
package/dist/index.js CHANGED
@@ -1 +0,0 @@
1
-
package/package.json CHANGED
@@ -1,95 +1,95 @@
1
1
  {
2
- "name": "@dashadmin/dash-interfaces",
3
- "version": "1.3.25",
4
- "private": false,
5
- "main": "dist/index.js",
6
- "type": "module",
7
- "browserslist": {
8
- "production": [
9
- ">0.2%",
10
- "not dead",
11
- "not op_mini all"
12
- ],
13
- "development": [
14
- "last 1 chrome version",
15
- "last 1 firefox version",
16
- "last 1 safari version"
17
- ]
18
- },
19
- "dependencies": {},
20
- "devDependencies": {
21
- "@babel/core": "latest",
22
- "@babel/preset-env": "latest",
23
- "@babel/preset-react": "latest",
24
- "@babel/preset-typescript": "latest",
25
- "@commitlint/config-conventional": "latest",
26
- "@types/node": "latest",
27
- "@types/react": "latest",
28
- "@types/react-dom": "latest",
29
- "@zerollup/ts-transform-paths": "latest",
30
- "babel-loader": "latest",
31
- "eslint": "latest",
32
- "eslint-config-airbnb": "latest",
33
- "eslint-config-airbnb-typescript": "latest",
34
- "eslint-config-prettier": "latest",
35
- "eslint-import-resolver-typescript": "latest",
36
- "eslint-plugin-html": "latest",
37
- "eslint-plugin-import": "latest",
38
- "eslint-plugin-jsdoc": "latest",
39
- "eslint-plugin-json": "latest",
40
- "eslint-plugin-jsx-a11y": "latest",
41
- "eslint-plugin-prettier": "latest",
42
- "eslint-plugin-react": "latest",
43
- "eslint-plugin-react-hooks": "latest",
44
- "query-string": "latest",
45
- "react-dom": "latest",
46
- "rollup": "latest",
47
- "rollup-plugin-copy-assets": "latest",
48
- "rollup-plugin-external-globals": "latest",
49
- "rollup-plugin-includepaths": "latest",
50
- "rollup-plugin-less": "latest",
51
- "@rollup/plugin-node-resolve": "latest",
52
- "rollup-plugin-postcss": "latest",
53
- "rollup-plugin-sourcemaps": "latest",
54
- "rollup-plugin-typescript2": "latest",
55
- "tsc-alias": "latest",
56
- "typescript": "latest",
57
- "vite": "^5.2.0",
58
- "@dashadmin/dash-eslint": "1.3.25",
59
- "@dashadmin/dash-prettier": "1.3.25",
60
- "@dashadmin/dash-tsconfig": "1.3.25"
61
- },
62
- "peerDependencies": {
63
- "react": "latest"
64
- },
65
- "eslintConfig": {
66
- "extends": "react-app"
67
- },
68
- "todo_storybook": {
69
- "eslint-plugin-storybook": "latest"
70
- },
71
- "publishConfig": {
72
- "name": "@dashadmin/dash-interfaces",
73
- "access": "public"
74
- },
75
- "files": [
76
- "dist"
77
- ],
78
- "exports": {
79
- ".": {
80
- "import": "./dist/index.js"
81
- },
82
- "./src/*": {
83
- "import": "./dist/*.js"
84
- }
85
- },
86
- "scripts": {
87
- "lint": "eslint --ext .ts,.tsx .",
88
- "format": "pnpm prettier --write . && pnpm format-check && pnpm lint",
89
- "lint:check": "pnpm prettier --check .",
90
- "lint:fix": "pnpm prettier --write .",
91
- "check-updates": "pnpm npm-check-updates",
92
- "updates-packages": "pnpm npm-check-updates -u",
93
- "build": "rm -rf dist && node ../dash-build/compile.mjs && vite build"
94
- }
95
- }
2
+ "name": "@dashadmin/dash-interfaces",
3
+ "version": "1.3.28",
4
+ "main": "dist/index.cjs",
5
+ "type": "module",
6
+ "scripts": {
7
+ "lint": "eslint --ext .ts,.tsx .",
8
+ "format": "pnpm prettier --write . && pnpm format-check && pnpm lint",
9
+ "lint:check": "pnpm prettier --check .",
10
+ "lint:fix": "pnpm prettier --write .",
11
+ "check-updates": "pnpm npm-check-updates",
12
+ "updates-packages": "pnpm npm-check-updates -u",
13
+ "build": "tsup"
14
+ },
15
+ "browserslist": {
16
+ "production": [
17
+ ">0.2%",
18
+ "not dead",
19
+ "not op_mini all"
20
+ ],
21
+ "development": [
22
+ "last 1 chrome version",
23
+ "last 1 firefox version",
24
+ "last 1 safari version"
25
+ ]
26
+ },
27
+ "dependencies": {},
28
+ "devDependencies": {
29
+ "@babel/core": "latest",
30
+ "@babel/preset-env": "latest",
31
+ "@babel/preset-react": "latest",
32
+ "@babel/preset-typescript": "latest",
33
+ "@commitlint/config-conventional": "latest",
34
+ "@types/node": "latest",
35
+ "@types/react": "latest",
36
+ "@types/react-dom": "latest",
37
+ "@zerollup/ts-transform-paths": "latest",
38
+ "babel-loader": "latest",
39
+ "eslint": "latest",
40
+ "eslint-config-airbnb": "latest",
41
+ "eslint-config-airbnb-typescript": "latest",
42
+ "eslint-config-prettier": "latest",
43
+ "@dashadmin/dash-eslint": "workspace:*",
44
+ "eslint-import-resolver-typescript": "latest",
45
+ "eslint-plugin-html": "latest",
46
+ "eslint-plugin-import": "latest",
47
+ "eslint-plugin-jsdoc": "latest",
48
+ "eslint-plugin-json": "latest",
49
+ "eslint-plugin-jsx-a11y": "latest",
50
+ "eslint-plugin-prettier": "latest",
51
+ "eslint-plugin-react": "latest",
52
+ "eslint-plugin-react-hooks": "latest",
53
+ "@dashadmin/dash-prettier": "workspace:*",
54
+ "query-string": "latest",
55
+ "react-dom": "latest",
56
+ "rollup": "latest",
57
+ "rollup-plugin-copy-assets": "latest",
58
+ "rollup-plugin-external-globals": "latest",
59
+ "rollup-plugin-includepaths": "latest",
60
+ "rollup-plugin-less": "latest",
61
+ "rollup-plugin-node-resolve": "latest",
62
+ "rollup-plugin-postcss": "latest",
63
+ "rollup-plugin-sourcemaps": "latest",
64
+ "rollup-plugin-typescript2": "latest",
65
+ "@dashadmin/dash-tsconfig": "workspace:*",
66
+ "tsc": "latest",
67
+ "tsc-alias": "latest",
68
+ "typescript": "latest"
69
+ },
70
+ "peerDependencies": {
71
+ "react": "latest"
72
+ },
73
+ "eslintConfig": {
74
+ "extends": "react-app"
75
+ },
76
+ "todo_storybook": {
77
+ "eslint-plugin-storybook": "latest"
78
+ },
79
+ "module": "dist/index.js",
80
+ "types": "dist/index.d.ts",
81
+ "exports": {
82
+ ".": {
83
+ "types": "./dist/index.d.ts",
84
+ "import": "./dist/index.js",
85
+ "require": "./dist/index.cjs"
86
+ }
87
+ },
88
+ "publishConfig": {
89
+ "access": "public",
90
+ "registry": "https://registry.npmjs.org"
91
+ },
92
+ "files": [
93
+ "dist"
94
+ ]
95
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +0,0 @@
1
- var e=(t=>(t.rgba="rgba",t.rgb="rgb",t.hex="hex",t))(e||{});export{e as TagTypeColors};
File without changes