@contractspec/example.wealth-snapshot 1.46.2 → 1.48.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["wealthSnapshotSchemaContribution: ModuleSchemaContribution"],"sources":["../../src/entities/index.ts"],"sourcesContent":["import {\n defineEntity,\n defineEntityEnum,\n field,\n index,\n} from '@contractspec/lib.schema';\nimport type { ModuleSchemaContribution } from '@contractspec/lib.schema';\n\nconst schema = 'lssm_wealth_snapshot';\n\nexport const AccountTypeEnum = defineEntityEnum({\n name: 'AccountType',\n schema,\n values: ['CHECKING', 'SAVINGS', 'INVESTMENT', 'CREDIT_CARD', 'LOAN'] as const,\n description: 'Account categories for holdings and debts.',\n});\n\nexport const AssetCategoryEnum = defineEntityEnum({\n name: 'AssetCategory',\n schema,\n values: ['CASH', 'EQUITY', 'REAL_ESTATE', 'CRYPTO', 'OTHER'] as const,\n description: 'Asset categories.',\n});\n\nexport const LiabilityCategoryEnum = defineEntityEnum({\n name: 'LiabilityCategory',\n schema,\n values: ['CREDIT_CARD', 'LOAN', 'MORTGAGE', 'TAX', 'OTHER'] as const,\n description: 'Liability categories.',\n});\n\nexport const GoalStatusEnum = defineEntityEnum({\n name: 'GoalStatus',\n schema,\n values: ['ACTIVE', 'ON_TRACK', 'AT_RISK', 'OFF_TRACK', 'COMPLETED'] as const,\n description: 'Goal health/status.',\n});\n\nexport const AccountEntity = defineEntity({\n name: 'Account',\n description: 'Financial account representing holdings or debts.',\n schema,\n map: 'account',\n fields: {\n id: field.id({ description: 'Account ID' }),\n name: field.string({ description: 'Account name' }),\n type: field.enum('AccountType', { description: 'Account type' }),\n currency: field.string({ description: 'Currency code', default: '\"USD\"' }),\n balance: field.decimal({ description: 'Current balance' }),\n institution: field.string({ description: 'Institution', isOptional: true }),\n orgId: field.string({ description: 'Org/household id' }),\n ownerId: field.string({ description: 'Owner user id', isOptional: true }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n },\n enums: [AccountTypeEnum],\n indexes: [index.on(['orgId']), index.on(['type']), index.on(['ownerId'])],\n});\n\nexport const AssetEntity = defineEntity({\n name: 'Asset',\n description: 'Individual asset position.',\n schema,\n map: 'asset',\n fields: {\n id: field.id({ description: 'Asset ID' }),\n accountId: field.foreignKey({\n description: 'Holding account',\n isOptional: true,\n }),\n name: field.string({ description: 'Asset name' }),\n category: field.enum('AssetCategory', { description: 'Asset category' }),\n value: field.decimal({ description: 'Current value' }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n orgId: field.string({ description: 'Org/household id' }),\n metadata: field.json({ description: 'Metadata', isOptional: true }),\n updatedAt: field.updatedAt(),\n createdAt: field.createdAt(),\n account: field.belongsTo('Account', ['accountId'], ['id'], {\n onDelete: 'SetNull',\n }),\n },\n enums: [AssetCategoryEnum],\n indexes: [index.on(['orgId']), index.on(['category'])],\n});\n\nexport const LiabilityEntity = defineEntity({\n name: 'Liability',\n description: 'Debt or obligation.',\n schema,\n map: 'liability',\n fields: {\n id: field.id({ description: 'Liability ID' }),\n accountId: field.foreignKey({\n description: 'Liability account',\n isOptional: true,\n }),\n name: field.string({ description: 'Liability name' }),\n category: field.enum('LiabilityCategory', {\n description: 'Liability category',\n }),\n balance: field.decimal({ description: 'Outstanding balance' }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n interestRate: field.decimal({\n description: 'Interest rate (e.g., 0.05 for 5%)',\n isOptional: true,\n }),\n orgId: field.string({ description: 'Org/household id' }),\n metadata: field.json({ description: 'Metadata', isOptional: true }),\n updatedAt: field.updatedAt(),\n createdAt: field.createdAt(),\n account: field.belongsTo('Account', ['accountId'], ['id'], {\n onDelete: 'SetNull',\n }),\n },\n enums: [LiabilityCategoryEnum],\n indexes: [index.on(['orgId']), index.on(['category'])],\n});\n\nexport const GoalEntity = defineEntity({\n name: 'Goal',\n description: 'Financial goal with target amount/date.',\n schema,\n map: 'goal',\n fields: {\n id: field.id({ description: 'Goal ID' }),\n name: field.string({ description: 'Goal name' }),\n targetAmount: field.decimal({ description: 'Target amount' }),\n currentAmount: field.decimal({\n description: 'Current progress amount',\n default: 0,\n }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n targetDate: field.dateTime({\n description: 'Target completion date',\n isOptional: true,\n }),\n status: field.enum('GoalStatus', {\n description: 'Goal status',\n default: 'ACTIVE',\n }),\n orgId: field.string({ description: 'Org/household id' }),\n ownerId: field.string({ description: 'Owner user id', isOptional: true }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n },\n enums: [GoalStatusEnum],\n indexes: [\n index.on(['orgId']),\n index.on(['status']),\n index.on(['targetDate']),\n ],\n});\n\nexport const NetWorthSnapshotEntity = defineEntity({\n name: 'NetWorthSnapshot',\n description: 'Aggregated net worth snapshot for a date.',\n schema,\n map: 'networth_snapshot',\n fields: {\n id: field.id({ description: 'Snapshot ID' }),\n asOf: field.dateTime({ description: 'Snapshot date' }),\n totalAssets: field.decimal({ description: 'Total assets' }),\n totalLiabilities: field.decimal({ description: 'Total liabilities' }),\n netWorth: field.decimal({ description: 'Net worth' }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n orgId: field.string({ description: 'Org/household id' }),\n createdAt: field.createdAt(),\n },\n indexes: [index.unique(['orgId', 'asOf'], { name: 'networth_unique' })],\n});\n\nexport const wealthSnapshotEntities = [\n AccountEntity,\n AssetEntity,\n LiabilityEntity,\n GoalEntity,\n NetWorthSnapshotEntity,\n];\n\nexport const wealthSnapshotSchemaContribution: ModuleSchemaContribution = {\n moduleId: '@contractspec/example.wealth-snapshot',\n // schema,\n entities: wealthSnapshotEntities,\n enums: [\n AccountTypeEnum,\n AssetCategoryEnum,\n LiabilityCategoryEnum,\n GoalStatusEnum,\n ],\n};\n"],"mappings":";;;AAQA,MAAM,SAAS;AAEf,MAAa,kBAAkB,iBAAiB;CAC9C,MAAM;CACN;CACA,QAAQ;EAAC;EAAY;EAAW;EAAc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AM,MAAM,SAAS,EAAE,aAAa,iBAAiB,CAAC;EACtD,aAAa,MAAM,QAAQ,EAAE,aAAa,gBAAgB,CAAC;EAC3D,kBAAkB,MAAM,QAAQ,EAAE,aAAa,qBAAqB,CAAC;EACrE,UAAU,MAAM,QAAQ,EAAE,aAAa,aAAa,CAAC;EACrD,UAAU,MAAM,OAAO;GAAE,aAAa;GAAY,SAAS;GAAS,CAAC;EACrE,OAAO,MAAM,OAAO,EAAE,aAAa,oBAAoB,CAAC;EACxD,WAAW,MAAM,WAAW;EAC7B;CACD,SAAS,CAAC,MAAM,OAAO,CAAC,SAAS,OAAO,EAAE,EAAE,MAAM,mBAAmB,CAAC,CAAC;CACxE,CAAC;AAEF,MAAa,yBAAyB;CACpC;CACA;CACA;CACA;CACA;CACD;AAED,MAAaA,mCAA6D;CACxE,UAAU;CAEV,UAAU;CACV,OAAO;EACL;EACA;EACA;EACA;EACD;CACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/entities/index.ts"],"sourcesContent":["import {\n defineEntity,\n defineEntityEnum,\n field,\n index,\n} from '@contractspec/lib.schema';\nimport type { ModuleSchemaContribution } from '@contractspec/lib.schema';\n\nconst schema = 'lssm_wealth_snapshot';\n\nexport const AccountTypeEnum = defineEntityEnum({\n name: 'AccountType',\n schema,\n values: ['CHECKING', 'SAVINGS', 'INVESTMENT', 'CREDIT_CARD', 'LOAN'] as const,\n description: 'Account categories for holdings and debts.',\n});\n\nexport const AssetCategoryEnum = defineEntityEnum({\n name: 'AssetCategory',\n schema,\n values: ['CASH', 'EQUITY', 'REAL_ESTATE', 'CRYPTO', 'OTHER'] as const,\n description: 'Asset categories.',\n});\n\nexport const LiabilityCategoryEnum = defineEntityEnum({\n name: 'LiabilityCategory',\n schema,\n values: ['CREDIT_CARD', 'LOAN', 'MORTGAGE', 'TAX', 'OTHER'] as const,\n description: 'Liability categories.',\n});\n\nexport const GoalStatusEnum = defineEntityEnum({\n name: 'GoalStatus',\n schema,\n values: ['ACTIVE', 'ON_TRACK', 'AT_RISK', 'OFF_TRACK', 'COMPLETED'] as const,\n description: 'Goal health/status.',\n});\n\nexport const AccountEntity = defineEntity({\n name: 'Account',\n description: 'Financial account representing holdings or debts.',\n schema,\n map: 'account',\n fields: {\n id: field.id({ description: 'Account ID' }),\n name: field.string({ description: 'Account name' }),\n type: field.enum('AccountType', { description: 'Account type' }),\n currency: field.string({ description: 'Currency code', default: '\"USD\"' }),\n balance: field.decimal({ description: 'Current balance' }),\n institution: field.string({ description: 'Institution', isOptional: true }),\n orgId: field.string({ description: 'Org/household id' }),\n ownerId: field.string({ description: 'Owner user id', isOptional: true }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n },\n enums: [AccountTypeEnum],\n indexes: [index.on(['orgId']), index.on(['type']), index.on(['ownerId'])],\n});\n\nexport const AssetEntity = defineEntity({\n name: 'Asset',\n description: 'Individual asset position.',\n schema,\n map: 'asset',\n fields: {\n id: field.id({ description: 'Asset ID' }),\n accountId: field.foreignKey({\n description: 'Holding account',\n isOptional: true,\n }),\n name: field.string({ description: 'Asset name' }),\n category: field.enum('AssetCategory', { description: 'Asset category' }),\n value: field.decimal({ description: 'Current value' }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n orgId: field.string({ description: 'Org/household id' }),\n metadata: field.json({ description: 'Metadata', isOptional: true }),\n updatedAt: field.updatedAt(),\n createdAt: field.createdAt(),\n account: field.belongsTo('Account', ['accountId'], ['id'], {\n onDelete: 'SetNull',\n }),\n },\n enums: [AssetCategoryEnum],\n indexes: [index.on(['orgId']), index.on(['category'])],\n});\n\nexport const LiabilityEntity = defineEntity({\n name: 'Liability',\n description: 'Debt or obligation.',\n schema,\n map: 'liability',\n fields: {\n id: field.id({ description: 'Liability ID' }),\n accountId: field.foreignKey({\n description: 'Liability account',\n isOptional: true,\n }),\n name: field.string({ description: 'Liability name' }),\n category: field.enum('LiabilityCategory', {\n description: 'Liability category',\n }),\n balance: field.decimal({ description: 'Outstanding balance' }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n interestRate: field.decimal({\n description: 'Interest rate (e.g., 0.05 for 5%)',\n isOptional: true,\n }),\n orgId: field.string({ description: 'Org/household id' }),\n metadata: field.json({ description: 'Metadata', isOptional: true }),\n updatedAt: field.updatedAt(),\n createdAt: field.createdAt(),\n account: field.belongsTo('Account', ['accountId'], ['id'], {\n onDelete: 'SetNull',\n }),\n },\n enums: [LiabilityCategoryEnum],\n indexes: [index.on(['orgId']), index.on(['category'])],\n});\n\nexport const GoalEntity = defineEntity({\n name: 'Goal',\n description: 'Financial goal with target amount/date.',\n schema,\n map: 'goal',\n fields: {\n id: field.id({ description: 'Goal ID' }),\n name: field.string({ description: 'Goal name' }),\n targetAmount: field.decimal({ description: 'Target amount' }),\n currentAmount: field.decimal({\n description: 'Current progress amount',\n default: 0,\n }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n targetDate: field.dateTime({\n description: 'Target completion date',\n isOptional: true,\n }),\n status: field.enum('GoalStatus', {\n description: 'Goal status',\n default: 'ACTIVE',\n }),\n orgId: field.string({ description: 'Org/household id' }),\n ownerId: field.string({ description: 'Owner user id', isOptional: true }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n },\n enums: [GoalStatusEnum],\n indexes: [\n index.on(['orgId']),\n index.on(['status']),\n index.on(['targetDate']),\n ],\n});\n\nexport const NetWorthSnapshotEntity = defineEntity({\n name: 'NetWorthSnapshot',\n description: 'Aggregated net worth snapshot for a date.',\n schema,\n map: 'networth_snapshot',\n fields: {\n id: field.id({ description: 'Snapshot ID' }),\n asOf: field.dateTime({ description: 'Snapshot date' }),\n totalAssets: field.decimal({ description: 'Total assets' }),\n totalLiabilities: field.decimal({ description: 'Total liabilities' }),\n netWorth: field.decimal({ description: 'Net worth' }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n orgId: field.string({ description: 'Org/household id' }),\n createdAt: field.createdAt(),\n },\n indexes: [index.unique(['orgId', 'asOf'], { name: 'networth_unique' })],\n});\n\nexport const wealthSnapshotEntities = [\n AccountEntity,\n AssetEntity,\n LiabilityEntity,\n GoalEntity,\n NetWorthSnapshotEntity,\n];\n\nexport const wealthSnapshotSchemaContribution: ModuleSchemaContribution = {\n moduleId: '@contractspec/example.wealth-snapshot',\n // schema,\n entities: wealthSnapshotEntities,\n enums: [\n AccountTypeEnum,\n AssetCategoryEnum,\n LiabilityCategoryEnum,\n GoalStatusEnum,\n ],\n};\n"],"mappings":";;;AAQA,MAAM,SAAS;AAEf,MAAa,kBAAkB,iBAAiB;CAC9C,MAAM;CACN;CACA,QAAQ;EAAC;EAAY;EAAW;EAAc;EAAe;EAAO;CACpE,aAAa;CACd,CAAC;AAEF,MAAa,oBAAoB,iBAAiB;CAChD,MAAM;CACN;CACA,QAAQ;EAAC;EAAQ;EAAU;EAAe;EAAU;EAAQ;CAC5D,aAAa;CACd,CAAC;AAEF,MAAa,wBAAwB,iBAAiB;CACpD,MAAM;CACN;CACA,QAAQ;EAAC;EAAe;EAAQ;EAAY;EAAO;EAAQ;CAC3D,aAAa;CACd,CAAC;AAEF,MAAa,iBAAiB,iBAAiB;CAC7C,MAAM;CACN;CACA,QAAQ;EAAC;EAAU;EAAY;EAAW;EAAa;EAAY;CACnE,aAAa;CACd,CAAC;AAEF,MAAa,gBAAgB,aAAa;CACxC,MAAM;CACN,aAAa;CACb;CACA,KAAK;CACL,QAAQ;EACN,IAAI,MAAM,GAAG,EAAE,aAAa,cAAc,CAAC;EAC3C,MAAM,MAAM,OAAO,EAAE,aAAa,gBAAgB,CAAC;EACnD,MAAM,MAAM,KAAK,eAAe,EAAE,aAAa,gBAAgB,CAAC;EAChE,UAAU,MAAM,OAAO;GAAE,aAAa;GAAiB,SAAS;GAAS,CAAC;EAC1E,SAAS,MAAM,QAAQ,EAAE,aAAa,mBAAmB,CAAC;EAC1D,aAAa,MAAM,OAAO;GAAE,aAAa;GAAe,YAAY;GAAM,CAAC;EAC3E,OAAO,MAAM,OA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D,SAAS,MAAM,OAAO;GAAE,aAAa;GAAiB,YAAY;GAAM,CAAC;EACzE,WAAW,MAAM,WAAW;EAC5B,WAAW,MAAM,WAAW;EAC7B;CACD,OAAO,CAAC,eAAe;CACvB,SAAS;EACP,MAAM,GAAG,CAAC,QAAQ,CAAC;EACnB,MAAM,GAAG,CAAC,SAAS,CAAC;EACpB,MAAM,GAAG,CAAC,aAAa,CAAC;EACzB;CACF,CAAC;AAEF,MAAa,yBAAyB,aAAa;CACjD,MAAM;CACN,aAAa;CACb;CACA,KAAK;CACL,QAAQ;EACN,IAAI,MAAM,GAAG,EAAE,aAAa,eAAe,CAAC;EAC5C,MAAM,MAAM,SAAS,EAAE,aAAa,iBAAiB,CAAC;EACtD,aAAa,MAAM,QAAQ,EAAE,aAAa,gBAAgB,CAAC;EAC3D,kBAAkB,MAAM,QAAQ,EAAE,aAAa,qBAAqB,CAAC;EACrE,UAAU,MAAM,QAAQ,EAAE,aAAa,aAAa,CAAC;EACrD,UAAU,MAAM,OAAO;GAAE,aAAa;GAAY,SAAS;GAAS,CAAC;EACrE,OAAO,MAAM,OAAO,EAAE,aAAa,oBAAoB,CAAC;EACxD,WAAW,MAAM,WAAW;EAC7B;CACD,SAAS,CAAC,MAAM,OAAO,CAAC,SAAS,OAAO,EAAE,EAAE,MAAM,mBAAmB,CAAC,CAAC;CACxE,CAAC;AAEF,MAAa,yBAAyB;CACpC;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,mCAA6D;CACxE,UAAU;CAEV,UAAU;CACV,OAAO;EACL;EACA;EACA;EACA;EACD;CACF"}
package/dist/example.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ExampleSpec } from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts7 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/example.d.ts
4
- declare const example: ExampleSpec;
4
+ declare const example: _contractspec_lib_contracts7.ExampleSpec;
5
5
  //#endregion
