@quatrain/core 1.1.42 → 1.1.44

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/LICENSE.md ADDED
@@ -0,0 +1,15 @@
1
+ # LICENSE UPDATE NOTICE
2
+
3
+ As of 01/01/2026, Quatrain Core is licensed under the **GNU Affero General Public License v3.0 (AGPL v3)**.
4
+ Previous versions remain under the MIT License.
5
+
6
+ ## Why AGPL?
7
+
8
+ We believe in open collaboration for the development ecosystem. The AGPL ensures that any modification or deployment of this BaaS stack, including over a network, benefits the entire community.
9
+
10
+ ## Commercial Services & Enterprise Usage
11
+
12
+ We provide official deployment services, technical training, and certification for Quatrain Core.
13
+ For organizations requiring a non-copyleft license (commercial license) or custom proprietary integrations, please contact the copyright holder: **Quatrain Technologies**.
14
+
15
+ Copyright © 2024-2026 Quatrain Technologies. All Rights Reserved.
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@quatrain/core",
3
- "version": "1.1.42",
3
+ "version": "1.1.44",
4
4
  "description": "Core objects for business apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "bun": "src/index.ts",
7
8
  "files": [
9
+ "LICENSE.md",
8
10
  "dist/",
9
11
  "src/",
10
12
  "README.md"
@@ -26,7 +28,7 @@
26
28
  },
27
29
  "dependencies": {
28
30
  "@faker-js/faker": "^7.6.0",
29
- "@quatrain/log": "^1.1.1",
31
+ "@quatrain/log": "^1.1.2",
30
32
  "module-alias": "^2.2.3",
31
33
  "node-persist": "^4.0.4",
32
34
  "which": "^5.0.0"
@@ -35,12 +37,7 @@
35
37
  "test-ci": "jest --runInBand",
36
38
  "build": "tsc",
37
39
  "wbuild": "tsc --watch",
38
- "bump-to": "yarn version",
39
- "hash": "node ../../bin/hashFolder.js",
40
- "hash:persist": "yarn hash > .hash_latest.txt",
41
- "hash:compare": "yarn hash > .hash_newest.txt && cmp -s .hash_latest.txt .hash_newest.txt",
42
- "release": "yarn hash:compare || yarn release:process",
43
- "release:process": "yarn version patch && yarn build && yarn pack --out package.tgz && npm publish package.tgz --access public && rm package.tgz && yarn hash:persist"
40
+ "bump-to": "yarn version"
44
41
  },
