@ekwo-ai/core 0.18.0 → 0.20.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.
@@ -0,0 +1,129 @@
1
+ /**
2
+ * The `contracts` module, for every surface.
3
+ *
4
+ * Each verb is one function of the `contracts` schema, called here once, so
5
+ * the MCP server's `contracts_*` tools and `ekwo contracts …` run the very
6
+ * same thing. Nothing is decided in this file: which fields a patch may name,
7
+ * which period is due, what a renewal extends to — the schema holds it, and
8
+ * refuses by name (`contracts_<code>: …`). The words of its enums are
9
+ * repeated below to be shown, and a test holds them to the schema.
10
+ */
11
+ import { type Backend, type Row } from '../books/backend.js';
12
+ /** The schema the module lives in, and the code of `public.modules`. */
13
+ export declare const CONTRACTS_SCHEMA = "contracts";
14
+ /** `contracts.contract_kind`: what a contract is about. */
15
+ export declare const CONTRACT_KINDS: readonly ["service", "licence", "subscription", "usage", "one_time", "other"];
16
+ export type ContractKind = (typeof CONTRACT_KINDS)[number];
17
+ /** `contracts.direction`: which side the company is on. */
18
+ export declare const CONTRACT_DIRECTIONS: readonly ["sale", "purchase"];
19
+ export type ContractDirection = (typeof CONTRACT_DIRECTIONS)[number];
20
+ /** `contracts.contract_state`: where a contract stands; it moves forward only. */
21
+ export declare const CONTRACT_STATES: readonly ["draft", "sent", "negotiation", "signed", "active", "expired", "terminated", "cancelled"];
22
+ export type ContractState = (typeof CONTRACT_STATES)[number];
23
+ /** `contracts.renewal`: what happens at the end. */
24
+ export declare const CONTRACT_RENEWALS: readonly ["none", "tacit"];
25
+ export type ContractRenewal = (typeof CONTRACT_RENEWALS)[number];
26
+ /** `contracts.frequency`: how often a schedule issues. */
27
+ export declare const CONTRACT_FREQUENCIES: readonly ["weekly", "monthly", "quarterly", "yearly"];
28
+ export type ContractFrequency = (typeof CONTRACT_FREQUENCIES)[number];
29
+ /** `contracts.amendment_kind`: a version of the text, an amendment, or a tacit renewal. */
30
+ export declare const CONTRACT_AMENDMENT_KINDS: readonly ["version", "amendment", "renewal"];
31
+ export type ContractAmendmentKind = (typeof CONTRACT_AMENDMENT_KINDS)[number];
32
+ /** `contracts.template_format`: how a template holds its clauses. */
33
+ export declare const CONTRACT_TEMPLATE_FORMATS: readonly ["html", "docx"];
34
+ export type ContractTemplateFormat = (typeof CONTRACT_TEMPLATE_FORMATS)[number];
35
+ /** The keys `contracts.upsert_contract()` accepts in its patch. It refuses any other, by name. */
36
+ export declare const CONTRACT_FIELDS: readonly ["contact_id", "name", "kind", "direction", "state", "signed_on", "starts_on", "ends_on", "renews_on", "renewal", "notice_days", "currency_code", "total_value", "attachment_id", "template_id", "notes", "analysis", "attributes"];
37
+ /** The keys `contracts.upsert_schedule()` accepts in its patch. */
38
+ export declare const CONTRACT_SCHEDULE_FIELDS: readonly ["sequence", "product_id", "product_code", "name", "description", "quantity", "unit_code", "unit_price", "tax_code", "frequency", "next_on", "until", "indexation", "auto_post"];
39
+ /** The kinds of row `contracts.deadlines` holds. */
40
+ export declare const CONTRACT_DEADLINE_KINDS: readonly ["notice", "renewal", "end", "next_issue", "indexation"];
41
+ export type ContractDeadlineKind = (typeof CONTRACT_DEADLINE_KINDS)[number];
42
+ export interface ContractsListArgs {
43
+ company_id: string;
44
+ state?: ContractState | undefined;
45
+ direction?: ContractDirection | undefined;
46
+ contact_id?: string | undefined;
47
+ query?: string | undefined;
48
+ limit?: number | undefined;
49
+ /** Also list the templates of the company, the active ones. */
50
+ templates?: boolean | undefined;
51
+ }
52
+ export interface ContractsDeadlinesArgs {
53
+ company_id: string;
54
+ /** On or after this day. */
55
+ from?: string | undefined;
56
+ /** On or before this day. */
57
+ to?: string | undefined;
58
+ contract_id?: string | undefined;
59
+ kinds?: ContractDeadlineKind[] | undefined;
60
+ }
61
+ export interface ContractsAmendArgs {
62
+ company_id: string;
63
+ contract_id: string;
64
+ summary: string;
65
+ effective_on: string;
66
+ changes?: Record<string, unknown> | undefined;
67
+ kind?: Exclude<ContractAmendmentKind, 'renewal'> | undefined;
68
+ signed_on?: string | undefined;
69
+ attachment_id?: string | undefined;
70
+ }
71
+ export interface ContractsFromTemplateArgs {
72
+ company_id: string;
73
+ template_id: string;
74
+ contact_id: string;
75
+ number: string;
76
+ direction: ContractDirection;
77
+ kind: ContractKind;
78
+ starts_on: string;
79
+ values?: Record<string, string> | undefined;
80
+ name?: string | undefined;
81
+ }
82
+ /** `contracts.list_contracts()`: the contracts, each with its nearest deadline; and the templates when asked. */
83
+ export declare function contractsList(backend: Backend, args: ContractsListArgs): Promise<{
84
+ contracts: Row[];
85
+ count: number;
86
+ templates?: Row[];
87
+ }>;
88
+ /** `contracts.card_of()`: one contract as one object, exactly as the function builds it. */
89
+ export declare function contractsCard(backend: Backend, args: {
90
+ company_id: string;
91
+ contract_id: string;
92
+ }): Promise<Row>;
93
+ /** `contracts.upsert_contract()`: the contract of that number, created or changed field by field. */
94
+ export declare function contractsUpsert(backend: Backend, args: {
95
+ company_id: string;
96
+ number: string;
97
+ patch: Record<string, unknown>;
98
+ }): Promise<{
99
+ contract: Row;
100
+ }>;
101
+ /** `contracts.upsert_schedule()`: a schedule added to a contract, or changed. */
102
+ export declare function contractsSchedule(backend: Backend, args: {
103
+ company_id: string;
104
+ contract_id: string;
105
+ schedule_id?: string | undefined;
106
+ patch: Record<string, unknown>;
107
+ }): Promise<{
108
+ schedule: Row;
109
+ }>;
110
+ /** `contracts.issue_due()`: every period that has come, one draft document each. */
111
+ export declare function contractsIssueDue(backend: Backend, args: {
112
+ company_id: string;
113
+ on_date: string;
114
+ }): Promise<{
115
+ issued: Row[];
116
+ count: number;
117
+ }>;
118
+ /** `contracts.deadlines`: the dates the running contracts ask somebody to act on, soonest first. */
119
+ export declare function contractsDeadlines(backend: Backend, args: ContractsDeadlinesArgs): Promise<{
120
+ deadlines: Row[];
121
+ count: number;
122
+ }>;
123
+ /** `contracts.amend()`: what changes and from when, applied and numbered in the contract's history. */
124
+ export declare function contractsAmend(backend: Backend, args: ContractsAmendArgs): Promise<{
125
+ amendment: Row;
126
+ }>;
127
+ /** `contracts.from_template()`: a draft contract, its schedule and its clauses with the values in place. */
128
+ export declare function contractsFromTemplate(backend: Backend, args: ContractsFromTemplateArgs): Promise<Row>;
129
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAc,KAAK,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAEzE,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAO5C,2DAA2D;AAC3D,eAAO,MAAM,cAAc,+EAAgF,CAAC;AAC5G,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,2DAA2D;AAC3D,eAAO,MAAM,mBAAmB,+BAAgC,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,kFAAkF;AAClF,eAAO,MAAM,eAAe,qGAElB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,oDAAoD;AACpD,eAAO,MAAM,iBAAiB,4BAA6B,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,0DAA0D;AAC1D,eAAO,MAAM,oBAAoB,uDAAwD,CAAC;AAC1F,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,2FAA2F;AAC3F,eAAO,MAAM,wBAAwB,8CAA+C,CAAC;AACrF,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,qEAAqE;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QAAQ,EAAE,GAAG,CAAA;CAAE,CAAC,CAO5B;AAED,iFAAiF;AACjF,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GAClH,OAAO,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,CAAC,CAQ5B;AAED,oFAAoF;AACpF,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC5C,OAAO,CAAC;IAAE,MAAM,EAAE,GAAG,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAG3C;AAED,oGAAoG;AACpG,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,sBAAsB,GAC3B,OAAO,CAAC;IAAE,SAAS,EAAE,GAAG,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAe9C;AAED,uGAAuG;AACvG,wBAAsB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,GAAG,CAAA;CAAE,CAAC,CAY5G;AAED,4GAA4G;AAC5G,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,GAAG,CAAC,CAY3G"}
@@ -0,0 +1,145 @@
1
+ /**
2
+ * The `contracts` module, for every surface.
3
+ *
4
+ * Each verb is one function of the `contracts` schema, called here once, so
5
+ * the MCP server's `contracts_*` tools and `ekwo contracts …` run the very
6
+ * same thing. Nothing is decided in this file: which fields a patch may name,
7
+ * which period is due, what a renewal extends to — the schema holds it, and
8
+ * refuses by name (`contracts_<code>: …`). The words of its enums are
9
+ * repeated below to be shown, and a test holds them to the schema.
10
+ */
11
+ import { BooksError } from '../books/backend.js';
12
+ /** The schema the module lives in, and the code of `public.modules`. */
13
+ export const CONTRACTS_SCHEMA = 'contracts';
14
+ // The words of the schema's enums, in the order the migration declares them.
15
+ // The enums of the `contracts` schema stay the source: a test in
16
+ // `modules/contracts/tests` reads each one with `enum_range()` and holds
17
+ // these lists to it.
18
+ /** `contracts.contract_kind`: what a contract is about. */
19
+ export const CONTRACT_KINDS = ['service', 'licence', 'subscription', 'usage', 'one_time', 'other'];
20
+ /** `contracts.direction`: which side the company is on. */
21
+ export const CONTRACT_DIRECTIONS = ['sale', 'purchase'];
22
+ /** `contracts.contract_state`: where a contract stands; it moves forward only. */
23
+ export const CONTRACT_STATES = [
24
+ 'draft', 'sent', 'negotiation', 'signed', 'active', 'expired', 'terminated', 'cancelled',
25
+ ];
26
+ /** `contracts.renewal`: what happens at the end. */
27
+ export const CONTRACT_RENEWALS = ['none', 'tacit'];
28
+ /** `contracts.frequency`: how often a schedule issues. */
29
+ export const CONTRACT_FREQUENCIES = ['weekly', 'monthly', 'quarterly', 'yearly'];
30
+ /** `contracts.amendment_kind`: a version of the text, an amendment, or a tacit renewal. */
31
+ export const CONTRACT_AMENDMENT_KINDS = ['version', 'amendment', 'renewal'];
32
+ /** `contracts.template_format`: how a template holds its clauses. */
33
+ export const CONTRACT_TEMPLATE_FORMATS = ['html', 'docx'];
34
+ /** The keys `contracts.upsert_contract()` accepts in its patch. It refuses any other, by name. */
35
+ export const CONTRACT_FIELDS = [
36
+ 'contact_id', 'name', 'kind', 'direction', 'state', 'signed_on', 'starts_on', 'ends_on', 'renews_on', 'renewal',
37
+ 'notice_days', 'currency_code', 'total_value', 'attachment_id', 'template_id', 'notes', 'analysis', 'attributes',
38
+ ];
39
+ /** The keys `contracts.upsert_schedule()` accepts in its patch. */
40
+ export const CONTRACT_SCHEDULE_FIELDS = [
41
+ 'sequence', 'product_id', 'product_code', 'name', 'description', 'quantity', 'unit_code', 'unit_price', 'tax_code',
42
+ 'frequency', 'next_on', 'until', 'indexation', 'auto_post',
43
+ ];
44
+ /** The kinds of row `contracts.deadlines` holds. */
45
+ export const CONTRACT_DEADLINE_KINDS = ['notice', 'renewal', 'end', 'next_issue', 'indexation'];
46
+ const orNull = (value) => (value === undefined ? null : value);
47
+ async function call(backend, fn, args) {
48
+ return backend.rpc(fn, args, CONTRACTS_SCHEMA);
49
+ }
50
+ async function callOne(backend, fn, args) {
51
+ const [row] = await call(backend, fn, args);
52
+ if (row === undefined || row === null) {
53
+ throw new BooksError(`contracts_no_answer: ${CONTRACTS_SCHEMA}.${fn} answered nothing`);
54
+ }
55
+ return row;
56
+ }
57
+ /** `contracts.list_contracts()`: the contracts, each with its nearest deadline; and the templates when asked. */
58
+ export async function contractsList(backend, args) {
59
+ const contracts = await call(backend, 'list_contracts', {
60
+ p_company_id: args.company_id,
61
+ p_state: orNull(args.state),
62
+ p_direction: orNull(args.direction),
63
+ p_contact_id: orNull(args.contact_id),
64
+ p_query: orNull(args.query),
65
+ p_limit: args.limit ?? 50,
66
+ });
67
+ if (args.templates !== true)
68
+ return { contracts, count: contracts.length };
69
+ const templates = await call(backend, 'list_templates', { p_company_id: args.company_id, p_include_inactive: false });
70
+ return { contracts, count: contracts.length, templates };
71
+ }
72
+ /** `contracts.card_of()`: one contract as one object, exactly as the function builds it. */
73
+ export async function contractsCard(backend, args) {
74
+ return callOne(backend, 'card_of', { p_company_id: args.company_id, p_contract_id: args.contract_id });
75
+ }
76
+ /** `contracts.upsert_contract()`: the contract of that number, created or changed field by field. */
77
+ export async function contractsUpsert(backend, args) {
78
+ const contract = await callOne(backend, 'upsert_contract', {
79
+ p_company_id: args.company_id,
80
+ p_number: args.number,
81
+ p_patch: args.patch,
82
+ });
83
+ return { contract };
84
+ }
85
+ /** `contracts.upsert_schedule()`: a schedule added to a contract, or changed. */
86
+ export async function contractsSchedule(backend, args) {
87
+ const schedule = await callOne(backend, 'upsert_schedule', {
88
+ p_company_id: args.company_id,
89
+ p_contract_id: args.contract_id,
90
+ p_schedule_id: orNull(args.schedule_id),
91
+ p_patch: args.patch,
92
+ });
93
+ return { schedule };
94
+ }
95
+ /** `contracts.issue_due()`: every period that has come, one draft document each. */
96
+ export async function contractsIssueDue(backend, args) {
97
+ const issued = await call(backend, 'issue_due', { p_company_id: args.company_id, p_on_date: args.on_date });
98
+ return { issued, count: issued.length };
99
+ }
100
+ /** `contracts.deadlines`: the dates the running contracts ask somebody to act on, soonest first. */
101
+ export async function contractsDeadlines(backend, args) {
102
+ const deadlines = await backend.select({
103
+ schema: CONTRACTS_SCHEMA,
104
+ table: 'deadlines',
105
+ columns: ['contract_id', 'contract_number', 'contract_name', 'direction', 'contact_id', 'schedule_id', 'kind', 'due_on::text'],
106
+ where: [
107
+ { column: 'company_id', op: 'eq', value: args.company_id },
108
+ ...(args.from === undefined ? [] : [{ column: 'due_on', op: 'gte', value: args.from }]),
109
+ ...(args.to === undefined ? [] : [{ column: 'due_on', op: 'lte', value: args.to }]),
110
+ ...(args.contract_id === undefined ? [] : [{ column: 'contract_id', op: 'eq', value: args.contract_id }]),
111
+ ...(args.kinds === undefined ? [] : [{ column: 'kind', op: 'in', value: args.kinds }]),
112
+ ],
113
+ order: [{ column: 'due_on' }, { column: 'contract_number' }, { column: 'kind' }],
114
+ });
115
+ return { deadlines, count: deadlines.length };
116
+ }
117
+ /** `contracts.amend()`: what changes and from when, applied and numbered in the contract's history. */
118
+ export async function contractsAmend(backend, args) {
119
+ const amendment = await callOne(backend, 'amend', {
120
+ p_company_id: args.company_id,
121
+ p_contract_id: args.contract_id,
122
+ p_summary: args.summary,
123
+ p_effective_on: args.effective_on,
124
+ p_changes: args.changes ?? {},
125
+ p_kind: args.kind ?? 'amendment',
126
+ p_signed_on: orNull(args.signed_on),
127
+ p_attachment_id: orNull(args.attachment_id),
128
+ });
129
+ return { amendment };
130
+ }
131
+ /** `contracts.from_template()`: a draft contract, its schedule and its clauses with the values in place. */
132
+ export async function contractsFromTemplate(backend, args) {
133
+ return callOne(backend, 'from_template', {
134
+ p_company_id: args.company_id,
135
+ p_template_id: args.template_id,
136
+ p_contact_id: args.contact_id,
137
+ p_number: args.number,
138
+ p_direction: args.direction,
139
+ p_kind: args.kind,
140
+ p_starts_on: args.starts_on,
141
+ p_values: args.values ?? {},
142
+ p_name: orNull(args.name),
143
+ });
144
+ }
145
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,UAAU,EAA0B,MAAM,qBAAqB,CAAC;AAEzE,wEAAwE;AACxE,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAE5C,6EAA6E;AAC7E,iEAAiE;AACjE,yEAAyE;AACzE,qBAAqB;AAErB,2DAA2D;AAC3D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAU,CAAC;AAG5G,2DAA2D;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,UAAU,CAAU,CAAC;AAGjE,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW;CAChF,CAAC;AAGX,oDAAoD;AACpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;AAG5D,0DAA0D;AAC1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,CA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 +16,5 @@ export * from './books/index.js';
16
16
  export * from './proofs/index.js';