6
6
  export { example as default };
7
7
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAoCJ,4BAAA,CApCW"}
package/dist/example.js CHANGED
@@ -1,5 +1,7 @@
1
+ import { defineExample } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/example.ts
2
- const example = {
4
+ const example = defineExample({
3
5
  meta: {
4
6
  key: "wealth-snapshot",
5
7
  version: "1.0.0",
@@ -47,7 +49,7 @@ const example = {
47
49
  },
48
50
  mcp: { enabled: true }
49
51
  }
50
- };
52
+ });
51
53
  var example_default = example;
52
54
 
53
55
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'wealth-snapshot',\n version: '1.0.0',\n title: 'Wealth Snapshot',\n description:\n 'Simple wealth overview with accounts, assets, liabilities, goals, and net-worth snapshots.',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['finance', 'net-worth', 'goals'],\n },\n docs: {\n rootDocId: 'docs.examples.wealth-snapshot',\n goalDocId: 'docs.examples.wealth-snapshot.goal',\n usageDocId: 'docs.examples.wealth-snapshot.usage',\n constraintsDocId: 'docs.examples.wealth-snapshot.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.wealth-snapshot',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAW;GAAa;GAAQ;EACxC;CACD,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
1
+ {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["import { defineExample } from '@contractspec/lib.contracts';\n\nconst example = defineExample({\n meta: {\n key: 'wealth-snapshot',\n version: '1.0.0',\n title: 'Wealth Snapshot',\n description:\n 'Simple wealth overview with accounts, assets, liabilities, goals, and net-worth snapshots.',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['finance', 'net-worth', 'goals'],\n },\n docs: {\n rootDocId: 'docs.examples.wealth-snapshot',\n goalDocId: 'docs.examples.wealth-snapshot.goal',\n usageDocId: 'docs.examples.wealth-snapshot.usage',\n constraintsDocId: 'docs.examples.wealth-snapshot.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.wealth-snapshot',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n});\n\nexport default example;\n"],"mappings":";;;AAEA,MAAM,UAAU,cAAc;CAC5B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAW;GAAa;GAAQ;EACxC;CACD,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF,CAAC;AAEF,sBAAe"}
@@ -1,5 +1,5 @@
1
1
  import * as _contractspec_lib_schema176 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts7 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_contracts17 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/operations/index.d.ts
5
5
  declare const AccountModel: _contractspec_lib_schema176.SchemaModel<{
@@ -116,7 +116,7 @@ declare const NetWorthSnapshotModel: _contractspec_lib_schema176.SchemaModel<{
116
116
  isOptional: false;
117
117
  };
118
118
  }>;
119
- declare const CreateAccountContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
119
+ declare const CreateAccountContract: _contractspec_lib_contracts17.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
120
120
  name: {
121
121
  type: _contractspec_lib_schema176.FieldType<string, string>;
122
122
  isOptional: false;
@@ -159,7 +159,7 @@ declare const CreateAccountContract: _contractspec_lib_contracts7.OperationSpec<
159
159
  isOptional: false;
160
160
  };
161
161
  }>, undefined>;
