@contractspec/example.service-business-os 1.62.0 → 2.1.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 +1 -1
- package/dist/browser/client/index.js +1 -1
- package/dist/browser/docs/index.js +1 -1
- package/dist/browser/docs/service-business-os.docblock.js +1 -1
- package/dist/browser/events.js +1 -1
- package/dist/browser/example.js +1 -1
- package/dist/browser/index.js +10 -7
- package/dist/browser/invoice/index.js +1 -1
- package/dist/browser/invoice/invoice.operations.js +1 -1
- package/dist/browser/job/index.js +1 -1
- package/dist/browser/job/job.operations.js +1 -1
- package/dist/browser/operations/index.js +5 -5
- package/dist/browser/payment/index.js +1 -1
- package/dist/browser/payment/payment.operations.js +1 -1
- package/dist/browser/presentations.js +4 -1
- package/dist/browser/quote/index.js +1 -1
- package/dist/browser/quote/quote.operations.js +1 -1
- package/dist/browser/service-business-os.capability.js +4 -1
- package/dist/browser/service.feature.js +1 -1
- package/dist/client/client.operations.d.ts +1 -2
- package/dist/client/client.operations.js +1 -1
- package/dist/client/client.schema.d.ts +0 -1
- package/dist/client/index.d.ts +0 -1
- package/dist/client/index.js +1 -1
- package/dist/docs/index.d.ts +0 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/service-business-os.docblock.d.ts +0 -1
- package/dist/docs/service-business-os.docblock.js +1 -1
- package/dist/entities/index.d.ts +0 -1
- package/dist/events.d.ts +12 -13
- package/dist/events.js +1 -1
- package/dist/example.d.ts +1 -2
- package/dist/example.js +1 -1
- package/dist/handlers/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +10 -7
- package/dist/invoice/index.d.ts +0 -1
- package/dist/invoice/index.js +1 -1
- package/dist/invoice/invoice.operations.d.ts +1 -2
- package/dist/invoice/invoice.operations.js +1 -1
- package/dist/invoice/invoice.schema.d.ts +0 -1
- package/dist/job/index.d.ts +0 -1
- package/dist/job/index.js +1 -1
- package/dist/job/job.operations.d.ts +3 -4
- package/dist/job/job.operations.js +1 -1
- package/dist/job/job.schema.d.ts +0 -1
- package/dist/node/client/client.operations.js +1 -1
- package/dist/node/client/index.js +1 -1
- package/dist/node/docs/index.js +1 -1
- package/dist/node/docs/service-business-os.docblock.js +1 -1
- package/dist/node/events.js +1 -1
- package/dist/node/example.js +1 -1
- package/dist/node/index.js +10 -7
- package/dist/node/invoice/index.js +1 -1
- package/dist/node/invoice/invoice.operations.js +1 -1
- package/dist/node/job/index.js +1 -1
- package/dist/node/job/job.operations.js +1 -1
- package/dist/node/operations/index.js +5 -5
- package/dist/node/payment/index.js +1 -1
- package/dist/node/payment/payment.operations.js +1 -1
- package/dist/node/presentations.js +4 -1
- package/dist/node/quote/index.js +1 -1
- package/dist/node/quote/quote.operations.js +1 -1
- package/dist/node/service-business-os.capability.js +4 -1
- package/dist/node/service.feature.js +1 -1
- package/dist/operations/index.d.ts +0 -1
- package/dist/operations/index.js +5 -5
- package/dist/payment/index.d.ts +0 -1
- package/dist/payment/index.js +1 -1
- package/dist/payment/payment.operations.d.ts +1 -2
- package/dist/payment/payment.operations.js +1 -1
- package/dist/payment/payment.schema.d.ts +0 -1
- package/dist/presentations/index.d.ts +0 -1
- package/dist/presentations.d.ts +7 -8
- package/dist/presentations.js +4 -1
- package/dist/quote/index.d.ts +0 -1
- package/dist/quote/index.js +1 -1
- package/dist/quote/quote.operations.d.ts +2 -3
- package/dist/quote/quote.operations.js +1 -1
- package/dist/quote/quote.schema.d.ts +0 -1
- package/dist/service-business-os.capability.d.ts +2 -3
- package/dist/service-business-os.capability.js +4 -1
- package/dist/service.feature.d.ts +1 -2
- package/dist/service.feature.js +1 -1
- package/package.json +5 -5
- package/dist/client/client.operations.d.ts.map +0 -1
- package/dist/client/client.schema.d.ts.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/docs/index.d.ts.map +0 -1
- package/dist/docs/service-business-os.docblock.d.ts.map +0 -1
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/events.d.ts.map +0 -1
- package/dist/example.d.ts.map +0 -1
- package/dist/handlers/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/invoice/index.d.ts.map +0 -1
- package/dist/invoice/invoice.operations.d.ts.map +0 -1
- package/dist/invoice/invoice.schema.d.ts.map +0 -1
- package/dist/job/index.d.ts.map +0 -1
- package/dist/job/job.operations.d.ts.map +0 -1
- package/dist/job/job.schema.d.ts.map +0 -1
- package/dist/operations/index.d.ts.map +0 -1
- package/dist/payment/index.d.ts.map +0 -1
- package/dist/payment/payment.operations.d.ts.map +0 -1
- package/dist/payment/payment.schema.d.ts.map +0 -1
- package/dist/presentations/index.d.ts.map +0 -1
- package/dist/presentations.d.ts.map +0 -1
- package/dist/quote/index.d.ts.map +0 -1
- package/dist/quote/quote.operations.d.ts.map +0 -1
- package/dist/quote/quote.schema.d.ts.map +0 -1
- package/dist/service-business-os.capability.d.ts.map +0 -1
- package/dist/service.feature.d.ts.map +0 -1
|
@@ -27,7 +27,7 @@ var CreateClientInputModel = defineSchemaModel({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
// src/client/client.operations.ts
|
|
30
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
30
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
31
31
|
var OWNERS = ["@examples.service-business-os"];
|
|
32
32
|
var CreateClientContract = defineCommand({
|
|
33
33
|
meta: {
|
|
@@ -27,7 +27,7 @@ var CreateClientInputModel = defineSchemaModel({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
// src/client/client.operations.ts
|
|
30
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
30
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
31
31
|
var OWNERS = ["@examples.service-business-os"];
|
|
32
32
|
var CreateClientContract = defineCommand({
|
|
33
33
|
meta: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/docs/service-business-os.docblock.ts
|
|
2
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
3
3
|
var serviceBusinessDocBlocks = [
|
|
4
4
|
{
|
|
5
5
|
id: "docs.examples.service-business-os",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/docs/service-business-os.docblock.ts
|
|
2
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
3
3
|
var serviceBusinessDocBlocks = [
|
|
4
4
|
{
|
|
5
5
|
id: "docs.examples.service-business-os",
|
package/dist/browser/events.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/events.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var QuoteEventPayload = defineSchemaModel({
|
|
5
5
|
name: "QuoteEventPayload",
|
|
6
6
|
description: "Event payload for quote lifecycle",
|
package/dist/browser/example.js
CHANGED
package/dist/browser/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var CreateClientInputModel = defineSchemaModel({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
// src/client/client.operations.ts
|
|
30
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
30
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
31
31
|
var OWNERS = ["@examples.service-business-os"];
|
|
32
32
|
var CreateClientContract = defineCommand({
|
|
33
33
|
meta: {
|
|
@@ -109,7 +109,7 @@ var AcceptQuoteInputModel = defineSchemaModel2({
|
|
|
109
109
|
});
|
|
110
110
|
|
|
111
111
|
// src/quote/quote.operations.ts
|
|
112
|
-
import { defineCommand as defineCommand2 } from "@contractspec/lib.contracts";
|
|
112
|
+
import { defineCommand as defineCommand2 } from "@contractspec/lib.contracts-spec";
|
|
113
113
|
var OWNERS2 = ["@examples.service-business-os"];
|
|
114
114
|
var CreateQuoteContract = defineCommand2({
|
|
115
115
|
meta: {
|
|
@@ -220,7 +220,7 @@ var CompleteJobInputModel = defineSchemaModel3({
|
|
|
220
220
|
});
|
|
221
221
|
|
|
222
222
|
// src/job/job.operations.ts
|
|
223
|
-
import { defineCommand as defineCommand3, defineQuery } from "@contractspec/lib.contracts";
|
|
223
|
+
import { defineCommand as defineCommand3, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
224
224
|
import { defineSchemaModel as defineSchemaModel4, ScalarTypeEnum as ScalarTypeEnum4 } from "@contractspec/lib.schema";
|
|
225
225
|
var OWNERS3 = ["@examples.service-business-os"];
|
|
226
226
|
var ListJobsInputModel = defineSchemaModel4({
|
|
@@ -379,7 +379,7 @@ var IssueInvoiceInputModel = defineSchemaModel5({
|
|
|
379
379
|
});
|
|
380
380
|
|
|
381
381
|
// src/invoice/invoice.operations.ts
|
|
382
|
-
import { defineCommand as defineCommand4 } from "@contractspec/lib.contracts";
|
|
382
|
+
import { defineCommand as defineCommand4 } from "@contractspec/lib.contracts-spec";
|
|
383
383
|
var OWNERS4 = ["@examples.service-business-os"];
|
|
384
384
|
var IssueInvoiceContract = defineCommand4({
|
|
385
385
|
meta: {
|
|
@@ -447,7 +447,7 @@ var RecordPaymentInputModel = defineSchemaModel6({
|
|
|
447
447
|
});
|
|
448
448
|
|
|
449
449
|
// src/payment/payment.operations.ts
|
|
450
|
-
import { defineCommand as defineCommand5 } from "@contractspec/lib.contracts";
|
|
450
|
+
import { defineCommand as defineCommand5 } from "@contractspec/lib.contracts-spec";
|
|
451
451
|
var OWNERS5 = ["@examples.service-business-os"];
|
|
452
452
|
var RecordPaymentContract = defineCommand5({
|
|
453
453
|
meta: {
|
|
@@ -484,7 +484,10 @@ var RecordPaymentContract = defineCommand5({
|
|
|
484
484
|
}
|
|
485
485
|
});
|
|
486
486
|
// src/presentations.ts
|
|
487
|
-
import {
|
|
487
|
+
import {
|
|
488
|
+
definePresentation,
|
|
489
|
+
StabilityEnum
|
|
490
|
+
} from "@contractspec/lib.contracts-spec";
|
|
488
491
|
var ServiceDashboardPresentation = definePresentation({
|
|
489
492
|
meta: {
|
|
490
493
|
key: "service-business-os.dashboard",
|
|
@@ -648,7 +651,7 @@ var PaymentListPresentation = definePresentation({
|
|
|
648
651
|
});
|
|
649
652
|
|
|
650
653
|
// src/service.feature.ts
|
|
651
|
-
import { defineFeature } from "@contractspec/lib.contracts";
|
|
654
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
652
655
|
var ServiceBusinessFeature = defineFeature({
|
|
653
656
|
meta: {
|
|
654
657
|
key: "service-business-os",
|
|
@@ -30,7 +30,7 @@ var IssueInvoiceInputModel = defineSchemaModel({
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
// src/invoice/invoice.operations.ts
|
|
33
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
33
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
34
34
|
var OWNERS = ["@examples.service-business-os"];
|
|
35
35
|
var IssueInvoiceContract = defineCommand({
|
|
36
36
|
meta: {
|
|
@@ -30,7 +30,7 @@ var IssueInvoiceInputModel = defineSchemaModel({
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
// src/invoice/invoice.operations.ts
|
|
33
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
33
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
34
34
|
var OWNERS = ["@examples.service-business-os"];
|
|
35
35
|
var IssueInvoiceContract = defineCommand({
|
|
36
36
|
meta: {
|
|
@@ -36,7 +36,7 @@ var CompleteJobInputModel = defineSchemaModel({
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
// src/job/job.operations.ts
|
|
39
|
-
import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
|
|
39
|
+
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
40
40
|
import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
|
|
41
41
|
var OWNERS = ["@examples.service-business-os"];
|
|
42
42
|
var ListJobsInputModel = defineSchemaModel2({
|
|
@@ -36,7 +36,7 @@ var CompleteJobInputModel = defineSchemaModel({
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
// src/job/job.operations.ts
|
|
39
|
-
import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
|
|
39
|
+
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
40
40
|
import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
|
|
41
41
|
var OWNERS = ["@examples.service-business-os"];
|
|
42
42
|
var ListJobsInputModel = defineSchemaModel2({
|
|
@@ -27,7 +27,7 @@ var CreateClientInputModel = defineSchemaModel({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
// src/client/client.operations.ts
|
|
30
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
30
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
31
31
|
var OWNERS = ["@examples.service-business-os"];
|
|
32
32
|
var CreateClientContract = defineCommand({
|
|
33
33
|
meta: {
|
|
@@ -109,7 +109,7 @@ var AcceptQuoteInputModel = defineSchemaModel2({
|
|
|
109
109
|
});
|
|
110
110
|
|
|
111
111
|
// src/quote/quote.operations.ts
|
|
112
|
-
import { defineCommand as defineCommand2 } from "@contractspec/lib.contracts";
|
|
112
|
+
import { defineCommand as defineCommand2 } from "@contractspec/lib.contracts-spec";
|
|
113
113
|
var OWNERS2 = ["@examples.service-business-os"];
|
|
114
114
|
var CreateQuoteContract = defineCommand2({
|
|
115
115
|
meta: {
|
|
@@ -220,7 +220,7 @@ var CompleteJobInputModel = defineSchemaModel3({
|
|
|
220
220
|
});
|
|
221
221
|
|
|
222
222
|
// src/job/job.operations.ts
|
|
223
|
-
import { defineCommand as defineCommand3, defineQuery } from "@contractspec/lib.contracts";
|
|
223
|
+
import { defineCommand as defineCommand3, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
224
224
|
import { defineSchemaModel as defineSchemaModel4, ScalarTypeEnum as ScalarTypeEnum4 } from "@contractspec/lib.schema";
|
|
225
225
|
var OWNERS3 = ["@examples.service-business-os"];
|
|
226
226
|
var ListJobsInputModel = defineSchemaModel4({
|
|
@@ -379,7 +379,7 @@ var IssueInvoiceInputModel = defineSchemaModel5({
|
|
|
379
379
|
});
|
|
380
380
|
|
|
381
381
|
// src/invoice/invoice.operations.ts
|
|
382
|
-
import { defineCommand as defineCommand4 } from "@contractspec/lib.contracts";
|
|
382
|
+
import { defineCommand as defineCommand4 } from "@contractspec/lib.contracts-spec";
|
|
383
383
|
var OWNERS4 = ["@examples.service-business-os"];
|
|
384
384
|
var IssueInvoiceContract = defineCommand4({
|
|
385
385
|
meta: {
|
|
@@ -447,7 +447,7 @@ var RecordPaymentInputModel = defineSchemaModel6({
|
|
|
447
447
|
});
|
|
448
448
|
|
|
449
449
|
// src/payment/payment.operations.ts
|
|
450
|
-
import { defineCommand as defineCommand5 } from "@contractspec/lib.contracts";
|
|
450
|
+
import { defineCommand as defineCommand5 } from "@contractspec/lib.contracts-spec";
|
|
451
451
|
var OWNERS5 = ["@examples.service-business-os"];
|
|
452
452
|
var RecordPaymentContract = defineCommand5({
|
|
453
453
|
meta: {
|
|
@@ -26,7 +26,7 @@ var RecordPaymentInputModel = defineSchemaModel({
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
// src/payment/payment.operations.ts
|
|
29
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
29
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
30
30
|
var OWNERS = ["@examples.service-business-os"];
|
|
31
31
|
var RecordPaymentContract = defineCommand({
|
|
32
32
|
meta: {
|
|
@@ -26,7 +26,7 @@ var RecordPaymentInputModel = defineSchemaModel({
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
// src/payment/payment.operations.ts
|
|
29
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
29
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
30
30
|
var OWNERS = ["@examples.service-business-os"];
|
|
31
31
|
var RecordPaymentContract = defineCommand({
|
|
32
32
|
meta: {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// src/presentations.ts
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
definePresentation,
|
|
4
|
+
StabilityEnum
|
|
5
|
+
} from "@contractspec/lib.contracts-spec";
|
|
3
6
|
var ServiceDashboardPresentation = definePresentation({
|
|
4
7
|
meta: {
|
|
5
8
|
key: "service-business-os.dashboard",
|
|
@@ -40,7 +40,7 @@ var AcceptQuoteInputModel = defineSchemaModel({
|
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
// src/quote/quote.operations.ts
|
|
43
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
43
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
44
44
|
var OWNERS = ["@examples.service-business-os"];
|
|
45
45
|
var CreateQuoteContract = defineCommand({
|
|
46
46
|
meta: {
|
|
@@ -40,7 +40,7 @@ var AcceptQuoteInputModel = defineSchemaModel({
|
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
// src/quote/quote.operations.ts
|
|
43
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
43
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
44
44
|
var OWNERS = ["@examples.service-business-os"];
|
|
45
45
|
var CreateQuoteContract = defineCommand({
|
|
46
46
|
meta: {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// src/service-business-os.capability.ts
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
defineCapability,
|
|
4
|
+
StabilityEnum
|
|
5
|
+
} from "@contractspec/lib.contracts-spec";
|
|
3
6
|
var QuotesCapability = defineCapability({
|
|
4
7
|
meta: {
|
|
5
8
|
key: "quotes",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Create a new client.
|
|
3
3
|
*/
|
|
4
|
-
export declare const CreateClientContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
4
|
+
export declare const CreateClientContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
5
|
name: {
|
|
6
6
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
@@ -56,4 +56,3 @@ export declare const CreateClientContract: import("@contractspec/lib.contracts")
|
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
}>, undefined>;
|
|
59
|
-
//# sourceMappingURL=client.operations.d.ts.map
|
|
@@ -28,7 +28,7 @@ var CreateClientInputModel = defineSchemaModel({
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
// src/client/client.operations.ts
|
|
31
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
31
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
32
32
|
var OWNERS = ["@examples.service-business-os"];
|
|
33
33
|
var CreateClientContract = defineCommand({
|
|
34
34
|
meta: {
|
package/dist/client/index.d.ts
CHANGED
package/dist/client/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var CreateClientInputModel = defineSchemaModel({
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
// src/client/client.operations.ts
|
|
31
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
31
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
32
32
|
var OWNERS = ["@examples.service-business-os"];
|
|
33
33
|
var CreateClientContract = defineCommand({
|
|
34
34
|
meta: {
|
package/dist/docs/index.d.ts
CHANGED
package/dist/docs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/docs/service-business-os.docblock.ts
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
4
|
var serviceBusinessDocBlocks = [
|
|
5
5
|
{
|
|
6
6
|
id: "docs.examples.service-business-os",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/docs/service-business-os.docblock.ts
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
4
|
var serviceBusinessDocBlocks = [
|
|
5
5
|
{
|
|
6
6
|
id: "docs.examples.service-business-os",
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -160,4 +160,3 @@ export declare const serviceBusinessEntities: (import("@contractspec/lib.schema"
|
|
|
160
160
|
invoice: import("@contractspec/lib.schema").EntityRelationField;
|
|
161
161
|
}>)[];
|
|
162
162
|
export declare const serviceBusinessSchemaContribution: ModuleSchemaContribution;
|
|
163
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const QuoteSentEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
1
|
+
export declare const QuoteSentEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
2
2
|
quoteId: {
|
|
3
3
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
4
4
|
isOptional: false;
|
|
@@ -24,7 +24,7 @@ export declare const QuoteSentEvent: import("@contractspec/lib.contracts").Event
|
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
27
|
-
export declare const QuoteAcceptedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
27
|
+
export declare const QuoteAcceptedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
28
28
|
quoteId: {
|
|
29
29
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
@@ -50,7 +50,7 @@ export declare const QuoteAcceptedEvent: import("@contractspec/lib.contracts").E
|
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
}>>;
|
|
53
|
-
export declare const JobScheduledEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
53
|
+
export declare const JobScheduledEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
54
54
|
jobId: {
|
|
55
55
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
@@ -80,7 +80,7 @@ export declare const JobScheduledEvent: import("@contractspec/lib.contracts").Ev
|
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
}>>;
|
|
83
|
-
export declare const JobCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
83
|
+
export declare const JobCompletedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
84
84
|
jobId: {
|
|
85
85
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
@@ -110,7 +110,7 @@ export declare const JobCompletedEvent: import("@contractspec/lib.contracts").Ev
|
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
}>>;
|
|
113
|
-
export declare const InvoiceIssuedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
113
|
+
export declare const InvoiceIssuedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
114
114
|
invoiceId: {
|
|
115
115
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
@@ -136,7 +136,7 @@ export declare const InvoiceIssuedEvent: import("@contractspec/lib.contracts").E
|
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
}>>;
|
|
139
|
-
export declare const PaymentReceivedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
139
|
+
export declare const PaymentReceivedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
140
140
|
paymentId: {
|
|
141
141
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
142
142
|
isOptional: false;
|
|
@@ -163,7 +163,7 @@ export declare const PaymentReceivedEvent: import("@contractspec/lib.contracts")
|
|
|
163
163
|
};
|
|
164
164
|
}>>;
|
|
165
165
|
export declare const ServiceBusinessEvents: {
|
|
166
|
-
QuoteSentEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
166
|
+
QuoteSentEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
167
167
|
quoteId: {
|
|
168
168
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
169
169
|
isOptional: false;
|
|
@@ -189,7 +189,7 @@ export declare const ServiceBusinessEvents: {
|
|
|
189
189
|
isOptional: false;
|
|
190
190
|
};
|
|
191
191
|
}>>;
|
|
192
|
-
QuoteAcceptedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
192
|
+
QuoteAcceptedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
193
193
|
quoteId: {
|
|
194
194
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
195
195
|
isOptional: false;
|
|
@@ -215,7 +215,7 @@ export declare const ServiceBusinessEvents: {
|
|
|
215
215
|
isOptional: false;
|
|
216
216
|
};
|
|
217
217
|
}>>;
|
|
218
|
-
JobScheduledEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
218
|
+
JobScheduledEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
219
219
|
jobId: {
|
|
220
220
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
@@ -245,7 +245,7 @@ export declare const ServiceBusinessEvents: {
|
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
}>>;
|
|
248
|
-
JobCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
248
|
+
JobCompletedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
249
249
|
jobId: {
|
|
250
250
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
251
251
|
isOptional: false;
|
|
@@ -275,7 +275,7 @@ export declare const ServiceBusinessEvents: {
|
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
}>>;
|
|
278
|
-
InvoiceIssuedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
278
|
+
InvoiceIssuedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
279
279
|
invoiceId: {
|
|
280
280
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
281
281
|
isOptional: false;
|
|
@@ -301,7 +301,7 @@ export declare const ServiceBusinessEvents: {
|
|
|
301
301
|
isOptional: false;
|
|
302
302
|
};
|
|
303
303
|
}>>;
|
|
304
|
-
PaymentReceivedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
304
|
+
PaymentReceivedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
305
305
|
paymentId: {
|
|
306
306
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
307
307
|
isOptional: false;
|
|
@@ -328,4 +328,3 @@ export declare const ServiceBusinessEvents: {
|
|
|
328
328
|
};
|
|
329
329
|
}>>;
|
|
330
330
|
};
|
|
331
|
-
//# sourceMappingURL=events.d.ts.map
|
package/dist/events.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/events.ts
|
|
3
3
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
4
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
4
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
5
5
|
var QuoteEventPayload = defineSchemaModel({
|
|
6
6
|
name: "QuoteEventPayload",
|
|
7
7
|
description: "Event payload for quote lifecycle",
|
package/dist/example.d.ts
CHANGED
package/dist/example.js
CHANGED
package/dist/handlers/index.d.ts
CHANGED
|
@@ -9,4 +9,3 @@ import type { IssueInvoiceContract } from '../invoice';
|
|
|
9
9
|
import type { RecordPaymentContract } from '../payment';
|
|
10
10
|
export declare function registerServiceBusinessHandlers(): void;
|
|
11
11
|
export type ServiceBusinessHandlers = typeof AcceptQuoteContract | typeof CreateClientContract | typeof CreateQuoteContract | typeof ScheduleJobContract | typeof CompleteJobContract | typeof IssueInvoiceContract | typeof RecordPaymentContract;
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var CreateClientInputModel = defineSchemaModel({
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
// src/client/client.operations.ts
|
|
31
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
31
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
32
32
|
var OWNERS = ["@examples.service-business-os"];
|
|
33
33
|
var CreateClientContract = defineCommand({
|
|
34
34
|
meta: {
|
|
@@ -110,7 +110,7 @@ var AcceptQuoteInputModel = defineSchemaModel2({
|
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
// src/quote/quote.operations.ts
|
|
113
|
-
import { defineCommand as defineCommand2 } from "@contractspec/lib.contracts";
|
|
113
|
+
import { defineCommand as defineCommand2 } from "@contractspec/lib.contracts-spec";
|
|
114
114
|
var OWNERS2 = ["@examples.service-business-os"];
|
|
115
115
|
var CreateQuoteContract = defineCommand2({
|
|
116
116
|
meta: {
|
|
@@ -221,7 +221,7 @@ var CompleteJobInputModel = defineSchemaModel3({
|
|
|
221
221
|
});
|
|
222
222
|
|
|
223
223
|
// src/job/job.operations.ts
|
|
224
|
-
import { defineCommand as defineCommand3, defineQuery } from "@contractspec/lib.contracts";
|
|
224
|
+
import { defineCommand as defineCommand3, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
225
225
|
import { defineSchemaModel as defineSchemaModel4, ScalarTypeEnum as ScalarTypeEnum4 } from "@contractspec/lib.schema";
|
|
226
226
|
var OWNERS3 = ["@examples.service-business-os"];
|
|
227
227
|
var ListJobsInputModel = defineSchemaModel4({
|
|
@@ -380,7 +380,7 @@ var IssueInvoiceInputModel = defineSchemaModel5({
|
|
|
380
380
|
});
|
|
381
381
|
|
|
382
382
|
// src/invoice/invoice.operations.ts
|
|
383
|
-
import { defineCommand as defineCommand4 } from "@contractspec/lib.contracts";
|
|
383
|
+
import { defineCommand as defineCommand4 } from "@contractspec/lib.contracts-spec";
|
|
384
384
|
var OWNERS4 = ["@examples.service-business-os"];
|
|
385
385
|
var IssueInvoiceContract = defineCommand4({
|
|
386
386
|
meta: {
|
|
@@ -448,7 +448,7 @@ var RecordPaymentInputModel = defineSchemaModel6({
|
|
|
448
448
|
});
|
|
449
449
|
|
|
450
450
|
// src/payment/payment.operations.ts
|
|
451
|
-
import { defineCommand as defineCommand5 } from "@contractspec/lib.contracts";
|
|
451
|
+
import { defineCommand as defineCommand5 } from "@contractspec/lib.contracts-spec";
|
|
452
452
|
var OWNERS5 = ["@examples.service-business-os"];
|
|
453
453
|
var RecordPaymentContract = defineCommand5({
|
|
454
454
|
meta: {
|
|
@@ -485,7 +485,10 @@ var RecordPaymentContract = defineCommand5({
|
|
|
485
485
|
}
|
|
486
486
|
});
|
|
487
487
|
// src/presentations.ts
|
|
488
|
-
import {
|
|
488
|
+
import {
|
|
489
|
+
definePresentation,
|
|
490
|
+
StabilityEnum
|
|
491
|
+
} from "@contractspec/lib.contracts-spec";
|
|
489
492
|
var ServiceDashboardPresentation = definePresentation({
|
|
490
493
|
meta: {
|
|
491
494
|
key: "service-business-os.dashboard",
|
|
@@ -649,7 +652,7 @@ var PaymentListPresentation = definePresentation({
|
|
|
649
652
|
});
|
|
650
653
|
|
|
651
654
|
// src/service.feature.ts
|
|
652
|
-
import { defineFeature } from "@contractspec/lib.contracts";
|
|
655
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
653
656
|
var ServiceBusinessFeature = defineFeature({
|
|
654
657
|
meta: {
|
|
655
658
|
key: "service-business-os",
|
package/dist/invoice/index.d.ts
CHANGED
package/dist/invoice/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var IssueInvoiceInputModel = defineSchemaModel({
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
// src/invoice/invoice.operations.ts
|
|
34
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
34
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
35
35
|
var OWNERS = ["@examples.service-business-os"];
|
|
36
36
|
var IssueInvoiceContract = defineCommand({
|
|
37
37
|
meta: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Issue an invoice.
|
|
3
3
|
*/
|
|
4
|
-
export declare const IssueInvoiceContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
4
|
+
export declare const IssueInvoiceContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
5
|
jobId: {
|
|
6
6
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
@@ -56,4 +56,3 @@ export declare const IssueInvoiceContract: import("@contractspec/lib.contracts")
|
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
}>, undefined>;
|
|
59
|
-
//# sourceMappingURL=invoice.operations.d.ts.map
|
|
@@ -31,7 +31,7 @@ var IssueInvoiceInputModel = defineSchemaModel({
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
// src/invoice/invoice.operations.ts
|
|
34
|
-
import { defineCommand } from "@contractspec/lib.contracts";
|
|
34
|
+
import { defineCommand } from "@contractspec/lib.contracts-spec";
|
|
35
35
|
var OWNERS = ["@examples.service-business-os"];
|
|
36
36
|
var IssueInvoiceContract = defineCommand({
|
|
37
37
|
meta: {
|
package/dist/job/index.d.ts
CHANGED
package/dist/job/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var CompleteJobInputModel = defineSchemaModel({
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
// src/job/job.operations.ts
|
|
40
|
-
import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
|
|
40
|
+
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
41
41
|
import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
|
|
42
42
|
var OWNERS = ["@examples.service-business-os"];
|
|
43
43
|
var ListJobsInputModel = defineSchemaModel2({
|