@collctiv/l2s-models 1.0.116 → 1.0.118

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.
@@ -5,6 +5,7 @@ export declare class Refund implements IDataEntity, ICreatable, IModifiable {
5
5
  create_date: Date;
6
6
  modified_date: Date | null;
7
7
  amount: number;
8
+ transaction_no: string;
8
9
  user_id: string;
9
10
  payment_id: string;
10
11
  pot_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"refund.d.ts","sourceRoot":"","sources":["../../entities/refund.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEpF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,qBAGa,MAAO,YAAW,WAAW,EAAE,UAAU,EAAE,WAAW;IAExD,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAc;IAC/B,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAK;IAGnB,OAAO,EAAE,MAAM,CAAC;IAGhB,UAAU,EAAE,MAAM,CAAC;IAGnB,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,YAAY,CAAoB;IAGxC,0BAA0B,EAAE,MAAM,CAAK;IAEvC,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;gBAEL,IAAI,GAAE,OAAO,CAAC,MAAM,CAAM;CAGhD;AAED,oBAAY,YAAY;IACpB,GAAG,QAAQ;IACX,UAAU,gBAAgB;IAC1B,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,SAAS,cAAc;CAC1B;AAED,oBAAY,YAAY;IACpB,iBAAiB,uBAAuB;IACxC,cAAc,oBAAoB;IAClC,KAAK,UAAU;IACf,OAAO,YAAY;CACtB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC5B,OAAO,EAAE,O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mBAAmB,EAAE,MAAM,CAAC;CAC/B,CAAA"}
@@ -7,12 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { Collection, Updatable, ObjectId, Topic, Modifiable } from "../global/decorators.js";
10
+ import { Collection, Updatable, ObjectId, Topic, Modifiable, TransactionId } from "../global/decorators.js";
11
11
  let Refund = class Refund {
12
12
  id;
13
13
  create_date = new Date();
14
14
  modified_date;
15
15
  amount = 0;
16
+ transaction_no;
16
17
  user_id;
17
18
  payment_id;
18
19
  pot_id;
@@ -47,6 +48,7 @@ __decorate([
47
48
  Refund = __decorate([
48
49
  Collection("refunds"),
49
50
  Topic("refunds", { previous: true }),
51
+ TransactionId("transaction_no"),
50
52
  Modifiable(),
51
53
  __metadata("design:paramtypes", [Object])
52
54
  ], Refund);
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../global/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC;AAE7B,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC;AAE3B,MAAM,MAAM,KAAK,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAInD,eAAO,MAAM,eAAe,GAAI,UAAU,UAAS,GAAG,EAAE,eAAe,GAAG,EAAE,SAAS,UAAS,GAAG,SAKhG,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,UAAS,GAAG,EAAE,oBAAoB,GAAG,KAAG,UAAS,GAAG,GAAG,IAE/F,CAAA;AAED,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AAEX,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../global/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC;AAE7B,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC;AAE3B,MAAM,MAAM,KAAK,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAUnD,eAAO,MAAM,eAAe,GAAI,UAAU,UAAS,GAAG,EAAE,eAAe,GAAG,EAAE,SAAS,UAAS,GAAG,SAKhG,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,UAAS,GAAG,EAAE,oBAAoB,GAAG,KAAG,UAAS,GAAG,GAAG,IAE/F,CAAA;AAED,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AAEX,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC"}
@@ -1,4 +1,8 @@
1
- const typeRegistry = new Map();
1
+ const REGISTRY_KEY = Symbol.for("@collctiv/l2s-models/typeRegistry");
2
+ if (!globalThis[REGISTRY_KEY]) {
3
+ globalThis[REGISTRY_KEY] = new Map();
4
+ }
5
+ const typeRegistry = globalThis[REGISTRY_KEY];
2
6
  export const registerSubType = (baseType, discriminator, subType) => {
3
7
  if (!typeRegistry.has(baseType)) {
4
8
  typeRegistry.set(baseType, new Map());
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
1
  {
2
- "name": "@collctiv/l2s-models",
3
- "version": "1.0.116",
4
- "description": "L2S models, interfaces, types and enums",
5
- "main": "./dist/index.js",
6
- "type": "module",
7
- "files": [
8
- "dist"
9
- ],
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/Collctiv/l2s-models.git"
13
- },
14
- "author": "",
15
- "license": "ISC",
16
- "bugs": {
17
- "url": "https://github.com/Collctiv/l2s-models/issues"
18
- },
19
- "homepage": "https://github.com/Collctiv/l2s-models#readme",
20
- "dependencies": {
21
- "date-fns": "^4.4.0",
22
- "reflect-metadata": "^0.2.2"
23
- },
24
- "devDependencies": {
25
- "@types/node": "^25.6.0",
26
- "ts-node": "^10.9.2",
27
- "typescript": "^6.0.3"
28
- },
29
- "scripts": {
30
- "test": "jest \"tests/.*\\.test\\.ts\"",
31
- "build": "tsc"
32
- }
33
- }
2
+ "name": "@collctiv/l2s-models",
3
+ "version": "1.0.118",
4
+ "description": "L2S models, interfaces, types and enums",
5
+ "main": "./dist/index.js",
6
+ "type": "module",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "test": "jest \"tests/.*\\.test\\.ts\"",
12
+ "build": "tsc"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/Collctiv/l2s-models.git"
17
+ },
18
+ "author": "",
19
+ "license": "ISC",
20
+ "bugs": {
21
+ "url": "https://github.com/Collctiv/l2s-models/issues"
22
+ },
23
+ "homepage": "https://github.com/Collctiv/l2s-models#readme",
24
+ "dependencies": {
25
+ "date-fns": "^4.4.0",
26
+ "reflect-metadata": "^0.2.2"
27
+ },
28
+ "devDependencies": {
29
+ "@types/node": "^25.6.0",
30
+ "ts-node": "^10.9.2",
31
+ "typescript": "^6.0.3"
32
+ }
33
+ }