162
- declare const AddAssetContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
162
+ declare const AddAssetContract: _contractspec_lib_contracts17.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
163
163
  accountId: {
164
164
  type: _contractspec_lib_schema176.FieldType<string, string>;
165
165
  isOptional: true;
@@ -206,7 +206,7 @@ declare const AddAssetContract: _contractspec_lib_contracts7.OperationSpec<_cont
206
206
  isOptional: false;
207
207
  };
208
208
  }>, undefined>;
209
- declare const AddLiabilityContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
209
+ declare const AddLiabilityContract: _contractspec_lib_contracts17.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
210
210
  accountId: {
211
211
  type: _contractspec_lib_schema176.FieldType<string, string>;
212
212
  isOptional: true;
@@ -253,7 +253,7 @@ declare const AddLiabilityContract: _contractspec_lib_contracts7.OperationSpec<_
253
253
  isOptional: false;
254
254
  };
255
255
  }>, undefined>;
256
- declare const CreateGoalContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
256
+ declare const CreateGoalContract: _contractspec_lib_contracts17.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
257
257
  name: {
258
258
  type: _contractspec_lib_schema176.FieldType<string, string>;
259
259
  isOptional: false;
@@ -300,7 +300,7 @@ declare const CreateGoalContract: _contractspec_lib_contracts7.OperationSpec<_co
300
300
  isOptional: false;
301
301
  };
