@lssm/example.service-business-os 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060804
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/client/client.contracts.d.ts +64 -0
- package/dist/client/client.schema.d.ts +67 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/contracts/index.d.ts +16 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/service-business-os.docblock.d.ts +1 -0
- package/dist/entities/index.d.ts +167 -0
- package/dist/events.d.ts +336 -0
- package/dist/example.d.ts +36 -0
- package/dist/handlers/index.d.ts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/invoice/index.d.ts +3 -0
- package/dist/invoice/invoice.contracts.d.ts +64 -0
- package/dist/invoice/invoice.schema.d.ts +67 -0
- package/dist/job/index.d.ts +3 -0
- package/dist/job/job.contracts.d.ts +237 -0
- package/dist/job/job.schema.d.ts +84 -0
- package/dist/payment/index.d.ts +3 -0
- package/dist/payment/payment.contracts.d.ts +60 -0
- package/dist/payment/payment.schema.d.ts +63 -0
- package/dist/presentations/index.d.ts +8 -0
- package/dist/presentations.d.ts +12 -0
- package/dist/quote/index.d.ts +3 -0
- package/dist/quote/quote.contracts.d.ts +134 -0
- package/dist/quote/quote.schema.d.ts +100 -0
- package/dist/service.feature.d.ts +6 -0
- package/package.json +36 -36
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as _lssm_lib_schema195 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts15 from "@lssm/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/quote/quote.contracts.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Create a new quote.
|
|
7
|
+
*/
|
|
8
|
+
declare const CreateQuoteContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema195.SchemaModel<{
|
|
9
|
+
clientId: {
|
|
10
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
title: {
|
|
14
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
description: {
|
|
18
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
19
|
+
isOptional: true;
|
|
20
|
+
};
|
|
21
|
+
amount: {
|
|
22
|
+
type: _lssm_lib_schema195.FieldType<number, number>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
currency: {
|
|
26
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
27
|
+
isOptional: true;
|
|
28
|
+
};
|
|
29
|
+
validUntil: {
|
|
30
|
+
type: _lssm_lib_schema195.FieldType<Date, string>;
|
|
31
|
+
isOptional: true;
|
|
32
|
+
};
|
|
33
|
+
orgId: {
|
|
34
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
35
|
+
isOptional: false;
|
|
36
|
+
};
|
|
37
|
+
ownerId: {
|
|
38
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
39
|
+
isOptional: false;
|
|
40
|
+
};
|
|
41
|
+
}>, _lssm_lib_schema195.SchemaModel<{
|
|
42
|
+
id: {
|
|
43
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
45
|
+
};
|
|
46
|
+
clientId: {
|
|
47
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
48
|
+
isOptional: false;
|
|
49
|
+
};
|
|
50
|
+
title: {
|
|
51
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
52
|
+
isOptional: false;
|
|
53
|
+
};
|
|
54
|
+
description: {
|
|
55
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
56
|
+
isOptional: true;
|
|
57
|
+
};
|
|
58
|
+
amount: {
|
|
59
|
+
type: _lssm_lib_schema195.FieldType<number, number>;
|
|
60
|
+
isOptional: false;
|
|
61
|
+
};
|
|
62
|
+
currency: {
|
|
63
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
64
|
+
isOptional: false;
|
|
65
|
+
};
|
|
66
|
+
status: {
|
|
67
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
68
|
+
isOptional: false;
|
|
69
|
+
};
|
|
70
|
+
validUntil: {
|
|
71
|
+
type: _lssm_lib_schema195.FieldType<Date, string>;
|
|
72
|
+
isOptional: true;
|
|
73
|
+
};
|
|
74
|
+
createdAt: {
|
|
75
|
+
type: _lssm_lib_schema195.FieldType<Date, string>;
|
|
76
|
+
isOptional: false;
|
|
77
|
+
};
|
|
78
|
+
}>, undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Accept a quote.
|
|
81
|
+
*/
|
|
82
|
+
declare const AcceptQuoteContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema195.SchemaModel<{
|
|
83
|
+
quoteId: {
|
|
84
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
85
|
+
isOptional: false;
|
|
86
|
+
};
|
|
87
|
+
acceptedBy: {
|
|
88
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
89
|
+
isOptional: false;
|
|
90
|
+
};
|
|
91
|
+
notes: {
|
|
92
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
93
|
+
isOptional: true;
|
|
94
|
+
};
|
|
95
|
+
}>, _lssm_lib_schema195.SchemaModel<{
|
|
96
|
+
id: {
|
|
97
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
98
|
+
isOptional: false;
|
|
99
|
+
};
|
|
100
|
+
clientId: {
|
|
101
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
102
|
+
isOptional: false;
|
|
103
|
+
};
|
|
104
|
+
title: {
|
|
105
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
106
|
+
isOptional: false;
|
|
107
|
+
};
|
|
108
|
+
description: {
|
|
109
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
110
|
+
isOptional: true;
|
|
111
|
+
};
|
|
112
|
+
amount: {
|
|
113
|
+
type: _lssm_lib_schema195.FieldType<number, number>;
|
|
114
|
+
isOptional: false;
|
|
115
|
+
};
|
|
116
|
+
currency: {
|
|
117
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
118
|
+
isOptional: false;
|
|
119
|
+
};
|
|
120
|
+
status: {
|
|
121
|
+
type: _lssm_lib_schema195.FieldType<string, string>;
|
|
122
|
+
isOptional: false;
|
|
123
|
+
};
|
|
124
|
+
validUntil: {
|
|
125
|
+
type: _lssm_lib_schema195.FieldType<Date, string>;
|
|
126
|
+
isOptional: true;
|
|
127
|
+
};
|
|
128
|
+
createdAt: {
|
|
129
|
+
type: _lssm_lib_schema195.FieldType<Date, string>;
|
|
130
|
+
isOptional: false;
|
|
131
|
+
};
|
|
132
|
+
}>, undefined>;
|
|
133
|
+
//#endregion
|
|
134
|
+
export { AcceptQuoteContract, CreateQuoteContract };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as _lssm_lib_schema228 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/quote/quote.schema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Quote/proposal.
|
|
6
|
+
*/
|
|
7
|
+
declare const QuoteModel: _lssm_lib_schema228.SchemaModel<{
|
|
8
|
+
id: {
|
|
9
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
clientId: {
|
|
13
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
14
|
+
isOptional: false;
|
|
15
|
+
};
|
|
16
|
+
title: {
|
|
17
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
18
|
+
isOptional: false;
|
|
19
|
+
};
|
|
20
|
+
description: {
|
|
21
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
22
|
+
isOptional: true;
|
|
23
|
+
};
|
|
24
|
+
amount: {
|
|
25
|
+
type: _lssm_lib_schema228.FieldType<number, number>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
currency: {
|
|
29
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
status: {
|
|
33
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
validUntil: {
|
|
37
|
+
type: _lssm_lib_schema228.FieldType<Date, string>;
|
|
38
|
+
isOptional: true;
|
|
39
|
+
};
|
|
40
|
+
createdAt: {
|
|
41
|
+
type: _lssm_lib_schema228.FieldType<Date, string>;
|
|
42
|
+
isOptional: false;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Input for creating a quote.
|
|
47
|
+
*/
|
|
48
|
+
declare const CreateQuoteInputModel: _lssm_lib_schema228.SchemaModel<{
|
|
49
|
+
clientId: {
|
|
50
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
51
|
+
isOptional: false;
|
|
52
|
+
};
|
|
53
|
+
title: {
|
|
54
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
55
|
+
isOptional: false;
|
|
56
|
+
};
|
|
57
|
+
description: {
|
|
58
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
59
|
+
isOptional: true;
|
|
60
|
+
};
|
|
61
|
+
amount: {
|
|
62
|
+
type: _lssm_lib_schema228.FieldType<number, number>;
|
|
63
|
+
isOptional: false;
|
|
64
|
+
};
|
|
65
|
+
currency: {
|
|
66
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
67
|
+
isOptional: true;
|
|
68
|
+
};
|
|
69
|
+
validUntil: {
|
|
70
|
+
type: _lssm_lib_schema228.FieldType<Date, string>;
|
|
71
|
+
isOptional: true;
|
|
72
|
+
};
|
|
73
|
+
orgId: {
|
|
74
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
75
|
+
isOptional: false;
|
|
76
|
+
};
|
|
77
|
+
ownerId: {
|
|
78
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
79
|
+
isOptional: false;
|
|
80
|
+
};
|
|
81
|
+
}>;
|
|
82
|
+
/**
|
|
83
|
+
* Input for accepting a quote.
|
|
84
|
+
*/
|
|
85
|
+
declare const AcceptQuoteInputModel: _lssm_lib_schema228.SchemaModel<{
|
|
86
|
+
quoteId: {
|
|
87
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
88
|
+
isOptional: false;
|
|
89
|
+
};
|
|
90
|
+
acceptedBy: {
|
|
91
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
92
|
+
isOptional: false;
|
|
93
|
+
};
|
|
94
|
+
notes: {
|
|
95
|
+
type: _lssm_lib_schema228.FieldType<string, string>;
|
|
96
|
+
isOptional: true;
|
|
97
|
+
};
|
|
98
|
+
}>;
|
|
99
|
+
//#endregion
|
|
100
|
+
export { AcceptQuoteInputModel, CreateQuoteInputModel, QuoteModel };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.service-business-os",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251217060804",
|
|
4
4
|
"description": "Service Business OS example (clients, quotes, jobs, invoices) for ContractSpec",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,47 +18,47 @@
|
|
|
18
18
|
"lint:check": "eslint src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
22
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
23
|
-
"@lssm/lib.bus": "0.0.0-canary-
|
|
24
|
-
"@lssm/lib.identity-rbac": "0.0.0-canary-
|
|
25
|
-
"@lssm/lib.files": "0.0.0-canary-
|
|
26
|
-
"@lssm/lib.jobs": "0.0.0-canary-
|
|
27
|
-
"@lssm/module.audit-trail": "0.0.0-canary-
|
|
28
|
-
"@lssm/module.notifications": "0.0.0-canary-
|
|
21
|
+
"@lssm/lib.schema": "0.0.0-canary-20251217060804",
|
|
22
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251217060804",
|
|
23
|
+
"@lssm/lib.bus": "0.0.0-canary-20251217060804",
|
|
24
|
+
"@lssm/lib.identity-rbac": "0.0.0-canary-20251217060804",
|
|
25
|
+
"@lssm/lib.files": "0.0.0-canary-20251217060804",
|
|
26
|
+
"@lssm/lib.jobs": "0.0.0-canary-20251217060804",
|
|
27
|
+
"@lssm/module.audit-trail": "0.0.0-canary-20251217060804",
|
|
28
|
+
"@lssm/module.notifications": "0.0.0-canary-20251217060804",
|
|
29
29
|
"zod": "^4.1.13"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
33
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
32
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251217060804",
|
|
33
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251217060804",
|
|
34
34
|
"typescript": "^5.9.3"
|
|
35
35
|
},
|
|
36
36
|
"exports": {
|
|
37
|
-
".": "./
|
|
38
|
-
"./client": "./
|
|
39
|
-
"./client/client.contracts": "./
|
|
40
|
-
"./client/client.schema": "./
|
|
41
|
-
"./contracts": "./
|
|
42
|
-
"./docs": "./
|
|
43
|
-
"./docs/service-business-os.docblock": "./
|
|
44
|
-
"./entities": "./
|
|
45
|
-
"./events": "./
|
|
46
|
-
"./example": "./
|
|
47
|
-
"./handlers": "./
|
|
48
|
-
"./invoice": "./
|
|
49
|
-
"./invoice/invoice.contracts": "./
|
|
50
|
-
"./invoice/invoice.schema": "./
|
|
51
|
-
"./job": "./
|
|
52
|
-
"./job/job.contracts": "./
|
|
53
|
-
"./job/job.schema": "./
|
|
54
|
-
"./payment": "./
|
|
55
|
-
"./payment/payment.contracts": "./
|
|
56
|
-
"./payment/payment.schema": "./
|
|
57
|
-
"./presentations": "./
|
|
58
|
-
"./quote": "./
|
|
59
|
-
"./quote/quote.contracts": "./
|
|
60
|
-
"./quote/quote.schema": "./
|
|
61
|
-
"./service.feature": "./
|
|
37
|
+
".": "./dist/index.js",
|
|
38
|
+
"./client": "./dist/client/index.js",
|
|
39
|
+
"./client/client.contracts": "./dist/client/client.contracts.js",
|
|
40
|
+
"./client/client.schema": "./dist/client/client.schema.js",
|
|
41
|
+
"./contracts": "./dist/contracts/index.js",
|
|
42
|
+
"./docs": "./dist/docs/index.js",
|
|
43
|
+
"./docs/service-business-os.docblock": "./dist/docs/service-business-os.docblock.js",
|
|
44
|
+
"./entities": "./dist/entities/index.js",
|
|
45
|
+
"./events": "./dist/events.js",
|
|
46
|
+
"./example": "./dist/example.js",
|
|
47
|
+
"./handlers": "./dist/handlers/index.js",
|
|
48
|
+
"./invoice": "./dist/invoice/index.js",
|
|
49
|
+
"./invoice/invoice.contracts": "./dist/invoice/invoice.contracts.js",
|
|
50
|
+
"./invoice/invoice.schema": "./dist/invoice/invoice.schema.js",
|
|
51
|
+
"./job": "./dist/job/index.js",
|
|
52
|
+
"./job/job.contracts": "./dist/job/job.contracts.js",
|
|
53
|
+
"./job/job.schema": "./dist/job/job.schema.js",
|
|
54
|
+
"./payment": "./dist/payment/index.js",
|
|
55
|
+
"./payment/payment.contracts": "./dist/payment/payment.contracts.js",
|
|
56
|
+
"./payment/payment.schema": "./dist/payment/payment.schema.js",
|
|
57
|
+
"./presentations": "./dist/presentations/index.js",
|
|
58
|
+
"./quote": "./dist/quote/index.js",
|
|
59
|
+
"./quote/quote.contracts": "./dist/quote/quote.contracts.js",
|
|
60
|
+
"./quote/quote.schema": "./dist/quote/quote.schema.js",
|
|
61
|
+
"./service.feature": "./dist/service.feature.js",
|
|
62
62
|
"./*": "./*"
|
|
63
63
|
},
|
|
64
64
|
"module": "./dist/index.js",
|