@lyxa.ai/core 1.0.198 → 1.0.199
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/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
package/dist/utilities/map.d.ts
CHANGED
package/dist/utilities/map.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COURIER_ORDER_STATUS_MAP = exports.REGULAR_ORDER_STATUS_MAP = void 0;
|
|
3
4
|
const enum_1 = require("./enum");
|
|
4
|
-
|
|
5
|
+
exports.REGULAR_ORDER_STATUS_MAP = {
|
|
5
6
|
[enum_1.RegularOrderStatus.SCHEDULED]: 1,
|
|
6
7
|
[enum_1.RegularOrderStatus.PLACED]: 2,
|
|
7
8
|
[enum_1.RegularOrderStatus.ACCEPTED_BY_RIDER]: 3,
|
|
@@ -12,7 +13,7 @@ const REGULAR_ORDER_STATUS_MAP = {
|
|
|
12
13
|
[enum_1.RegularOrderStatus.DELIVERED]: 8,
|
|
13
14
|
[enum_1.RegularOrderStatus.CANCELLED]: 99,
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
+
exports.COURIER_ORDER_STATUS_MAP = {
|
|
16
17
|
[enum_1.CourierOrderStatus.SCHEDULED]: 1,
|
|
17
18
|
[enum_1.CourierOrderStatus.PLACED]: 2,
|
|
18
19
|
[enum_1.CourierOrderStatus.ACCEPTED_BY_RIDER]: 3,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map.js","sourceRoot":"/","sources":["utilities/map.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"map.js","sourceRoot":"/","sources":["utilities/map.ts"],"names":[],"mappings":";;;AAAA,iCAAgE;AAGnD,QAAA,wBAAwB,GAAuC;IAC3E,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;IAC9B,CAAC,yBAAkB,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACzC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,gBAAgB,CAAC,EAAE,CAAC;IACxC,CAAC,yBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC;IAClC,CAAC,yBAAkB,CAAC,2BAA2B,CAAC,EAAE,CAAC;IACnD,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,EAAE;CAClC,CAAC;AACW,QAAA,wBAAwB,GAAuC;IAC3E,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;IAC9B,CAAC,yBAAkB,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACzC,CAAC,yBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC;IAClC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,EAAE;CAClC,CAAC","sourcesContent":["import { CourierOrderStatus, RegularOrderStatus } from \"./enum\";\n\n// Order mapping with numeric values for easy comparison\nexport const REGULAR_ORDER_STATUS_MAP: Record<RegularOrderStatus, number> = {\n\t[RegularOrderStatus.SCHEDULED]: 1,\n\t[RegularOrderStatus.PLACED]: 2,\n\t[RegularOrderStatus.ACCEPTED_BY_RIDER]: 3,\n\t[RegularOrderStatus.PREPARING]: 4,\n\t[RegularOrderStatus.READY_FOR_PICKUP]: 5,\n\t[RegularOrderStatus.ON_THE_WAY]: 6,\n\t[RegularOrderStatus.REPLACEMENT_DROP_AND_PICKUP]: 7,\n\t[RegularOrderStatus.DELIVERED]: 8,\n\t[RegularOrderStatus.CANCELLED]: 99, \n};\nexport const COURIER_ORDER_STATUS_MAP: Record<CourierOrderStatus, number> = {\n\t[CourierOrderStatus.SCHEDULED]: 1,\n\t[CourierOrderStatus.PLACED]: 2,\n\t[CourierOrderStatus.ACCEPTED_BY_RIDER]: 3,\n\t[CourierOrderStatus.ON_THE_WAY]: 4,\n\t[CourierOrderStatus.DELIVERED]: 5,\n\t[CourierOrderStatus.CANCELLED]: 99, \n};"]}
|