@lssm/example.service-business-os 0.0.0-canary-20251220002821 → 0.0.0-canary-20251220015515
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/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/libs/contracts/dist/ownership.js +1 -0
- package/dist/libs/contracts/dist/ownership.js.map +1 -1
- package/dist/payment/payment.contracts.d.ts +16 -16
- package/dist/payment/payment.schema.d.ts +15 -15
- package/package.json +11 -11
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema110 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts11 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/client/client.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a new client.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateClientContract:
|
|
8
|
+
declare const CreateClientContract: _lssm_lib_contracts11.ContractSpec<_lssm_lib_schema110.SchemaModel<{
|
|
9
9
|
name: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
contactEmail: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
phone: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
};
|
|
21
21
|
orgId: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
ownerId: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
metadata: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema110.FieldType<unknown, unknown>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
|
-
}>,
|
|
33
|
+
}>, _lssm_lib_schema110.SchemaModel<{
|
|
34
34
|
id: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
name: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
contactEmail: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
44
44
|
isOptional: true;
|
|
45
45
|
};
|
|
46
46
|
phone: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
orgId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
ownerId: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema110.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
createdAt: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema110.FieldType<Date, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
}>, undefined>;
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema125 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/client/client.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Client profile.
|
|
6
6
|
*/
|
|
7
|
-
declare const ClientModel:
|
|
7
|
+
declare const ClientModel: _lssm_lib_schema125.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
name: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
contactEmail: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
18
18
|
isOptional: true;
|
|
19
19
|
};
|
|
20
20
|
phone: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
22
22
|
isOptional: true;
|
|
23
23
|
};
|
|
24
24
|
orgId: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
ownerId: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
createdAt: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema125.FieldType<Date, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
}>;
|
|
37
37
|
/**
|
|
38
38
|
* Input for creating a client.
|
|
39
39
|
*/
|
|
40
|
-
declare const CreateClientInputModel:
|
|
40
|
+
declare const CreateClientInputModel: _lssm_lib_schema125.SchemaModel<{
|
|
41
41
|
name: {
|
|
42
|
-
type:
|
|
42
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
contactEmail: {
|
|
46
|
-
type:
|
|
46
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
47
47
|
isOptional: true;
|
|
48
48
|
};
|
|
49
49
|
phone: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
51
51
|
isOptional: true;
|
|
52
52
|
};
|
|
53
53
|
orgId: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
ownerId: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema125.FieldType<string, string>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
metadata: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema125.FieldType<unknown, unknown>;
|
|
63
63
|
isOptional: true;
|
|
64
64
|
};
|
|
65
65
|
}>;
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,166 +1,166 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema159 from "@lssm/lib.schema";
|
|
2
2
|
import { ModuleSchemaContribution } from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/entities/index.d.ts
|
|
5
|
-
declare const QuoteStatusEnum:
|
|
6
|
-
declare const JobStatusEnum:
|
|
7
|
-
declare const InvoiceStatusEnum:
|
|
8
|
-
declare const PaymentMethodEnum:
|
|
9
|
-
declare const ClientEntity:
|
|
10
|
-
id:
|
|
11
|
-
name:
|
|
12
|
-
contactEmail:
|
|
13
|
-
phone:
|
|
14
|
-
address:
|
|
15
|
-
industry:
|
|
16
|
-
orgId:
|
|
17
|
-
ownerId:
|
|
18
|
-
metadata:
|
|
19
|
-
createdAt:
|
|
20
|
-
updatedAt:
|
|
21
|
-
quotes:
|
|
22
|
-
jobs:
|
|
5
|
+
declare const QuoteStatusEnum: _lssm_lib_schema159.EntityEnumDef;
|
|
6
|
+
declare const JobStatusEnum: _lssm_lib_schema159.EntityEnumDef;
|
|
7
|
+
declare const InvoiceStatusEnum: _lssm_lib_schema159.EntityEnumDef;
|
|
8
|
+
declare const PaymentMethodEnum: _lssm_lib_schema159.EntityEnumDef;
|
|
9
|
+
declare const ClientEntity: _lssm_lib_schema159.EntitySpec<{
|
|
10
|
+
id: _lssm_lib_schema159.EntityScalarField;
|
|
11
|
+
name: _lssm_lib_schema159.EntityScalarField;
|
|
12
|
+
contactEmail: _lssm_lib_schema159.EntityScalarField;
|
|
13
|
+
phone: _lssm_lib_schema159.EntityScalarField;
|
|
14
|
+
address: _lssm_lib_schema159.EntityScalarField;
|
|
15
|
+
industry: _lssm_lib_schema159.EntityScalarField;
|
|
16
|
+
orgId: _lssm_lib_schema159.EntityScalarField;
|
|
17
|
+
ownerId: _lssm_lib_schema159.EntityScalarField;
|
|
18
|
+
metadata: _lssm_lib_schema159.EntityScalarField;
|
|
19
|
+
createdAt: _lssm_lib_schema159.EntityScalarField;
|
|
20
|
+
updatedAt: _lssm_lib_schema159.EntityScalarField;
|
|
21
|
+
quotes: _lssm_lib_schema159.EntityRelationField;
|
|
22
|
+
jobs: _lssm_lib_schema159.EntityRelationField;
|
|
23
23
|
}>;
|
|
24
|
-
declare const QuoteEntity:
|
|
25
|
-
id:
|
|
26
|
-
clientId:
|
|
27
|
-
title:
|
|
28
|
-
description:
|
|
29
|
-
amount:
|
|
30
|
-
currency:
|
|
31
|
-
status:
|
|
32
|
-
validUntil:
|
|
33
|
-
terms:
|
|
34
|
-
orgId:
|
|
35
|
-
ownerId:
|
|
36
|
-
createdAt:
|
|
37
|
-
updatedAt:
|
|
38
|
-
client:
|
|
39
|
-
jobs:
|
|
24
|
+
declare const QuoteEntity: _lssm_lib_schema159.EntitySpec<{
|
|
25
|
+
id: _lssm_lib_schema159.EntityScalarField;
|
|
26
|
+
clientId: _lssm_lib_schema159.EntityScalarField;
|
|
27
|
+
title: _lssm_lib_schema159.EntityScalarField;
|
|
28
|
+
description: _lssm_lib_schema159.EntityScalarField;
|
|
29
|
+
amount: _lssm_lib_schema159.EntityScalarField;
|
|
30
|
+
currency: _lssm_lib_schema159.EntityScalarField;
|
|
31
|
+
status: _lssm_lib_schema159.EntityEnumField;
|
|
32
|
+
validUntil: _lssm_lib_schema159.EntityScalarField;
|
|
33
|
+
terms: _lssm_lib_schema159.EntityScalarField;
|
|
34
|
+
orgId: _lssm_lib_schema159.EntityScalarField;
|
|
35
|
+
ownerId: _lssm_lib_schema159.EntityScalarField;
|
|
36
|
+
createdAt: _lssm_lib_schema159.EntityScalarField;
|
|
37
|
+
updatedAt: _lssm_lib_schema159.EntityScalarField;
|
|
38
|
+
client: _lssm_lib_schema159.EntityRelationField;
|
|
39
|
+
jobs: _lssm_lib_schema159.EntityRelationField;
|
|
40
40
|
}>;
|
|
41
|
-
declare const JobEntity:
|
|
42
|
-
id:
|
|
43
|
-
quoteId:
|
|
44
|
-
clientId:
|
|
45
|
-
title:
|
|
46
|
-
status:
|
|
47
|
-
scheduledAt:
|
|
48
|
-
completedAt:
|
|
49
|
-
assignedTo:
|
|
50
|
-
location:
|
|
51
|
-
notes:
|
|
52
|
-
orgId:
|
|
53
|
-
createdAt:
|
|
54
|
-
updatedAt:
|
|
55
|
-
quote:
|
|
56
|
-
client:
|
|
57
|
-
invoices:
|
|
41
|
+
declare const JobEntity: _lssm_lib_schema159.EntitySpec<{
|
|
42
|
+
id: _lssm_lib_schema159.EntityScalarField;
|
|
43
|
+
quoteId: _lssm_lib_schema159.EntityScalarField;
|
|
44
|
+
clientId: _lssm_lib_schema159.EntityScalarField;
|
|
45
|
+
title: _lssm_lib_schema159.EntityScalarField;
|
|
46
|
+
status: _lssm_lib_schema159.EntityEnumField;
|
|
47
|
+
scheduledAt: _lssm_lib_schema159.EntityScalarField;
|
|
48
|
+
completedAt: _lssm_lib_schema159.EntityScalarField;
|
|
49
|
+
assignedTo: _lssm_lib_schema159.EntityScalarField;
|
|
50
|
+
location: _lssm_lib_schema159.EntityScalarField;
|
|
51
|
+
notes: _lssm_lib_schema159.EntityScalarField;
|
|
52
|
+
orgId: _lssm_lib_schema159.EntityScalarField;
|
|
53
|
+
createdAt: _lssm_lib_schema159.EntityScalarField;
|
|
54
|
+
updatedAt: _lssm_lib_schema159.EntityScalarField;
|
|
55
|
+
quote: _lssm_lib_schema159.EntityRelationField;
|
|
56
|
+
client: _lssm_lib_schema159.EntityRelationField;
|
|
57
|
+
invoices: _lssm_lib_schema159.EntityRelationField;
|
|
58
58
|
}>;
|
|
59
|
-
declare const InvoiceEntity:
|
|
60
|
-
id:
|
|
61
|
-
jobId:
|
|
62
|
-
invoiceNumber:
|
|
63
|
-
amount:
|
|
64
|
-
currency:
|
|
65
|
-
status:
|
|
66
|
-
dueDate:
|
|
67
|
-
issuedAt:
|
|
68
|
-
paidAt:
|
|
69
|
-
orgId:
|
|
70
|
-
notes:
|
|
71
|
-
metadata:
|
|
72
|
-
createdAt:
|
|
73
|
-
updatedAt:
|
|
74
|
-
job:
|
|
75
|
-
payments:
|
|
59
|
+
declare const InvoiceEntity: _lssm_lib_schema159.EntitySpec<{
|
|
60
|
+
id: _lssm_lib_schema159.EntityScalarField;
|
|
61
|
+
jobId: _lssm_lib_schema159.EntityScalarField;
|
|
62
|
+
invoiceNumber: _lssm_lib_schema159.EntityScalarField;
|
|
63
|
+
amount: _lssm_lib_schema159.EntityScalarField;
|
|
64
|
+
currency: _lssm_lib_schema159.EntityScalarField;
|
|
65
|
+
status: _lssm_lib_schema159.EntityEnumField;
|
|
66
|
+
dueDate: _lssm_lib_schema159.EntityScalarField;
|
|
67
|
+
issuedAt: _lssm_lib_schema159.EntityScalarField;
|
|
68
|
+
paidAt: _lssm_lib_schema159.EntityScalarField;
|
|
69
|
+
orgId: _lssm_lib_schema159.EntityScalarField;
|
|
70
|
+
notes: _lssm_lib_schema159.EntityScalarField;
|
|
71
|
+
metadata: _lssm_lib_schema159.EntityScalarField;
|
|
72
|
+
createdAt: _lssm_lib_schema159.EntityScalarField;
|
|
73
|
+
updatedAt: _lssm_lib_schema159.EntityScalarField;
|
|
74
|
+
job: _lssm_lib_schema159.EntityRelationField;
|
|
75
|
+
payments: _lssm_lib_schema159.EntityRelationField;
|
|
76
76
|
}>;
|
|
77
|
-
declare const PaymentEntity:
|
|
78
|
-
id:
|
|
79
|
-
invoiceId:
|
|
80
|
-
amount:
|
|
81
|
-
currency:
|
|
82
|
-
method:
|
|
83
|
-
reference:
|
|
84
|
-
receivedAt:
|
|
85
|
-
orgId:
|
|
86
|
-
createdAt:
|
|
87
|
-
invoice:
|
|
77
|
+
declare const PaymentEntity: _lssm_lib_schema159.EntitySpec<{
|
|
78
|
+
id: _lssm_lib_schema159.EntityScalarField;
|
|
79
|
+
invoiceId: _lssm_lib_schema159.EntityScalarField;
|
|
80
|
+
amount: _lssm_lib_schema159.EntityScalarField;
|
|
81
|
+
currency: _lssm_lib_schema159.EntityScalarField;
|
|
82
|
+
method: _lssm_lib_schema159.EntityEnumField;
|
|
83
|
+
reference: _lssm_lib_schema159.EntityScalarField;
|
|
84
|
+
receivedAt: _lssm_lib_schema159.EntityScalarField;
|
|
85
|
+
orgId: _lssm_lib_schema159.EntityScalarField;
|
|
86
|
+
createdAt: _lssm_lib_schema159.EntityScalarField;
|
|
87
|
+
invoice: _lssm_lib_schema159.EntityRelationField;
|
|
88
88
|
}>;
|
|
89
|
-
declare const serviceBusinessEntities: (
|
|
90
|
-
id:
|
|
91
|
-
name:
|
|
92
|
-
contactEmail:
|
|
93
|
-
phone:
|
|
94
|
-
address:
|
|
95
|
-
industry:
|
|
96
|
-
orgId:
|
|
97
|
-
ownerId:
|
|
98
|
-
metadata:
|
|
99
|
-
createdAt:
|
|
100
|
-
updatedAt:
|
|
101
|
-
quotes:
|
|
102
|
-
jobs:
|
|
103
|
-
}> |
|
|
104
|
-
id:
|
|
105
|
-
clientId:
|
|
106
|
-
title:
|
|
107
|
-
description:
|
|
108
|
-
amount:
|
|
109
|
-
currency:
|
|
110
|
-
status:
|
|
111
|
-
validUntil:
|
|
112
|
-
terms:
|
|
113
|
-
orgId:
|
|
114
|
-
ownerId:
|
|
115
|
-
createdAt:
|
|
116
|
-
updatedAt:
|
|
117
|
-
client:
|
|
118
|
-
jobs:
|
|
119
|
-
}> |
|
|
120
|
-
id:
|
|
121
|
-
quoteId:
|
|
122
|
-
clientId:
|
|
123
|
-
title:
|
|
124
|
-
status:
|
|
125
|
-
scheduledAt:
|
|
126
|
-
completedAt:
|
|
127
|
-
assignedTo:
|
|
128
|
-
location:
|
|
129
|
-
notes:
|
|
130
|
-
orgId:
|
|
131
|
-
createdAt:
|
|
132
|
-
updatedAt:
|
|
133
|
-
quote:
|
|
134
|
-
client:
|
|
135
|
-
invoices:
|
|
136
|
-
}> |
|
|
137
|
-
id:
|
|
138
|
-
jobId:
|
|
139
|
-
invoiceNumber:
|
|
140
|
-
amount:
|
|
141
|
-
currency:
|
|
142
|
-
status:
|
|
143
|
-
dueDate:
|
|
144
|
-
issuedAt:
|
|
145
|
-
paidAt:
|
|
146
|
-
orgId:
|
|
147
|
-
notes:
|
|
148
|
-
metadata:
|
|
149
|
-
createdAt:
|
|
150
|
-
updatedAt:
|
|
151
|
-
job:
|
|
152
|
-
payments:
|
|
153
|
-
}> |
|
|
154
|
-
id:
|
|
155
|
-
invoiceId:
|
|
156
|
-
amount:
|
|
157
|
-
currency:
|
|
158
|
-
method:
|
|
159
|
-
reference:
|
|
160
|
-
receivedAt:
|
|
161
|
-
orgId:
|
|
162
|
-
createdAt:
|
|
163
|
-
invoice:
|
|
89
|
+
declare const serviceBusinessEntities: (_lssm_lib_schema159.EntitySpec<{
|
|
90
|
+
id: _lssm_lib_schema159.EntityScalarField;
|
|
91
|
+
name: _lssm_lib_schema159.EntityScalarField;
|
|
92
|
+
contactEmail: _lssm_lib_schema159.EntityScalarField;
|
|
93
|
+
phone: _lssm_lib_schema159.EntityScalarField;
|
|
94
|
+
address: _lssm_lib_schema159.EntityScalarField;
|
|
95
|
+
industry: _lssm_lib_schema159.EntityScalarField;
|
|
96
|
+
orgId: _lssm_lib_schema159.EntityScalarField;
|
|
97
|
+
ownerId: _lssm_lib_schema159.EntityScalarField;
|
|
98
|
+
metadata: _lssm_lib_schema159.EntityScalarField;
|
|
99
|
+
createdAt: _lssm_lib_schema159.EntityScalarField;
|
|
100
|
+
updatedAt: _lssm_lib_schema159.EntityScalarField;
|
|
101
|
+
quotes: _lssm_lib_schema159.EntityRelationField;
|
|
102
|
+
jobs: _lssm_lib_schema159.EntityRelationField;
|
|
103
|
+
}> | _lssm_lib_schema159.EntitySpec<{
|
|
104
|
+
id: _lssm_lib_schema159.EntityScalarField;
|
|
105
|
+
clientId: _lssm_lib_schema159.EntityScalarField;
|
|
106
|
+
title: _lssm_lib_schema159.EntityScalarField;
|
|
107
|
+
description: _lssm_lib_schema159.EntityScalarField;
|
|
108
|
+
amount: _lssm_lib_schema159.EntityScalarField;
|
|
109
|
+
currency: _lssm_lib_schema159.EntityScalarField;
|
|
110
|
+
status: _lssm_lib_schema159.EntityEnumField;
|
|
111
|
+
validUntil: _lssm_lib_schema159.EntityScalarField;
|
|
112
|
+
terms: _lssm_lib_schema159.EntityScalarField;
|
|
113
|
+
orgId: _lssm_lib_schema159.EntityScalarField;
|
|
114
|
+
ownerId: _lssm_lib_schema159.EntityScalarField;
|
|
115
|
+
createdAt: _lssm_lib_schema159.EntityScalarField;
|
|
116
|
+
updatedAt: _lssm_lib_schema159.EntityScalarField;
|
|
117
|
+
client: _lssm_lib_schema159.EntityRelationField;
|
|
118
|
+
jobs: _lssm_lib_schema159.EntityRelationField;
|
|
119
|
+
}> | _lssm_lib_schema159.EntitySpec<{
|
|
120
|
+
id: _lssm_lib_schema159.EntityScalarField;
|
|
121
|
+
quoteId: _lssm_lib_schema159.EntityScalarField;
|
|
122
|
+
clientId: _lssm_lib_schema159.EntityScalarField;
|
|
123
|
+
title: _lssm_lib_schema159.EntityScalarField;
|
|
124
|
+
status: _lssm_lib_schema159.EntityEnumField;
|
|
125
|
+
scheduledAt: _lssm_lib_schema159.EntityScalarField;
|
|
126
|
+
completedAt: _lssm_lib_schema159.EntityScalarField;
|
|
127
|
+
assignedTo: _lssm_lib_schema159.EntityScalarField;
|
|
128
|
+
location: _lssm_lib_schema159.EntityScalarField;
|
|
129
|
+
notes: _lssm_lib_schema159.EntityScalarField;
|
|
130
|
+
orgId: _lssm_lib_schema159.EntityScalarField;
|
|
131
|
+
createdAt: _lssm_lib_schema159.EntityScalarField;
|
|
132
|
+
updatedAt: _lssm_lib_schema159.EntityScalarField;
|
|
133
|
+
quote: _lssm_lib_schema159.EntityRelationField;
|
|
134
|
+
client: _lssm_lib_schema159.EntityRelationField;
|
|
135
|
+
invoices: _lssm_lib_schema159.EntityRelationField;
|
|
136
|
+
}> | _lssm_lib_schema159.EntitySpec<{
|
|
137
|
+
id: _lssm_lib_schema159.EntityScalarField;
|
|
138
|
+
jobId: _lssm_lib_schema159.EntityScalarField;
|
|
139
|
+
invoiceNumber: _lssm_lib_schema159.EntityScalarField;
|
|
140
|
+
amount: _lssm_lib_schema159.EntityScalarField;
|
|
141
|
+
currency: _lssm_lib_schema159.EntityScalarField;
|
|
142
|
+
status: _lssm_lib_schema159.EntityEnumField;
|
|
143
|
+
dueDate: _lssm_lib_schema159.EntityScalarField;
|
|
144
|
+
issuedAt: _lssm_lib_schema159.EntityScalarField;
|
|
145
|
+
paidAt: _lssm_lib_schema159.EntityScalarField;
|
|
146
|
+
orgId: _lssm_lib_schema159.EntityScalarField;
|
|
147
|
+
notes: _lssm_lib_schema159.EntityScalarField;
|
|
148
|
+
metadata: _lssm_lib_schema159.EntityScalarField;
|
|
149
|
+
createdAt: _lssm_lib_schema159.EntityScalarField;
|
|
150
|
+
updatedAt: _lssm_lib_schema159.EntityScalarField;
|
|
151
|
+
job: _lssm_lib_schema159.EntityRelationField;
|
|
152
|
+
payments: _lssm_lib_schema159.EntityRelationField;
|
|
153
|
+
}> | _lssm_lib_schema159.EntitySpec<{
|
|
154
|
+
id: _lssm_lib_schema159.EntityScalarField;
|
|
155
|
+
invoiceId: _lssm_lib_schema159.EntityScalarField;
|
|
156
|
+
amount: _lssm_lib_schema159.EntityScalarField;
|
|
157
|
+
currency: _lssm_lib_schema159.EntityScalarField;
|
|
158
|
+
method: _lssm_lib_schema159.EntityEnumField;
|
|
159
|
+
reference: _lssm_lib_schema159.EntityScalarField;
|
|
160
|
+
receivedAt: _lssm_lib_schema159.EntityScalarField;
|
|
161
|
+
orgId: _lssm_lib_schema159.EntityScalarField;
|
|
162
|
+
createdAt: _lssm_lib_schema159.EntityScalarField;
|
|
163
|
+
invoice: _lssm_lib_schema159.EntityRelationField;
|
|
164
164
|
}>)[];
|
|
165
165
|
declare const serviceBusinessSchemaContribution: ModuleSchemaContribution;
|
|
166
166
|
//#endregion
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema313 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts12 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/invoice/invoice.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Issue an invoice.
|
|
7
7
|
*/
|
|
8
|
-
declare const IssueInvoiceContract:
|
|
8
|
+
declare const IssueInvoiceContract: _lssm_lib_contracts12.ContractSpec<_lssm_lib_schema313.SchemaModel<{
|
|
9
9
|
jobId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
dueDate: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema313.FieldType<Date, string>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
notes: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
};
|
|
21
21
|
lineItems: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema313.FieldType<unknown, unknown>;
|
|
23
23
|
isOptional: true;
|
|
24
24
|
};
|
|
25
|
-
}>,
|
|
25
|
+
}>, _lssm_lib_schema313.SchemaModel<{
|
|
26
26
|
id: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
jobId: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
invoiceNumber: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
amount: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema313.FieldType<number, number>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
currency: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
status: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
dueDate: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema313.FieldType<Date, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
issuedAt: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema313.FieldType<Date, string>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
paidAt: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema313.FieldType<Date, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
}>, undefined>;
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema328 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/invoice/invoice.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Invoice issued for a job.
|
|
6
6
|
*/
|
|
7
|
-
declare const InvoiceModel:
|
|
7
|
+
declare const InvoiceModel: _lssm_lib_schema328.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema328.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
jobId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema328.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
invoiceNumber: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema328.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
amount: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema328.FieldType<number, number>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
currency: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema328.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
status: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema328.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
dueDate: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema328.FieldType<Date, string>;
|
|
34
34
|
isOptional: true;
|
|
35
35
|
};
|
|
36
36
|
issuedAt: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema328.FieldType<Date, string>;
|
|
38
38
|
isOptional: true;
|
|
39
39
|
};
|
|
40
40
|
paidAt: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema328.FieldType<Date, string>;
|
|
42
42
|
isOptional: true;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
46
46
|
* Input for issuing an invoice.
|
|
47
47
|
*/
|
|
48
|
-
declare const IssueInvoiceInputModel:
|
|
48
|
+
declare const IssueInvoiceInputModel: _lssm_lib_schema328.SchemaModel<{
|
|
49
49
|
jobId: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema328.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
dueDate: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema328.FieldType<Date, string>;
|
|
55
55
|
isOptional: true;
|
|
56
56
|
};
|
|
57
57
|
notes: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema328.FieldType<string, string>;
|
|
59
59
|
isOptional: true;
|
|
60
60
|
};
|
|
61
61
|
lineItems: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema328.FieldType<unknown, unknown>;
|
|
63
63
|
isOptional: true;
|
|
64
64
|
};
|
|
65
65
|
}>;
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema357 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts14 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/job/job.contracts.d.ts
|
|
5
|
-
declare const ListJobsInputModel:
|
|
5
|
+
declare const ListJobsInputModel: _lssm_lib_schema357.SchemaModel<{
|
|
6
6
|
status: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
8
8
|
isOptional: true;
|
|
9
9
|
};
|
|
10
10
|
clientId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
12
12
|
isOptional: true;
|
|
13
13
|
};
|
|
14
14
|
limit: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema357.FieldType<number, number>;
|
|
16
16
|
isOptional: true;
|
|
17
17
|
};
|
|
18
18
|
offset: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema357.FieldType<number, number>;
|
|
20
20
|
isOptional: true;
|
|
21
21
|
};
|
|
22
22
|
}>;
|
|
23
|
-
declare const ListJobsOutputModel:
|
|
23
|
+
declare const ListJobsOutputModel: _lssm_lib_schema357.SchemaModel<{
|
|
24
24
|
jobs: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema357.SchemaModel<{
|
|
26
26
|
id: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
quoteId: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
clientId: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
title: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
status: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
scheduledAt: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
completedAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
assignedTo: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
}>;
|
|
@@ -60,60 +60,60 @@ declare const ListJobsOutputModel: _lssm_lib_schema155.SchemaModel<{
|
|
|
60
60
|
isList: boolean;
|
|
61
61
|
};
|
|
62
62
|
total: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema357.FieldType<number, number>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
|
-
declare const ListJobsOperation:
|
|
67
|
+
declare const ListJobsOperation: _lssm_lib_contracts14.ContractSpec<_lssm_lib_schema357.SchemaModel<{
|
|
68
68
|
status: {
|
|
69
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
70
70
|
isOptional: true;
|
|
71
71
|
};
|
|
72
72
|
clientId: {
|
|
73
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
74
74
|
isOptional: true;
|
|
75
75
|
};
|
|
76
76
|
limit: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema357.FieldType<number, number>;
|
|
78
78
|
isOptional: true;
|
|
79
79
|
};
|
|
80
80
|
offset: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema357.FieldType<number, number>;
|
|
82
82
|
isOptional: true;
|
|
83
83
|
};
|
|
84
|
-
}>,
|
|
84
|
+
}>, _lssm_lib_schema357.SchemaModel<{
|
|
85
85
|
jobs: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema357.SchemaModel<{
|
|
87
87
|
id: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
quoteId: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
clientId: {
|
|
96
|
-
type:
|
|
96
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
title: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
status: {
|
|
104
|
-
type:
|
|
104
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
scheduledAt: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
109
109
|
isOptional: true;
|
|
110
110
|
};
|
|
111
111
|
completedAt: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
113
113
|
isOptional: true;
|
|
114
114
|
};
|
|
115
115
|
assignedTo: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
117
117
|
isOptional: true;
|
|
118
118
|
};
|
|
119
119
|
}>;
|
|
@@ -121,115 +121,115 @@ declare const ListJobsOperation: _lssm_lib_contracts13.ContractSpec<_lssm_lib_sc
|
|
|
121
121
|
isList: boolean;
|
|
122
122
|
};
|
|
123
123
|
total: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema357.FieldType<number, number>;
|
|
125
125
|
isOptional: false;
|
|
126
126
|
};
|
|
127
127
|
}>, undefined>;
|
|
128
128
|
/**
|
|
129
129
|
* Schedule a job.
|
|
130
130
|
*/
|
|
131
|
-
declare const ScheduleJobContract:
|
|
131
|
+
declare const ScheduleJobContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib_schema357.SchemaModel<{
|
|
132
132
|
quoteId: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
scheduledAt: {
|
|
137
|
-
type:
|
|
137
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
138
138
|
isOptional: false;
|
|
139
139
|
};
|
|
140
140
|
assignedTo: {
|
|
141
|
-
type:
|
|
141
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
142
142
|
isOptional: true;
|
|
143
143
|
};
|
|
144
144
|
location: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema357.FieldType<unknown, unknown>;
|
|
146
146
|
isOptional: true;
|
|
147
147
|
};
|
|
148
148
|
title: {
|
|
149
|
-
type:
|
|
149
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
150
150
|
isOptional: true;
|
|
151
151
|
};
|
|
152
|
-
}>,
|
|
152
|
+
}>, _lssm_lib_schema357.SchemaModel<{
|
|
153
153
|
id: {
|
|
154
|
-
type:
|
|
154
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
155
155
|
isOptional: false;
|
|
156
156
|
};
|
|
157
157
|
quoteId: {
|
|
158
|
-
type:
|
|
158
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
159
159
|
isOptional: false;
|
|
160
160
|
};
|
|
161
161
|
clientId: {
|
|
162
|
-
type:
|
|
162
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
title: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
status: {
|
|
170
|
-
type:
|
|
170
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
171
171
|
isOptional: false;
|
|
172
172
|
};
|
|
173
173
|
scheduledAt: {
|
|
174
|
-
type:
|
|
174
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
175
175
|
isOptional: true;
|
|
176
176
|
};
|
|
177
177
|
completedAt: {
|
|
178
|
-
type:
|
|
178
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
179
179
|
isOptional: true;
|
|
180
180
|
};
|
|
181
181
|
assignedTo: {
|
|
182
|
-
type:
|
|
182
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
183
183
|
isOptional: true;
|
|
184
184
|
};
|
|
185
185
|
}>, undefined>;
|
|
186
186
|
/**
|
|
187
187
|
* Complete a job.
|
|
188
188
|
*/
|
|
189
|
-
declare const CompleteJobContract:
|
|
189
|
+
declare const CompleteJobContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib_schema357.SchemaModel<{
|
|
190
190
|
jobId: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
completedAt: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
196
196
|
isOptional: true;
|
|
197
197
|
};
|
|
198
198
|
notes: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
|
-
}>,
|
|
202
|
+
}>, _lssm_lib_schema357.SchemaModel<{
|
|
203
203
|
id: {
|
|
204
|
-
type:
|
|
204
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
205
205
|
isOptional: false;
|
|
206
206
|
};
|
|
207
207
|
quoteId: {
|
|
208
|
-
type:
|
|
208
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
209
209
|
isOptional: false;
|
|
210
210
|
};
|
|
211
211
|
clientId: {
|
|
212
|
-
type:
|
|
212
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
213
213
|
isOptional: false;
|
|
214
214
|
};
|
|
215
215
|
title: {
|
|
216
|
-
type:
|
|
216
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
217
217
|
isOptional: false;
|
|
218
218
|
};
|
|
219
219
|
status: {
|
|
220
|
-
type:
|
|
220
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
222
222
|
};
|
|
223
223
|
scheduledAt: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
225
225
|
isOptional: true;
|
|
226
226
|
};
|
|
227
227
|
completedAt: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema357.FieldType<Date, string>;
|
|
229
229
|
isOptional: true;
|
|
230
230
|
};
|
|
231
231
|
assignedTo: {
|
|
232
|
-
type:
|
|
232
|
+
type: _lssm_lib_schema357.FieldType<string, string>;
|
|
233
233
|
isOptional: true;
|
|
234
234
|
};
|
|
235
235
|
}>, undefined>;
|
package/dist/job/job.schema.d.ts
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema140 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/job/job.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Scheduled job.
|
|
6
6
|
*/
|
|
7
|
-
declare const JobModel:
|
|
7
|
+
declare const JobModel: _lssm_lib_schema140.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
quoteId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
clientId: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
title: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
status: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
scheduledAt: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema140.FieldType<Date, string>;
|
|
30
30
|
isOptional: true;
|
|
31
31
|
};
|
|
32
32
|
completedAt: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema140.FieldType<Date, string>;
|
|
34
34
|
isOptional: true;
|
|
35
35
|
};
|
|
36
36
|
assignedTo: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
38
38
|
isOptional: true;
|
|
39
39
|
};
|
|
40
40
|
}>;
|
|
41
41
|
/**
|
|
42
42
|
* Input for scheduling a job.
|
|
43
43
|
*/
|
|
44
|
-
declare const ScheduleJobInputModel:
|
|
44
|
+
declare const ScheduleJobInputModel: _lssm_lib_schema140.SchemaModel<{
|
|
45
45
|
quoteId: {
|
|
46
|
-
type:
|
|
46
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
scheduledAt: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema140.FieldType<Date, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
assignedTo: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
55
55
|
isOptional: true;
|
|
56
56
|
};
|
|
57
57
|
location: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema140.FieldType<unknown, unknown>;
|
|
59
59
|
isOptional: true;
|
|
60
60
|
};
|
|
61
61
|
title: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
63
63
|
isOptional: true;
|
|
64
64
|
};
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
67
67
|
* Input for completing a job.
|
|
68
68
|
*/
|
|
69
|
-
declare const CompleteJobInputModel:
|
|
69
|
+
declare const CompleteJobInputModel: _lssm_lib_schema140.SchemaModel<{
|
|
70
70
|
jobId: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
completedAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema140.FieldType<Date, string>;
|
|
76
76
|
isOptional: true;
|
|
77
77
|
};
|
|
78
78
|
notes: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema140.FieldType<string, string>;
|
|
80
80
|
isOptional: true;
|
|
81
81
|
};
|
|
82
82
|
}>;
|
|
@@ -13,6 +13,7 @@ const OwnersEnum = {
|
|
|
13
13
|
ProductArtisanos: "product.artisanos",
|
|
14
14
|
PlatformSigil: "platform.sigil",
|
|
15
15
|
PlatformMarketplace: "platform.marketplace",
|
|
16
|
+
PlatformMessaging: "platform.messaging",
|
|
16
17
|
PlatformContent: "platform.content",
|
|
17
18
|
PlatformFeatureFlags: "platform.featureflags",
|
|
18
19
|
PlatformFinance: "platform.finance"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../libs/contracts/dist/ownership.js"],"sourcesContent":["//#region src/ownership.ts\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\nconst Owners = OwnersEnum;\nconst TagsEnum = {\n\tSpots: \"spots\",\n\tCollectivity: \"collectivity\",\n\tMarketplace: \"marketplace\",\n\tSellers: \"sellers\",\n\tAuth: \"auth\",\n\tLogin: \"login\",\n\tSignup: \"signup\",\n\tGuide: \"guide\",\n\tDocs: \"docs\",\n\tI18n: \"i18n\",\n\tIncident: \"incident\",\n\tAutomation: \"automation\",\n\tHygiene: \"hygiene\"\n};\nconst Tags = TagsEnum;\n\n//#endregion\nexport { Owners, OwnersEnum, StabilityEnum, Tags, TagsEnum };"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
|
1
|
+
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../libs/contracts/dist/ownership.js"],"sourcesContent":["//#region src/ownership.ts\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tProductColiving: \"product.coliving\",\n\tProductStrit: \"product.strit\",\n\tProductArtisanos: \"product.artisanos\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformMessaging: \"platform.messaging\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\nconst Owners = OwnersEnum;\nconst TagsEnum = {\n\tSpots: \"spots\",\n\tCollectivity: \"collectivity\",\n\tMarketplace: \"marketplace\",\n\tSellers: \"sellers\",\n\tAuth: \"auth\",\n\tLogin: \"login\",\n\tSignup: \"signup\",\n\tGuide: \"guide\",\n\tDocs: \"docs\",\n\tI18n: \"i18n\",\n\tIncident: \"incident\",\n\tAutomation: \"automation\",\n\tHygiene: \"hygiene\"\n};\nconst Tags = TagsEnum;\n\n//#endregion\nexport { Owners, OwnersEnum, StabilityEnum, Tags, TagsEnum };"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,mBAAmB;CACnB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema343 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts13 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/payment/payment.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Record a payment.
|
|
7
7
|
*/
|
|
8
|
-
declare const RecordPaymentContract:
|
|
8
|
+
declare const RecordPaymentContract: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema343.SchemaModel<{
|
|
9
9
|
invoiceId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema343.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
amount: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema343.FieldType<number, number>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
method: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema343.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
reference: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema343.FieldType<string, string>;
|
|
23
23
|
isOptional: true;
|
|
24
24
|
};
|
|
25
25
|
receivedAt: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema343.FieldType<Date, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
|
-
}>,
|
|
29
|
+
}>, _lssm_lib_schema343.SchemaModel<{
|
|
30
30
|
id: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema343.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
invoiceId: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema343.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
amount: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema343.FieldType<number, number>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
currency: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema343.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
method: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema343.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
reference: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema343.FieldType<string, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
receivedAt: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema343.FieldType<Date, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
}>, undefined>;
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema417 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/payment/payment.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Payment applied to invoice.
|
|
6
6
|
*/
|
|
7
|
-
declare const PaymentModel:
|
|
7
|
+
declare const PaymentModel: _lssm_lib_schema417.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema417.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
invoiceId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema417.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
amount: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema417.FieldType<number, number>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
currency: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema417.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
method: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema417.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
reference: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema417.FieldType<string, string>;
|
|
30
30
|
isOptional: true;
|
|
31
31
|
};
|
|
32
32
|
receivedAt: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema417.FieldType<Date, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
}>;
|
|
37
37
|
/**
|
|
38
38
|
* Input for recording a payment.
|
|
39
39
|
*/
|
|
40
|
-
declare const RecordPaymentInputModel:
|
|
40
|
+
declare const RecordPaymentInputModel: _lssm_lib_schema417.SchemaModel<{
|
|
41
41
|
invoiceId: {
|
|
42
|
-
type:
|
|
42
|
+
type: _lssm_lib_schema417.FieldType<string, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
amount: {
|
|
46
|
-
type:
|
|
46
|
+
type: _lssm_lib_schema417.FieldType<number, number>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
method: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema417.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
reference: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema417.FieldType<string, string>;
|
|
55
55
|
isOptional: true;
|
|
56
56
|
};
|
|
57
57
|
receivedAt: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema417.FieldType<Date, string>;
|
|
59
59
|
isOptional: true;
|
|
60
60
|
};
|
|
61
61
|
}>;
|
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-20251220015515",
|
|
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-20251220015515",
|
|
22
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251220015515",
|
|
23
|
+
"@lssm/lib.bus": "0.0.0-canary-20251220015515",
|
|
24
|
+
"@lssm/lib.identity-rbac": "0.0.0-canary-20251220015515",
|
|
25
|
+
"@lssm/lib.files": "0.0.0-canary-20251220015515",
|
|
26
|
+
"@lssm/lib.jobs": "0.0.0-canary-20251220015515",
|
|
27
|
+
"@lssm/module.audit-trail": "0.0.0-canary-20251220015515",
|
|
28
|
+
"@lssm/module.notifications": "0.0.0-canary-20251220015515",
|
|
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-20251220015515",
|
|
33
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251220015515",
|
|
34
34
|
"typescript": "^5.9.3"
|
|
35
35
|
},
|
|
36
36
|
"exports": {
|