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