@contractspec/example.service-business-os 1.44.1 → 1.45.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/client/client.operations.d.ts +17 -17
- package/dist/client/client.operations.js +1 -1
- package/dist/client/client.operations.js.map +1 -1
- package/dist/client/client.schema.d.ts +16 -16
- package/dist/entities/index.d.ts +155 -155
- package/dist/events.d.ts +89 -89
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +6 -6
- package/dist/events.js.map +1 -1
- package/dist/example.d.ts +3 -33
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +16 -11
- package/dist/example.js.map +1 -1
- package/dist/invoice/invoice.operations.d.ts +17 -17
- package/dist/invoice/invoice.operations.d.ts.map +1 -1
- package/dist/invoice/invoice.operations.js +1 -1
- package/dist/invoice/invoice.operations.js.map +1 -1
- package/dist/invoice/invoice.schema.d.ts +16 -16
- package/dist/job/job.operations.d.ts +61 -61
- package/dist/job/job.operations.js +3 -3
- package/dist/job/job.operations.js.map +1 -1
- package/dist/job/job.schema.d.ts +20 -20
- package/dist/payment/payment.operations.d.ts +15 -15
- package/dist/payment/payment.operations.js +1 -1
- package/dist/payment/payment.operations.js.map +1 -1
- package/dist/payment/payment.schema.d.ts +15 -15
- package/dist/presentations.js +7 -7
- package/dist/presentations.js.map +1 -1
- package/dist/quote/quote.operations.d.ts +34 -34
- package/dist/quote/quote.operations.js +2 -2
- package/dist/quote/quote.operations.js.map +1 -1
- package/dist/quote/quote.schema.d.ts +24 -24
- package/dist/quote/quote.schema.d.ts.map +1 -1
- package/dist/service.feature.js +32 -32
- package/dist/service.feature.js.map +1 -1
- package/package.json +11 -11
package/dist/events.d.ts
CHANGED
|
@@ -1,333 +1,333 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
2
2
|
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const QuoteSentEvent: _contractspec_lib_contracts0.EventSpec<
|
|
5
|
+
declare const QuoteSentEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
6
6
|
quoteId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
clientId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
amount: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
status: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
orgId: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
occurredAt: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
}>>;
|
|
31
|
-
declare const QuoteAcceptedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
31
|
+
declare const QuoteAcceptedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
32
32
|
quoteId: {
|
|
33
|
-
type:
|
|
33
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
clientId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
amount: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
status: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
orgId: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
occurredAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
}>>;
|
|
57
|
-
declare const JobScheduledEvent: _contractspec_lib_contracts0.EventSpec<
|
|
57
|
+
declare const JobScheduledEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
58
58
|
jobId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
quoteId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
clientId: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
70
|
status: {
|
|
71
|
-
type:
|
|
71
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
scheduledAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
76
76
|
isOptional: true;
|
|
77
77
|
};
|
|
78
78
|
orgId: {
|
|
79
|
-
type:
|
|
79
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
occurredAt: {
|
|
83
|
-
type:
|
|
83
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const JobCompletedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
87
|
+
declare const JobCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
88
88
|
jobId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
quoteId: {
|
|
93
|
-
type:
|
|
93
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
clientId: {
|
|
97
|
-
type:
|
|
97
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
status: {
|
|
101
|
-
type:
|
|
101
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
scheduledAt: {
|
|
105
|
-
type:
|
|
105
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
orgId: {
|
|
109
|
-
type:
|
|
109
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
occurredAt: {
|
|
113
|
-
type:
|
|
113
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
}>>;
|
|
117
|
-
declare const InvoiceIssuedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
117
|
+
declare const InvoiceIssuedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
118
118
|
invoiceId: {
|
|
119
|
-
type:
|
|
119
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
jobId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
amount: {
|
|
127
|
-
type:
|
|
127
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
status: {
|
|
131
|
-
type:
|
|
131
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
orgId: {
|
|
135
|
-
type:
|
|
135
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
occurredAt: {
|
|
139
|
-
type:
|
|
139
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
}>>;
|
|
143
|
-
declare const PaymentReceivedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
143
|
+
declare const PaymentReceivedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
144
144
|
paymentId: {
|
|
145
|
-
type:
|
|
145
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
146
146
|
isOptional: false;
|
|
147
147
|
};
|
|
148
148
|
invoiceId: {
|
|
149
|
-
type:
|
|
149
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
150
150
|
isOptional: false;
|
|
151
151
|
};
|
|
152
152
|
amount: {
|
|
153
|
-
type:
|
|
153
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
method: {
|
|
157
|
-
type:
|
|
157
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
orgId: {
|
|
161
|
-
type:
|
|
161
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
receivedAt: {
|
|
165
|
-
type:
|
|
165
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
}>>;
|
|
169
169
|
declare const ServiceBusinessEvents: {
|
|
170
|
-
QuoteSentEvent: _contractspec_lib_contracts0.EventSpec<
|
|
170
|
+
QuoteSentEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
171
171
|
quoteId: {
|
|
172
|
-
type:
|
|
172
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
173
173
|
isOptional: false;
|
|
174
174
|
};
|
|
175
175
|
clientId: {
|
|
176
|
-
type:
|
|
176
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
177
177
|
isOptional: false;
|
|
178
178
|
};
|
|
179
179
|
amount: {
|
|
180
|
-
type:
|
|
180
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
181
181
|
isOptional: false;
|
|
182
182
|
};
|
|
183
183
|
status: {
|
|
184
|
-
type:
|
|
184
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
orgId: {
|
|
188
|
-
type:
|
|
188
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
189
189
|
isOptional: false;
|
|
190
190
|
};
|
|
191
191
|
occurredAt: {
|
|
192
|
-
type:
|
|
192
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
193
193
|
isOptional: false;
|
|
194
194
|
};
|
|
195
195
|
}>>;
|
|
196
|
-
QuoteAcceptedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
196
|
+
QuoteAcceptedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
197
197
|
quoteId: {
|
|
198
|
-
type:
|
|
198
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
199
199
|
isOptional: false;
|
|
200
200
|
};
|
|
201
201
|
clientId: {
|
|
202
|
-
type:
|
|
202
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
203
203
|
isOptional: false;
|
|
204
204
|
};
|
|
205
205
|
amount: {
|
|
206
|
-
type:
|
|
206
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
207
207
|
isOptional: false;
|
|
208
208
|
};
|
|
209
209
|
status: {
|
|
210
|
-
type:
|
|
210
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
211
211
|
isOptional: false;
|
|
212
212
|
};
|
|
213
213
|
orgId: {
|
|
214
|
-
type:
|
|
214
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
215
215
|
isOptional: false;
|
|
216
216
|
};
|
|
217
217
|
occurredAt: {
|
|
218
|
-
type:
|
|
218
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
219
219
|
isOptional: false;
|
|
220
220
|
};
|
|
221
221
|
}>>;
|
|
222
|
-
JobScheduledEvent: _contractspec_lib_contracts0.EventSpec<
|
|
222
|
+
JobScheduledEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
223
223
|
jobId: {
|
|
224
|
-
type:
|
|
224
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
227
|
quoteId: {
|
|
228
|
-
type:
|
|
228
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
229
229
|
isOptional: true;
|
|
230
230
|
};
|
|
231
231
|
clientId: {
|
|
232
|
-
type:
|
|
232
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
233
233
|
isOptional: true;
|
|
234
234
|
};
|
|
235
235
|
status: {
|
|
236
|
-
type:
|
|
236
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
scheduledAt: {
|
|
240
|
-
type:
|
|
240
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
241
241
|
isOptional: true;
|
|
242
242
|
};
|
|
243
243
|
orgId: {
|
|
244
|
-
type:
|
|
244
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
occurredAt: {
|
|
248
|
-
type:
|
|
248
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
}>>;
|
|
252
|
-
JobCompletedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
252
|
+
JobCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
253
253
|
jobId: {
|
|
254
|
-
type:
|
|
254
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
255
255
|
isOptional: false;
|
|
256
256
|
};
|
|
257
257
|
quoteId: {
|
|
258
|
-
type:
|
|
258
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
259
259
|
isOptional: true;
|
|
260
260
|
};
|
|
261
261
|
clientId: {
|
|
262
|
-
type:
|
|
262
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
263
263
|
isOptional: true;
|
|
264
264
|
};
|
|
265
265
|
status: {
|
|
266
|
-
type:
|
|
266
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
scheduledAt: {
|
|
270
|
-
type:
|
|
270
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
271
271
|
isOptional: true;
|
|
272
272
|
};
|
|
273
273
|
orgId: {
|
|
274
|
-
type:
|
|
274
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
occurredAt: {
|
|
278
|
-
type:
|
|
278
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
279
279
|
isOptional: false;
|
|
280
280
|
};
|
|
281
281
|
}>>;
|
|
282
|
-
InvoiceIssuedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
282
|
+
InvoiceIssuedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
283
283
|
invoiceId: {
|
|
284
|
-
type:
|
|
284
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
285
285
|
isOptional: false;
|
|
286
286
|
};
|
|
287
287
|
jobId: {
|
|
288
|
-
type:
|
|
288
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
289
289
|
isOptional: false;
|
|
290
290
|
};
|
|
291
291
|
amount: {
|
|
292
|
-
type:
|
|
292
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
293
293
|
isOptional: false;
|
|
294
294
|
};
|
|
295
295
|
status: {
|
|
296
|
-
type:
|
|
296
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
297
297
|
isOptional: false;
|
|
298
298
|
};
|
|
299
299
|
orgId: {
|
|
300
|
-
type:
|
|
300
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
301
301
|
isOptional: false;
|
|
302
302
|
};
|
|
303
303
|
occurredAt: {
|
|
304
|
-
type:
|
|
304
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
305
305
|
isOptional: false;
|
|
306
306
|
};
|
|
307
307
|
}>>;
|
|
308
|
-
PaymentReceivedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
308
|
+
PaymentReceivedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
309
309
|
paymentId: {
|
|
310
|
-
type:
|
|
310
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
311
311
|
isOptional: false;
|
|
312
312
|
};
|
|
313
313
|
invoiceId: {
|
|
314
|
-
type:
|
|
314
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
315
315
|
isOptional: false;
|
|
316
316
|
};
|
|
317
317
|
amount: {
|
|
318
|
-
type:
|
|
318
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
319
319
|
isOptional: false;
|
|
320
320
|
};
|
|
321
321
|
method: {
|
|
322
|
-
type:
|
|
322
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
323
323
|
isOptional: false;
|
|
324
324
|
};
|
|
325
325
|
orgId: {
|
|
326
|
-
type:
|
|
326
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
327
327
|
isOptional: false;
|
|
328
328
|
};
|
|
329
329
|
receivedAt: {
|
|
330
|
-
type:
|
|
330
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
331
331
|
isOptional: false;
|
|
332
332
|
};
|
|
333
333
|
}>>;
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAwDa,gBAAc,4BAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAwDa,gBAAc,4BAAA,CAAA,oCAAA;;UAUzB,yBAAA,CAAA;;EAVW,CAAA;EAUX,QAAA,EAAA;;;;;;;;EAVyB,MAAA,EAAA;IAAA,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYd,UAAA,EAAA,KAUX;EAAA,CAAA;;;;;;;;EAV6B,CAAA;CAAA,CAAA,CAAA;AAYlB,cAZA,kBAsBX,EAtB6B,4BAAA,CAAA,SAsB7B,2BAtB6B,WAsB7B,CAAA;EAAA,OAAA,EAAA;UAZA,yBAAA,CAAA;;;;;;;;6CAE4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAYjB,MAAA,EAAA;IAUX,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;EAV4B,CAAA;CAAA,CAAA,CAAA;AAYjB,cAxBA,iBAkCX,EAlC4B,4BAAA,CAAA,SAkC5B,2BAlC4B,WAkC5B,CAAA;EAAA,KAAA,EAAA;UAxBA,yBAAA,CAAA;;;;;;;EAc6B,QAAA,EAAA;IAAA,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYlB,UAAA,EAAA,IAAA;EAUX,CAAA;;;;;;;;EAV+B,CAAA;EAAA,KAAA,EAAA;IAYpB,IAAA,qCAOZ,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;cA3CY,mBAAiB,4BAAA,CAAA,oCAAA;;UAU5B,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,oBAAkB,4BAAA,CAAA,oCAAA;;UAU7B,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW,sBAAoB,4BAAA,CAAA,oCAAA;;UAU/B,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW;;;YAOZ,yBAAA,CAAA"}
|
package/dist/events.js
CHANGED
|
@@ -129,7 +129,7 @@ const PaymentEventPayload = defineSchemaModel({
|
|
|
129
129
|
const QuoteSentEvent = defineEvent({
|
|
130
130
|
meta: {
|
|
131
131
|
key: "service.quote.sent",
|
|
132
|
-
version: 1,
|
|
132
|
+
version: "1.0.0",
|
|
133
133
|
description: "A quote was sent to the client.",
|
|
134
134
|
stability: "stable",
|
|
135
135
|
owners: ["@service-os"],
|
|
@@ -144,7 +144,7 @@ const QuoteSentEvent = defineEvent({
|
|
|
144
144
|
const QuoteAcceptedEvent = defineEvent({
|
|
145
145
|
meta: {
|
|
146
146
|
key: "service.quote.accepted",
|
|
147
|
-
version: 1,
|
|
147
|
+
version: "1.0.0",
|
|
148
148
|
description: "A quote was accepted.",
|
|
149
149
|
stability: "stable",
|
|
150
150
|
owners: ["@service-os"],
|
|
@@ -159,7 +159,7 @@ const QuoteAcceptedEvent = defineEvent({
|
|
|
159
159
|
const JobScheduledEvent = defineEvent({
|
|
160
160
|
meta: {
|
|
161
161
|
key: "service.job.scheduled",
|
|
162
|
-
version: 1,
|
|
162
|
+
version: "1.0.0",
|
|
163
163
|
description: "A job was scheduled.",
|
|
164
164
|
stability: "stable",
|
|
165
165
|
owners: ["@service-os"],
|
|
@@ -174,7 +174,7 @@ const JobScheduledEvent = defineEvent({
|
|
|
174
174
|
const JobCompletedEvent = defineEvent({
|
|
175
175
|
meta: {
|
|
176
176
|
key: "service.job.completed",
|
|
177
|
-
version: 1,
|
|
177
|
+
version: "1.0.0",
|
|
178
178
|
description: "A job was completed.",
|
|
179
179
|
stability: "stable",
|
|
180
180
|
owners: ["@service-os"],
|
|
@@ -189,7 +189,7 @@ const JobCompletedEvent = defineEvent({
|
|
|
189
189
|
const InvoiceIssuedEvent = defineEvent({
|
|
190
190
|
meta: {
|
|
191
191
|
key: "service.invoice.issued",
|
|
192
|
-
version: 1,
|
|
192
|
+
version: "1.0.0",
|
|
193
193
|
description: "An invoice was issued.",
|
|
194
194
|
stability: "stable",
|
|
195
195
|
owners: ["@service-os"],
|
|
@@ -204,7 +204,7 @@ const InvoiceIssuedEvent = defineEvent({
|
|
|
204
204
|
const PaymentReceivedEvent = defineEvent({
|
|
205
205
|
meta: {
|
|
206
206
|
key: "service.payment.received",
|
|
207
|
-
version: 1,
|
|
207
|
+
version: "1.0.0",
|
|
208
208
|
description: "A payment was recorded.",
|
|
209
209
|
stability: "stable",
|
|
210
210
|
owners: ["@service-os"],
|
package/dist/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\nconst QuoteEventPayload = defineSchemaModel({\n name: 'QuoteEventPayload',\n description: 'Event payload for quote lifecycle',\n fields: {\n quoteId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n clientId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n occurredAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst JobEventPayload = defineSchemaModel({\n name: 'JobEventPayload',\n description: 'Event payload for job lifecycle',\n fields: {\n jobId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n quoteId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n clientId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n scheduledAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n occurredAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst InvoiceEventPayload = defineSchemaModel({\n name: 'InvoiceEventPayload',\n description: 'Event payload for invoices',\n fields: {\n invoiceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jobId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n occurredAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst PaymentEventPayload = defineSchemaModel({\n name: 'PaymentEventPayload',\n description: 'Event payload for payments',\n fields: {\n paymentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n invoiceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n method: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n receivedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const QuoteSentEvent = defineEvent({\n meta: {\n key: 'service.quote.sent',\n version: 1,\n description: 'A quote was sent to the client.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'quote', 'sent'],\n },\n payload: QuoteEventPayload,\n});\n\nexport const QuoteAcceptedEvent = defineEvent({\n meta: {\n key: 'service.quote.accepted',\n version: 1,\n description: 'A quote was accepted.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'quote', 'accepted'],\n },\n payload: QuoteEventPayload,\n});\n\nexport const JobScheduledEvent = defineEvent({\n meta: {\n key: 'service.job.scheduled',\n version: 1,\n description: 'A job was scheduled.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'job', 'scheduled'],\n },\n payload: JobEventPayload,\n});\n\nexport const JobCompletedEvent = defineEvent({\n meta: {\n key: 'service.job.completed',\n version: 1,\n description: 'A job was completed.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'job', 'completed'],\n },\n payload: JobEventPayload,\n});\n\nexport const InvoiceIssuedEvent = defineEvent({\n meta: {\n key: 'service.invoice.issued',\n version: 1,\n description: 'An invoice was issued.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'invoice', 'issued'],\n },\n payload: InvoiceEventPayload,\n});\n\nexport const PaymentReceivedEvent = defineEvent({\n meta: {\n key: 'service.payment.received',\n version: 1,\n description: 'A payment was recorded.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'payment', 'received'],\n },\n payload: PaymentEventPayload,\n});\n\nexport const ServiceB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Q,CAAC,cAAc;EACvB,MAAM;GAAC;GAAW;GAAO;GAAY;EACtC;CACD,SAAS;CACV,CAAC;AAEF,MAAa,qBAAqB,YAAY;CAC5C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAW;GAAW;GAAS;EACvC;CACD,SAAS;CACV,CAAC;AAEF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAW;GAAW;GAAW;EACzC;CACD,SAAS;CACV,CAAC;AAEF,MAAa,wBAAwB;CACnC;CACA;CACA;CACA;CACA;CACA;CACD"}
|
|
1
|
+
{"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\nconst QuoteEventPayload = defineSchemaModel({\n name: 'QuoteEventPayload',\n description: 'Event payload for quote lifecycle',\n fields: {\n quoteId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n clientId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n occurredAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst JobEventPayload = defineSchemaModel({\n name: 'JobEventPayload',\n description: 'Event payload for job lifecycle',\n fields: {\n jobId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n quoteId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n clientId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n scheduledAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n occurredAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst InvoiceEventPayload = defineSchemaModel({\n name: 'InvoiceEventPayload',\n description: 'Event payload for invoices',\n fields: {\n invoiceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jobId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n occurredAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst PaymentEventPayload = defineSchemaModel({\n name: 'PaymentEventPayload',\n description: 'Event payload for payments',\n fields: {\n paymentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n invoiceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n method: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n receivedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const QuoteSentEvent = defineEvent({\n meta: {\n key: 'service.quote.sent',\n version: '1.0.0',\n description: 'A quote was sent to the client.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'quote', 'sent'],\n },\n payload: QuoteEventPayload,\n});\n\nexport const QuoteAcceptedEvent = defineEvent({\n meta: {\n key: 'service.quote.accepted',\n version: '1.0.0',\n description: 'A quote was accepted.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'quote', 'accepted'],\n },\n payload: QuoteEventPayload,\n});\n\nexport const JobScheduledEvent = defineEvent({\n meta: {\n key: 'service.job.scheduled',\n version: '1.0.0',\n description: 'A job was scheduled.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'job', 'scheduled'],\n },\n payload: JobEventPayload,\n});\n\nexport const JobCompletedEvent = defineEvent({\n meta: {\n key: 'service.job.completed',\n version: '1.0.0',\n description: 'A job was completed.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'job', 'completed'],\n },\n payload: JobEventPayload,\n});\n\nexport const InvoiceIssuedEvent = defineEvent({\n meta: {\n key: 'service.invoice.issued',\n version: '1.0.0',\n description: 'An invoice was issued.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'invoice', 'issued'],\n },\n payload: InvoiceEventPayload,\n});\n\nexport const PaymentReceivedEvent = defineEvent({\n meta: {\n key: 'service.payment.received',\n version: '1.0.0',\n description: 'A payment was recorded.',\n stability: 'stable',\n owners: ['@service-os'],\n tags: ['service', 'payment', 'received'],\n },\n payload: PaymentEventPayload,\n});\n\nexport const ServiceBusinessEvents = {\n QuoteSentEvent,\n QuoteAcceptedEvent,\n JobScheduledEvent,\n JobCompletedEvent,\n InvoiceIssuedEvent,\n PaymentReceivedEvent,\n};\n"],"mappings":";;;;AAGA,MAAM,oBAAoB,kBAAkB;CAC1C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,UAAU;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,QAAQ;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EACpE,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,YAAY;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EACnE;CACF,CAAC;AAEF,MAAM,kBAAkB,kBAAkB;CACxC,MAAM;CACN,aAAa;CACb,QAAQ;EACN,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YA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,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAW;GAAS;GAAO;EACnC;CACD,SAAS;CACV,CAAC;AAEF,MAAa,qBAAqB,YAAY;CAC5C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAW;GAAS;GAAW;EACvC;CACD,SAAS;CACV,CAAC;AAEF,MAAa,oBAAoB,YAAY;CAC3C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAW;GAAO;GAAY;EACtC;CACD,SAAS;CACV,CAAC;AAEF,MAAa,oBAAoB,YAAY;CAC3C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAW;GAAO;GAAY;EACtC;CACD,SAAS;CACV,CAAC;AAEF,MAAa,qBAAqB,YAAY;CAC5C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAW;GAAW;GAAS;EACvC;CACD,SAAS;CACV,CAAC;AAEF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,cAAc;EACvB,MAAM;GAAC;GAAW;GAAW;GAAW;EACzC;CACD,SAAS;CACV,CAAC;AAEF,MAAa,wBAAwB;CACnC;CACA;CACA;CACA;CACA;CACA;CACD"}
|
package/dist/example.d.ts
CHANGED
|
@@ -1,37 +1,7 @@
|
|
|
1
|
+
import { ExampleSpec } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
1
3
|
//#region src/example.d.ts
|
|
2
|
-
declare const example:
|
|
3
|
-
readonly id: "service-business-os";
|
|
4
|
-
readonly title: "Service Business OS";
|
|
5
|
-
readonly summary: "Service business operating system: jobs, clients, scheduling, invoicing, and ops dashboards.";
|
|
6
|
-
readonly tags: readonly ["service-business", "jobs", "scheduling", "invoicing"];
|
|
7
|
-
readonly kind: "template";
|
|
8
|
-
readonly visibility: "public";
|
|
9
|
-
readonly docs: {
|
|
10
|
-
readonly rootDocId: "docs.examples.service-business-os";
|
|
11
|
-
};
|
|
12
|
-
readonly entrypoints: {
|
|
13
|
-
readonly packageName: "@contractspec/example.service-business-os";
|
|
14
|
-
readonly feature: "./feature";
|
|
15
|
-
readonly contracts: "./contracts";
|
|
16
|
-
readonly presentations: "./presentations";
|
|
17
|
-
readonly handlers: "./handlers";
|
|
18
|
-
readonly docs: "./docs";
|
|
19
|
-
};
|
|
20
|
-
readonly surfaces: {
|
|
21
|
-
readonly templates: true;
|
|
22
|
-
readonly sandbox: {
|
|
23
|
-
readonly enabled: true;
|
|
24
|
-
readonly modes: readonly ["playground", "specs", "builder", "markdown", "evolution"];
|
|
25
|
-
};
|
|
26
|
-
readonly studio: {
|
|
27
|
-
readonly enabled: true;
|
|
28
|
-
readonly installable: true;
|
|
29
|
-
};
|
|
30
|
-
readonly mcp: {
|
|
31
|
-
readonly enabled: true;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
4
|
+
declare const example: ExampleSpec;
|
|
35
5
|
//#endregion
|
|
36
6
|
export { example as default };
|
|
37
7
|
//# sourceMappingURL=example.d.ts.map
|
package/dist/example.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
|
package/dist/example.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
//#region src/example.ts
|
|
2
2
|
const example = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
meta: {
|
|
4
|
+
key: "service-business-os",
|
|
5
|
+
version: "1.0.0",
|
|
6
|
+
title: "Service Business OS",
|
|
7
|
+
description: "Service business operating system: jobs, clients, scheduling, invoicing, and ops dashboards.",
|
|
8
|
+
kind: "template",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
stability: "experimental",
|
|
11
|
+
owners: ["@platform.core"],
|
|
12
|
+
tags: [
|
|
13
|
+
"service-business",
|
|
14
|
+
"jobs",
|
|
15
|
+
"scheduling",
|
|
16
|
+
"invoicing"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
14
19
|
docs: { rootDocId: "docs.examples.service-business-os" },
|
|
15
20
|
entrypoints: {
|
|
16
21
|
packageName: "@contractspec/example.service-business-os",
|
package/dist/example.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'service-business-os',\n version: '1.0.0',\n title: 'Service Business OS',\n description:\n 'Service business operating system: jobs, clients, scheduling, invoicing, and ops dashboards.',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['service-business', 'jobs', 'scheduling', 'invoicing'],\n },\n docs: {\n rootDocId: 'docs.examples.service-business-os',\n },\n entrypoints: {\n packageName: '@contractspec/example.service-business-os',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAoB;GAAQ;GAAc;GAAY;EAC9D;CACD,MAAM,EACJ,WAAW,qCACZ;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
|