45
42
  "_moduleAliases": {
46
43
  "@core": "."
@@ -1,37 +0,0 @@
1
- import { DataObjectProperties } from '../../../properties';
2
- import { BaseObjectCore } from '../../BaseObjectCore';
3
- import { ObjectUri } from '../../ObjectUri';
4
- export declare const fClassProperties: DataObjectProperties;
5
- export declare class fClass extends BaseObjectCore {
6
- static PROPS_DEFINITION: DataObjectProperties;
7
- }
8
- export declare const properties: DataObjectProperties;
9
- export declare const fData: {
10
- uid: string;
11
- path: string;
12
- string: string;
13
- boolean: boolean;
14
- enum: string;
15
- object: ObjectUri;
16
- };
17
- export declare const baseObjectUri = "baseobject/xyz";
18
- export declare const UserUri = "user/abc";
19
- export declare const BaseObjectData: {
20
- uid: string;
21
- path: string;
22
- name: string;
23
- status: any;
24
- };
25
- export declare const UserData: {
26
- uid: string;
27
- path: string;
28
- name: string;
29
- status: any;
30
- firstname: string;
31
- lastname: string;
32
- email: string;
33
- password: string;
34
- createdBy: ObjectUri;
35
- createdAt: number;
36
- };
37
- //# sourceMappingURL=dao.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dao.d.ts","sourceRoot":"","sources":["../../../../src/components/__test__/fixtures/dao.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,eAAO,MAAM,gBAAgB,EAAE,oBAK9B,CAAA;AACD,qBAAa,MAAO,SAAQ,cAAc;IACvC,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAK5C;CACH;AAED,eAAO,MAAM,UAAU,EAAE,oBAsBxB,CAAA;AAED,eAAO,MAAM,KAAK;;;;;;;CAOjB,CAAA;AAED,eAAO,MAAM,aAAa,mBAAmB,CAAA;AAC7C,eAAO,MAAM,OAAO,aAAa,CAAA;AAEjC,eAAO,MAAM,cAAc;;;;;CAK1B,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;CAWpB,CAAA"}
@@ -1,100 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.UserData = exports.BaseObjectData = exports.UserUri = exports.baseObjectUri = exports.fData = exports.properties = exports.fClass = exports.fClassProperties = void 0;
27
- const statuses = __importStar(require("../../../statuses"));
28
- const BooleanProperty_1 = require("../../../properties/BooleanProperty");
29
- const EnumProperty_1 = require("../../../properties/EnumProperty");
30
- const ObjectProperty_1 = require("../../../properties/ObjectProperty");
31
- const StringProperty_1 = require("../../../properties/StringProperty");
32
- const BaseObjectCore_1 = require("../../BaseObjectCore");
33
- const ObjectUri_1 = require("../../ObjectUri");
34
- exports.fClassProperties = [
35
- {
36
- name: 'a',
37
- type: StringProperty_1.StringProperty.TYPE,
38
- },
39
- ];
40
- class fClass extends BaseObjectCore_1.BaseObjectCore {
41
- static PROPS_DEFINITION = [
42
- {
43
- name: 'a',
44
- type: StringProperty_1.StringProperty.TYPE,
45
- },
46
- ];
47
- }
48
- exports.fClass = fClass;
49
- exports.properties = [
50
- {
51
- name: 'string',
52
- mandatory: true,
53
- type: StringProperty_1.StringProperty.TYPE,
54
- defaultValue: 'nothing',
55
- },
56
- {
57
- name: 'boolean',
58
- type: BooleanProperty_1.BooleanProperty.TYPE,
59
- defaultValue: false,
60
- },
61
- {
62
- name: 'enum',
63
- type: EnumProperty_1.EnumProperty.TYPE,
64
- values: ['Mr', 'Miss', 'Ms', 'Dr'],
65
- },
66
- {
67
- name: 'object',
68
- type: ObjectProperty_1.ObjectProperty.TYPE,
69
- instanceOf: fClass.prototype,
70
- },
71
- ];
72
- exports.fData = {
73
- uid: 'a/b',
74
- path: 'a/b',
75
- string: 'a string',
76
- boolean: true,
77
- enum: 'Miss',
78
- object: new ObjectUri_1.ObjectUri('c/d'),
79
- };
80
- exports.baseObjectUri = 'baseobject/xyz';
81
- exports.UserUri = 'user/abc';
82
- exports.BaseObjectData = {
83
- uid: exports.baseObjectUri,
84
- path: exports.baseObjectUri,
85
- name: 'a simple object',
86
- status: statuses.PENDING,
87
- };
88
- exports.UserData = {
89
- uid: 'abc',
90
- path: exports.UserUri,
91
- name: 'John Doe',
92
- status: statuses.ACTIVE,
93
- firstname: 'John',
94
- lastname: 'Doe',
95
- email: 'john@doe.com',
96
- password: 'f2d81a260dea8a100dd517984e53c56a7523d96942a834b9cdc249bd4e8c7aa9',
97
- createdBy: new ObjectUri_1.ObjectUri(exports.UserUri, 'John Doe'),
98
- createdAt: 1,
99
- };
100
- //# sourceMappingURL=dao.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dao.js","sourceRoot":"","sources":["../../../../src/components/__test__/fixtures/dao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;A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