17
17
  export * from './einvoicing/index.js';
18
18
  export * from './crm/index.js';
19
+ export * from './contracts/index.js';
19
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,EAC5B,iBAAiB,EACjB,yBAAyB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,EAC5B,iBAAiB,EACjB,yBAAyB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -16,4 +16,5 @@ export * from './books/index.js';
16
16
  export * from './proofs/index.js';
17
17
  export * from './einvoicing/index.js';
18
18
  export * from './crm/index.js';
19
+ export * from './contracts/index.js';
19
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAwB,MAAM,WAAW,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,EAC5B,iBAAiB,EACjB,yBAAyB,GAG1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAgB,MAAM,eAAe,CAAC;AACjG,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,GAGpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,mBAAmB,GAGpB,MAAM,kBAAkB,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAwB,MAAM,WAAW,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,EAC5B,iBAAiB,EACjB,yBAAyB,GAG1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAgB,MAAM,eAAe,CAAC;AACjG,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,GAGpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,mBAAmB,GAGpB,MAAM,kBAAkB,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC"}
package/dist/schema.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  * is not a script, it is a restore.
16
16
  */
17
17
  /** The oldest schema `@ekwo-ai/core` reads. */
18
- export declare const SCHEMA_MIN = "0.17.0";
18
+ export declare const SCHEMA_MIN = "0.20.0";
19
19
  /** `-1`, `0` or `1`, comparing two `major.minor.patch` versions numerically. */
