@contractspec/example.service-business-os 1.56.1 → 1.58.0
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/browser/client/client.operations.js +72 -0
- package/dist/browser/client/client.schema.js +31 -0
- package/dist/browser/client/index.js +74 -0
- package/dist/browser/docs/index.js +96 -0
- package/dist/browser/docs/service-business-os.docblock.js +96 -0
- package/dist/browser/entities/index.js +246 -0
- package/dist/browser/events.js +135 -0
- package/dist/browser/example.js +39 -0
- package/dist/browser/handlers/index.js +5 -0
- package/dist/browser/index.js +752 -0
- package/dist/browser/invoice/index.js +77 -0
- package/dist/browser/invoice/invoice.operations.js +75 -0
- package/dist/browser/invoice/invoice.schema.js +34 -0
- package/dist/browser/job/index.js +175 -0
- package/dist/browser/job/job.operations.js +172 -0
- package/dist/browser/job/job.schema.js +41 -0
- package/dist/browser/operations/index.js +506 -0
- package/dist/browser/payment/index.js +69 -0
- package/dist/browser/payment/payment.operations.js +67 -0
- package/dist/browser/payment/payment.schema.js +30 -0
- package/dist/browser/presentations/index.js +13 -0
- package/dist/browser/presentations.js +172 -0
- package/dist/browser/quote/index.js +122 -0
- package/dist/browser/quote/quote.operations.js +119 -0
- package/dist/browser/quote/quote.schema.js +45 -0
- package/dist/browser/service-business-os.capability.js +28 -0
- package/dist/browser/service.feature.js +74 -0
- package/dist/client/client.operations.d.ts +54 -60
- package/dist/client/client.operations.d.ts.map +1 -1
- package/dist/client/client.operations.js +71 -51
- package/dist/client/client.schema.d.ts +54 -59
- package/dist/client/client.schema.d.ts.map +1 -1
- package/dist/client/client.schema.js +30 -75
- package/dist/client/index.d.ts +6 -3
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +74 -3
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +97 -1
- package/dist/docs/service-business-os.docblock.d.ts +2 -1
- package/dist/docs/service-business-os.docblock.d.ts.map +1 -0
- package/dist/docs/service-business-os.docblock.js +52 -64
- package/dist/entities/index.d.ts +156 -161
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +236 -278
- package/dist/events.d.ts +253 -259
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +123 -217
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +37 -50
- package/dist/handlers/index.d.ts +11 -16
- package/dist/handlers/index.d.ts.map +1 -1
- package/dist/handlers/index.js +5 -5
- package/dist/index.d.ts +13 -18
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +752 -18
- package/dist/invoice/index.d.ts +6 -3
- package/dist/invoice/index.d.ts.map +1 -0
- package/dist/invoice/index.js +77 -3
- package/dist/invoice/invoice.operations.d.ts +54 -60
- package/dist/invoice/invoice.operations.d.ts.map +1 -1
- package/dist/invoice/invoice.operations.js +74 -55
- package/dist/invoice/invoice.schema.d.ts +54 -59
- package/dist/invoice/invoice.schema.d.ts.map +1 -1
- package/dist/invoice/invoice.schema.js +33 -75
- package/dist/job/index.d.ts +6 -3
- package/dist/job/index.d.ts.map +1 -0
- package/dist/job/index.js +175 -3
- package/dist/job/job.operations.d.ts +220 -226
- package/dist/job/job.operations.d.ts.map +1 -1
- package/dist/job/job.operations.js +167 -169
- package/dist/job/job.schema.d.ts +67 -72
- package/dist/job/job.schema.d.ts.map +1 -1
- package/dist/job/job.schema.js +39 -95
- package/dist/node/client/client.operations.js +72 -0
- package/dist/node/client/client.schema.js +31 -0
- package/dist/node/client/index.js +74 -0
- package/dist/node/docs/index.js +96 -0
- package/dist/node/docs/service-business-os.docblock.js +96 -0
- package/dist/node/entities/index.js +246 -0
- package/dist/node/events.js +135 -0
- package/dist/node/example.js +39 -0
- package/dist/node/handlers/index.js +5 -0
- package/dist/node/index.js +752 -0
- package/dist/node/invoice/index.js +77 -0
- package/dist/node/invoice/invoice.operations.js +75 -0
- package/dist/node/invoice/invoice.schema.js +34 -0
- package/dist/node/job/index.js +175 -0
- package/dist/node/job/job.operations.js +172 -0
- package/dist/node/job/job.schema.js +41 -0
- package/dist/node/operations/index.js +506 -0
- package/dist/node/payment/index.js +69 -0
- package/dist/node/payment/payment.operations.js +67 -0
- package/dist/node/payment/payment.schema.js +30 -0
- package/dist/node/presentations/index.js +13 -0
- package/dist/node/presentations.js +172 -0
- package/dist/node/quote/index.js +122 -0
- package/dist/node/quote/quote.operations.js +119 -0
- package/dist/node/quote/quote.schema.js +45 -0
- package/dist/node/service-business-os.capability.js +28 -0
- package/dist/node/service.feature.js +74 -0
- package/dist/operations/index.d.ts +6 -16
- package/dist/operations/index.d.ts.map +1 -0
- package/dist/operations/index.js +506 -16
- package/dist/payment/index.d.ts +6 -3
- package/dist/payment/index.d.ts.map +1 -0
- package/dist/payment/index.js +69 -3
- package/dist/payment/payment.operations.d.ts +50 -56
- package/dist/payment/payment.operations.d.ts.map +1 -1
- package/dist/payment/payment.operations.js +66 -51
- package/dist/payment/payment.schema.d.ts +50 -55
- package/dist/payment/payment.schema.d.ts.map +1 -1
- package/dist/payment/payment.schema.js +29 -71
- package/dist/presentations/index.d.ts +1 -4
- package/dist/presentations/index.d.ts.map +1 -1
- package/dist/presentations/index.js +13 -17
- package/dist/presentations.d.ts +7 -12
- package/dist/presentations.d.ts.map +1 -1
- package/dist/presentations.js +166 -172
- package/dist/quote/index.d.ts +6 -3
- package/dist/quote/index.d.ts.map +1 -0
- package/dist/quote/index.js +122 -3
- package/dist/quote/quote.operations.d.ts +120 -126
- package/dist/quote/quote.operations.d.ts.map +1 -1
- package/dist/quote/quote.operations.js +117 -96
- package/dist/quote/quote.schema.d.ts +83 -88
- package/dist/quote/quote.schema.d.ts.map +1 -1
- package/dist/quote/quote.schema.js +43 -111
- package/dist/service-business-os.capability.d.ts +2 -7
- package/dist/service-business-os.capability.d.ts.map +1 -1
- package/dist/service-business-os.capability.js +29 -29
- package/dist/service.feature.d.ts +1 -6
- package/dist/service.feature.d.ts.map +1 -1
- package/dist/service.feature.js +73 -164
- package/package.json +301 -64
- package/dist/client/client.operations.js.map +0 -1
- package/dist/client/client.schema.js.map +0 -1
- package/dist/docs/service-business-os.docblock.js.map +0 -1
- package/dist/entities/index.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/index.js.map +0 -1
- package/dist/invoice/invoice.operations.js.map +0 -1
- package/dist/invoice/invoice.schema.js.map +0 -1
- package/dist/job/job.operations.js.map +0 -1
- package/dist/job/job.schema.js.map +0 -1
- package/dist/payment/payment.operations.js.map +0 -1
- package/dist/payment/payment.schema.js.map +0 -1
- package/dist/presentations/index.js.map +0 -1
- package/dist/presentations.js.map +0 -1
- package/dist/quote/quote.operations.js.map +0 -1
- package/dist/quote/quote.schema.js.map +0 -1
- package/dist/service-business-os.capability.js.map +0 -1
- package/dist/service.feature.js.map +0 -1
package/dist/events.d.ts
CHANGED
|
@@ -1,337 +1,331 @@
|
|
|
1
|
-
|
|
2
|
-
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
3
|
-
|
|
4
|
-
//#region src/events.d.ts
|
|
5
|
-
declare const QuoteSentEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema22.SchemaModel<{
|
|
6
|
-
quoteId: {
|
|
7
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
8
|
-
isOptional: false;
|
|
9
|
-
};
|
|
10
|
-
clientId: {
|
|
11
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
12
|
-
isOptional: false;
|
|
13
|
-
};
|
|
14
|
-
amount: {
|
|
15
|
-
type: _contractspec_lib_schema22.FieldType<number, number>;
|
|
16
|
-
isOptional: false;
|
|
17
|
-
};
|
|
18
|
-
status: {
|
|
19
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
20
|
-
isOptional: false;
|
|
21
|
-
};
|
|
22
|
-
orgId: {
|
|
23
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
24
|
-
isOptional: false;
|
|
25
|
-
};
|
|
26
|
-
occurredAt: {
|
|
27
|
-
type: _contractspec_lib_schema22.FieldType<Date, string>;
|
|
28
|
-
isOptional: false;
|
|
29
|
-
};
|
|
30
|
-
}>>;
|
|
31
|
-
declare const QuoteAcceptedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema22.SchemaModel<{
|
|
32
|
-
quoteId: {
|
|
33
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
34
|
-
isOptional: false;
|
|
35
|
-
};
|
|
36
|
-
clientId: {
|
|
37
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
38
|
-
isOptional: false;
|
|
39
|
-
};
|
|
40
|
-
amount: {
|
|
41
|
-
type: _contractspec_lib_schema22.FieldType<number, number>;
|
|
42
|
-
isOptional: false;
|
|
43
|
-
};
|
|
44
|
-
status: {
|
|
45
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
46
|
-
isOptional: false;
|
|
47
|
-
};
|
|
48
|
-
orgId: {
|
|
49
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
50
|
-
isOptional: false;
|
|
51
|
-
};
|
|
52
|
-
occurredAt: {
|
|
53
|
-
type: _contractspec_lib_schema22.FieldType<Date, string>;
|
|
54
|
-
isOptional: false;
|
|
55
|
-
};
|
|
56
|
-
}>>;
|
|
57
|
-
declare const JobScheduledEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema22.SchemaModel<{
|
|
58
|
-
jobId: {
|
|
59
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
60
|
-
isOptional: false;
|
|
61
|
-
};
|
|
62
|
-
quoteId: {
|
|
63
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
64
|
-
isOptional: true;
|
|
65
|
-
};
|
|
66
|
-
clientId: {
|
|
67
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
68
|
-
isOptional: true;
|
|
69
|
-
};
|
|
70
|
-
status: {
|
|
71
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
72
|
-
isOptional: false;
|
|
73
|
-
};
|
|
74
|
-
scheduledAt: {
|
|
75
|
-
type: _contractspec_lib_schema22.FieldType<Date, string>;
|
|
76
|
-
isOptional: true;
|
|
77
|
-
};
|
|
78
|
-
orgId: {
|
|
79
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
80
|
-
isOptional: false;
|
|
81
|
-
};
|
|
82
|
-
occurredAt: {
|
|
83
|
-
type: _contractspec_lib_schema22.FieldType<Date, string>;
|
|
84
|
-
isOptional: false;
|
|
85
|
-
};
|
|
86
|
-
}>>;
|
|
87
|
-
declare const JobCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema22.SchemaModel<{
|
|
88
|
-
jobId: {
|
|
89
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
90
|
-
isOptional: false;
|
|
91
|
-
};
|
|
92
|
-
quoteId: {
|
|
93
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
94
|
-
isOptional: true;
|
|
95
|
-
};
|
|
96
|
-
clientId: {
|
|
97
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
98
|
-
isOptional: true;
|
|
99
|
-
};
|
|
100
|
-
status: {
|
|
101
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
102
|
-
isOptional: false;
|
|
103
|
-
};
|
|
104
|
-
scheduledAt: {
|
|
105
|
-
type: _contractspec_lib_schema22.FieldType<Date, string>;
|
|
106
|
-
isOptional: true;
|
|
107
|
-
};
|
|
108
|
-
orgId: {
|
|
109
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
110
|
-
isOptional: false;
|
|
111
|
-
};
|
|
112
|
-
occurredAt: {
|
|
113
|
-
type: _contractspec_lib_schema22.FieldType<Date, string>;
|
|
114
|
-
isOptional: false;
|
|
115
|
-
};
|
|
116
|
-
}>>;
|
|
117
|
-
declare const InvoiceIssuedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema22.SchemaModel<{
|
|
118
|
-
invoiceId: {
|
|
119
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
120
|
-
isOptional: false;
|
|
121
|
-
};
|
|
122
|
-
jobId: {
|
|
123
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
124
|
-
isOptional: false;
|
|
125
|
-
};
|
|
126
|
-
amount: {
|
|
127
|
-
type: _contractspec_lib_schema22.FieldType<number, number>;
|
|
128
|
-
isOptional: false;
|
|
129
|
-
};
|
|
130
|
-
status: {
|
|
131
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
132
|
-
isOptional: false;
|
|
133
|
-
};
|
|
134
|
-
orgId: {
|
|
135
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
136
|
-
isOptional: false;
|
|
137
|
-
};
|
|
138
|
-
occurredAt: {
|
|
139
|
-
type: _contractspec_lib_schema22.FieldType<Date, string>;
|
|
140
|
-
isOptional: false;
|
|
141
|
-
};
|
|
142
|
-
}>>;
|
|
143
|
-
declare const PaymentReceivedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema22.SchemaModel<{
|
|
144
|
-
paymentId: {
|
|
145
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
146
|
-
isOptional: false;
|
|
147
|
-
};
|
|
148
|
-
invoiceId: {
|
|
149
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
150
|
-
isOptional: false;
|
|
151
|
-
};
|
|
152
|
-
amount: {
|
|
153
|
-
type: _contractspec_lib_schema22.FieldType<number, number>;
|
|
154
|
-
isOptional: false;
|
|
155
|
-
};
|
|
156
|
-
method: {
|
|
157
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
158
|
-
isOptional: false;
|
|
159
|
-
};
|
|
160
|
-
orgId: {
|
|
161
|
-
type: _contractspec_lib_schema22.FieldType<string, string>;
|
|
162
|
-
isOptional: false;
|
|
163
|
-
};
|
|
164
|
-
receivedAt: {
|
|
165
|
-
type: _contractspec_lib_schema22.FieldType<Date, string>;
|
|
166
|
-
isOptional: false;
|
|
167
|
-
};
|
|
168
|
-
}>>;
|
|
169
|
-
declare const ServiceBusinessEvents: {
|
|
170
|
-
QuoteSentEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema22.SchemaModel<{
|
|
1
|
+
export declare const QuoteSentEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
171
2
|
quoteId: {
|
|
172
|
-
|
|
173
|
-
|
|
3
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
4
|
+
isOptional: false;
|
|
174
5
|
};
|
|
175
6
|
clientId: {
|
|
176
|
-
|
|
177
|
-
|
|
7
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
178
9
|
};
|
|
179
10
|
amount: {
|
|
180
|
-
|
|
181
|
-
|
|
11
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
12
|
+
isOptional: false;
|
|
182
13
|
};
|
|
183
14
|
status: {
|
|
184
|
-
|
|
185
|
-
|
|
15
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
16
|
+
isOptional: false;
|
|
186
17
|
};
|
|
187
18
|
orgId: {
|
|
188
|
-
|
|
189
|
-
|
|
19
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
20
|
+
isOptional: false;
|
|
190
21
|
};
|
|
191
22
|
occurredAt: {
|
|
192
|
-
|
|
193
|
-
|
|
23
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
24
|
+
isOptional: false;
|
|
194
25
|
};
|
|
195
|
-
|
|
196
|
-
|
|
26
|
+
}>>;
|
|
27
|
+
export declare const QuoteAcceptedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
197
28
|
quoteId: {
|
|
198
|
-
|
|
199
|
-
|
|
29
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
30
|
+
isOptional: false;
|
|
200
31
|
};
|
|
201
32
|
clientId: {
|
|
202
|
-
|
|
203
|
-
|
|
33
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
34
|
+
isOptional: false;
|
|
204
35
|
};
|
|
205
36
|
amount: {
|
|
206
|
-
|
|
207
|
-
|
|
37
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
38
|
+
isOptional: false;
|
|
208
39
|
};
|
|
209
40
|
status: {
|
|
210
|
-
|
|
211
|
-
|
|
41
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
42
|
+
isOptional: false;
|
|
212
43
|
};
|
|
213
44
|
orgId: {
|
|
214
|
-
|
|
215
|
-
|
|
45
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
46
|
+
isOptional: false;
|
|
216
47
|
};
|
|
217
48
|
occurredAt: {
|
|
218
|
-
|
|
219
|
-
|
|
49
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
50
|
+
isOptional: false;
|
|
220
51
|
};
|
|
221
|
-
|
|
222
|
-
|
|
52
|
+
}>>;
|
|
53
|
+
export declare const JobScheduledEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
223
54
|
jobId: {
|
|
224
|
-
|
|
225
|
-
|
|
55
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
56
|
+
isOptional: false;
|
|
226
57
|
};
|
|
227
58
|
quoteId: {
|
|
228
|
-
|
|
229
|
-
|
|
59
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
60
|
+
isOptional: true;
|
|
230
61
|
};
|
|
231
62
|
clientId: {
|
|
232
|
-
|
|
233
|
-
|
|
63
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
64
|
+
isOptional: true;
|
|
234
65
|
};
|
|
235
66
|
status: {
|
|
236
|
-
|
|
237
|
-
|
|
67
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
68
|
+
isOptional: false;
|
|
238
69
|
};
|
|
239
70
|
scheduledAt: {
|
|
240
|
-
|
|
241
|
-
|
|
71
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
72
|
+
isOptional: true;
|
|
242
73
|
};
|
|
243
74
|
orgId: {
|
|
244
|
-
|
|
245
|
-
|
|
75
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
76
|
+
isOptional: false;
|
|
246
77
|
};
|
|
247
78
|
occurredAt: {
|
|
248
|
-
|
|
249
|
-
|
|
79
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
80
|
+
isOptional: false;
|
|
250
81
|
};
|
|
251
|
-
|
|
252
|
-
|
|
82
|
+
}>>;
|
|
83
|
+
export declare const JobCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
253
84
|
jobId: {
|
|
254
|
-
|
|
255
|
-
|
|
85
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
86
|
+
isOptional: false;
|
|
256
87
|
};
|
|
257
88
|
quoteId: {
|
|
258
|
-
|
|
259
|
-
|
|
89
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
90
|
+
isOptional: true;
|
|
260
91
|
};
|
|
261
92
|
clientId: {
|
|
262
|
-
|
|
263
|
-
|
|
93
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
94
|
+
isOptional: true;
|
|
264
95
|
};
|
|
265
96
|
status: {
|
|
266
|
-
|
|
267
|
-
|
|
97
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
98
|
+
isOptional: false;
|
|
268
99
|
};
|
|
269
100
|
scheduledAt: {
|
|
270
|
-
|
|
271
|
-
|
|
101
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
102
|
+
isOptional: true;
|
|
272
103
|
};
|
|
273
104
|
orgId: {
|
|
274
|
-
|
|
275
|
-
|
|
105
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
106
|
+
isOptional: false;
|
|
276
107
|
};
|
|
277
108
|
occurredAt: {
|
|
278
|
-
|
|
279
|
-
|
|
109
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
110
|
+
isOptional: false;
|
|
280
111
|
};
|
|
281
|
-
|
|
282
|
-
|
|
112
|
+
}>>;
|
|
113
|
+
export declare const InvoiceIssuedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
283
114
|
invoiceId: {
|
|
284
|
-
|
|
285
|
-
|
|
115
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
116
|
+
isOptional: false;
|
|
286
117
|
};
|
|
287
118
|
jobId: {
|
|
288
|
-
|
|
289
|
-
|
|
119
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
120
|
+
isOptional: false;
|
|
290
121
|
};
|
|
291
122
|
amount: {
|
|
292
|
-
|
|
293
|
-
|
|
123
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
124
|
+
isOptional: false;
|
|
294
125
|
};
|
|
295
126
|
status: {
|
|
296
|
-
|
|
297
|
-
|
|
127
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
128
|
+
isOptional: false;
|
|
298
129
|
};
|
|
299
130
|
orgId: {
|
|
300
|
-
|
|
301
|
-
|
|
131
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
132
|
+
isOptional: false;
|
|
302
133
|
};
|
|
303
134
|
occurredAt: {
|
|
304
|
-
|
|
305
|
-
|
|
135
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
136
|
+
isOptional: false;
|
|
306
137
|
};
|
|
307
|
-
|
|
308
|
-
|
|
138
|
+
}>>;
|
|
139
|
+
export declare const PaymentReceivedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
309
140
|
paymentId: {
|
|
310
|
-
|
|
311
|
-
|
|
141
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
142
|
+
isOptional: false;
|
|
312
143
|
};
|
|
313
144
|
invoiceId: {
|
|
314
|
-
|
|
315
|
-
|
|
145
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
146
|
+
isOptional: false;
|
|
316
147
|
};
|
|
317
148
|
amount: {
|
|
318
|
-
|
|
319
|
-
|
|
149
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
150
|
+
isOptional: false;
|
|
320
151
|
};
|
|
321
152
|
method: {
|
|
322
|
-
|
|
323
|
-
|
|
153
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
154
|
+
isOptional: false;
|
|
324
155
|
};
|
|
325
156
|
orgId: {
|
|
326
|
-
|
|
327
|
-
|
|
157
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
158
|
+
isOptional: false;
|
|
328
159
|
};
|
|
329
160
|
receivedAt: {
|
|
330
|
-
|
|
331
|
-
|
|
161
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
162
|
+
isOptional: false;
|
|
332
163
|
};
|
|
333
|
-
|
|
164
|
+
}>>;
|
|
165
|
+
export declare const ServiceBusinessEvents: {
|
|
166
|
+
QuoteSentEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
167
|
+
quoteId: {
|
|
168
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
169
|
+
isOptional: false;
|
|
170
|
+
};
|
|
171
|
+
clientId: {
|
|
172
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
173
|
+
isOptional: false;
|
|
174
|
+
};
|
|
175
|
+
amount: {
|
|
176
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
177
|
+
isOptional: false;
|
|
178
|
+
};
|
|
179
|
+
status: {
|
|
180
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
181
|
+
isOptional: false;
|
|
182
|
+
};
|
|
183
|
+
orgId: {
|
|
184
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
185
|
+
isOptional: false;
|
|
186
|
+
};
|
|
187
|
+
occurredAt: {
|
|
188
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
189
|
+
isOptional: false;
|
|
190
|
+
};
|
|
191
|
+
}>>;
|
|
192
|
+
QuoteAcceptedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
193
|
+
quoteId: {
|
|
194
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
195
|
+
isOptional: false;
|
|
196
|
+
};
|
|
197
|
+
clientId: {
|
|
198
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
199
|
+
isOptional: false;
|
|
200
|
+
};
|
|
201
|
+
amount: {
|
|
202
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
203
|
+
isOptional: false;
|
|
204
|
+
};
|
|
205
|
+
status: {
|
|
206
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
207
|
+
isOptional: false;
|
|
208
|
+
};
|
|
209
|
+
orgId: {
|
|
210
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
211
|
+
isOptional: false;
|
|
212
|
+
};
|
|
213
|
+
occurredAt: {
|
|
214
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
215
|
+
isOptional: false;
|
|
216
|
+
};
|
|
217
|
+
}>>;
|
|
218
|
+
JobScheduledEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
219
|
+
jobId: {
|
|
220
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
221
|
+
isOptional: false;
|
|
222
|
+
};
|
|
223
|
+
quoteId: {
|
|
224
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
225
|
+
isOptional: true;
|
|
226
|
+
};
|
|
227
|
+
clientId: {
|
|
228
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
229
|
+
isOptional: true;
|
|
230
|
+
};
|
|
231
|
+
status: {
|
|
232
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
233
|
+
isOptional: false;
|
|
234
|
+
};
|
|
235
|
+
scheduledAt: {
|
|
236
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
237
|
+
isOptional: true;
|
|
238
|
+
};
|
|
239
|
+
orgId: {
|
|
240
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
241
|
+
isOptional: false;
|
|
242
|
+
};
|
|
243
|
+
occurredAt: {
|
|
244
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
245
|
+
isOptional: false;
|
|
246
|
+
};
|
|
247
|
+
}>>;
|
|
248
|
+
JobCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
249
|
+
jobId: {
|
|
250
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
251
|
+
isOptional: false;
|
|
252
|
+
};
|
|
253
|
+
quoteId: {
|
|
254
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
255
|
+
isOptional: true;
|
|
256
|
+
};
|
|
257
|
+
clientId: {
|
|
258
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
259
|
+
isOptional: true;
|
|
260
|
+
};
|
|
261
|
+
status: {
|
|
262
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
263
|
+
isOptional: false;
|
|
264
|
+
};
|
|
265
|
+
scheduledAt: {
|
|
266
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
267
|
+
isOptional: true;
|
|
268
|
+
};
|
|
269
|
+
orgId: {
|
|
270
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
271
|
+
isOptional: false;
|
|
272
|
+
};
|
|
273
|
+
occurredAt: {
|
|
274
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
275
|
+
isOptional: false;
|
|
276
|
+
};
|
|
277
|
+
}>>;
|
|
278
|
+
InvoiceIssuedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
279
|
+
invoiceId: {
|
|
280
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
281
|
+
isOptional: false;
|
|
282
|
+
};
|
|
283
|
+
jobId: {
|
|
284
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
285
|
+
isOptional: false;
|
|
286
|
+
};
|
|
287
|
+
amount: {
|
|
288
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
289
|
+
isOptional: false;
|
|
290
|
+
};
|
|
291
|
+
status: {
|
|
292
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
293
|
+
isOptional: false;
|
|
294
|
+
};
|
|
295
|
+
orgId: {
|
|
296
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
297
|
+
isOptional: false;
|
|
298
|
+
};
|
|
299
|
+
occurredAt: {
|
|
300
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
301
|
+
isOptional: false;
|
|
302
|
+
};
|
|
303
|
+
}>>;
|
|
304
|
+
PaymentReceivedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
305
|
+
paymentId: {
|
|
306
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
307
|
+
isOptional: false;
|
|
308
|
+
};
|
|
309
|
+
invoiceId: {
|
|
310
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
311
|
+
isOptional: false;
|
|
312
|
+
};
|
|
313
|
+
amount: {
|
|
314
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
315
|
+
isOptional: false;
|
|
316
|
+
};
|
|
317
|
+
method: {
|
|
318
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
319
|
+
isOptional: false;
|
|
320
|
+
};
|
|
321
|
+
orgId: {
|
|
322
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
323
|
+
isOptional: false;
|
|
324
|
+
};
|
|
325
|
+
receivedAt: {
|
|
326
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
327
|
+
isOptional: false;
|
|
328
|
+
};
|
|
329
|
+
}>>;
|
|
334
330
|
};
|
|
335
|
-
//#endregion
|
|
336
|
-
export { InvoiceIssuedEvent, JobCompletedEvent, JobScheduledEvent, PaymentReceivedEvent, QuoteAcceptedEvent, QuoteSentEvent, ServiceBusinessEvents };
|
|
337
331
|
//# sourceMappingURL=events.d.ts.map
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;GAUzB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;GAU7B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU5B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;GAU7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;GAU/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOjC,CAAC"}
|