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