20
20
  export declare function compareSchemaVersions(left: string, right: string): number;
21
21
  /** Whether a database at `installed` is new enough for a package needing `minimum`. */
package/dist/schema.js CHANGED
@@ -15,7 +15,7 @@
15
15
  * is not a script, it is a restore.
16
16
  */
17
17
  /** The oldest schema `@ekwo-ai/core` reads. */
18
- export const SCHEMA_MIN = '0.17.0';
18
+ export const SCHEMA_MIN = '0.20.0';
19
19
  /** `-1`, `0` or `1`, comparing two `major.minor.patch` versions numerically. */
20
20
  export function compareSchemaVersions(left, right) {
21
21
  const parse = (version) => version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekwo-ai/core",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "description": "TypeScript row types and a typed Supabase client for the Ekwo OS accounting schema.",
5
5
  "keywords": [
6
6
  "accounting",
@@ -28,7 +28,7 @@
28
28
  "node": ">=20"
29
29
  },
30
30
  "ekwo": {
31
- "schemaMin": "0.17.0"
31
+ "schemaMin": "0.20.0"
32
32
  },
33
33
  "files": [
34
34
  "dist",
@@ -48,20 +48,20 @@
48
48
  "typecheck": "tsc -p tsconfig.json --noEmit"
49
49
  },
50
50
  "dependencies": {
51
- "@ekwo-ai/camt053": "^0.18.0",
52
- "@ekwo-ai/cfonb120": "^0.18.0",
53
- "@ekwo-ai/coda": "^0.18.0",
54
- "@ekwo-ai/factur-x": "^0.18.0",
55
- "@ekwo-ai/fec": "^0.18.0",
56
- "@ekwo-ai/invoice-pdf": "^0.18.0",
57
- "@ekwo-ai/journal-items": "^0.18.0",
58
- "@ekwo-ai/journal-report": "^0.18.0",
59
- "@ekwo-ai/myinvois": "^0.18.0",
60
- "@ekwo-ai/peppol-ubl": "^0.18.0",
61
- "@ekwo-ai/transaction-journal": "^0.18.0",
62
- "@ekwo-ai/trial-balance": "^0.18.0",
63
- "@ekwo-ai/verifactu": "^0.18.0",
64
- "@ekwo-ai/xaf": "^0.18.0"
51
+ "@ekwo-ai/camt053": "^0.20.0",
52
+ "@ekwo-ai/cfonb120": "^0.20.0",
53
+ "@ekwo-ai/coda": "^0.20.0",
54
+ "@ekwo-ai/factur-x": "^0.20.0",
55
+ "@ekwo-ai/fec": "^0.20.0",
56
+ "@ekwo-ai/invoice-pdf": "^0.20.0",
57
+ "@ekwo-ai/journal-items": "^0.20.0",
58
+ "@ekwo-ai/journal-report": "^0.20.0",
59
+ "@ekwo-ai/myinvois": "^0.20.0",
60
+ "@ekwo-ai/peppol-ubl": "^0.20.0",
61
+ "@ekwo-ai/transaction-journal": "^0.20.0",
62
+ "@ekwo-ai/trial-balance": "^0.20.0",
63
+ "@ekwo-ai/verifactu": "^0.20.0",
64
+ "@ekwo-ai/xaf": "^0.20.0"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@supabase/supabase-js": "^2.0.0"