@classytic/pos 0.1.1
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/CHANGELOG.md +17 -0
- package/LICENSE +21 -0
- package/README.md +152 -0
- package/dist/domain/enums/cash-movement-reason.enum.d.mts +12 -0
- package/dist/domain/enums/cash-movement-reason.enum.mjs +19 -0
- package/dist/domain/enums/closed-by.enum.d.mts +13 -0
- package/dist/domain/enums/closed-by.enum.mjs +16 -0
- package/dist/domain/enums/payment-method.enum.d.mts +14 -0
- package/dist/domain/enums/payment-method.enum.mjs +18 -0
- package/dist/domain/enums/shift-state.enum.d.mts +26 -0
- package/dist/domain/enums/shift-state.enum.mjs +39 -0
- package/dist/domain/errors/pos.errors.d.mts +37 -0
- package/dist/domain/errors/pos.errors.mjs +64 -0
- package/dist/domain/index.d.mts +14 -0
- package/dist/domain/index.mjs +9 -0
- package/dist/domain/ports/common.d.mts +9 -0
- package/dist/domain/ports/ledger.bridge.d.mts +18 -0
- package/dist/domain/ports/notification.bridge.d.mts +12 -0
- package/dist/domain/ports/policy.bridge.d.mts +13 -0
- package/dist/domain/state-machines/shift.fsm.d.mts +14 -0
- package/dist/domain/state-machines/shift.fsm.mjs +41 -0
- package/dist/domain/value-objects/cash-movement.vo.d.mts +19 -0
- package/dist/domain/value-objects/payment-breakdown.vo.d.mts +24 -0
- package/dist/domain/value-objects/payment-breakdown.vo.mjs +11 -0
- package/dist/domain/value-objects/shift-policy.vo.d.mts +32 -0
- package/dist/domain/value-objects/shift-policy.vo.mjs +14 -0
- package/dist/engine/create-pos.d.mts +6 -0
- package/dist/engine/create-pos.mjs +65 -0
- package/dist/engine/engine-types.d.mts +73 -0
- package/dist/engine/index.d.mts +3 -0
- package/dist/engine/index.mjs +2 -0
- package/dist/events/event-constants.d.mts +21 -0
- package/dist/events/event-constants.mjs +20 -0
- package/dist/events/event-payloads.d.mts +49 -0
- package/dist/events/helpers.d.mts +6 -0
- package/dist/events/helpers.mjs +12 -0
- package/dist/events/in-process-bus.d.mts +19 -0
- package/dist/events/in-process-bus.mjs +38 -0
- package/dist/events/index.d.mts +5 -0
- package/dist/events/index.mjs +4 -0
- package/dist/index.d.mts +23 -0
- package/dist/index.mjs +15 -0
- package/dist/models/create-models.d.mts +9 -0
- package/dist/models/create-models.mjs +20 -0
- package/dist/models/inject-tenant.d.mts +2 -0
- package/dist/models/inject-tenant.mjs +48 -0
- package/dist/models/shift.model.d.mts +68 -0
- package/dist/models/shift.model.mjs +267 -0
- package/dist/repositories/repo-options.mjs +20 -0
- package/dist/repositories/shift.repository.d.mts +153 -0
- package/dist/repositories/shift.repository.mjs +401 -0
- package/dist/schemas/index.d.mts +2 -0
- package/dist/schemas/index.mjs +2 -0
- package/dist/schemas/shift.d.mts +67 -0
- package/dist/schemas/shift.mjs +52 -0
- package/dist/testing/fixtures.d.mts +9 -0
- package/dist/testing/fixtures.mjs +36 -0
- package/dist/testing/index.d.mts +2 -0
- package/dist/testing/index.mjs +2 -0
- package/package.json +110 -0
package/package.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@classytic/pos",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Multi-vertical POS / register-session kernel for MongoDB \u00e2\u20ac\u201d shift lifecycle, cash-drawer reconciliation, payment-method breakdown, variance detection, FSM. Works for retail, restaurant, clinic, service-booking, car-wash and any vertical with a 'shift opens, shift closes, money is reconciled' workflow.",
|
|
5
|
+
"author": "Classytic",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=22"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.mts",
|
|
17
|
+
"default": "./dist/index.mjs"
|
|
18
|
+
},
|
|
19
|
+
"./engine": {
|
|
20
|
+
"types": "./dist/engine/index.d.mts",
|
|
21
|
+
"default": "./dist/engine/index.mjs"
|
|
22
|
+
},
|
|
23
|
+
"./events": {
|
|
24
|
+
"types": "./dist/events/index.d.mts",
|
|
25
|
+
"default": "./dist/events/index.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./domain": {
|
|
28
|
+
"types": "./dist/domain/index.d.mts",
|
|
29
|
+
"default": "./dist/domain/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./schemas": {
|
|
32
|
+
"types": "./dist/schemas/index.d.mts",
|
|
33
|
+
"default": "./dist/schemas/index.mjs"
|
|
34
|
+
},
|
|
35
|
+
"./testing": {
|
|
36
|
+
"types": "./dist/testing/index.d.mts",
|
|
37
|
+
"default": "./dist/testing/index.mjs"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"main": "./dist/index.mjs",
|
|
41
|
+
"types": "./dist/index.d.mts",
|
|
42
|
+
"files": [
|
|
43
|
+
"dist",
|
|
44
|
+
"CHANGELOG.md",
|
|
45
|
+
"README.md",
|
|
46
|
+
"LICENSE"
|
|
47
|
+
],
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "git+https://github.com/classytic/pos.git"
|
|
51
|
+
},
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/classytic/pos/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/classytic/pos#readme",
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "tsdown",
|
|
58
|
+
"dev": "tsdown --watch",
|
|
59
|
+
"typecheck": "tsc --noEmit",
|
|
60
|
+
"test": "vitest run --project unit --project integration",
|
|
61
|
+
"test:unit": "vitest run --project unit",
|
|
62
|
+
"test:integration": "vitest run --project integration",
|
|
63
|
+
"test:e2e": "vitest run --project e2e",
|
|
64
|
+
"test:all": "vitest run",
|
|
65
|
+
"test:watch": "vitest --project unit --project integration",
|
|
66
|
+
"test:coverage": "vitest run --project unit --project integration --coverage",
|
|
67
|
+
"test:ci": "vitest run --project unit --project integration",
|
|
68
|
+
"push": "classytic-push",
|
|
69
|
+
"prepublishOnly": "npm run typecheck && npm run build && npm run test:ci",
|
|
70
|
+
"release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
|
|
71
|
+
"release": "npm run push -- main && npm run release:tag && npm publish"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@classytic/mongokit": ">=3.13.0",
|
|
75
|
+
"@classytic/primitives": ">=0.5.0",
|
|
76
|
+
"@classytic/repo-core": ">=0.4.0",
|
|
77
|
+
"mongoose": ">=9.4.1",
|
|
78
|
+
"zod": ">=4.0.0"
|
|
79
|
+
},
|
|
80
|
+
"devDependencies": {
|
|
81
|
+
"@classytic/dev-tools": "^0.2.0",
|
|
82
|
+
"@classytic/mongokit": ">=3.13.0",
|
|
83
|
+
"@classytic/primitives": ">=0.5.0",
|
|
84
|
+
"@classytic/repo-core": ">=0.4.0",
|
|
85
|
+
"@types/node": "^25.5.0",
|
|
86
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
87
|
+
"mongodb-memory-server": "^10.2.3",
|
|
88
|
+
"mongoose": "^9.4.1",
|
|
89
|
+
"tsdown": "^0.21.5",
|
|
90
|
+
"typescript": "^5.7.0",
|
|
91
|
+
"vitest": "^3.0.0",
|
|
92
|
+
"zod": "^4.3.6"
|
|
93
|
+
},
|
|
94
|
+
"keywords": [
|
|
95
|
+
"pos",
|
|
96
|
+
"point-of-sale",
|
|
97
|
+
"shift",
|
|
98
|
+
"session",
|
|
99
|
+
"cash-drawer",
|
|
100
|
+
"register",
|
|
101
|
+
"reconciliation",
|
|
102
|
+
"retail",
|
|
103
|
+
"restaurant",
|
|
104
|
+
"clinic",
|
|
105
|
+
"booking",
|
|
106
|
+
"mongodb",
|
|
107
|
+
"mongoose"
|
|
108
|
+
],
|
|
109
|
+
"license": "MIT"
|
|
110
|
+
}
|