@wenex/sdk 1.0.52 → 1.0.54
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 +3 -0
- package/common/core/classes/restful.service.d.ts +1 -1
- package/common/core/interfaces/geojson.interface.d.ts +2 -1
- package/common/core/utils/tools.spec.js +12 -0
- package/common/core/utils/tools.spec.js.map +1 -1
- package/common/core/utils/tools.util.d.ts +10 -0
- package/common/core/utils/tools.util.js +28 -1
- package/common/core/utils/tools.util.js.map +1 -1
- package/common/enums/logistic/drivers/index.d.ts +1 -0
- package/common/enums/logistic/drivers/index.js +18 -0
- package/common/enums/logistic/drivers/index.js.map +1 -0
- package/common/enums/logistic/drivers/type.enum.d.ts +10 -0
- package/common/enums/logistic/drivers/type.enum.js +15 -0
- package/common/enums/logistic/drivers/type.enum.js.map +1 -0
- package/common/enums/logistic/index.d.ts +3 -0
- package/common/enums/logistic/index.js +20 -0
- package/common/enums/logistic/index.js.map +1 -0
- package/common/enums/logistic/locations/geometry-type.enum.d.ts +8 -0
- package/common/enums/logistic/locations/geometry-type.enum.js +13 -0
- package/common/enums/logistic/locations/geometry-type.enum.js.map +1 -0
- package/common/enums/logistic/locations/index.d.ts +2 -0
- package/common/enums/logistic/locations/index.js +19 -0
- package/common/enums/logistic/locations/index.js.map +1 -0
- package/common/enums/logistic/locations/type.enum.d.ts +3 -0
- package/common/enums/logistic/locations/type.enum.js +8 -0
- package/common/enums/logistic/locations/type.enum.js.map +1 -0
- package/common/enums/logistic/vehicles/index.d.ts +1 -0
- package/common/enums/logistic/vehicles/index.js +18 -0
- package/common/enums/logistic/vehicles/index.js.map +1 -0
- package/common/enums/logistic/vehicles/type.enum.d.ts +5 -0
- package/common/enums/logistic/vehicles/type.enum.js +10 -0
- package/common/enums/logistic/vehicles/type.enum.js.map +1 -0
- package/common/interfaces/logistic/cargoes/cargo.interface.d.ts +14 -0
- package/common/interfaces/logistic/cargoes/cargo.interface.js +3 -0
- package/common/interfaces/logistic/cargoes/cargo.interface.js.map +1 -0
- package/common/interfaces/logistic/cargoes/index.d.ts +1 -0
- package/common/interfaces/logistic/cargoes/index.js +18 -0
- package/common/interfaces/logistic/cargoes/index.js.map +1 -0
- package/common/interfaces/logistic/drivers/driver.interface.d.ts +17 -0
- package/common/interfaces/logistic/drivers/driver.interface.js +3 -0
- package/common/interfaces/logistic/drivers/driver.interface.js.map +1 -0
- package/common/interfaces/logistic/drivers/index.d.ts +1 -0
- package/common/interfaces/logistic/drivers/index.js +18 -0
- package/common/interfaces/logistic/drivers/index.js.map +1 -0
- package/common/interfaces/logistic/index.d.ts +5 -0
- package/common/interfaces/logistic/index.js +22 -0
- package/common/interfaces/logistic/index.js.map +1 -0
- package/common/interfaces/logistic/locations/boundary-administrative.interface.d.ts +8 -0
- package/common/interfaces/logistic/locations/boundary-administrative.interface.js +3 -0
- package/common/interfaces/logistic/locations/boundary-administrative.interface.js.map +1 -0
- package/common/interfaces/logistic/locations/geometry.interface.d.ts +2 -0
- package/common/interfaces/logistic/locations/geometry.interface.js +3 -0
- package/common/interfaces/logistic/locations/geometry.interface.js.map +1 -0
- package/common/interfaces/logistic/locations/index.d.ts +4 -0
- package/common/interfaces/logistic/locations/index.js +21 -0
- package/common/interfaces/logistic/locations/index.js.map +1 -0
- package/common/interfaces/logistic/locations/lat-lng.interface.d.ts +5 -0
- package/common/interfaces/logistic/locations/lat-lng.interface.js +3 -0
- package/common/interfaces/logistic/locations/lat-lng.interface.js.map +1 -0
- package/common/interfaces/logistic/locations/location.interface.d.ts +11 -0
- package/common/interfaces/logistic/locations/location.interface.js +3 -0
- package/common/interfaces/logistic/locations/location.interface.js.map +1 -0
- package/common/interfaces/logistic/travels/index.d.ts +1 -0
- package/common/interfaces/logistic/travels/index.js +18 -0
- package/common/interfaces/logistic/travels/index.js.map +1 -0
- package/common/interfaces/logistic/travels/travel.interface.d.ts +10 -0
- package/common/interfaces/logistic/travels/travel.interface.js +3 -0
- package/common/interfaces/logistic/travels/travel.interface.js.map +1 -0
- package/common/interfaces/logistic/vehicles/index.d.ts +1 -0
- package/common/interfaces/logistic/vehicles/index.js +18 -0
- package/common/interfaces/logistic/vehicles/index.js.map +1 -0
- package/common/interfaces/logistic/vehicles/vehicle.interface.d.ts +12 -0
- package/common/interfaces/logistic/vehicles/vehicle.interface.js +3 -0
- package/common/interfaces/logistic/vehicles/vehicle.interface.js.map +1 -0
- package/index.d.ts +4 -2
- package/index.js +6 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/services/index.d.ts +2 -1
- package/services/index.js +2 -1
- package/services/index.js.map +1 -1
- package/services/logistic/cargoes.service.d.ts +8 -0
- package/services/logistic/cargoes.service.js +15 -0
- package/services/logistic/cargoes.service.js.map +1 -0
- package/services/logistic/drivers.service.d.ts +8 -0
- package/services/logistic/drivers.service.js +15 -0
- package/services/logistic/drivers.service.js.map +1 -0
- package/services/logistic/index.d.ts +26 -0
- package/services/logistic/index.js +52 -0
- package/services/logistic/index.js.map +1 -0
- package/services/logistic/locations.service.d.ts +9 -0
- package/services/logistic/locations.service.js +18 -0
- package/services/logistic/locations.service.js.map +1 -0
- package/services/logistic/travels.service.d.ts +8 -0
- package/services/logistic/travels.service.js +15 -0
- package/services/logistic/travels.service.js.map +1 -0
- package/services/logistic/vehicles.service.d.ts +8 -0
- package/services/logistic/vehicles.service.js +15 -0
- package/services/logistic/vehicles.service.js.map +1 -0
package/README.md
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
1
|
# platform-sdk
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@wenex/sdk)
|
|
4
|
+
[](https://github.com/wenex-org/platform-sdk/actions/workflows/npm-ci.yml)
|
|
@@ -3,7 +3,7 @@ import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
3
3
|
import { RequestService } from '../providers';
|
|
4
4
|
import { Filter, FilterOne, Pagination, Query } from '../interfaces/mongo';
|
|
5
5
|
import { Dto, Core, Items, Serializer, Optional, Metadata } from '../interfaces';
|
|
6
|
-
export type RequestConfig<T extends
|
|
6
|
+
export type RequestConfig<T extends object = Core> = Omit<AxiosRequestConfig, 'params' | 'headers'> & {
|
|
7
7
|
params?: Optional<Filter<T>> & {
|
|
8
8
|
zone?: string;
|
|
9
9
|
skip?: number;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { BBox, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon } from 'geojson';
|
|
2
|
+
import { LocationGeometryType } from '../../enums/logistic';
|
|
2
3
|
type GeoJson = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon;
|
|
3
4
|
export type GeoJsonType = GeoJson['type'];
|
|
4
5
|
export type GeoJsonCoordinates = GeoJson['coordinates'];
|
|
5
6
|
export interface Geometry {
|
|
6
|
-
type:
|
|
7
|
+
type: LocationGeometryType;
|
|
7
8
|
coordinates: GeoJsonCoordinates;
|
|
8
9
|
bbox?: BBox;
|
|
9
10
|
}
|
|
@@ -18,5 +18,17 @@ describe('libs/common/src/core/utils/tools.util.ts', () => {
|
|
|
18
18
|
expect((0, tools_util_1.every)((val) => !!val)(1)).toBe(true);
|
|
19
19
|
expect((0, tools_util_1.every)((val) => !!val)(0)).toBe(false);
|
|
20
20
|
});
|
|
21
|
+
it('plainObject', () => {
|
|
22
|
+
expect((0, tools_util_1.plainObject)({ value: null, content: '["foo","bar"]' })).toStrictEqual({
|
|
23
|
+
value: null,
|
|
24
|
+
content: ['foo', 'bar'],
|
|
25
|
+
});
|
|
26
|
+
expect((0, tools_util_1.plainObject)({ value: undefined, content: '{"foo":"bar"}' })).toStrictEqual({
|
|
27
|
+
content: { foo: 'bar' },
|
|
28
|
+
});
|
|
29
|
+
expect((0, tools_util_1.plainObject)({ value: undefined, data: { content: '{"foo":"bar"}' } })).toStrictEqual({
|
|
30
|
+
data: { content: { foo: 'bar' } },
|
|
31
|
+
});
|
|
32
|
+
});
|
|
21
33
|
});
|
|
22
34
|
//# sourceMappingURL=tools.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.spec.js","sourceRoot":"","sources":["../../../src/common/core/utils/tools.spec.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"tools.spec.js","sourceRoot":"","sources":["../../../src/common/core/utils/tools.spec.ts"],"names":[],"mappings":";;AAAA,6CAA4D;AAE5D,QAAQ,CAAC,0CAA0C,EAAE,GAAG,EAAE;IACxD,EAAE,CAAC,UAAU,EAAE,GAAG,EAAE;QAClB,MAAM,IAAI,GAAG,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;QAE9B,MAAM,UAAU,GAAG,IAAA,qBAAQ,EAAC,IAAI,CAAC,CAAC;QAClC,MAAM,CAAC,UAAU,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAEvC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC;QAC1B,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEhC,MAAM,CAAC,IAAA,qBAAQ,EAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7D,MAAM,CAAC,IAAA,qBAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;QACf,MAAM,CAAC,IAAA,kBAAK,EAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE7C,MAAM,CAAC,IAAA,kBAAK,EAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAClD,MAAM,CAAC,IAAA,kBAAK,EAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAElD,MAAM,CAAC,IAAA,kBAAK,EAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAA0B,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrE,MAAM,CAAC,IAAA,kBAAK,EAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAA0B,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE;QACrB,MAAM,CAAC,IAAA,wBAAW,EAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;YAC3E,KAAK,EAAE,IAAI;YACX,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;SACxB,CAAC,CAAC;QACH,MAAM,CAAC,IAAA,wBAAW,EAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;YAChF,OAAO,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE;SACxB,CAAC,CAAC;QACH,MAAM,CAAC,IAAA,wBAAW,EAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;YAC1F,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;SAClC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -11,3 +11,13 @@ export declare const deepCopy: <T = any>(data: T) => T;
|
|
|
11
11
|
* @returns The `every` function is being returned, which takes a callback function.
|
|
12
12
|
*/
|
|
13
13
|
export declare const every: <T = any>(callback: (value: T) => boolean) => (data: T[]) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The `plainObject` function recursively converts a JSON object into a plain JavaScript object.
|
|
16
|
+
* @param {any} data - The `data` parameter in the `plainObject` function is the input data that you
|
|
17
|
+
* want to convert into a plain JavaScript object. This function takes any data as input and
|
|
18
|
+
* recursively converts any nested JSON objects into plain JavaScript objects.
|
|
19
|
+
*
|
|
20
|
+
* @returns The `plainObject` function returns a plain JavaScript object with all nested objects
|
|
21
|
+
* converted to plain objects as well.
|
|
22
|
+
*/
|
|
23
|
+
export declare const plainObject: <T = any>(data: any) => T;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.every = exports.deepCopy = void 0;
|
|
3
|
+
exports.plainObject = exports.every = exports.deepCopy = void 0;
|
|
4
4
|
const class_validator_1 = require("class-validator");
|
|
5
5
|
const transform_util_1 = require("./transform.util");
|
|
6
6
|
/**
|
|
@@ -32,4 +32,31 @@ const every = (callback) => function (data) {
|
|
|
32
32
|
return Array.isArray(data) ? data.every(callback) : callback(data);
|
|
33
33
|
};
|
|
34
34
|
exports.every = every;
|
|
35
|
+
/**
|
|
36
|
+
* The `plainObject` function recursively converts a JSON object into a plain JavaScript object.
|
|
37
|
+
* @param {any} data - The `data` parameter in the `plainObject` function is the input data that you
|
|
38
|
+
* want to convert into a plain JavaScript object. This function takes any data as input and
|
|
39
|
+
* recursively converts any nested JSON objects into plain JavaScript objects.
|
|
40
|
+
*
|
|
41
|
+
* @returns The `plainObject` function returns a plain JavaScript object with all nested objects
|
|
42
|
+
* converted to plain objects as well.
|
|
43
|
+
*/
|
|
44
|
+
const plainObject = (data) => {
|
|
45
|
+
if (!data || typeof data !== 'object')
|
|
46
|
+
return data;
|
|
47
|
+
data = (0, transform_util_1.toJSON)((0, transform_util_1.toString)(data));
|
|
48
|
+
const transform = (value) => {
|
|
49
|
+
if (!value || typeof value !== 'object')
|
|
50
|
+
return value;
|
|
51
|
+
for (const [key, val] of Object.entries(value)) {
|
|
52
|
+
if ((0, class_validator_1.isJSON)(val))
|
|
53
|
+
value[key] = transform((0, transform_util_1.toJSON)(val));
|
|
54
|
+
else if (typeof val === 'object')
|
|
55
|
+
value[key] = transform(val);
|
|
56
|
+
}
|
|
57
|
+
return value;
|
|
58
|
+
};
|
|
59
|
+
return transform(data);
|
|
60
|
+
};
|
|
61
|
+
exports.plainObject = plainObject;
|
|
35
62
|
//# sourceMappingURL=tools.util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.util.js","sourceRoot":"","sources":["../../../src/common/core/utils/tools.util.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"tools.util.js","sourceRoot":"","sources":["../../../src/common/core/utils/tools.util.ts"],"names":[],"mappings":";;;AAAA,qDAAuD;AAEvD,qDAA4D;AAE5D;;GAEG;AACI,MAAM,QAAQ,GAAG,CAAU,IAAO,EAAK,EAAE;IAC9C,MAAM,OAAO,GAAG,CAAC,IAAS,EAAE,EAAE;QAC5B,IAAI,IAAA,8BAAY,EAAC,IAAI,CAAC;YAAE,OAAO,IAAA,uBAAM,EAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YACrC,KAAK,MAAM,GAAG,IAAI,IAAI;gBAAE,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACzD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IACF,MAAM,IAAI,GAAG,IAAA,uBAAM,EAAC,IAAA,yBAAQ,EAAC,IAAI,CAAC,CAAC,CAAC;IACpC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;AACvB,CAAC,CAAC;AAVW,QAAA,QAAQ,YAUnB;AAEF;;;;;;;GAOG;AACI,MAAM,KAAK,GAAG,CAAU,QAA+B,EAAE,EAAE,CAChE,UAAU,IAAS;IACjB,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACrE,CAAC,CAAC;AAHS,QAAA,KAAK,SAGd;AAEJ;;;;;;;;GAQG;AACI,MAAM,WAAW,GAAG,CAAU,IAAS,EAAK,EAAE;IACnD,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACnD,IAAI,GAAG,IAAA,uBAAM,EAAC,IAAA,yBAAQ,EAAC,IAAI,CAAC,CAAC,CAAC;IAC9B,MAAM,SAAS,GAAG,CAAC,KAAU,EAAE,EAAE;QAC/B,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QACtD,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,IAAI,IAAA,wBAAM,EAAC,GAAG,CAAC;gBAAE,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,IAAA,uBAAM,EAAC,GAAG,CAAC,CAAC,CAAC;iBAChD,IAAI,OAAO,GAAG,KAAK,QAAQ;gBAAE,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IACF,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC,CAAC;AAZW,QAAA,WAAW,eAYtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './type.enum';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./type.enum"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/logistic/drivers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://www.chase.com/personal/auto/education/maintenance/what-are-the-different-classes-of-drivers-licenses
|
|
3
|
+
*/
|
|
4
|
+
export declare enum DriverType {
|
|
5
|
+
CLASS_A = "CLASS_A",
|
|
6
|
+
CLASS_B = "CLASS_B",
|
|
7
|
+
CLASS_C = "CLASS_C",
|
|
8
|
+
CLASS_M = "CLASS_M",
|
|
9
|
+
CLASS_E = "CLASS_E"
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DriverType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* https://www.chase.com/personal/auto/education/maintenance/what-are-the-different-classes-of-drivers-licenses
|
|
6
|
+
*/
|
|
7
|
+
var DriverType;
|
|
8
|
+
(function (DriverType) {
|
|
9
|
+
DriverType["CLASS_A"] = "CLASS_A";
|
|
10
|
+
DriverType["CLASS_B"] = "CLASS_B";
|
|
11
|
+
DriverType["CLASS_C"] = "CLASS_C";
|
|
12
|
+
DriverType["CLASS_M"] = "CLASS_M";
|
|
13
|
+
DriverType["CLASS_E"] = "CLASS_E";
|
|
14
|
+
})(DriverType || (exports.DriverType = DriverType = {}));
|
|
15
|
+
//# sourceMappingURL=type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/logistic/drivers/type.enum.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACrB,CAAC,EANW,UAAU,0BAAV,UAAU,QAMrB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./drivers"), exports);
|
|
18
|
+
__exportStar(require("./vehicles"), exports);
|
|
19
|
+
__exportStar(require("./locations"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/logistic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocationGeometryType = void 0;
|
|
4
|
+
var LocationGeometryType;
|
|
5
|
+
(function (LocationGeometryType) {
|
|
6
|
+
LocationGeometryType["Point"] = "Point";
|
|
7
|
+
LocationGeometryType["MultiPoint"] = "MultiPoint";
|
|
8
|
+
LocationGeometryType["LineString"] = "LineString";
|
|
9
|
+
LocationGeometryType["MultiLineString"] = "MultiLineString";
|
|
10
|
+
LocationGeometryType["Polygon"] = "Polygon";
|
|
11
|
+
LocationGeometryType["MultiPolygon"] = "MultiPolygon";
|
|
12
|
+
})(LocationGeometryType || (exports.LocationGeometryType = LocationGeometryType = {}));
|
|
13
|
+
//# sourceMappingURL=geometry-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry-type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/logistic/locations/geometry-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,iDAAyB,CAAA;IACzB,iDAAyB,CAAA;IACzB,2DAAmC,CAAA;IACnC,2CAAmB,CAAA;IACnB,qDAA6B,CAAA;AAC/B,CAAC,EAPW,oBAAoB,oCAApB,oBAAoB,QAO/B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./type.enum"), exports);
|
|
18
|
+
__exportStar(require("./geometry-type.enum"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/logistic/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,uDAAqC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocationType = void 0;
|
|
4
|
+
var LocationType;
|
|
5
|
+
(function (LocationType) {
|
|
6
|
+
LocationType["FEATURE"] = "FEATURE";
|
|
7
|
+
})(LocationType || (exports.LocationType = LocationType = {}));
|
|
8
|
+
//# sourceMappingURL=type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/logistic/locations/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,mCAAmB,CAAA;AACrB,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './type.enum';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./type.enum"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/logistic/vehicles/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VehicleType = void 0;
|
|
4
|
+
var VehicleType;
|
|
5
|
+
(function (VehicleType) {
|
|
6
|
+
VehicleType["CAR"] = "CAR";
|
|
7
|
+
VehicleType["TRUCK"] = "TRUCK";
|
|
8
|
+
VehicleType["MOTORCYCLE"] = "MOTORCYCLE";
|
|
9
|
+
})(VehicleType || (exports.VehicleType = VehicleType = {}));
|
|
10
|
+
//# sourceMappingURL=type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/logistic/vehicles/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,0BAAW,CAAA;IACX,8BAAe,CAAA;IACf,wCAAyB,CAAA;AAC3B,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
|
+
import { Core, Dto } from '../../../core/interfaces';
|
|
3
|
+
export interface Cargo<Properties extends object = object> extends Core<Properties> {
|
|
4
|
+
title?: string;
|
|
5
|
+
weight: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
length: number;
|
|
9
|
+
fragile?: boolean;
|
|
10
|
+
perishable?: boolean;
|
|
11
|
+
travels?: string[];
|
|
12
|
+
}
|
|
13
|
+
export type CargoDoc<Properties extends object = object> = Cargo<Properties> & Document;
|
|
14
|
+
export type CargoDto<Properties extends object = object> = Dto<Cargo<Properties>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cargo.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/cargoes/cargo.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cargo.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cargo.interface"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/cargoes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
|
+
import { Core, Dto } from '../../../core/interfaces';
|
|
3
|
+
import { DriverType } from '../../../enums/logistic';
|
|
4
|
+
import { Gender, State, Status } from '../../../core/enums';
|
|
5
|
+
export interface Driver<Properties extends object = object> extends Core<Properties> {
|
|
6
|
+
type: DriverType;
|
|
7
|
+
gender: Gender;
|
|
8
|
+
state: State;
|
|
9
|
+
status: Status;
|
|
10
|
+
license: string;
|
|
11
|
+
verified_at?: Date;
|
|
12
|
+
verified_by?: string;
|
|
13
|
+
verified_in?: string;
|
|
14
|
+
expiration_date: Date;
|
|
15
|
+
}
|
|
16
|
+
export type DriverDoc<Properties extends object = object> = Driver<Properties> & Document;
|
|
17
|
+
export type DriverDto<Properties extends object = object> = Dto<Driver<Properties>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"driver.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/drivers/driver.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './driver.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./driver.interface"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/drivers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cargoes"), exports);
|
|
18
|
+
__exportStar(require("./drivers"), exports);
|
|
19
|
+
__exportStar(require("./locations"), exports);
|
|
20
|
+
__exportStar(require("./travels"), exports);
|
|
21
|
+
__exportStar(require("./vehicles"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/logistic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundary-administrative.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/locations/boundary-administrative.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/locations/geometry.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./lat-lng.interface"), exports);
|
|
18
|
+
__exportStar(require("./geometry.interface"), exports);
|
|
19
|
+
__exportStar(require("./location.interface"), exports);
|
|
20
|
+
__exportStar(require("./boundary-administrative.interface"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,sEAAoD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lat-lng.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/locations/lat-lng.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
|
+
import { Core, Dto } from '../../../core/interfaces';
|
|
3
|
+
import { LocationType } from '../../../enums/logistic';
|
|
4
|
+
import { LocationGeometry } from './geometry.interface';
|
|
5
|
+
export interface Location<Properties extends object = object> extends Core<Properties> {
|
|
6
|
+
type?: LocationType;
|
|
7
|
+
geometry: LocationGeometry;
|
|
8
|
+
properties?: Properties;
|
|
9
|
+
}
|
|
10
|
+
export type LocationDoc<Properties extends object = object> = Location<Properties> & Document;
|
|
11
|
+
export type LocationDto<Properties extends object = object> = Dto<Location<Properties>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/locations/location.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './travel.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./travel.interface"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/travels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
|
+
import { Core, Dto } from '../../../core/interfaces';
|
|
3
|
+
export interface Travel<Properties extends object = object> extends Core<Properties> {
|
|
4
|
+
cargoes?: string[];
|
|
5
|
+
drivers?: string[];
|
|
6
|
+
vehicles?: string[];
|
|
7
|
+
locations: string[];
|
|
8
|
+
}
|
|
9
|
+
export type TravelDoc<Properties extends object = object> = Travel<Properties> & Document;
|
|
10
|
+
export type TravelDto<Properties extends object = object> = Dto<Travel<Properties>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"travel.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/travels/travel.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vehicle.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./vehicle.interface"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/vehicles/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
|
+
import { Status } from '../../../core/enums';
|
|
3
|
+
import { Core, Dto } from '../../../core/interfaces';
|
|
4
|
+
import { VehicleType } from '../../../enums/logistic';
|
|
5
|
+
export interface Vehicle<Properties extends object = object> extends Core<Properties> {
|
|
6
|
+
type: VehicleType;
|
|
7
|
+
status: Status;
|
|
8
|
+
plates: string[];
|
|
9
|
+
drivers?: string[];
|
|
10
|
+
}
|
|
11
|
+
export type VehicleDoc<Properties extends object = object> = Vehicle<Properties> & Document;
|
|
12
|
+
export type VehicleDto<Properties extends object = object> = Dto<Vehicle<Properties>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicle.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/vehicles/vehicle.interface.ts"],"names":[],"mappings":""}
|
package/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare class Platform<Properties extends object = object> {
|
|
|
6
6
|
readonly axios: AxiosInstance;
|
|
7
7
|
protected _graphql?: GraphqlService;
|
|
8
8
|
protected _auth?: Services.AuthClient<Properties>;
|
|
9
|
-
protected _content?: Services.ContentClient<Properties>;
|
|
10
9
|
protected _context?: Services.ContextClient<Properties>;
|
|
11
10
|
protected _domain?: Services.DomainClient<Properties>;
|
|
12
11
|
protected _essential?: Services.EssentialClient<Properties>;
|
|
@@ -15,9 +14,10 @@ export declare class Platform<Properties extends object = object> {
|
|
|
15
14
|
protected _identity?: Services.IdentityClient<Properties>;
|
|
16
15
|
protected _special?: Services.SpecialClient<Properties>;
|
|
17
16
|
protected _touch?: Services.TouchClient<Properties>;
|
|
17
|
+
protected _content?: Services.ContentClient<Properties>;
|
|
18
|
+
protected _logistic?: Services.LogisticClient<Properties>;
|
|
18
19
|
constructor(axios: AxiosInstance);
|
|
19
20
|
get auth(): Services.AuthClient<Properties>;
|
|
20
|
-
get content(): Services.ContentClient<Properties>;
|
|
21
21
|
get context(): Services.ContextClient<Properties>;
|
|
22
22
|
get domain(): Services.DomainClient<Properties>;
|
|
23
23
|
get essential(): Services.EssentialClient<Properties>;
|
|
@@ -26,6 +26,8 @@ export declare class Platform<Properties extends object = object> {
|
|
|
26
26
|
get identity(): Services.IdentityClient<Properties>;
|
|
27
27
|
get special(): Services.SpecialClient<Properties>;
|
|
28
28
|
get touch(): Services.TouchClient<Properties>;
|
|
29
|
+
get content(): Services.ContentClient<Properties>;
|
|
30
|
+
get logistic(): Services.LogisticClient<Properties>;
|
|
29
31
|
get graphql(): GraphqlService;
|
|
30
32
|
static build<Properties extends object = object>(axios: AxiosInstance): Platform<Properties>;
|
|
31
33
|
}
|
package/index.js
CHANGED
|
@@ -47,9 +47,6 @@ class Platform {
|
|
|
47
47
|
get auth() {
|
|
48
48
|
return (this._auth = this._auth ?? Services.AuthClient.build(this.axios));
|
|
49
49
|
}
|
|
50
|
-
get content() {
|
|
51
|
-
return (this._content = this._content ?? Services.ContentClient.build(this.axios));
|
|
52
|
-
}
|
|
53
50
|
get context() {
|
|
54
51
|
return (this._context = this._context ?? Services.ContextClient.build(this.axios));
|
|
55
52
|
}
|
|
@@ -74,6 +71,12 @@ class Platform {
|
|
|
74
71
|
get touch() {
|
|
75
72
|
return (this._touch = this._touch ?? Services.TouchClient.build(this.axios));
|
|
76
73
|
}
|
|
74
|
+
get content() {
|
|
75
|
+
return (this._content = this._content ?? Services.ContentClient.build(this.axios));
|
|
76
|
+
}
|
|
77
|
+
get logistic() {
|
|
78
|
+
return (this._logistic = this._logistic ?? Services.LogisticClient.build(this.axios));
|
|
79
|
+
}
|
|
77
80
|
get graphql() {
|
|
78
81
|
return (this._graphql = this._graphql ?? classes_1.GraphqlService.build(this.axios));
|
|
79
82
|
}
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qDAAuC;AACvC,mDAAuD;AAEvD,6CAA2B;AAE3B,MAAa,QAAQ;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qDAAuC;AACvC,mDAAuD;AAEvD,6CAA2B;AAE3B,MAAa,QAAQ;IAenB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,IAAI;QACN,OAAO,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACxF,CAAC;IAED,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACjG,CAAC;IAED,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9F,CAAC;IAED,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvG,CAAC;IAED,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvG,CAAC;IAED,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACjG,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACpG,CAAC;IAED,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACjG,CAAC;IAED,IAAI,KAAK;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3F,CAAC;IAED,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACjG,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACpG,CAAC;IAED,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,wBAAc,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,QAAQ,CAAa,KAAK,CAAC,CAAC;IACzC,CAAC;CACF;AApED,4BAoEC"}
|
package/package.json
CHANGED
package/services/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './auth';
|
|
2
|
-
export * from './content';
|
|
3
2
|
export * from './context';
|
|
4
3
|
export * from './domain';
|
|
5
4
|
export * from './essential';
|
|
@@ -8,3 +7,5 @@ export * from './general';
|
|
|
8
7
|
export * from './identity';
|
|
9
8
|
export * from './special';
|
|
10
9
|
export * from './touch';
|
|
10
|
+
export * from './content';
|
|
11
|
+
export * from './logistic';
|
package/services/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./auth"), exports);
|
|
18
|
-
__exportStar(require("./content"), exports);
|
|
19
18
|
__exportStar(require("./context"), exports);
|
|
20
19
|
__exportStar(require("./domain"), exports);
|
|
21
20
|
__exportStar(require("./essential"), exports);
|
|
@@ -24,4 +23,6 @@ __exportStar(require("./general"), exports);
|
|
|
24
23
|
__exportStar(require("./identity"), exports);
|
|
25
24
|
__exportStar(require("./special"), exports);
|
|
26
25
|
__exportStar(require("./touch"), exports);
|
|
26
|
+
__exportStar(require("./content"), exports);
|
|
27
|
+
__exportStar(require("./logistic"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
package/services/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,2CAAyB;AACzB,8CAA4B;AAC5B,8CAA4B;AAC5B,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import { RestfulService } from '../../common/core/classes';
|
|
3
|
+
import { Cargo, CargoDto } from '../../common/interfaces/logistic';
|
|
4
|
+
export declare class CargoesService<Properties extends object = object> extends RestfulService<Cargo<Properties>, CargoDto<Properties>> {
|
|
5
|
+
protected axios: AxiosInstance;
|
|
6
|
+
constructor(axios: AxiosInstance);
|
|
7
|
+
static build<Properties extends object = object>(axios: AxiosInstance): CargoesService<Properties>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CargoesService = void 0;
|
|
4
|
+
const classes_1 = require("../../common/core/classes");
|
|
5
|
+
class CargoesService extends classes_1.RestfulService {
|
|
6
|
+
constructor(axios) {
|
|
7
|
+
super('cargoes', axios);
|
|
8
|
+
this.axios = axios;
|
|
9
|
+
}
|
|
10
|
+
static build(axios) {
|
|
11
|
+
return new CargoesService(axios);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.CargoesService = CargoesService;
|
|
15
|
+
//# sourceMappingURL=cargoes.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cargoes.service.js","sourceRoot":"","sources":["../../src/services/logistic/cargoes.service.ts"],"names":[],"mappings":";;;AAEA,uDAA2D;AAG3D,MAAa,cAAmD,SAAQ,wBAAuD;IAC7H,YAAsB,KAAoB;QACxC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QADJ,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,cAAc,CAAa,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF;AARD,wCAQC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import { RestfulService } from '../../common/core/classes';
|
|
3
|
+
import { Driver, DriverDto } from '../../common/interfaces/logistic';
|
|
4
|
+
export declare class DriversService<Properties extends object = object> extends RestfulService<Driver<Properties>, DriverDto<Properties>> {
|
|
5
|
+
protected axios: AxiosInstance;
|
|
6
|
+
constructor(axios: AxiosInstance);
|
|
7
|
+
static build<Properties extends object = object>(axios: AxiosInstance): DriversService<Properties>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DriversService = void 0;
|
|
4
|
+
const classes_1 = require("../../common/core/classes");
|
|
5
|
+
class DriversService extends classes_1.RestfulService {
|
|
6
|
+
constructor(axios) {
|
|
7
|
+
super('drivers', axios);
|
|
8
|
+
this.axios = axios;
|
|
9
|
+
}
|
|
10
|
+
static build(axios) {
|
|
11
|
+
return new DriversService(axios);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.DriversService = DriversService;
|
|
15
|
+
//# sourceMappingURL=drivers.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drivers.service.js","sourceRoot":"","sources":["../../src/services/logistic/drivers.service.ts"],"names":[],"mappings":";;;AAEA,uDAA2D;AAG3D,MAAa,cAAmD,SAAQ,wBAAyD;IAC/H,YAAsB,KAAoB;QACxC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QADJ,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,cAAc,CAAa,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF;AARD,wCAQC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import { CargoesService } from './cargoes.service';
|
|
3
|
+
import { DriversService } from './drivers.service';
|
|
4
|
+
import { TravelsService } from './travels.service';
|
|
5
|
+
import { VehiclesService } from './vehicles.service';
|
|
6
|
+
import { LocationsService } from './locations.service';
|
|
7
|
+
export * from './cargoes.service';
|
|
8
|
+
export * from './drivers.service';
|
|
9
|
+
export * from './travels.service';
|
|
10
|
+
export * from './vehicles.service';
|
|
11
|
+
export * from './locations.service';
|
|
12
|
+
export declare class LogisticClient<Properties extends object = object> {
|
|
13
|
+
readonly axios: AxiosInstance;
|
|
14
|
+
protected _cargoes?: CargoesService<Properties>;
|
|
15
|
+
protected _drivers?: DriversService<Properties>;
|
|
16
|
+
protected _travels?: TravelsService<Properties>;
|
|
17
|
+
protected _vehicles?: VehiclesService<Properties>;
|
|
18
|
+
protected _locations?: LocationsService<Properties>;
|
|
19
|
+
constructor(axios: AxiosInstance);
|
|
20
|
+
get cargoes(): CargoesService<Properties>;
|
|
21
|
+
get drivers(): DriversService<Properties>;
|
|
22
|
+
get travels(): TravelsService<Properties>;
|
|
23
|
+
get vehicles(): VehiclesService<Properties>;
|
|
24
|
+
get locations(): LocationsService<Properties>;
|
|
25
|
+
static build<Properties extends object = object>(axios: AxiosInstance): LogisticClient<Properties>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LogisticClient = void 0;
|
|
18
|
+
const cargoes_service_1 = require("./cargoes.service");
|
|
19
|
+
const drivers_service_1 = require("./drivers.service");
|
|
20
|
+
const travels_service_1 = require("./travels.service");
|
|
21
|
+
const vehicles_service_1 = require("./vehicles.service");
|
|
22
|
+
const locations_service_1 = require("./locations.service");
|
|
23
|
+
__exportStar(require("./cargoes.service"), exports);
|
|
24
|
+
__exportStar(require("./drivers.service"), exports);
|
|
25
|
+
__exportStar(require("./travels.service"), exports);
|
|
26
|
+
__exportStar(require("./vehicles.service"), exports);
|
|
27
|
+
__exportStar(require("./locations.service"), exports);
|
|
28
|
+
class LogisticClient {
|
|
29
|
+
constructor(axios) {
|
|
30
|
+
this.axios = axios;
|
|
31
|
+
}
|
|
32
|
+
get cargoes() {
|
|
33
|
+
return (this._cargoes = this._cargoes ?? cargoes_service_1.CargoesService.build(this.axios));
|
|
34
|
+
}
|
|
35
|
+
get drivers() {
|
|
36
|
+
return (this._drivers = this._drivers ?? drivers_service_1.DriversService.build(this.axios));
|
|
37
|
+
}
|
|
38
|
+
get travels() {
|
|
39
|
+
return (this._travels = this._travels ?? travels_service_1.TravelsService.build(this.axios));
|
|
40
|
+
}
|
|
41
|
+
get vehicles() {
|
|
42
|
+
return (this._vehicles = this._vehicles ?? vehicles_service_1.VehiclesService.build(this.axios));
|
|
43
|
+
}
|
|
44
|
+
get locations() {
|
|
45
|
+
return (this._locations = this._locations ?? locations_service_1.LocationsService.build(this.axios));
|
|
46
|
+
}
|
|
47
|
+
static build(axios) {
|
|
48
|
+
return new LogisticClient(axios);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.LogisticClient = LogisticClient;
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/logistic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,uDAAmD;AACnD,uDAAmD;AACnD,uDAAmD;AACnD,yDAAqD;AACrD,2DAAuD;AAEvD,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC;AAEpC,MAAa,cAAc;IAOzB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,gCAAc,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACzF,CAAC;IAED,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,gCAAc,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACzF,CAAC;IAED,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,gCAAc,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACzF,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,kCAAe,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5F,CAAC;IAED,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,oCAAgB,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/F,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,cAAc,CAAa,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF;AAhCD,wCAgCC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import { RequestConfig, RestfulService } from '../../common/core/classes';
|
|
3
|
+
import { BoundaryAdministrative, LatLngDto, Location, LocationDto } from '../../common/interfaces/logistic';
|
|
4
|
+
export declare class LocationsService<Properties extends object = object> extends RestfulService<Location<Properties>, LocationDto<Properties>> {
|
|
5
|
+
protected axios: AxiosInstance;
|
|
6
|
+
constructor(axios: AxiosInstance);
|
|
7
|
+
static build<Properties extends object = object>(axios: AxiosInstance): LocationsService<Properties>;
|
|
8
|
+
addressLookup(data: LatLngDto, config?: RequestConfig<BoundaryAdministrative>): Promise<BoundaryAdministrative>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocationsService = void 0;
|
|
4
|
+
const classes_1 = require("../../common/core/classes");
|
|
5
|
+
class LocationsService extends classes_1.RestfulService {
|
|
6
|
+
constructor(axios) {
|
|
7
|
+
super('locations', axios);
|
|
8
|
+
this.axios = axios;
|
|
9
|
+
}
|
|
10
|
+
static build(axios) {
|
|
11
|
+
return new LocationsService(axios);
|
|
12
|
+
}
|
|
13
|
+
async addressLookup(data, config) {
|
|
14
|
+
return (await this.post(this.url('address-lookup'), data, config)).data;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.LocationsService = LocationsService;
|
|
18
|
+
//# sourceMappingURL=locations.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.service.js","sourceRoot":"","sources":["../../src/services/logistic/locations.service.ts"],"names":[],"mappings":";;;AAGA,uDAA0E;AAG1E,MAAa,gBAAqD,SAAQ,wBAGzE;IACC,YAAsB,KAAoB;QACxC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QADN,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,gBAAgB,CAAa,KAAK,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,IAAe,EAAE,MAA8C;QACjF,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAA0C,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IACnH,CAAC;CACF;AAfD,4CAeC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import { RestfulService } from '../../common/core/classes';
|
|
3
|
+
import { Travel, TravelDto } from '../../common/interfaces/logistic';
|
|
4
|
+
export declare class TravelsService<Properties extends object = object> extends RestfulService<Travel<Properties>, TravelDto<Properties>> {
|
|
5
|
+
protected axios: AxiosInstance;
|
|
6
|
+
constructor(axios: AxiosInstance);
|
|
7
|
+
static build<Properties extends object = object>(axios: AxiosInstance): TravelsService<Properties>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TravelsService = void 0;
|
|
4
|
+
const classes_1 = require("../../common/core/classes");
|
|
5
|
+
class TravelsService extends classes_1.RestfulService {
|
|
6
|
+
constructor(axios) {
|
|
7
|
+
super('travels', axios);
|
|
8
|
+
this.axios = axios;
|
|
9
|
+
}
|
|
10
|
+
static build(axios) {
|
|
11
|
+
return new TravelsService(axios);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.TravelsService = TravelsService;
|
|
15
|
+
//# sourceMappingURL=travels.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"travels.service.js","sourceRoot":"","sources":["../../src/services/logistic/travels.service.ts"],"names":[],"mappings":";;;AAEA,uDAA2D;AAG3D,MAAa,cAAmD,SAAQ,wBAAyD;IAC/H,YAAsB,KAAoB;QACxC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QADJ,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,cAAc,CAAa,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF;AARD,wCAQC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import { RestfulService } from '../../common/core/classes';
|
|
3
|
+
import { Vehicle, VehicleDto } from '../../common/interfaces/logistic';
|
|
4
|
+
export declare class VehiclesService<Properties extends object = object> extends RestfulService<Vehicle<Properties>, VehicleDto<Properties>> {
|
|
5
|
+
protected axios: AxiosInstance;
|
|
6
|
+
constructor(axios: AxiosInstance);
|
|
7
|
+
static build<Properties extends object = object>(axios: AxiosInstance): VehiclesService<Properties>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VehiclesService = void 0;
|
|
4
|
+
const classes_1 = require("../../common/core/classes");
|
|
5
|
+
class VehiclesService extends classes_1.RestfulService {
|
|
6
|
+
constructor(axios) {
|
|
7
|
+
super('vehicles', axios);
|
|
8
|
+
this.axios = axios;
|
|
9
|
+
}
|
|
10
|
+
static build(axios) {
|
|
11
|
+
return new VehiclesService(axios);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.VehiclesService = VehiclesService;
|
|
15
|
+
//# sourceMappingURL=vehicles.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicles.service.js","sourceRoot":"","sources":["../../src/services/logistic/vehicles.service.ts"],"names":[],"mappings":";;;AAEA,uDAA2D;AAG3D,MAAa,eAAoD,SAAQ,wBAGxE;IACC,YAAsB,KAAoB;QACxC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QADL,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,eAAe,CAAa,KAAK,CAAC,CAAC;IAChD,CAAC;CACF;AAXD,0CAWC"}
|