@contractspec/example.wealth-snapshot 1.61.0 → 2.0.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/docs/index.js +1 -1
- package/dist/browser/docs/wealth-snapshot.docblock.js +1 -1
- package/dist/browser/events.js +1 -1
- package/dist/browser/example.js +1 -1
- package/dist/browser/index.js +9 -6
- package/dist/browser/operations/index.js +1 -1
- package/dist/browser/presentations.js +4 -1
- package/dist/browser/wealth-snapshot.capability.js +4 -1
- package/dist/browser/wealth-snapshot.feature.js +1 -1
- package/dist/docs/index.d.ts +0 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/wealth-snapshot.docblock.d.ts +0 -1
- package/dist/docs/wealth-snapshot.docblock.js +1 -1
- package/dist/entities/index.d.ts +0 -1
- package/dist/events.d.ts +8 -9
- 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 +9 -6
- package/dist/node/docs/index.js +1 -1
- package/dist/node/docs/wealth-snapshot.docblock.js +1 -1
- package/dist/node/events.js +1 -1
- package/dist/node/example.js +1 -1
- package/dist/node/index.js +9 -6
- package/dist/node/operations/index.js +1 -1
- package/dist/node/presentations.js +4 -1
- package/dist/node/wealth-snapshot.capability.js +4 -1
- package/dist/node/wealth-snapshot.feature.js +1 -1
- package/dist/operations/index.d.ts +6 -7
- package/dist/operations/index.js +1 -1
- package/dist/presentations/index.d.ts +0 -1
- package/dist/presentations.d.ts +5 -6
- package/dist/presentations.js +4 -1
- package/dist/wealth-snapshot.capability.d.ts +3 -4
- package/dist/wealth-snapshot.capability.js +4 -1
- package/dist/wealth-snapshot.feature.d.ts +1 -2
- package/dist/wealth-snapshot.feature.js +1 -1
- package/package.json +8 -8
- package/dist/docs/index.d.ts.map +0 -1
- package/dist/docs/wealth-snapshot.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/operations/index.d.ts.map +0 -1
- package/dist/presentations/index.d.ts.map +0 -1
- package/dist/presentations.d.ts.map +0 -1
- package/dist/wealth-snapshot.capability.d.ts.map +0 -1
- package/dist/wealth-snapshot.feature.d.ts.map +0 -1
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, StabilityEnum } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent, StabilityEnum } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var AssetEventPayload = defineSchemaModel({
|
|
5
5
|
name: "AssetEventPayload",
|
|
6
6
|
description: "Payload for asset events",
|
package/dist/browser/example.js
CHANGED
package/dist/browser/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/docs/wealth-snapshot.docblock.ts
|
|
2
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
3
3
|
var wealthSnapshotDocBlocks = [
|
|
4
4
|
{
|
|
5
5
|
id: "docs.examples.wealth-snapshot",
|
|
@@ -272,7 +272,7 @@ var wealthSnapshotSchemaContribution = {
|
|
|
272
272
|
|
|
273
273
|
// src/events.ts
|
|
274
274
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
275
|
-
import { defineEvent, StabilityEnum } from "@contractspec/lib.contracts";
|
|
275
|
+
import { defineEvent, StabilityEnum } from "@contractspec/lib.contracts-spec";
|
|
276
276
|
var AssetEventPayload = defineSchemaModel({
|
|
277
277
|
name: "AssetEventPayload",
|
|
278
278
|
description: "Payload for asset events",
|
|
@@ -376,7 +376,7 @@ var WealthSnapshotEvents = {
|
|
|
376
376
|
};
|
|
377
377
|
|
|
378
378
|
// src/example.ts
|
|
379
|
-
import { defineExample } from "@contractspec/lib.contracts";
|
|
379
|
+
import { defineExample } from "@contractspec/lib.contracts-spec";
|
|
380
380
|
var example = defineExample({
|
|
381
381
|
meta: {
|
|
382
382
|
key: "wealth-snapshot",
|
|
@@ -420,7 +420,7 @@ function registerWealthSnapshotHandlers() {}
|
|
|
420
420
|
|
|
421
421
|
// src/operations/index.ts
|
|
422
422
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
423
|
-
import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
|
|
423
|
+
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
424
424
|
var OWNERS = ["examples.wealth-snapshot"];
|
|
425
425
|
var AccountModel = defineSchemaModel2({
|
|
426
426
|
name: "Account",
|
|
@@ -645,7 +645,10 @@ var GetNetWorthContract = defineQuery({
|
|
|
645
645
|
});
|
|
646
646
|
|
|
647
647
|
// src/presentations.ts
|
|
648
|
-
import {
|
|
648
|
+
import {
|
|
649
|
+
definePresentation,
|
|
650
|
+
StabilityEnum as StabilityEnum2
|
|
651
|
+
} from "@contractspec/lib.contracts-spec";
|
|
649
652
|
var WealthDashboardPresentation = definePresentation({
|
|
650
653
|
meta: {
|
|
651
654
|
key: "wealth-snapshot.dashboard",
|
|
@@ -763,7 +766,7 @@ var GoalsListPresentation = definePresentation({
|
|
|
763
766
|
});
|
|
764
767
|
|
|
765
768
|
// src/wealth-snapshot.feature.ts
|
|
766
|
-
import { defineFeature } from "@contractspec/lib.contracts";
|
|
769
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
767
770
|
var WealthSnapshotFeature = defineFeature({
|
|
768
771
|
meta: {
|
|
769
772
|
key: "wealth-snapshot",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/operations/index.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var OWNERS = ["examples.wealth-snapshot"];
|
|
5
5
|
var AccountModel = defineSchemaModel({
|
|
6
6
|
name: "Account",
|
|
@@ -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 WealthDashboardPresentation = definePresentation({
|
|
4
7
|
meta: {
|
|
5
8
|
key: "wealth-snapshot.dashboard",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// src/wealth-snapshot.capability.ts
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
defineCapability,
|
|
4
|
+
StabilityEnum
|
|
5
|
+
} from "@contractspec/lib.contracts-spec";
|
|
3
6
|
var AccountsCapability = defineCapability({
|
|
4
7
|
meta: {
|
|
5
8
|
key: "accounts",
|
package/dist/docs/index.d.ts
CHANGED
package/dist/docs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/docs/wealth-snapshot.docblock.ts
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
4
|
var wealthSnapshotDocBlocks = [
|
|
5
5
|
{
|
|
6
6
|
id: "docs.examples.wealth-snapshot",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/docs/wealth-snapshot.docblock.ts
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
4
|
var wealthSnapshotDocBlocks = [
|
|
5
5
|
{
|
|
6
6
|
id: "docs.examples.wealth-snapshot",
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -124,4 +124,3 @@ export declare const wealthSnapshotEntities: (import("@contractspec/lib.schema")
|
|
|
124
124
|
createdAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
125
125
|
}>)[];
|
|
126
126
|
export declare const wealthSnapshotSchemaContribution: ModuleSchemaContribution;
|
|
127
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const AssetAddedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
1
|
+
export declare const AssetAddedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
2
2
|
assetId: {
|
|
3
3
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
4
4
|
isOptional: false;
|
|
@@ -24,7 +24,7 @@ export declare const AssetAddedEvent: import("@contractspec/lib.contracts").Even
|
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
27
|
-
export declare const LiabilityAddedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
27
|
+
export declare const LiabilityAddedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
28
28
|
liabilityId: {
|
|
29
29
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
@@ -50,7 +50,7 @@ export declare const LiabilityAddedEvent: import("@contractspec/lib.contracts").
|
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
}>>;
|
|
53
|
-
export declare const GoalUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
53
|
+
export declare const GoalUpdatedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
54
54
|
goalId: {
|
|
55
55
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
@@ -80,7 +80,7 @@ export declare const GoalUpdatedEvent: import("@contractspec/lib.contracts").Eve
|
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
}>>;
|
|
83
|
-
export declare const NetWorthSnapshotCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
83
|
+
export declare const NetWorthSnapshotCreatedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
84
84
|
netWorth: {
|
|
85
85
|
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
86
86
|
isOptional: false;
|
|
@@ -107,7 +107,7 @@ export declare const NetWorthSnapshotCreatedEvent: import("@contractspec/lib.con
|
|
|
107
107
|
};
|
|
108
108
|
}>>;
|
|
109
109
|
export declare const WealthSnapshotEvents: {
|
|
110
|
-
AssetAddedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
110
|
+
AssetAddedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
111
111
|
assetId: {
|
|
112
112
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
113
113
|
isOptional: false;
|
|
@@ -133,7 +133,7 @@ export declare const WealthSnapshotEvents: {
|
|
|
133
133
|
isOptional: false;
|
|
134
134
|
};
|
|
135
135
|
}>>;
|
|
136
|
-
LiabilityAddedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
136
|
+
LiabilityAddedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
137
137
|
liabilityId: {
|
|
138
138
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
139
139
|
isOptional: false;
|
|
@@ -159,7 +159,7 @@ export declare const WealthSnapshotEvents: {
|
|
|
159
159
|
isOptional: false;
|
|
160
160
|
};
|
|
161
161
|
}>>;
|
|
162
|
-
GoalUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
162
|
+
GoalUpdatedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
163
163
|
goalId: {
|
|
164
164
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
165
165
|
isOptional: false;
|
|
@@ -189,7 +189,7 @@ export declare const WealthSnapshotEvents: {
|
|
|
189
189
|
isOptional: false;
|
|
190
190
|
};
|
|
191
191
|
}>>;
|
|
192
|
-
NetWorthSnapshotCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
192
|
+
NetWorthSnapshotCreatedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
193
193
|
netWorth: {
|
|
194
194
|
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
195
195
|
isOptional: false;
|
|
@@ -216,4 +216,3 @@ export declare const WealthSnapshotEvents: {
|
|
|
216
216
|
};
|
|
217
217
|
}>>;
|
|
218
218
|
};
|
|
219
|
-
//# 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, StabilityEnum } from "@contractspec/lib.contracts";
|
|
4
|
+
import { defineEvent, StabilityEnum } from "@contractspec/lib.contracts-spec";
|
|
5
5
|
var AssetEventPayload = defineSchemaModel({
|
|
6
6
|
name: "AssetEventPayload",
|
|
7
7
|
description: "Payload for asset events",
|
package/dist/example.d.ts
CHANGED
package/dist/example.js
CHANGED
package/dist/handlers/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/docs/wealth-snapshot.docblock.ts
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
4
|
var wealthSnapshotDocBlocks = [
|
|
5
5
|
{
|
|
6
6
|
id: "docs.examples.wealth-snapshot",
|
|
@@ -273,7 +273,7 @@ var wealthSnapshotSchemaContribution = {
|
|
|
273
273
|
|
|
274
274
|
// src/events.ts
|
|
275
275
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
276
|
-
import { defineEvent, StabilityEnum } from "@contractspec/lib.contracts";
|
|
276
|
+
import { defineEvent, StabilityEnum } from "@contractspec/lib.contracts-spec";
|
|
277
277
|
var AssetEventPayload = defineSchemaModel({
|
|
278
278
|
name: "AssetEventPayload",
|
|
279
279
|
description: "Payload for asset events",
|
|
@@ -377,7 +377,7 @@ var WealthSnapshotEvents = {
|
|
|
377
377
|
};
|
|
378
378
|
|
|
379
379
|
// src/example.ts
|
|
380
|
-
import { defineExample } from "@contractspec/lib.contracts";
|
|
380
|
+
import { defineExample } from "@contractspec/lib.contracts-spec";
|
|
381
381
|
var example = defineExample({
|
|
382
382
|
meta: {
|
|
383
383
|
key: "wealth-snapshot",
|
|
@@ -421,7 +421,7 @@ function registerWealthSnapshotHandlers() {}
|
|
|
421
421
|
|
|
422
422
|
// src/operations/index.ts
|
|
423
423
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
424
|
-
import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
|
|
424
|
+
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
425
425
|
var OWNERS = ["examples.wealth-snapshot"];
|
|
426
426
|
var AccountModel = defineSchemaModel2({
|
|
427
427
|
name: "Account",
|
|
@@ -646,7 +646,10 @@ var GetNetWorthContract = defineQuery({
|
|
|
646
646
|
});
|
|
647
647
|
|
|
648
648
|
// src/presentations.ts
|
|
649
|
-
import {
|
|
649
|
+
import {
|
|
650
|
+
definePresentation,
|
|
651
|
+
StabilityEnum as StabilityEnum2
|
|
652
|
+
} from "@contractspec/lib.contracts-spec";
|
|
650
653
|
var WealthDashboardPresentation = definePresentation({
|
|
651
654
|
meta: {
|
|
652
655
|
key: "wealth-snapshot.dashboard",
|
|
@@ -764,7 +767,7 @@ var GoalsListPresentation = definePresentation({
|
|
|
764
767
|
});
|
|
765
768
|
|
|
766
769
|
// src/wealth-snapshot.feature.ts
|
|
767
|
-
import { defineFeature } from "@contractspec/lib.contracts";
|
|
770
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
768
771
|
var WealthSnapshotFeature = defineFeature({
|
|
769
772
|
meta: {
|
|
770
773
|
key: "wealth-snapshot",
|
package/dist/node/docs/index.js
CHANGED
package/dist/node/events.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/events.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineEvent, StabilityEnum } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineEvent, StabilityEnum } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var AssetEventPayload = defineSchemaModel({
|
|
5
5
|
name: "AssetEventPayload",
|
|
6
6
|
description: "Payload for asset events",
|
package/dist/node/example.js
CHANGED
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/docs/wealth-snapshot.docblock.ts
|
|
2
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
3
3
|
var wealthSnapshotDocBlocks = [
|
|
4
4
|
{
|
|
5
5
|
id: "docs.examples.wealth-snapshot",
|
|
@@ -272,7 +272,7 @@ var wealthSnapshotSchemaContribution = {
|
|
|
272
272
|
|
|
273
273
|
// src/events.ts
|
|
274
274
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
275
|
-
import { defineEvent, StabilityEnum } from "@contractspec/lib.contracts";
|
|
275
|
+
import { defineEvent, StabilityEnum } from "@contractspec/lib.contracts-spec";
|
|
276
276
|
var AssetEventPayload = defineSchemaModel({
|
|
277
277
|
name: "AssetEventPayload",
|
|
278
278
|
description: "Payload for asset events",
|
|
@@ -376,7 +376,7 @@ var WealthSnapshotEvents = {
|
|
|
376
376
|
};
|
|
377
377
|
|
|
378
378
|
// src/example.ts
|
|
379
|
-
import { defineExample } from "@contractspec/lib.contracts";
|
|
379
|
+
import { defineExample } from "@contractspec/lib.contracts-spec";
|
|
380
380
|
var example = defineExample({
|
|
381
381
|
meta: {
|
|
382
382
|
key: "wealth-snapshot",
|
|
@@ -420,7 +420,7 @@ function registerWealthSnapshotHandlers() {}
|
|
|
420
420
|
|
|
421
421
|
// src/operations/index.ts
|
|
422
422
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
423
|
-
import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
|
|
423
|
+
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
424
424
|
var OWNERS = ["examples.wealth-snapshot"];
|
|
425
425
|
var AccountModel = defineSchemaModel2({
|
|
426
426
|
name: "Account",
|
|
@@ -645,7 +645,10 @@ var GetNetWorthContract = defineQuery({
|
|
|
645
645
|
});
|
|
646
646
|
|
|
647
647
|
// src/presentations.ts
|
|
648
|
-
import {
|
|
648
|
+
import {
|
|
649
|
+
definePresentation,
|
|
650
|
+
StabilityEnum as StabilityEnum2
|
|
651
|
+
} from "@contractspec/lib.contracts-spec";
|
|
649
652
|
var WealthDashboardPresentation = definePresentation({
|
|
650
653
|
meta: {
|
|
651
654
|
key: "wealth-snapshot.dashboard",
|
|
@@ -763,7 +766,7 @@ var GoalsListPresentation = definePresentation({
|
|
|
763
766
|
});
|
|
764
767
|
|
|
765
768
|
// src/wealth-snapshot.feature.ts
|
|
766
|
-
import { defineFeature } from "@contractspec/lib.contracts";
|
|
769
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
767
770
|
var WealthSnapshotFeature = defineFeature({
|
|
768
771
|
meta: {
|
|
769
772
|
key: "wealth-snapshot",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/operations/index.ts
|
|
2
2
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
4
4
|
var OWNERS = ["examples.wealth-snapshot"];
|
|
5
5
|
var AccountModel = defineSchemaModel({
|
|
6
6
|
name: "Account",
|
|
@@ -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 WealthDashboardPresentation = definePresentation({
|
|
4
7
|
meta: {
|
|
5
8
|
key: "wealth-snapshot.dashboard",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// src/wealth-snapshot.capability.ts
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
defineCapability,
|
|
4
|
+
StabilityEnum
|
|
5
|
+
} from "@contractspec/lib.contracts-spec";
|
|
3
6
|
var AccountsCapability = defineCapability({
|
|
4
7
|
meta: {
|
|
5
8
|
key: "accounts",
|
|
@@ -112,7 +112,7 @@ export declare const NetWorthSnapshotModel: import("@contractspec/lib.schema").S
|
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
}>;
|
|
115
|
-
export declare const CreateAccountContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
115
|
+
export declare const CreateAccountContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
116
116
|
name: {
|
|
117
117
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
@@ -155,7 +155,7 @@ export declare const CreateAccountContract: import("@contractspec/lib.contracts"
|
|
|
155
155
|
isOptional: false;
|
|
156
156
|
};
|
|
157
157
|
}>, undefined>;
|
|
158
|
-
export declare const AddAssetContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
158
|
+
export declare const AddAssetContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
159
159
|
accountId: {
|
|
160
160
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
161
161
|
isOptional: true;
|
|
@@ -202,7 +202,7 @@ export declare const AddAssetContract: import("@contractspec/lib.contracts").Ope
|
|
|
202
202
|
isOptional: false;
|
|
203
203
|
};
|
|
204
204
|
}>, undefined>;
|
|
205
|
-
export declare const AddLiabilityContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
205
|
+
export declare const AddLiabilityContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
206
206
|
accountId: {
|
|
207
207
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
208
208
|
isOptional: true;
|
|
@@ -249,7 +249,7 @@ export declare const AddLiabilityContract: import("@contractspec/lib.contracts")
|
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
}>, undefined>;
|
|
252
|
-
export declare const CreateGoalContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
252
|
+
export declare const CreateGoalContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
253
253
|
name: {
|
|
254
254
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
255
255
|
isOptional: false;
|
|
@@ -296,7 +296,7 @@ export declare const CreateGoalContract: import("@contractspec/lib.contracts").O
|
|
|
296
296
|
isOptional: false;
|
|
297
297
|
};
|
|
298
298
|
}>, undefined>;
|
|
299
|
-
export declare const UpdateGoalContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
299
|
+
export declare const UpdateGoalContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
300
300
|
goalId: {
|
|
301
301
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
302
302
|
isOptional: false;
|
|
@@ -335,7 +335,7 @@ export declare const UpdateGoalContract: import("@contractspec/lib.contracts").O
|
|
|
335
335
|
isOptional: false;
|
|
336
336
|
};
|
|
337
337
|
}>, undefined>;
|
|
338
|
-
export declare const GetNetWorthContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
338
|
+
export declare const GetNetWorthContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
339
339
|
orgId: {
|
|
340
340
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
341
341
|
isOptional: false;
|
|
@@ -401,4 +401,3 @@ export declare const GetNetWorthContract: import("@contractspec/lib.contracts").
|
|
|
401
401
|
isOptional: true;
|
|
402
402
|
};
|
|
403
403
|
}>, undefined>;
|
|
404
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/operations/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/operations/index.ts
|
|
3
3
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
4
|
-
import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
|
|
4
|
+
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
5
5
|
var OWNERS = ["examples.wealth-snapshot"];
|
|
6
6
|
var AccountModel = defineSchemaModel({
|
|
7
7
|
name: "Account",
|
package/dist/presentations.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export declare const WealthDashboardPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
2
|
-
export declare const AccountsListPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
3
|
-
export declare const AssetsListPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
4
|
-
export declare const LiabilitiesListPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
5
|
-
export declare const GoalsListPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
6
|
-
//# sourceMappingURL=presentations.d.ts.map
|
|
1
|
+
export declare const WealthDashboardPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
2
|
+
export declare const AccountsListPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
3
|
+
export declare const AssetsListPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
4
|
+
export declare const LiabilitiesListPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
5
|
+
export declare const GoalsListPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
package/dist/presentations.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/presentations.ts
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
definePresentation,
|
|
5
|
+
StabilityEnum
|
|
6
|
+
} from "@contractspec/lib.contracts-spec";
|
|
4
7
|
var WealthDashboardPresentation = definePresentation({
|
|
5
8
|
meta: {
|
|
6
9
|
key: "wealth-snapshot.dashboard",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const AccountsCapability: import("@contractspec/lib.contracts").CapabilitySpec;
|
|
2
|
-
export declare const NetWorthCapability: import("@contractspec/lib.contracts").CapabilitySpec;
|
|
3
|
-
export declare const GoalsCapability: import("@contractspec/lib.contracts").CapabilitySpec;
|
|
4
|
-
//# sourceMappingURL=wealth-snapshot.capability.d.ts.map
|
|
1
|
+
export declare const AccountsCapability: import("@contractspec/lib.contracts-spec").CapabilitySpec;
|
|
2
|
+
export declare const NetWorthCapability: import("@contractspec/lib.contracts-spec").CapabilitySpec;
|
|
3
|
+
export declare const GoalsCapability: import("@contractspec/lib.contracts-spec").CapabilitySpec;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/wealth-snapshot.capability.ts
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
defineCapability,
|
|
5
|
+
StabilityEnum
|
|
6
|
+
} from "@contractspec/lib.contracts-spec";
|
|
4
7
|
var AccountsCapability = defineCapability({
|
|
5
8
|
meta: {
|
|
6
9
|
key: "accounts",
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export declare const WealthSnapshotFeature: import("@contractspec/lib.contracts").FeatureModuleSpec;
|
|
2
|
-
//# sourceMappingURL=wealth-snapshot.feature.d.ts.map
|
|
1
|
+
export declare const WealthSnapshotFeature: import("@contractspec/lib.contracts-spec").FeatureModuleSpec;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.wealth-snapshot",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Wealth Snapshot mini-app for accounts, assets, liabilities, and goals",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"typecheck": "tsc --noEmit"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@contractspec/lib.identity-rbac": "
|
|
23
|
-
"@contractspec/lib.schema": "
|
|
24
|
-
"@contractspec/lib.contracts": "
|
|
25
|
-
"@contractspec/module.audit-trail": "
|
|
26
|
-
"@contractspec/module.notifications": "
|
|
22
|
+
"@contractspec/lib.identity-rbac": "2.0.0",
|
|
23
|
+
"@contractspec/lib.schema": "2.0.0",
|
|
24
|
+
"@contractspec/lib.contracts-spec": "2.0.0",
|
|
25
|
+
"@contractspec/module.audit-trail": "2.0.0",
|
|
26
|
+
"@contractspec/module.notifications": "2.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@contractspec/tool.typescript": "
|
|
29
|
+
"@contractspec/tool.typescript": "2.0.0",
|
|
30
30
|
"typescript": "^5.9.3",
|
|
31
|
-
"@contractspec/tool.bun": "
|
|
31
|
+
"@contractspec/tool.bun": "2.0.0"
|
|
32
32
|
},
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|
package/dist/docs/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wealth-snapshot.docblock.d.ts","sourceRoot":"","sources":["../../src/docs/wealth-snapshot.docblock.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAIzE,eAAO,MAAM,eAAe,kDAK1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,kDAK5B,CAAC;AAEH,eAAO,MAAM,qBAAqB,kDAKhC,CAAC;AAEH,eAAO,MAAM,cAAc,kDAKzB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;EAmBxB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;EAyBtB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;EA+B1B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;EAiCrB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;EAgBjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAMlC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,wBAU9C,CAAC"}
|
package/dist/events.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;GAU1B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;GAU9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU3B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;GAwBvC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhC,CAAC"}
|
package/dist/example.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../src/example.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,mDAoCX,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handlers/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,8BAA8B,SAE7C"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,QAAQ,CAAC;AAOhB,eAAO,MAAM,iBAAiB;;;;CAS7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;EAUvB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAUzB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;EAWpB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAahC,CAAC;AA0EH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAahC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAa3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAa/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAa7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAa7B,CAAC;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/presentations/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,UAMvC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"presentations.d.ts","sourceRoot":"","sources":["../src/presentations.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,wDAsBtC,CAAC;AAEH,eAAO,MAAM,wBAAwB,wDAsBnC,CAAC;AAEH,eAAO,MAAM,sBAAsB,wDAsBjC,CAAC;AAEH,eAAO,MAAM,2BAA2B,wDAsBtC,CAAC;AAEH,eAAO,MAAM,qBAAqB,wDAsBhC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wealth-snapshot.capability.d.ts","sourceRoot":"","sources":["../src/wealth-snapshot.capability.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,sDAU7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,sDAU7B,CAAC;AAEH,eAAO,MAAM,eAAe,sDAU1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wealth-snapshot.feature.d.ts","sourceRoot":"","sources":["../src/wealth-snapshot.feature.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,yDAmEhC,CAAC"}
|