302
302
  }>, undefined>;
303
- declare const UpdateGoalContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
303
+ declare const UpdateGoalContract: _contractspec_lib_contracts17.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
304
304
  goalId: {
305
305
  type: _contractspec_lib_schema176.FieldType<string, string>;
306
306
  isOptional: false;
@@ -339,7 +339,7 @@ declare const UpdateGoalContract: _contractspec_lib_contracts7.OperationSpec<_co
339
339
  isOptional: false;
340
340
  };
341
341
  }>, undefined>;
342
- declare const GetNetWorthContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
342
+ declare const GetNetWorthContract: _contractspec_lib_contracts17.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
343
343
  orgId: {
344
344
  type: _contractspec_lib_schema176.FieldType<string, string>;
345
345
  isOptional: false;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/operations/index.ts"],"sourcesContent":[],"mappings":";;;;cAKa,0CAAY;;UAUvB,2BAAA,CAAA;;EAVW,CAAA;EAUX,IAAA,EAAA;;;;;+CAVuB,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAYZ,CAAA;EAUX,QAAA,EAAA;;;;;+CAVqB,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAYV,CAAA;CAUX,CAAA;cAtBW,wCAAU;;UAUrB,2BAAA,CAAA;;;EAEyB,IAAA,EAAA;IAYd,IAAA,uCAWX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;IAXoB,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAaT,UAAA,EAAA,KAAA;;;;;;;cAzBA,cAyBqB,8BAzBP,WAyBO,CAAA;EAAA,EAAA,EAAA;IAuFrB,IAAA,EAtGX,2BAAA,CAAA,SAmHA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;EAbgC,QAAA,EAAA;;;;;;;EAAA,CAAA;EAerB,QAAA,EAAA;IAaX,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;cAhIW,uCAAS;;UAWpB,2BAAA,CAAA,SAwG2B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAehB,UAAA,EAAA,KAAA;EAaX,CAAA;;;;;;+CAb+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;AAAA,cArHpB,qBAqHoB,8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,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;UAvGgC,2BAAA,CAAA;;;;;;;;;;EA4EF,CAAA;;;;;;;;;;cA7DnB,gDAAgB,0CAAA;;UAa3B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;UAb2B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;cAehB,oDAAoB,0CAAA;;UAa/B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;UAb+B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;cAepB,kDAAkB,0CAAA;;UAa7B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;UAb6B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAelB,kDAAkB,0CAAA;;UAa7B,2BAAA,CAAA;;;;;;;;;;;;;UAb6B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAgBlB,mDAAmB,0CAAA;;UA2B9B,2BAAA,CAAA"}
@@ -1,11 +1,11 @@
1
- import { PresentationSpec } from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts8 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/presentations.d.ts
4
- declare const WealthDashboardPresentation: PresentationSpec;
5
- declare const AccountsListPresentation: PresentationSpec;
6
- declare const AssetsListPresentation: PresentationSpec;
7
- declare const LiabilitiesListPresentation: PresentationSpec;
8
- declare const GoalsListPresentation: PresentationSpec;
4
+ declare const WealthDashboardPresentation: _contractspec_lib_contracts8.PresentationSpec;
5
+ declare const AccountsListPresentation: _contractspec_lib_contracts8.PresentationSpec;
6
+ declare const AssetsListPresentation: _contractspec_lib_contracts8.PresentationSpec;
7
+ declare const LiabilitiesListPresentation: _contractspec_lib_contracts8.PresentationSpec;
8
+ declare const GoalsListPresentation: _contractspec_lib_contracts8.PresentationSpec;
9
9
  //#endregion
10
10
  export { AccountsListPresentation, AssetsListPresentation, GoalsListPresentation, LiabilitiesListPresentation, WealthDashboardPresentation };
11
11
  //# sourceMappingURL=presentations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"presentations.d.ts","names":[],"sources":["../src/presentations.ts"],"sourcesContent":[],"mappings":";;;cAGa,6BAA6B;cAwB7B,0BAA0B;AAxB1B,cAgDA,sBA1BZ,EA0BoC,gBAhDK;AAwB7B,cAgDA,2BAhD0B,EAgDG,gBA1BzC;AAEY,cAgDA,qBAhDwB,EAgDD,gBA1BnC"}
1
+ {"version":3,"file":"presentations.d.ts","names":[],"sources":["../src/presentations.ts"],"sourcesContent":[],"mappings":";;;cAEa,6BAsBX,4BAAA,CAtBsC;cAwB3B,0BAsBX,4BAAA,CAtBmC;cAwBxB,wBAsBX,4BAAA,CAtBiC;AAhDtB,cAwEA,2BAlDX,EAwEA,4BAAA,CAtBsC,gBAlDtC;AAEW,cAwEA,qBAlDX,EAwEA,4BAAA,CAtBgC,gBAlDhC"}
@@ -1,7 +1,7 @@
1
- import { StabilityEnum } from "@contractspec/lib.contracts";
1
+ import { StabilityEnum, definePresentation } from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/presentations.ts
4
- const WealthDashboardPresentation = {
4
+ const WealthDashboardPresentation = definePresentation({
5
5
  meta: {
6
6
  key: "wealth-snapshot.dashboard",
7
7
  version: "1.0.0",
@@ -25,8 +25,8 @@ const WealthDashboardPresentation = {
25
25
  },
26
26
  targets: ["react", "markdown"],
27
27
  policy: { flags: ["wealth.dashboard.enabled"] }
28
- };
29
- const AccountsListPresentation = {
28
+ });
29
+ const AccountsListPresentation = definePresentation({
30
30
  meta: {
31
31
  key: "wealth-snapshot.accounts.list",
32
32
  version: "1.0.0",
@@ -50,8 +50,8 @@ const AccountsListPresentation = {
50
50
  },
51
51
  targets: ["react", "markdown"],
52
52
  policy: { flags: ["wealth.accounts.enabled"] }
53
- };
54
- const AssetsListPresentation = {
53
+ });
54
+ const AssetsListPresentation = definePresentation({
55
55
  meta: {
56
56
  key: "wealth-snapshot.assets.list",
57
57
  version: "1.0.0",
@@ -75,8 +75,8 @@ const AssetsListPresentation = {
75
75
  },
76
76
  targets: ["react", "markdown"],
77
77
  policy: { flags: ["wealth.assets.enabled"] }
78
- };
79
- const LiabilitiesListPresentation = {
78
+ });
79
+ const LiabilitiesListPresentation = definePresentation({
80
80
  meta: {
81
81
  key: "wealth-snapshot.liabilities.list",
82
82
  version: "1.0.0",
@@ -100,8 +100,8 @@ const LiabilitiesListPresentation = {
100
100
  },
101
101
  targets: ["react", "markdown"],
102
102
  policy: { flags: ["wealth.liabilities.enabled"] }
103
- };
104
- const GoalsListPresentation = {
103
+ });
104
+ const GoalsListPresentation = definePresentation({
105
105
  meta: {
106
106
  key: "wealth-snapshot.goals.list",
107
107
  version: "1.0.0",
@@ -125,7 +125,7 @@ const GoalsListPresentation = {
125
125
  },
126
126
  targets: ["react", "markdown"],
127
127
  policy: { flags: ["wealth.goals.enabled"] }
128
- };
128
+ });
129
129
 
130
130
  //#endregion
131
131
  export { AccountsListPresentation, AssetsListPresentation, GoalsListPresentation, LiabilitiesListPresentation, WealthDashboardPresentation };
@@ -1 +1 @@
1
- {"version":3,"file":"presentations.js","names":["WealthDashboardPresentation: PresentationSpec","AccountsListPresentation: PresentationSpec","AssetsListPresentation: PresentationSpec","LiabilitiesListPresentation: PresentationSpec","GoalsListPresentation: PresentationSpec"],"sources":["../src/presentations.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\n\nexport const WealthDashboardPresentation: PresentationSpec = {\n meta: {\n key: 'wealth-snapshot.dashboard',\n version: '1.0.0',\n title: 'Wealth Dashboard',\n description: 'Wealth snapshot dashboard with net worth overview',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'wealth', 'dashboard'],\n stability: StabilityEnum.Experimental,\n goal: 'Overview of wealth',\n context: 'Dashboard',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'WealthDashboard',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['wealth.dashboard.enabled'],\n },\n};\n\nexport const AccountsListPresentation: PresentationSpec = {\n meta: {\n key: 'wealth-snapshot.accounts.list',\n version: '1.0.0',\n title: 'Accounts List',\n description: 'List of financial accounts',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'accounts', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'List accounts',\n context: 'Overview',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AccountsList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['wealth.accounts.enabled'],\n },\n};\n\nexport const AssetsListPresentation: PresentationSpec = {\n meta: {\n key: 'wealth-snapshot.assets.list',\n version: '1.0.0',\n title: 'Assets List',\n description: 'List of assets with valuations',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'assets', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'List assets',\n context: 'Overview',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AssetsList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['wealth.assets.enabled'],\n },\n};\n\nexport const LiabilitiesListPresentation: PresentationSpec = {\n meta: {\n key: 'wealth-snapshot.liabilities.list',\n version: '1.0.0',\n title: 'Liabilities List',\n description: 'List of liabilities and debts',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'liabilities', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'List liabilities',\n context: 'Overview',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'LiabilitiesList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['wealth.liabilities.enabled'],\n },\n};\n\nexport const GoalsListPresentation: PresentationSpec = {\n meta: {\n key: 'wealth-snapshot.goals.list',\n version: '1.0.0',\n title: 'Goals List',\n description: 'List of financial goals with progress',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'goals', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'List goals',\n context: 'Overview',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'GoalsList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['wealth.goals.enabled'],\n },\n};\n"],"mappings":";;;AAGA,MAAaA,8BAAgD;CAC3D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GAAC;GAAW;GAAU;GAAY;EACxC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,2BAA2B,EACpC;CACF;AAED,MAAaC,2BAA6C;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GAAC;GAAW;GAAY;GAAO;EACrC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,0BAA0B,EACnC;CACF;AAED,MAAaC,yBAA2C;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GAAC;GAAW;GAAU;GAAO;EACnC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,wBAAwB,EACjC;CACF;AAED,MAAaC,8BAAgD;CAC3D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GAAC;GAAW;GAAe;GAAO;EACxC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,6BAA6B,EACtC;CACF;AAED,MAAaC,wBAA0C;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GAAC;GAAW;GAAS;GAAO;EAClC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,uBAAuB,EAChC;CACF"}
1
+ {"version":3,"file":"presentations.js","names":[],"sources":["../src/presentations.ts"],"sourcesContent":["import { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';\n\nexport const WealthDashboardPresentation = definePresentation({\n meta: {\n key: 'wealth-snapshot.dashboard',\n version: '1.0.0',\n title: 'Wealth Dashboard',\n description: 'Wealth snapshot dashboard with net worth overview',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'wealth', 'dashboard'],\n stability: StabilityEnum.Experimental,\n goal: 'Overview of wealth',\n context: 'Dashboard',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'WealthDashboard',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['wealth.dashboard.enabled'],\n },\n});\n\nexport const AccountsListPresentation = definePresentation({\n meta: {\n key: 'wealth-snapshot.accounts.list',\n version: '1.0.0',\n title: 'Accounts List',\n description: 'List of financial accounts',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'accounts', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'List accounts',\n context: 'Overview',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AccountsList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['wealth.accounts.enabled'],\n },\n});\n\nexport const AssetsListPresentation = definePresentation({\n meta: {\n key: 'wealth-snapshot.assets.list',\n version: '1.0.0',\n title: 'Assets List',\n description: 'List of assets with valuations',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'assets', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'List assets',\n context: 'Overview',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AssetsList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['wealth.assets.enabled'],\n },\n});\n\nexport const LiabilitiesListPresentation = definePresentation({\n meta: {\n key: 'wealth-snapshot.liabilities.list',\n version: '1.0.0',\n title: 'Liabilities List',\n description: 'List of liabilities and debts',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'liabilities', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'List liabilities',\n context: 'Overview',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'LiabilitiesList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['wealth.liabilities.enabled'],\n },\n});\n\nexport const GoalsListPresentation = definePresentation({\n meta: {\n key: 'wealth-snapshot.goals.list',\n version: '1.0.0',\n title: 'Goals List',\n description: 'List of financial goals with progress',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'goals', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'List goals',\n context: 'Overview',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'GoalsList',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['wealth.goals.enabled'],\n },\n});\n"],"mappings":";;;AAEA,MAAa,8BAA8B,mBAAmB;CAC5D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GAAC;GAAW;GAAU;GAAY;EACxC,WAAW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AAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GAAC;GAAW;GAAS;GAAO;EAClC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,uBAAuB,EAChC;CACF,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as _contractspec_lib_contracts13 from "@contractspec/lib.contracts";
2
+
3
+ //#region src/wealth-snapshot.capability.d.ts
4
+ declare const AccountsCapability: _contractspec_lib_contracts13.CapabilitySpec;
5
+ declare const NetWorthCapability: _contractspec_lib_contracts13.CapabilitySpec;
6
+ declare const GoalsCapability: _contractspec_lib_contracts13.CapabilitySpec;
7
+ //#endregion
8
+ export { AccountsCapability, GoalsCapability, NetWorthCapability };
9
+ //# sourceMappingURL=wealth-snapshot.capability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wealth-snapshot.capability.d.ts","names":[],"sources":["../src/wealth-snapshot.capability.ts"],"sourcesContent":[],"mappings":";;;cAEa,oBAUX,6BAAA,CAV6B;cAYlB,oBAUX,6BAAA,CAV6B;cAYlB,iBAUX,6BAAA,CAV0B"}
@@ -0,0 +1,46 @@
1
+ import { StabilityEnum, defineCapability } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/wealth-snapshot.capability.ts
4
+ const AccountsCapability = defineCapability({ meta: {
5
+ key: "accounts",
6
+ version: "1.0.0",
7
+ kind: "data",
8
+ stability: StabilityEnum.Experimental,
9
+ description: "Financial accounts tracking and aggregation",
10
+ owners: ["platform.finance"],
11
+ tags: [
12
+ "accounts",
13
+ "finance",
14
+ "wealth"
15
+ ]
16
+ } });
17
+ const NetWorthCapability = defineCapability({ meta: {
18
+ key: "net-worth",
19
+ version: "1.0.0",
20
+ kind: "ui",
21
+ stability: StabilityEnum.Experimental,
22
+ description: "Net worth visualization and tracking",
23
+ owners: ["platform.finance"],
24
+ tags: [
25
+ "net-worth",
26
+ "wealth",
27
+ "dashboard"
28
+ ]
29
+ } });
30
+ const GoalsCapability = defineCapability({ meta: {
31
+ key: "goals",
32
+ version: "1.0.0",
33
+ kind: "ui",
34
+ stability: StabilityEnum.Experimental,
35
+ description: "Financial goal setting and progress tracking",
36
+ owners: ["platform.finance"],
37
+ tags: [
38
+ "goals",
39
+ "planning",
40
+ "wealth"
41
+ ]
42
+ } });
43
+
44
+ //#endregion
45
+ export { AccountsCapability, GoalsCapability, NetWorthCapability };
46
+ //# sourceMappingURL=wealth-snapshot.capability.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wealth-snapshot.capability.js","names":[],"sources":["../src/wealth-snapshot.capability.ts"],"sourcesContent":["import { defineCapability, StabilityEnum } from '@contractspec/lib.contracts';\n\nexport const AccountsCapability = defineCapability({\n meta: {\n key: 'accounts',\n version: '1.0.0',\n kind: 'data',\n stability: StabilityEnum.Experimental,\n description: 'Financial accounts tracking and aggregation',\n owners: ['platform.finance'],\n tags: ['accounts', 'finance', 'wealth'],\n },\n});\n\nexport const NetWorthCapability = defineCapability({\n meta: {\n key: 'net-worth',\n version: '1.0.0',\n kind: 'ui',\n stability: StabilityEnum.Experimental,\n description: 'Net worth visualization and tracking',\n owners: ['platform.finance'],\n tags: ['net-worth', 'wealth', 'dashboard'],\n },\n});\n\nexport const GoalsCapability = defineCapability({\n meta: {\n key: 'goals',\n version: '1.0.0',\n kind: 'ui',\n stability: StabilityEnum.Experimental,\n description: 'Financial goal setting and progress tracking',\n owners: ['platform.finance'],\n tags: ['goals', 'planning', 'wealth'],\n },\n});\n"],"mappings":";;;AAEA,MAAa,qBAAqB,iBAAiB,EACjD,MAAM;CACJ,KAAK;CACL,SAAS;CACT,MAAM;CACN,WAAW,cAAc;CACzB,aAAa;CACb,QAAQ,CAAC,mBAAmB;CAC5B,MAAM;EAAC;EAAY;EAAW;EAAS;CACxC,EACF,CAAC;AAEF,MAAa,qBAAqB,iBAAiB,EACjD,MAAM;CACJ,KAAK;CACL,SAAS;CACT,MAAM;CACN,WAAW,cAAc;CACzB,aAAa;CACb,QAAQ,CAAC,mBAAmB;CAC5B,MAAM;EAAC;EAAa;EAAU;EAAY;CAC3C,EACF,CAAC;AAEF,MAAa,kBAAkB,iBAAiB,EAC9C,MAAM;CACJ,KAAK;CACL,SAAS;CACT,MAAM;CACN,WAAW,cAAc;CACzB,aAAa;CACb,QAAQ,CAAC,mBAAmB;CAC5B,MAAM;EAAC;EAAS;EAAY;EAAS;CACtC,EACF,CAAC"}
@@ -1,7 +1,7 @@
1
- import { FeatureModuleSpec } from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts16 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/wealth-snapshot.feature.d.ts
4
- declare const WealthSnapshotFeature: FeatureModuleSpec;
4
+ declare const WealthSnapshotFeature: _contractspec_lib_contracts16.FeatureModuleSpec;
5
5
  //#endregion
6
6
  export { WealthSnapshotFeature };
7
7
  //# sourceMappingURL=wealth-snapshot.feature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wealth-snapshot.feature.d.ts","names":[],"sources":["../src/wealth-snapshot.feature.ts"],"sourcesContent":[],"mappings":";;;cAEa,uBAAuB"}
1
+ {"version":3,"file":"wealth-snapshot.feature.d.ts","names":[],"sources":["../src/wealth-snapshot.feature.ts"],"sourcesContent":[],"mappings":";;;cAEa,uBAmEX,6BAAA,CAnEgC"}
@@ -1,5 +1,7 @@
1
+ import { defineFeature } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/wealth-snapshot.feature.ts
2
- const WealthSnapshotFeature = {
4
+ const WealthSnapshotFeature = defineFeature({
3
5
  meta: {
4
6
  key: "wealth-snapshot",
5
7
  version: "1.0.0",
@@ -132,7 +134,7 @@ const WealthSnapshotFeature = {
132
134
  }
133
135
  ]
134
136
  }
135
- };
137
+ });
136
138
 
137
139
  //#endregion
138
140
  export { WealthSnapshotFeature };
@@ -1 +1 @@
1
- {"version":3,"file":"wealth-snapshot.feature.js","names":["WealthSnapshotFeature: FeatureModuleSpec"],"sources":["../src/wealth-snapshot.feature.ts"],"sourcesContent":["import type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\nexport const WealthSnapshotFeature: FeatureModuleSpec = {\n meta: {\n key: 'wealth-snapshot',\n version: '1.0.0',\n title: 'Wealth Snapshot',\n description:\n 'Mini-app for accounts, assets, liabilities, goals, and net worth.',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'net-worth', 'goals'],\n stability: 'experimental',\n },\n operations: [\n { key: 'wealth.account.create', version: '1.0.0' },\n { key: 'wealth.asset.add', version: '1.0.0' },\n { key: 'wealth.liability.add', version: '1.0.0' },\n { key: 'wealth.goal.create', version: '1.0.0' },\n { key: 'wealth.goal.update', version: '1.0.0' },\n { key: 'wealth.networth.get', version: '1.0.0' },\n ],\n events: [\n { key: 'wealth.asset.added', version: '1.0.0' },\n { key: 'wealth.liability.added', version: '1.0.0' },\n { key: 'wealth.goal.updated', version: '1.0.0' },\n { key: 'wealth.networth.snapshot_created', version: '1.0.0' },\n ],\n presentations: [\n { key: 'wealth-snapshot.dashboard', version: '1.0.0' },\n { key: 'wealth-snapshot.accounts.list', version: '1.0.0' },\n { key: 'wealth-snapshot.assets.list', version: '1.0.0' },\n { key: 'wealth-snapshot.liabilities.list', version: '1.0.0' },\n { key: 'wealth-snapshot.goals.list', version: '1.0.0' },\n ],\n presentationsTargets: [\n {\n key: 'wealth-snapshot.dashboard',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'wealth-snapshot.assets.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'wealth-snapshot.liabilities.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'wealth-snapshot.goals.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n ],\n capabilities: {\n requires: [\n { key: 'identity', version: '1.0.0' },\n { key: 'audit-trail', version: '1.0.0' },\n { key: 'notifications', version: '1.0.0' },\n ],\n provides: [\n { key: 'accounts', version: '1.0.0' },\n { key: 'net-worth', version: '1.0.0' },\n { key: 'goals', version: '1.0.0' },\n ],\n },\n};\n"],"mappings":";AAEA,MAAaA,wBAA2C;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GAAC;GAAW;GAAa;GAAQ;EACvC,WAAW;EACZ;CACD,YAAY;EACV;GAAE,KAAK;GAAyB,SAAS;GAAS;EAClD;GAAE,KAAK;GAAoB,SAAS;GAAS;EAC7C;GAAE,KAAK;GAAwB,SAAS;GAAS;EACjD;GAAE,KAAK;GAAsB,SAAS;GAAS;EAC/C;GAAE,KAAK;GAAsB,SAAS;GAAS;EAC/C;GAAE,KAAK;GAAuB,SAAS;GAAS;EACjD;CACD,QAAQ;EACN;GAAE,KAAK;GAAsB,SAAS;GAAS;EAC/C;GAAE,KAAK;GAA0B,SAAS;GAAS;EACnD;GAAE,KAAK;GAAuB,SAAS;GAAS;EAChD;GAAE,KAAK;GAAoC,SAAS;GAAS;EAC9D;CACD,eAAe;EACb;GAAE,KAAK;GAA6B,SAAS;GAAS;EACtD;GAAE,KAAK;GAAiC,SAAS;GAAS;EAC1D;GAAE,KAAK;GAA+B,SAAS;GAAS;EACxD;GAAE,KAAK;GAAoC,SAAS;GAAS;EAC7D;GAAE,KAAK;GAA8B,SAAS;GAAS;EACxD;CACD,sBAAsB;EACpB;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACF;CACD,cAAc;EACZ,UAAU;GACR;IAAE,KAAK;IAAY,SAAS;IAAS;GACrC;IAAE,KAAK;IAAe,SAAS;IAAS;GACxC;IAAE,KAAK;IAAiB,SAAS;IAAS;GAC3C;EACD,UAAU;GACR;IAAE,KAAK;IAAY,SAAS;IAAS;GACrC;IAAE,KAAK;IAAa,SAAS;IAAS;GACtC;IAAE,KAAK;IAAS,SAAS;IAAS;GACnC;EACF;CACF"}
1
+ {"version":3,"file":"wealth-snapshot.feature.js","names":[],"sources":["../src/wealth-snapshot.feature.ts"],"sourcesContent":["import { defineFeature } from '@contractspec/lib.contracts';\n\nexport const WealthSnapshotFeature = defineFeature({\n meta: {\n key: 'wealth-snapshot',\n version: '1.0.0',\n title: 'Wealth Snapshot',\n description:\n 'Mini-app for accounts, assets, liabilities, goals, and net worth.',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'net-worth', 'goals'],\n stability: 'experimental',\n },\n operations: [\n { key: 'wealth.account.create', version: '1.0.0' },\n { key: 'wealth.asset.add', version: '1.0.0' },\n { key: 'wealth.liability.add', version: '1.0.0' },\n { key: 'wealth.goal.create', version: '1.0.0' },\n { key: 'wealth.goal.update', version: '1.0.0' },\n { key: 'wealth.networth.get', version: '1.0.0' },\n ],\n events: [\n { key: 'wealth.asset.added', version: '1.0.0' },\n { key: 'wealth.liability.added', version: '1.0.0' },\n { key: 'wealth.goal.updated', version: '1.0.0' },\n { key: 'wealth.networth.snapshot_created', version: '1.0.0' },\n ],\n presentations: [\n { key: 'wealth-snapshot.dashboard', version: '1.0.0' },\n { key: 'wealth-snapshot.accounts.list', version: '1.0.0' },\n { key: 'wealth-snapshot.assets.list', version: '1.0.0' },\n { key: 'wealth-snapshot.liabilities.list', version: '1.0.0' },\n { key: 'wealth-snapshot.goals.list', version: '1.0.0' },\n ],\n presentationsTargets: [\n {\n key: 'wealth-snapshot.dashboard',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'wealth-snapshot.assets.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'wealth-snapshot.liabilities.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'wealth-snapshot.goals.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n ],\n capabilities: {\n requires: [\n { key: 'identity', version: '1.0.0' },\n { key: 'audit-trail', version: '1.0.0' },\n { key: 'notifications', version: '1.0.0' },\n ],\n provides: [\n { key: 'accounts', version: '1.0.0' },\n { key: 'net-worth', version: '1.0.0' },\n { key: 'goals', version: '1.0.0' },\n ],\n },\n});\n"],"mappings":";;;AAEA,MAAa,wBAAwB,cAAc;CACjD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GAAC;GAAW;GAAa;GAAQ;EACvC,WAAW;EACZ;CACD,YAAY;EACV;GAAE,KAAK;GAAyB,SAAS;GAAS;EAClD;GAAE,KAAK;GAAoB,SAAS;GAAS;EAC7C;GAAE,KAAK;GAAwB,SAAS;GAAS;EACjD;GAAE,KAAK;GAAsB,SAAS;GAAS;EAC/C;GAAE,KAAK;GAAsB,SAAS;GAAS;EAC/C;GAAE,KAAK;GAAuB,SAAS;GAAS;EACjD;CACD,QAAQ;EACN;GAAE,KAAK;GAAsB,SAAS;GAAS;EAC/C;GAAE,KAAK;GAA0B,SAAS;GAAS;EACnD;GAAE,KAAK;GAAuB,SAAS;GAAS;EAChD;GAAE,KAAK;GAAoC,SAAS;GAAS;EAC9D;CACD,eAAe;EACb;GAAE,KAAK;GAA6B,SAAS;GAAS;EACtD;GAAE,KAAK;GAAiC,SAAS;GAAS;EAC1D;GAAE,KAAK;GAA+B,SAAS;GAAS;EACxD;GAAE,KAAK;GAAoC,SAAS;GAAS;EAC7D;GAAE,KAAK;GAA8B,SAAS;GAAS;EACxD;CACD,sBAAsB;EACpB;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACF;CACD,cAAc;EACZ,UAAU;GACR;IAAE,KAAK;IAAY,SAAS;IAAS;GACrC;IAAE,KAAK;IAAe,SAAS;IAAS;GACxC;IAAE,KAAK;IAAiB,SAAS;IAAS;GAC3C;EACD,UAAU;GACR;IAAE,KAAK;IAAY,SAAS;IAAS;GACrC;IAAE,KAAK;IAAa,SAAS;IAAS;GACtC;IAAE,KAAK;IAAS,SAAS;IAAS;GACnC;EACF;CACF,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@contractspec/example.wealth-snapshot",
3
- "version": "1.46.2",
3
+ "version": "1.48.0",
4
4
  "description": "Wealth Snapshot mini-app for accounts, assets, liabilities, and goals",
5
- "main": "./dist/index.js",
6
5
  "types": "./dist/index.d.ts",
7
6
  "type": "module",
8
7
  "scripts": {
@@ -18,15 +17,15 @@
18
17
  "lint:check": "eslint src"
19
18
  },
20
19
  "dependencies": {
21
- "@contractspec/lib.identity-rbac": "1.46.2",
22
- "@contractspec/lib.schema": "1.46.2",
23
- "@contractspec/lib.contracts": "1.46.2",
24
- "@contractspec/module.audit-trail": "1.46.2",
25
- "@contractspec/module.notifications": "1.46.2"
20
+ "@contractspec/lib.identity-rbac": "1.48.0",
21
+ "@contractspec/lib.schema": "1.48.0",
22
+ "@contractspec/lib.contracts": "1.48.0",
23
+ "@contractspec/module.audit-trail": "1.48.0",
24
+ "@contractspec/module.notifications": "1.48.0"
26
25
  },
27
26
  "devDependencies": {
28
- "@contractspec/tool.typescript": "1.46.2",
29
- "@contractspec/tool.tsdown": "1.46.2",
27
+ "@contractspec/tool.typescript": "1.48.0",
28
+ "@contractspec/tool.tsdown": "1.48.0",
30
29
  "typescript": "^5.9.3"
31
30
  },
32
31
  "exports": {
@@ -39,10 +38,10 @@
39
38
  "./handlers": "./dist/handlers/index.js",
40
39
  "./operations": "./dist/operations/index.js",
41
40
  "./presentations": "./dist/presentations/index.js",
41
+ "./wealth-snapshot.capability": "./dist/wealth-snapshot.capability.js",
42
42
  "./wealth-snapshot.feature": "./dist/wealth-snapshot.feature.js",
43
43
  "./*": "./*"
44
44
  },
45
- "module": "./dist/index.js",
46
45
  "files": [
47
46
  "dist",
48
47
  "README.md"