mapflow-co-sdk 1.0.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;AAIA,kDAAgF;AA0ChF,qCAQkB;AAElB,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AAClD,MAAM,eAAe,GAAG,KAAK,CAAC;AAE9B,MAAa,aAAa;IAIxB,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAE5B,IAAI,CAAC,MAAM,GAAG,eAAK,CAAC,MAAM,CAAC;YACzB,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,gBAAgB;YAC3C,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,eAAe;YAC1C,OAAO,EAAE;gBACP,WAAW,EAAE,IAAI,CAAC,MAAM;gBACxB,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAC,CAAC;QAGH,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CACnC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,EACtB,CAAC,KAAK,EAAE,EAAE;YACR,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;gBACnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;gBAGxC,IAAI,OAAO,GAAG,IAAI,EAAE,MAAM,IAAI,IAAI,EAAE,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC;gBAG7D,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;oBACtE,MAAM,aAAa,GAAa,EAAE,CAAC;oBACnC,KAAK,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,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-0,0 +1,24 @@
1
+ export declare class MapFlowError extends Error {
2
+ statusCode?: number;
3
+ response?: any;
4
+ constructor(message: string, statusCode?: number, response?: any);
5
+ }
6
+ export declare class AuthenticationError extends MapFlowError {
7
+ constructor(message?: string, response?: any);
8
+ }
9
+ export declare class NotFoundError extends MapFlowError {
10
+ constructor(message?: string, response?: any);
11
+ }
12
+ export declare class ValidationError extends MapFlowError {
13
+ constructor(message?: string, response?: any);
14
+ }
15
+ export declare class ForbiddenError extends MapFlowError {
16
+ constructor(message?: string, response?: any);
17
+ }
18
+ export declare class ServerError extends MapFlowError {
19
+ constructor(message?: string, response?: any);
20
+ }
21
+ export declare class RateLimitError extends MapFlowError {
22
+ constructor(message?: string, response?: any);
23
+ }
24
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAIA,qBAAa,YAAa,SAAQ,KAAK;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC;gBAEV,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG;CAOjE;AAED,qBAAa,mBAAoB,SAAQ,YAAY;gBACvC,OAAO,GAAE,MAAgC,EAAE,QAAQ,CAAC,EAAE,GAAG;CAKtE;AAED,qBAAa,aAAc,SAAQ,YAAY;gBACjC,OAAO,GAAE,MAA6B,EAAE,QAAQ,CAAC,EAAE,GAAG;CAKnE;AAED,qBAAa,eAAgB,SAAQ,YAAY;gBACnC,OAAO,GAAE,MAA4B,EAAE,QAAQ,CAAC,EAAE,GAAG;CAKlE;AAED,qBAAa,cAAe,SAAQ,YAAY;gBAClC,OAAO,GAAE,MAA2B,EAAE,QAAQ,CAAC,EAAE,GAAG;CAKjE;AAED,qBAAa,WAAY,SAAQ,YAAY;gBAC/B,OAAO,GAAE,MAAuB,EAAE,QAAQ,CAAC,EAAE,GAAG;CAK7D;AAED,qBAAa,cAAe,SAAQ,YAAY;gBAClC,OAAO,GAAE,MAA8B,EAAE,QAAQ,CAAC,EAAE,GAAG;CAKpE"}
package/dist/errors.js ADDED
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RateLimitError = exports.ServerError = exports.ForbiddenError = exports.ValidationError = exports.NotFoundError = exports.AuthenticationError = exports.MapFlowError = void 0;
4
+ class MapFlowError extends Error {
5
+ constructor(message, statusCode, response) {
6
+ super(message);
7
+ this.name = 'MapFlowError';
8
+ this.statusCode = statusCode;
9
+ this.response = response;
10
+ Object.setPrototypeOf(this, MapFlowError.prototype);
11
+ }
12
+ }
13
+ exports.MapFlowError = MapFlowError;
14
+ class AuthenticationError extends MapFlowError {
15
+ constructor(message = 'Authentication failed', response) {
16
+ super(message, 401, response);
17
+ this.name = 'AuthenticationError';
18
+ Object.setPrototypeOf(this, AuthenticationError.prototype);
19
+ }
20
+ }
21
+ exports.AuthenticationError = AuthenticationError;
22
+ class NotFoundError extends MapFlowError {
23
+ constructor(message = 'Resource not found', response) {
24
+ super(message, 404, response);
25
+ this.name = 'NotFoundError';
26
+ Object.setPrototypeOf(this, NotFoundError.prototype);
27
+ }
28
+ }
29
+ exports.NotFoundError = NotFoundError;
30
+ class ValidationError extends MapFlowError {
31
+ constructor(message = 'Validation failed', response) {
32
+ super(message, 400, response);
33
+ this.name = 'ValidationError';
34
+ Object.setPrototypeOf(this, ValidationError.prototype);
35
+ }
36
+ }
37
+ exports.ValidationError = ValidationError;
38
+ class ForbiddenError extends MapFlowError {
39
+ constructor(message = 'Access forbidden', response) {
40
+ super(message, 403, response);
41
+ this.name = 'ForbiddenError';
42
+ Object.setPrototypeOf(this, ForbiddenError.prototype);
43
+ }
44
+ }
45
+ exports.ForbiddenError = ForbiddenError;
46
+ class ServerError extends MapFlowError {
47
+ constructor(message = 'Server error', response) {
48
+ super(message, 500, response);
49
+ this.name = 'ServerError';
50
+ Object.setPrototypeOf(this, ServerError.prototype);
51
+ }
52
+ }
53
+ exports.ServerError = ServerError;
54
+ class RateLimitError extends MapFlowError {
55
+ constructor(message = 'Rate limit exceeded', response) {
56
+ super(message, 429, response);
57
+ this.name = 'RateLimitError';
58
+ Object.setPrototypeOf(this, RateLimitError.prototype);
59
+ }
60
+ }
61
+ exports.RateLimitError = RateLimitError;
62
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAIA,MAAa,YAAa,SAAQ,KAAK;IAIrC,YAAY,OAAe,EAAE,UAAmB,EAAE,QAAc;QAC9D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACtD,CAAC;CACF;AAXD,oCAWC;AAED,MAAa,mBAAoB,SAAQ,YAAY;IACnD,YAAY,UAAkB,uBAAuB,EAAE,QAAc;QACnE,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;CACF;AAND,kDAMC;AAED,MAAa,aAAc,SAAQ,YAAY;IAC7C,YAAY,UAAkB,oBAAoB,EAAE,QAAc;QAChE,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,SAA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Error, NotFoundError, ValidationError, ForbiddenError, ServerError, RateLimitError, } from './errors';
3
+ export * from './types';
4
+ export declare const VERSION = "1.0.0";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,cAAc,EACd,WAAW,EACX,cAAc,GACf,MAAM,UAAU,CAAC;AAGlB,cAAc,SAAS,CAAC;AAGxB,eAAO,MAAM,OAAO,UAAU,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,30 @@
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.VERSION = exports.RateLimitError = exports.ServerError = exports.ForbiddenError = exports.ValidationError = exports.NotFoundError = exports.AuthenticationError = exports.MapFlowError = exports.MapFlowClient = void 0;
18
+ var client_1 = require("./client");
19
+ Object.defineProperty(exports, "MapFlowClient", { enumerable: true, get: function () { return client_1.MapFlowClient; } });
20
+ var errors_1 = require("./errors");
21
+ Object.defineProperty(exports, "MapFlowError", { enumerable: true, get: function () { return errors_1.MapFlowError; } });
22
+ Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return errors_1.AuthenticationError; } });
23
+ Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return errors_1.NotFoundError; } });
24
+ Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return errors_1.ValidationError; } });
25
+ Object.defineProperty(exports, "ForbiddenError", { enumerable: true, get: function () { return errors_1.ForbiddenError; } });
26
+ Object.defineProperty(exports, "ServerError", { enumerable: true, get: function () { return errors_1.ServerError; } });
27
+ Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return errors_1.RateLimitError; } });
28
+ __exportStar(require("./types"), exports);
29
+ exports.VERSION = '1.0.0';
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAiBA,mCAAyC;AAAhC,uGAAA,aAAa,OAAA;AAGtB,mCAQkB;AAPhB,sGAAA,YAAY,OAAA;AACZ,6GAAA,mBAAmB,OAAA;AACnB,uGAAA,aAAa,OAAA;AACb,yGAAA,eAAe,OAAA;AACf,wGAAA,cAAc,OAAA;AACd,qGAAA,WAAW,OAAA;AACX,wGAAA,cAAc,OAAA;AAIhB,0CAAwB;AAGX,QAAA,OAAO,GAAG,OAAO,CAAC"}
@@ -0,0 +1,516 @@
1
+ export declare enum CustomerType {
2
+ INDIVIDUAL = "individual",
3
+ COMPANY = "company"
4
+ }
5
+ export declare enum ItemType {
6
+ PRODUCT = "PRODUCT",
7
+ SERVICE = "SERVICE",
8
+ PACKAGE = "PACKAGE",
9
+ PALLET = "PALLET"
10
+ }
11
+ export declare enum WeightUnit {
12
+ KG = "kg",
13
+ G = "g",
14
+ LB = "lb",
15
+ OZ = "oz",
16
+ T = "t"
17
+ }
18
+ export declare enum VolumeUnit {
19
+ M3 = "m3",
20
+ L = "l",
21
+ ML = "ml",
22
+ CM3 = "cm3",
23
+ FT3 = "ft3",
24
+ GAL = "gal"
25
+ }
26
+ export declare enum DurationUnit {
27
+ MINUTES = "minutes",
28
+ HOURS = "hours",
29
+ DAYS = "days"
30
+ }
31
+ export declare enum DayOfWeek {
32
+ MONDAY = 0,
33
+ TUESDAY = 1,
34
+ WEDNESDAY = 2,
35
+ THURSDAY = 3,
36
+ FRIDAY = 4,
37
+ SATURDAY = 5,
38
+ SUNDAY = 6
39
+ }
40
+ export declare enum VehicleType {
41
+ BICYCLE = "bicycle",
42
+ CARGO_BIKE = "cargo_bike",
43
+ ELECTRIC_SCOOTER = "electric_scooter",
44
+ SCOOTER_50 = "scooter_50",
45
+ SCOOTER_125 = "scooter_125",
46
+ MOTORCYCLE = "motorcycle",
47
+ CAR = "car",
48
+ VAN_SMALL = "van_small",
49
+ VAN_MEDIUM = "van_medium",
50
+ VAN_LARGE = "van_large",
51
+ VAN_XL = "van_xl",
52
+ TRUCK_SMALL = "truck_small",
53
+ TRUCK_MEDIUM = "truck_medium",
54
+ TRUCK_LARGE = "truck_large",
55
+ TRUCK_XL = "truck_xl",
56
+ TRUCK_TRAILER = "truck_trailer",
57
+ SEMI_TRAILER = "semi_trailer",
58
+ REFRIGERATED = "refrigerated",
59
+ TANKER = "tanker"
60
+ }
61
+ export declare enum EnergyType {
62
+ GASOLINE = "gasoline",
63
+ DIESEL = "diesel",
64
+ ELECTRIC = "electric",
65
+ HYBRID = "hybrid",
66
+ LPG = "lpg",
67
+ CNG = "cng",
68
+ HYDROGEN = "hydrogen"
69
+ }
70
+ export declare enum VehicleStatus {
71
+ AVAILABLE = "available",
72
+ IN_USE = "in_use",
73
+ MAINTENANCE = "maintenance",
74
+ BROKEN = "broken",
75
+ IMPOUNDED = "impounded",
76
+ IMMOBILIZED = "immobilized",
77
+ RETIRED = "retired"
78
+ }
79
+ export declare enum DriverLicenceType {
80
+ B = "B",
81
+ C = "C",
82
+ CE = "CE",
83
+ C1 = "C1",
84
+ C1E = "C1E",
85
+ D = "D",
86
+ DE = "DE"
87
+ }
88
+ export declare enum WarehouseType {
89
+ HUB = "hub",
90
+ DISTRIBUTION = "distribution",
91
+ STORAGE = "storage",
92
+ PICKUP = "pickup",
93
+ CROSS_DOCK = "cross_dock",
94
+ OTHER = "other"
95
+ }
96
+ export declare enum UserRole {
97
+ ADMIN = "admin",
98
+ MANAGER = "manager",
99
+ OPERATOR = "operator",
100
+ DRIVER = "driver"
101
+ }
102
+ export declare enum Department {
103
+ LOGISTICS = "logistics",
104
+ WAREHOUSE = "warehouse",
105
+ DELIVERY = "delivery",
106
+ CUSTOMER_SERVICE = "customer_service",
107
+ SALES = "sales"
108
+ }
109
+ export declare enum Language {
110
+ FR = "fr",
111
+ EN = "en",
112
+ ES = "es",
113
+ DE = "de",
114
+ IT = "it"
115
+ }
116
+ export declare enum WarehouseCertification {
117
+ ISO_9001 = "ISO_9001",
118
+ ISO_14001 = "ISO_14001",
119
+ HACCP = "HACCP",
120
+ GDP = "GDP"
121
+ }
122
+ export declare enum KmSource {
123
+ MANUAL = "manual",
124
+ GPS = "gps",
125
+ OBD = "obd",
126
+ FUEL = "fuel"
127
+ }
128
+ export declare enum VisitType {
129
+ DELIVERY = "delivery",
130
+ PICKUP = "pickup",
131
+ SERVICE = "service",
132
+ DELIVERY_PICKUP = "delivery_pickup"
133
+ }
134
+ export interface PaginatedResponse<T> {
135
+ count: number;
136
+ next: string | null;
137
+ previous: string | null;
138
+ results: T[];
139
+ }
140
+ export interface MapFlowConfig {
141
+ apiKey: string;
142
+ baseUrl?: string;
143
+ timeout?: number;
144
+ }
145
+ export interface CustomerBase {
146
+ customer_type: CustomerType;
147
+ company_name?: string;
148
+ first_name?: string;
149
+ last_name?: string;
150
+ email?: string;
151
+ phone?: string;
152
+ billing_address?: string;
153
+ billing_zip_code?: string;
154
+ billing_city?: string;
155
+ billing_country?: string;
156
+ billing_state?: string;
157
+ notes?: string;
158
+ is_active?: boolean;
159
+ external_id?: string;
160
+ external_reference?: string;
161
+ tags?: string[];
162
+ }
163
+ export interface CustomerCreate extends CustomerBase {
164
+ }
165
+ export interface CustomerUpdate extends Partial<CustomerBase> {
166
+ }
167
+ export interface Customer extends CustomerBase {
168
+ id: string;
169
+ display_name: string;
170
+ created_at: string;
171
+ updated_at: string;
172
+ }
173
+ export interface DeliveryLocationBase {
174
+ customer: string;
175
+ name: string;
176
+ address: string;
177
+ zip_code: string;
178
+ city: string;
179
+ country?: string;
180
+ state?: string;
181
+ latitude?: number;
182
+ longitude?: number;
183
+ phone?: string;
184
+ email?: string;
185
+ delivery_instructions?: string;
186
+ access_code?: string;
187
+ floor?: string;
188
+ building?: string;
189
+ notes?: string;
190
+ is_active?: boolean;
191
+ external_id?: string;
192
+ external_reference?: string;
193
+ tags?: string[];
194
+ }
195
+ export interface DeliveryLocationCreate extends DeliveryLocationBase {
196
+ }
197
+ export interface DeliveryLocationUpdate extends Partial<Omit<DeliveryLocationBase, 'customer'>> {
198
+ }
199
+ export interface DeliveryLocation extends DeliveryLocationBase {
200
+ id: string;
201
+ created_at: string;
202
+ updated_at: string;
203
+ }
204
+ export interface WarehouseBase {
205
+ name: string;
206
+ code?: string;
207
+ warehouse_type: WarehouseType;
208
+ address: string;
209
+ zip_code: string;
210
+ city: string;
211
+ country?: string;
212
+ latitude?: number;
213
+ longitude?: number;
214
+ phone?: string;
215
+ email?: string;
216
+ opening_time?: string;
217
+ closing_time?: string;
218
+ capacity_m3?: number;
219
+ capacity_pallets?: number;
220
+ max_weight_capacity_kg?: number;
221
+ max_vehicles?: number;
222
+ has_loading_dock?: boolean;
223
+ has_forklift?: boolean;
224
+ has_crane?: boolean;
225
+ has_cold_storage?: boolean;
226
+ has_security?: boolean;
227
+ has_parking?: boolean;
228
+ is_start_point?: boolean;
229
+ is_end_point?: boolean;
230
+ is_break_point?: boolean;
231
+ cost_per_hour?: number;
232
+ cost_per_m3?: number;
233
+ is_active?: boolean;
234
+ is_default?: boolean;
235
+ access_instructions?: string;
236
+ loading_instructions?: string;
237
+ special_requirements?: string;
238
+ internal_notes?: string;
239
+ external_id?: string;
240
+ external_reference?: string;
241
+ certifications?: WarehouseCertification[];
242
+ }
243
+ export interface WarehouseCreate extends WarehouseBase {
244
+ }
245
+ export interface WarehouseUpdate extends Partial<WarehouseBase> {
246
+ }
247
+ export interface Warehouse extends WarehouseBase {
248
+ id: string;
249
+ created_at: string;
250
+ updated_at: string;
251
+ }
252
+ export interface GlobalCustomerCreate {
253
+ customer_type: CustomerType;
254
+ email?: string;
255
+ phone?: string;
256
+ emails?: string[];
257
+ phones?: string[];
258
+ company_name?: string;
259
+ siret?: string;
260
+ vat_number?: string;
261
+ first_name?: string;
262
+ last_name?: string;
263
+ billing_address?: string;
264
+ billing_zip_code?: string;
265
+ billing_city?: string;
266
+ billing_country?: string;
267
+ external_reference?: string;
268
+ external_id?: string;
269
+ is_active?: boolean;
270
+ notes?: string;
271
+ delivery_location: Record<string, any>;
272
+ contact?: Record<string, any>;
273
+ opening_hours?: Record<string, any>[];
274
+ }
275
+ export interface GlobalCustomer {
276
+ customer: Customer;
277
+ delivery_location: DeliveryLocation;
278
+ contact?: LocationContact;
279
+ opening_hours?: LocationOpeningHours[];
280
+ }
281
+ export interface LocationContactBase {
282
+ first_name: string;
283
+ last_name: string;
284
+ position?: string;
285
+ emails?: string[];
286
+ phones?: string[];
287
+ is_primary?: boolean;
288
+ is_active?: boolean;
289
+ notes?: string;
290
+ }
291
+ export interface LocationContactCreate extends LocationContactBase {
292
+ location_ids: string[];
293
+ }
294
+ export interface LocationContactUpdate extends Partial<LocationContactBase> {
295
+ location_ids?: string[];
296
+ }
297
+ export interface LocationContact extends LocationContactBase {
298
+ id: string;
299
+ full_name?: string;
300
+ created_at: string;
301
+ updated_at: string;
302
+ }
303
+ export interface LocationOpeningHoursBase {
304
+ location: string;
305
+ day_of_week: DayOfWeek;
306
+ opening_time?: string;
307
+ closing_time?: string;
308
+ is_closed?: boolean;
309
+ break_start?: string;
310
+ break_end?: string;
311
+ notes?: string;
312
+ }
313
+ export interface LocationOpeningHoursCreate extends LocationOpeningHoursBase {
314
+ }
315
+ export interface LocationOpeningHoursUpdate extends Partial<Omit<LocationOpeningHoursBase, 'location'>> {
316
+ }
317
+ export interface LocationOpeningHours extends LocationOpeningHoursBase {
318
+ id: string;
319
+ location_name?: string;
320
+ day_name?: string;
321
+ created_at: string;
322
+ updated_at: string;
323
+ }
324
+ export interface DeliveryItemBase {
325
+ name: string;
326
+ item_type: ItemType;
327
+ reference?: string;
328
+ barcode?: string;
329
+ description?: string;
330
+ external_id?: string;
331
+ external_reference?: string;
332
+ weight?: number;
333
+ weight_unit?: WeightUnit;
334
+ length?: number;
335
+ width?: number;
336
+ height?: number;
337
+ volume?: number;
338
+ volume_unit?: VolumeUnit;
339
+ temperature_min?: number;
340
+ temperature_max?: number;
341
+ is_fragile?: boolean;
342
+ is_dangerous?: boolean;
343
+ is_biohazard?: boolean;
344
+ declared_value?: number;
345
+ currency?: string;
346
+ buying_price?: number;
347
+ selling_price?: number;
348
+ vat_rate?: number;
349
+ estimated_delivery_duration?: number;
350
+ estimated_delivery_duration_unit?: DurationUnit;
351
+ package_code?: string;
352
+ number_of_packages?: number;
353
+ is_active?: boolean;
354
+ notes?: string;
355
+ }
356
+ export interface DeliveryItemCreate extends DeliveryItemBase {
357
+ }
358
+ export interface DeliveryItemUpdate extends Partial<DeliveryItemBase> {
359
+ }
360
+ export interface DeliveryItem extends DeliveryItemBase {
361
+ id: string;
362
+ created_at: string;
363
+ updated_at: string;
364
+ }
365
+ export interface DriverPickerBase {
366
+ email: string;
367
+ first_name: string;
368
+ last_name: string;
369
+ phone?: string;
370
+ role?: UserRole;
371
+ department?: Department;
372
+ employee_id?: string;
373
+ timezone?: string;
374
+ language?: Language;
375
+ has_valid_driving_license?: boolean;
376
+ driver_license_number?: string;
377
+ driver_licence_type?: DriverLicenceType[];
378
+ last_license_check_date?: string;
379
+ vehicle_types?: VehicleType[];
380
+ warehouse_certifications?: WarehouseCertification[];
381
+ notifications_email?: boolean;
382
+ notifications_sms?: boolean;
383
+ notifications_push?: boolean;
384
+ is_active?: boolean;
385
+ notes?: string;
386
+ tags?: string[];
387
+ }
388
+ export interface DriverPickerCreate extends DriverPickerBase {
389
+ }
390
+ export interface DriverPickerUpdate extends Partial<Omit<DriverPickerBase, 'email'>> {
391
+ }
392
+ export interface DriverPicker extends DriverPickerBase {
393
+ id: string;
394
+ created_at: string;
395
+ updated_at: string;
396
+ }
397
+ export interface VehicleBase {
398
+ name: string;
399
+ license_plate?: string;
400
+ reference?: string;
401
+ external_id?: string;
402
+ external_reference?: string;
403
+ assigned_warehouses?: string[];
404
+ tags?: string[];
405
+ vehicle_type?: string;
406
+ brand?: string;
407
+ model?: string;
408
+ year?: number;
409
+ color?: string;
410
+ latitude?: number;
411
+ longitude?: number;
412
+ max_weight_kg?: number;
413
+ max_volume_m3?: number;
414
+ max_distance_km?: number;
415
+ fixed_cost?: number;
416
+ cost_per_km?: number;
417
+ cost_per_hour?: number;
418
+ max_items_count?: number;
419
+ max_speed?: number;
420
+ energy_type?: string;
421
+ consumption_per_100km?: number;
422
+ tank_capacity?: number;
423
+ fuel_level?: number;
424
+ remaining_range?: number;
425
+ status?: string;
426
+ required_licence_type?: string;
427
+ acquisition_date?: string;
428
+ current_km?: number;
429
+ last_km_update?: string;
430
+ last_km_source?: string;
431
+ technical_inspection_expiry?: string;
432
+ fuel_card_number?: string;
433
+ notes?: string;
434
+ }
435
+ export interface VehicleCreate extends VehicleBase {
436
+ }
437
+ export interface VehicleUpdate extends Partial<VehicleBase> {
438
+ }
439
+ export interface Vehicle extends VehicleBase {
440
+ id: string;
441
+ created_at: string;
442
+ updated_at: string;
443
+ }
444
+ export interface TagBase {
445
+ name: string;
446
+ color?: string;
447
+ description?: string;
448
+ }
449
+ export interface TagCreate extends TagBase {
450
+ }
451
+ export interface TagUpdate extends Partial<TagBase> {
452
+ }
453
+ export interface Tag extends TagBase {
454
+ id: string;
455
+ created_at: string;
456
+ updated_at: string;
457
+ }
458
+ export interface VisitBase {
459
+ location: string;
460
+ visit_type: VisitType;
461
+ reference?: string;
462
+ external_id?: string;
463
+ external_reference?: string;
464
+ visit_date?: string;
465
+ planned_arrival_time?: string;
466
+ planned_departure_time?: string;
467
+ actual_arrival_time?: string;
468
+ actual_departure_time?: string;
469
+ priority?: number;
470
+ status?: string;
471
+ driver?: number;
472
+ vehicle?: string;
473
+ notes?: string;
474
+ delivery_notes?: string;
475
+ customer_signature?: string;
476
+ driver_signature?: string;
477
+ is_completed?: boolean;
478
+ tags?: string[];
479
+ products?: Array<{
480
+ product: string;
481
+ quantity: number;
482
+ }>;
483
+ }
484
+ export interface VisitCreate extends VisitBase {
485
+ }
486
+ export interface VisitUpdate extends Partial<Omit<VisitBase, 'location'>> {
487
+ }
488
+ export interface Visit extends VisitBase {
489
+ id: string;
490
+ created_at: string;
491
+ updated_at: string;
492
+ }
493
+ export interface VisitProductBase {
494
+ visit: string;
495
+ product: string;
496
+ quantity: number;
497
+ }
498
+ export interface VisitProductCreate extends VisitProductBase {
499
+ }
500
+ export interface VisitProductUpdate extends Partial<Omit<VisitProductBase, 'visit' | 'product'>> {
501
+ }
502
+ export interface VisitProduct extends VisitProductBase {
503
+ id: string;
504
+ created_at: string;
505
+ updated_at: string;
506
+ }
507
+ export interface BulkActionRequest {
508
+ action: string;
509
+ [key: string]: any;
510
+ }
511
+ export interface BulkActionResponse {
512
+ success: boolean;
513
+ message?: string;
514
+ results?: any;
515
+ }
516
+ //# sourceMappingURL=types.d.ts.map