q2-tecton-common 1.67.0 → 1.67.1

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/package.json CHANGED
@@ -1,42 +1,44 @@
1
1
  {
2
- "name": "q2-tecton-common",
3
- "version": "1.67.0",
4
- "description": "Common types and utilities used across all Tecton packages.",
5
- "license": "MIT",
6
- "author": "Q2 Tecton Team",
7
- "files": [
8
- "lib"
9
- ],
10
- "publishConfig": {
11
- "access": "public"
12
- },
13
- "dependencies": {
14
- "maybe-not": "1.3.3",
15
- "dry-suite": "1.67.0"
16
- },
17
- "devDependencies": {
18
- "babel-plugin-istanbul": "^7.0.0",
19
- "copy-webpack-plugin": "^14.0.0",
20
- "nyc": "^17.0.0",
21
- "webpack-dev-server": "5.2.3"
22
- },
23
- "scripts": {
24
- "build": "pnpm build:prod",
25
- "build:watch": "tsc --project tsconfig.prod.json --watch",
26
- "build:serve": "webpack serve --mode development",
27
- "build:dev": "pnpm build:prod",
28
- "build:prerelease": "pnpm build:prod",
29
- "build:linked": "tsc --project tsconfig.prod.json --watch",
30
- "build:local": "tsc --project tsconfig.prod.json",
31
- "build:prod": "tsc --project tsconfig.prod.json",
32
- "clean": "rm -rf lib",
33
- "nom": "rm -rf node_modules",
34
- "lint": "eslint --config eslint.config.cli.mjs .",
35
- "lint:fix": "eslint --fix --config eslint.config.cli.mjs .",
36
- "problems": "tsc --noEmit",
37
- "test": "npx playwright test",
38
- "test:coverage": "rm -rf .nyc_output && COVERAGE=true npx playwright test && nyc report",
39
- "test:dev": "playwright test --ui",
40
- "coverage:report": "nyc report"
41
- }
42
- }
2
+ "name": "q2-tecton-common",
3
+ "version": "1.67.1",
4
+ "description": "Common types and utilities used across all Tecton packages.",
5
+ "license": "MIT",
6
+ "author": "Q2 Tecton Team",
7
+ "files": [
8
+ "lib"
9
+ ],
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "scripts": {
14
+ "build": "pnpm build:prod",
15
+ "build:watch": "tsc --project tsconfig.prod.json --watch",
16
+ "build:serve": "webpack serve --mode development",
17
+ "build:dev": "pnpm build:prod",
18
+ "build:prerelease": "pnpm build:prod",
19
+ "build:linked": "tsc --project tsconfig.prod.json --watch",
20
+ "build:local": "tsc --project tsconfig.prod.json",
21
+ "build:prod": "tsc --project tsconfig.prod.json",
22
+ "clean": "rm -rf lib",
23
+ "nom": "rm -rf node_modules",
24
+ "lint": "eslint --config eslint.config.cli.mjs .",
25
+ "lint:fix": "eslint --fix --config eslint.config.cli.mjs .",
26
+ "problems": "tsc --noEmit",
27
+ "test": "npx playwright test",
28
+ "test:coverage": "rm -rf .nyc_output && COVERAGE=true npx playwright test && nyc report",
29
+ "test:dev": "playwright test --ui",
30
+ "coverage:report": "nyc report"
31
+ },
32
+ "dependencies": {
33
+ "dry-suite": "1.67.1",
34
+ "maybe-not": "1.3.3"
35
+ },
36
+ "devDependencies": {
37
+ "babel-plugin-istanbul": "^7.0.0",
38
+ "copy-webpack-plugin": "^14.0.0",
39
+ "nyc": "^17.0.0",
40
+ "webpack-dev-server": "5.2.3"
41
+ },
42
+ "packageManager": "pnpm@10.27.0",
43
+ "gitHead": "b6fd1c010a85ddc29aec84305d9546f823197a70"
44
+ }
@@ -1,20 +0,0 @@
1
- import IDict from '../../types/dict';
2
- export interface INode<T> {
3
- value: T;
4
- children: INode<T>[];
5
- }
6
- export declare function treeNode<T>(value: T, ...children: INode<T>[]): INode<T>;
7
- export declare function treeLeaf<T>(value: T): INode<T>;
8
- export declare type Tree<T> = INode<T>;
9
- export declare const tectonAccountTree: INode<string>;
10
- export declare const tectonTransactionTree: INode<string>;
11
- export declare const tectonDataTypeTrees: {
12
- [category: string]: Tree<string>;
13
- };
14
- export declare enum PlatformCategories {
15
- Account = "Account",
16
- Transaction = "Transaction"
17
- }
18
- export declare function getTypePath(typeId: string): string[];
19
- export declare const TECTON_ACCOUNT_TYPE_PRODUCT_CODES: IDict<[string, string]>;
20
- //# sourceMappingURL=hierarchy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hierarchy.d.ts","sourceRoot":"","sources":["../../../src/models/data-types/hierarchy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,MAAM,WAAW,KAAK,CAAC,CAAC;IACpB,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;CACxB;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAKvE;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAK9C;AAED,oBAAY,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AAE/B,eAAO,MAAM,iBAAiB,eAgC7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,eAmCjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE;IAC9B,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAEP,oBAAY,kBAAkB;IAC1B,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC9B;AAsBD,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CASpD;AAED,eAAO,MAAM,iCAAiC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAErE,CAAC"}
@@ -1,53 +0,0 @@
1
- export function treeNode(value, ...children) {
2
- return {
3
- value,
4
- children,
5
- };
6
- }
7
- export function treeLeaf(value) {
8
- return {
9
- value,
10
- children: [],
11
- };
12
- }
13
- export const tectonAccountTree = treeNode('Q2Account', treeNode('Held', treeNode('Deposit', treeLeaf('Checking'), treeLeaf('MoneyMarket'), treeLeaf('Savings'), treeLeaf('CertificateOfDeposit'), treeLeaf('Goal'), treeLeaf('PlanBasedInvestment'), treeLeaf('IRABasedInvestment'), treeLeaf('BrokerageBasedInvestment')), treeNode('Loan', treeLeaf('Installment'), treeLeaf('Commercial'), treeLeaf('Mortgage'), treeLeaf('LineOfCredit'), treeLeaf('HomeEquity')), treeNode('CreditCard', treeLeaf('Visa'), treeLeaf('MasterCard'), treeLeaf('Discover'), treeLeaf('AmericanExpress'))), treeNode('External', treeNode('PFM', treeLeaf('Manual'), treeLeaf('Aggregated'))));
14
- export const tectonTransactionTree = treeNode('Q2Transaction', treeNode('Posted', treeNode('Credit', treeLeaf('GenericCredit'), treeLeaf('InterestCredit'), treeLeaf('Dividend'), treeLeaf('Deposit'), treeLeaf('ATMCredit'), treeLeaf('POSCredit'), treeLeaf('TransferCredit'), treeLeaf('DirectDeposit'), treeLeaf('HoldCredit'), treeLeaf('OtherCredit')), treeNode('Debit', treeLeaf('GenericDebit'), treeLeaf('InterestDebit'), treeLeaf('Fee'), treeLeaf('ServiceCharge'), treeLeaf('ATMDebit'), treeLeaf('POSDebit'), treeLeaf('TransferDebit'), treeLeaf('Payment'), treeLeaf('Check'), treeLeaf('Cash'), treeLeaf('DirectDebit'), treeLeaf('RepeatPayment'), treeLeaf('OtherDebit'))), treeLeaf('Memo'));
15
- export const tectonDataTypeTrees = {};
16
- export var PlatformCategories;
17
- (function (PlatformCategories) {
18
- PlatformCategories["Account"] = "Account";
19
- PlatformCategories["Transaction"] = "Transaction";
20
- })(PlatformCategories || (PlatformCategories = {}));
21
- tectonDataTypeTrees[PlatformCategories.Account] = tectonAccountTree;
22
- tectonDataTypeTrees[PlatformCategories.Transaction] = tectonTransactionTree;
23
- function descendantsMatch(dataType, children) {
24
- let found = [];
25
- for (const item of children) {
26
- if (dataType === item.value) {
27
- found = [item.value];
28
- break;
29
- }
30
- else if (item.children.length > 0) {
31
- const descendantsPath = descendantsMatch(dataType, item.children);
32
- if (descendantsPath.length > 0) {
33
- found = descendantsPath.concat([item.value]);
34
- break;
35
- }
36
- }
37
- }
38
- return found;
39
- }
40
- export function getTypePath(typeId) {
41
- const queryParts = typeId.split('::');
42
- if (queryParts.length !== 2) {
43
- return [];
44
- }
45
- const category = queryParts[0];
46
- const dataType = queryParts[1];
47
- const tree = tectonDataTypeTrees[category];
48
- return descendantsMatch(dataType, [tree]).map(type => `${category}::${type}`);
49
- }
50
- export const TECTON_ACCOUNT_TYPE_PRODUCT_CODES = {
51
- Goal: ['D', 'G'],
52
- };
53
- //# sourceMappingURL=hierarchy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hierarchy.js","sourceRoot":"","sources":["../../../src/models/data-types/hierarchy.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,QAAQ,CAAI,KAAQ,EAAE,GAAG,QAAoB;IACzD,OAAO;QACH,KAAK;QACL,QAAQ;KACX,CAAC;AACN,CAAC;AAED,MAAM,UAAU,QAAQ,CAAI,KAAQ;IAChC,OAAO;QACH,KAAK;QACL,QAAQ,EAAE,EAAE;KACf,CAAC;AACN,CAAC;AAID,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CACrC,WAAW,EACX,QAAQ,CACJ,MAAM,EACN,QAAQ,CACJ,SAAS,EACT,QAAQ,CAAC,UAAU,CAAC,EACpB,QAAQ,CAAC,aAAa,CAAC,EACvB,QAAQ,CAAC,SAAS,CAAC,EACnB,QAAQ,CAAC,sBAAsB,CAAC,EAChC,QAAQ,CAAC,MAAM,CAAC,EAChB,QAAQ,CAAC,qBAAqB,CAAC,EAC/B,QAAQ,CAAC,oBAAoB,CAAC,EAC9B,QAAQ,CAAC,0BAA0B,CAAC,CACvC,EACD,QAAQ,CACJ,MAAM,EACN,QAAQ,CAAC,aAAa,CAAC,EACvB,QAAQ,CAAC,YAAY,CAAC,EACtB,QAAQ,CAAC,UAAU,CAAC,EACpB,QAAQ,CAAC,cAAc,CAAC,EACxB,QAAQ,CAAC,YAAY,CAAC,CACzB,EACD,QAA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,CAAC,CAAC;IAC3C,OAAO,gBAAgB,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,QAAQ,KAAK,IAAI,EAAE,CAAC,CAAC;AAClF,CAAC;AAED,MAAM,CAAC,MAAM,iCAAiC,GAA4B;IACtE,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;CACnB,CAAC"}
@@ -1,4 +0,0 @@
1
- export default interface IDict<T> {
2
- [name: string]: T;
3
- }
4
- //# sourceMappingURL=dict.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dict.d.ts","sourceRoot":"","sources":["../../src/types/dict.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC,CAAC;IAC5B,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC;CACrB"}
package/lib/types/dict.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=dict.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dict.js","sourceRoot":"","sources":["../../src/types/dict.ts"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- /**
2
- * Base data structure for chart visualizations.
3
- * Provides the common properties needed for chart data points.
4
- *
5
- * @see q2-tecton-elements chart components
6
- */
7
- export interface IChartData {
8
- id: string;
9
- value: number;
10
- name: string;
11
- color?: string;
12
- }
13
- /**
14
- * Extended data structure for donut chart visualizations.
15
- * Adds icon and custom styling options to the base chart data.
16
- *
17
- * @see tct-donut-chart component in q2-tecton-elements
18
- */
19
- export interface IDonutChartData extends IChartData {
20
- icon?: string;
21
- itemStyle?: any;
22
- }
23
- //# sourceMappingURL=element-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"element-types.d.ts","sourceRoot":"","sources":["../../src/types/element-types.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAgB,SAAQ,UAAU;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,GAAG,CAAC;CACnB"}
@@ -1,5 +0,0 @@
1
- // ============================================================================
2
- // Chart Data Types
3
- // ============================================================================
4
- export {};
5
- //# sourceMappingURL=element-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"element-types.js","sourceRoot":"","sources":["../../src/types/element-types.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E"}
@@ -1,4 +0,0 @@
1
- export type PartialRecord<K extends keyof any, T> = {
2
- [P in K]?: T;
3
- };
4
- //# sourceMappingURL=record.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/types/record.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,EAAE,CAAC,IAAI;KAC/C,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;CACf,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=record.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record.js","sourceRoot":"","sources":["../../src/types/record.ts"],"names":[],"mappings":""}