@collctiv/l2s-models 1.0.41-beta.8 → 1.0.41
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/dist/entities/activity.d.ts +45 -26
- package/dist/entities/activity.d.ts.map +1 -1
- package/dist/entities/activity.js +125 -5
- package/dist/entities/balance.d.ts +3 -3
- package/dist/entities/balance.d.ts.map +1 -1
- package/dist/entities/balance.js +5 -1
- package/dist/entities/kyc.d.ts +1 -20
- package/dist/entities/kyc.d.ts.map +1 -1
- package/dist/entities/kyc.js +25 -14
- package/dist/entities/kycEvent.d.ts +1 -36
- package/dist/entities/kycEvent.d.ts.map +1 -1
- package/dist/entities/kycEvent.js +43 -23
- package/dist/entities/kycRequest.d.ts +1 -34
- package/dist/entities/kycRequest.d.ts.map +1 -1
- package/dist/entities/kycRequest.js +47 -54
- package/dist/entities/ledgerItem.d.ts +19 -19
- package/dist/entities/ledgerItem.d.ts.map +1 -1
- package/dist/entities/ledgerItem.js +43 -24
- package/dist/entities/order.d.ts +56 -56
- package/dist/entities/order.d.ts.map +1 -1
- package/dist/entities/order.js +88 -1
- package/dist/entities/payment.d.ts +23 -23
- package/dist/entities/payment.d.ts.map +1 -1
- package/dist/entities/payment.js +33 -1
- package/dist/entities/paymentRequest.d.ts.map +1 -1
- package/dist/entities/paymentRequest.js +3 -1
- package/dist/entities/pot.d.ts +1 -1
- package/dist/entities/pot.d.ts.map +1 -1
- package/dist/entities/pot.js +6 -2
- package/dist/entities/user.d.ts +0 -4
- package/dist/entities/user.d.ts.map +1 -1
- package/dist/entities/user.js +1 -13
- package/dist/global/kyc.d.ts +1 -21
- package/dist/global/kyc.d.ts.map +1 -1
- package/dist/global/kyc.js +27 -22
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import { type IDataEntity } from "../global/interfaces.js";
|
|
2
2
|
import type { Currency } from "../global/types.js";
|
|
3
3
|
import { LedgerOperation, LedgerStatus, LedgerTypeInternal } from "../global/balance.js";
|
|
4
|
-
export declare class LedgerItem implements IDataEntity {
|
|
5
|
-
id: string;
|
|
6
|
-
create_date: Date;
|
|
7
|
-
processed_date?: Date;
|
|
8
|
-
user: string;
|
|
9
|
-
operation: LedgerOperation;
|
|
10
|
-
message_id: string;
|
|
11
|
-
type: LedgerItemType;
|
|
12
|
-
status: LedgerStatus;
|
|
13
|
-
currency: Currency;
|
|
14
|
-
amount: number;
|
|
15
|
-
pot: LedgerItemPot;
|
|
16
|
-
entity?: string;
|
|
17
|
-
metadata: {
|
|
18
|
-
[key: string]: string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
4
|
export declare class LedgerItemType {
|
|
22
5
|
internal: LedgerTypeInternal;
|
|
23
6
|
regulatory: string;
|
|
@@ -39,7 +22,24 @@ export declare class LedgerAvailableBalance {
|
|
|
39
22
|
readonly balance: number;
|
|
40
23
|
constructor(balance?: number);
|
|
41
24
|
}
|
|
42
|
-
export declare
|
|
43
|
-
|
|
25
|
+
export declare class LedgerItem implements IDataEntity {
|
|
26
|
+
id: string;
|
|
27
|
+
create_date: Date;
|
|
28
|
+
processed_date?: Date;
|
|
29
|
+
user: string;
|
|
30
|
+
operation: LedgerOperation;
|
|
31
|
+
message_id: string;
|
|
32
|
+
type: LedgerItemType;
|
|
33
|
+
status: LedgerStatus;
|
|
34
|
+
currency: Currency;
|
|
35
|
+
amount: number;
|
|
36
|
+
pot: LedgerItemPot;
|
|
37
|
+
entity?: string;
|
|
38
|
+
metadata: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export declare enum L2SPotId {
|
|
43
|
+
Revenue = "l2s:revenue"
|
|
44
44
|
}
|
|
45
45
|
//# sourceMappingURL=ledgerItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledgerItem.d.ts","sourceRoot":"","sources":["../../entities/ledgerItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAGzF,
|
|
1
|
+
{"version":3,"file":"ledgerItem.d.ts","sourceRoot":"","sources":["../../entities/ledgerItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAGzF,qBAAa,cAAc;IAChB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,aAAa;IAEf,GAAG,EAAE,MAAM,CAAC;IAEZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,qBAAa,oBAAoB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,kBAAkB;IACpB,MAAM,EAAE,MAAM,CAAK;CAC7B;AAED,qBAAa,sBAAsB;aACI,OAAO,EAAE,MAAM;gBAAf,OAAO,GAAE,MAAU;CACzD;AAED,qBACa,UAAW,YAAW,WAAW;IAEnC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAC;IAClB,cAAc,CAAC,EAAE,IAAI,CAAC;IAGtB,IAAI,EAAE,MAAM,CAAC;IAEb,SAAS,EAAE,eAAe,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IAGf,GAAG,EAAE,aAAa,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC9C;AAED,oBAAY,QAAQ;IAChB,OAAO,gBAAgB;CAC1B"}
|
|
@@ -4,28 +4,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
7
10
|
import {} from "../global/interfaces.js";
|
|
8
11
|
import { LedgerOperation, LedgerStatus, LedgerTypeInternal } from "../global/balance.js";
|
|
9
|
-
import { Collection } from "../global/decorators.js";
|
|
10
|
-
let LedgerItem = class LedgerItem {
|
|
11
|
-
id;
|
|
12
|
-
create_date;
|
|
13
|
-
processed_date;
|
|
14
|
-
user;
|
|
15
|
-
operation;
|
|
16
|
-
message_id;
|
|
17
|
-
type;
|
|
18
|
-
status;
|
|
19
|
-
currency;
|
|
20
|
-
amount;
|
|
21
|
-
pot;
|
|
22
|
-
entity;
|
|
23
|
-
metadata;
|
|
24
|
-
};
|
|
25
|
-
LedgerItem = __decorate([
|
|
26
|
-
Collection("ledger")
|
|
27
|
-
], LedgerItem);
|
|
28
|
-
export { LedgerItem };
|
|
12
|
+
import { Collection, ObjectId, TypeOfObject } from "../global/decorators.js";
|
|
29
13
|
export class LedgerItemType {
|
|
30
14
|
internal;
|
|
31
15
|
regulatory;
|
|
@@ -36,6 +20,10 @@ export class LedgerItemPot {
|
|
|
36
20
|
old_balance;
|
|
37
21
|
new_balance;
|
|
38
22
|
}
|
|
23
|
+
__decorate([
|
|
24
|
+
ObjectId(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], LedgerItemPot.prototype, "_id", void 0);
|
|
39
27
|
export class LedgerClosingBalance {
|
|
40
28
|
date; // yyyy-mm-dd
|
|
41
29
|
balance;
|
|
@@ -49,7 +37,38 @@ export class LedgerAvailableBalance {
|
|
|
49
37
|
this.balance = balance;
|
|
50
38
|
}
|
|
51
39
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
40
|
+
let LedgerItem = class LedgerItem {
|
|
41
|
+
id;
|
|
42
|
+
create_date;
|
|
43
|
+
processed_date;
|
|
44
|
+
user;
|
|
45
|
+
operation;
|
|
46
|
+
message_id;
|
|
47
|
+
type;
|
|
48
|
+
status;
|
|
49
|
+
currency;
|
|
50
|
+
amount;
|
|
51
|
+
pot;
|
|
52
|
+
entity;
|
|
53
|
+
metadata;
|
|
54
|
+
};
|
|
55
|
+
__decorate([
|
|
56
|
+
ObjectId(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], LedgerItem.prototype, "user", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
TypeOfObject(LedgerItemPot),
|
|
61
|
+
__metadata("design:type", LedgerItemPot)
|
|
62
|
+
], LedgerItem.prototype, "pot", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
ObjectId(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], LedgerItem.prototype, "entity", void 0);
|
|
67
|
+
LedgerItem = __decorate([
|
|
68
|
+
Collection("ledger")
|
|
69
|
+
], LedgerItem);
|
|
70
|
+
export { LedgerItem };
|
|
71
|
+
export var L2SPotId;
|
|
72
|
+
(function (L2SPotId) {
|
|
73
|
+
L2SPotId["Revenue"] = "l2s:revenue";
|
|
74
|
+
})(L2SPotId || (L2SPotId = {}));
|
package/dist/entities/order.d.ts
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
import { type IDataEntity, type ICreatable, type IModifiable } from "../global/interfaces.js";
|
|
2
2
|
import type { Currency } from "../global/types.js";
|
|
3
|
+
export declare class OrderItem {
|
|
4
|
+
product_id: string;
|
|
5
|
+
item_id: string;
|
|
6
|
+
quantity: number;
|
|
7
|
+
sub_total: number;
|
|
8
|
+
type: OrderItemType;
|
|
9
|
+
}
|
|
10
|
+
export declare class OrderTotals {
|
|
11
|
+
sub_total: number;
|
|
12
|
+
shipping: number;
|
|
13
|
+
tax: number;
|
|
14
|
+
grand_total: number;
|
|
15
|
+
}
|
|
16
|
+
export declare class OrderShipping {
|
|
17
|
+
type: OrderShippingType;
|
|
18
|
+
email?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
user_id?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class OrderPayment {
|
|
23
|
+
method: OrderPaymentMethod;
|
|
24
|
+
pot_id: string;
|
|
25
|
+
}
|
|
26
|
+
export declare class OrderDelivery {
|
|
27
|
+
supplier: SupplierType;
|
|
28
|
+
courier: CourierType;
|
|
29
|
+
status: OrderDeliveryStatus;
|
|
30
|
+
data: OrderDeliveryData[];
|
|
31
|
+
}
|
|
32
|
+
export declare class OrderRedemptionDelivery {
|
|
33
|
+
supplier: SupplierType;
|
|
34
|
+
courier: CourierType;
|
|
35
|
+
status: OrderDeliveryStatus;
|
|
36
|
+
data: OrderDeliveryData;
|
|
37
|
+
}
|
|
38
|
+
export declare class OrderRedemptionAccess {
|
|
39
|
+
user_id: string | null;
|
|
40
|
+
}
|
|
41
|
+
export declare class OrderDeliveryData {
|
|
42
|
+
product_code: string;
|
|
43
|
+
product?: MblDelivery;
|
|
44
|
+
product_id: string;
|
|
45
|
+
product_name: string;
|
|
46
|
+
product_description: string;
|
|
47
|
+
product_image: string;
|
|
48
|
+
product_terms: string;
|
|
49
|
+
product_categories: string[];
|
|
50
|
+
item_id: string;
|
|
51
|
+
item_idx: number;
|
|
52
|
+
amount: number;
|
|
53
|
+
currency: Currency;
|
|
54
|
+
type: OrderItemType;
|
|
55
|
+
expiry_date?: Date;
|
|
56
|
+
processed_date?: Date;
|
|
57
|
+
}
|
|
3
58
|
export declare class Order implements IDataEntity, ICreatable, IModifiable {
|
|
4
59
|
id: string;
|
|
5
60
|
create_date: Date;
|
|
@@ -25,6 +80,7 @@ export declare class OrderRedemption implements IDataEntity {
|
|
|
25
80
|
}
|
|
26
81
|
export type OrderShippingType = "email" | "user";
|
|
27
82
|
export type OrderPaymentMethod = "pot";
|
|
83
|
+
export type OrderDeliveryStatus = "pending" | "delivered" | "failed";
|
|
28
84
|
export declare enum OrderStatus {
|
|
29
85
|
New = "new",
|
|
30
86
|
InProgress = "in_progress",
|
|
@@ -42,62 +98,6 @@ export declare enum CourierType {
|
|
|
42
98
|
export declare enum OrderItemType {
|
|
43
99
|
GiftCard = "gift_card"
|
|
44
100
|
}
|
|
45
|
-
export type OrderItem = {
|
|
46
|
-
product_id: string;
|
|
47
|
-
item_id: string;
|
|
48
|
-
quantity: number;
|
|
49
|
-
sub_total: number;
|
|
50
|
-
type: OrderItemType;
|
|
51
|
-
};
|
|
52
|
-
export type OrderTotals = {
|
|
53
|
-
sub_total: number;
|
|
54
|
-
shipping: number;
|
|
55
|
-
tax: number;
|
|
56
|
-
grand_total: number;
|
|
57
|
-
};
|
|
58
|
-
export type OrderShipping = {
|
|
59
|
-
type: OrderShippingType;
|
|
60
|
-
email?: string;
|
|
61
|
-
name?: string;
|
|
62
|
-
user_id?: string;
|
|
63
|
-
};
|
|
64
|
-
export type OrderPayment = {
|
|
65
|
-
method: OrderPaymentMethod;
|
|
66
|
-
pot_id: string;
|
|
67
|
-
};
|
|
68
|
-
export type OrderDeliveryStatus = "pending" | "delivered" | "failed";
|
|
69
|
-
export type OrderDelivery = {
|
|
70
|
-
supplier: SupplierType;
|
|
71
|
-
courier: CourierType;
|
|
72
|
-
status: OrderDeliveryStatus;
|
|
73
|
-
data: OrderDeliveryData[];
|
|
74
|
-
};
|
|
75
|
-
export type OrderRedemptionDelivery = {
|
|
76
|
-
supplier: SupplierType;
|
|
77
|
-
courier: CourierType;
|
|
78
|
-
status: OrderDeliveryStatus;
|
|
79
|
-
data: OrderDeliveryData;
|
|
80
|
-
};
|
|
81
|
-
export type OrderRedemptionAccess = {
|
|
82
|
-
user_id: string | null;
|
|
83
|
-
};
|
|
84
|
-
export type OrderDeliveryData = {
|
|
85
|
-
product_code: string;
|
|
86
|
-
product?: MblDelivery;
|
|
87
|
-
product_id: string;
|
|
88
|
-
product_name: string;
|
|
89
|
-
product_description: string;
|
|
90
|
-
product_image: string;
|
|
91
|
-
product_terms: string;
|
|
92
|
-
product_categories: string[];
|
|
93
|
-
item_id: string;
|
|
94
|
-
item_idx: number;
|
|
95
|
-
amount: number;
|
|
96
|
-
currency: Currency;
|
|
97
|
-
type: OrderItemType;
|
|
98
|
-
expiry_date?: Date;
|
|
99
|
-
processed_date?: Date;
|
|
100
|
-
};
|
|
101
101
|
export type MblDelivery = {
|
|
102
102
|
value: number;
|
|
103
103
|
product: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../entities/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,
|
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../entities/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,qBAAa,SAAS;IACX,U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1B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,gBAAgB,sBAAsB;CACzC;AAED,oBAAY,YAAY;IACpB,GAAG,QAAQ;CACd;AAED,oBAAY,WAAW;IACnB,GAAG,QAAQ;CACd;AAED,oBAAY,aAAa;IACrB,QAAQ,cAAc;CACzB;AAKD,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,UAAU,EAAE,IAAI,CAAC;QACjB,UAAU,EAAE,IAAI,CAAC;KACpB,CAAA;CACJ,CAAA"}
|
package/dist/entities/order.js
CHANGED
|
@@ -8,7 +8,74 @@ 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
10
|
import {} from "../global/interfaces.js";
|
|
11
|
-
import { Collection, Topic, Updatable, TransactionId } from "../global/decorators.js";
|
|
11
|
+
import { Collection, Topic, Updatable, TransactionId, ObjectId, TypeOfObject } from "../global/decorators.js";
|
|
12
|
+
export class OrderItem {
|
|
13
|
+
product_id;
|
|
14
|
+
item_id;
|
|
15
|
+
quantity;
|
|
16
|
+
sub_total;
|
|
17
|
+
type;
|
|
18
|
+
}
|
|
19
|
+
export class OrderTotals {
|
|
20
|
+
sub_total;
|
|
21
|
+
shipping;
|
|
22
|
+
tax;
|
|
23
|
+
grand_total;
|
|
24
|
+
}
|
|
25
|
+
export class OrderShipping {
|
|
26
|
+
type;
|
|
27
|
+
email;
|
|
28
|
+
name;
|
|
29
|
+
user_id;
|
|
30
|
+
}
|
|
31
|
+
__decorate([
|
|
32
|
+
ObjectId(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], OrderShipping.prototype, "user_id", void 0);
|
|
35
|
+
export class OrderPayment {
|
|
36
|
+
method;
|
|
37
|
+
pot_id;
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
ObjectId(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], OrderPayment.prototype, "pot_id", void 0);
|
|
43
|
+
export class OrderDelivery {
|
|
44
|
+
supplier;
|
|
45
|
+
courier;
|
|
46
|
+
status;
|
|
47
|
+
data;
|
|
48
|
+
}
|
|
49
|
+
export class OrderRedemptionDelivery {
|
|
50
|
+
supplier;
|
|
51
|
+
courier;
|
|
52
|
+
status;
|
|
53
|
+
data;
|
|
54
|
+
}
|
|
55
|
+
export class OrderRedemptionAccess {
|
|
56
|
+
user_id;
|
|
57
|
+
}
|
|
58
|
+
__decorate([
|
|
59
|
+
ObjectId(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], OrderRedemptionAccess.prototype, "user_id", void 0);
|
|
62
|
+
export class OrderDeliveryData {
|
|
63
|
+
product_code;
|
|
64
|
+
product;
|
|
65
|
+
product_id;
|
|
66
|
+
product_name;
|
|
67
|
+
product_description;
|
|
68
|
+
product_image;
|
|
69
|
+
product_terms;
|
|
70
|
+
product_categories;
|
|
71
|
+
item_id;
|
|
72
|
+
item_idx;
|
|
73
|
+
amount;
|
|
74
|
+
currency;
|
|
75
|
+
type;
|
|
76
|
+
expiry_date;
|
|
77
|
+
processed_date;
|
|
78
|
+
}
|
|
12
79
|
let Order = class Order {
|
|
13
80
|
id;
|
|
14
81
|
create_date = new Date();
|
|
@@ -33,6 +100,18 @@ __decorate([
|
|
|
33
100
|
Updatable(),
|
|
34
101
|
__metadata("design:type", String)
|
|
35
102
|
], Order.prototype, "order_no", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
TypeOfObject(OrderShipping),
|
|
105
|
+
__metadata("design:type", OrderShipping)
|
|
106
|
+
], Order.prototype, "shipping", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
TypeOfObject(OrderPayment),
|
|
109
|
+
__metadata("design:type", OrderPayment)
|
|
110
|
+
], Order.prototype, "payment", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
ObjectId(),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], Order.prototype, "user_id", void 0);
|
|
36
115
|
__decorate([
|
|
37
116
|
Updatable(),
|
|
38
117
|
__metadata("design:type", Array)
|
|
@@ -55,6 +134,14 @@ let OrderRedemption = class OrderRedemption {
|
|
|
55
134
|
Object.assign(this, args);
|
|
56
135
|
}
|
|
57
136
|
};
|
|
137
|
+
__decorate([
|
|
138
|
+
ObjectId(),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], OrderRedemption.prototype, "user_id", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
TypeOfObject(OrderRedemptionAccess),
|
|
143
|
+
__metadata("design:type", OrderRedemptionAccess)
|
|
144
|
+
], OrderRedemption.prototype, "access", void 0);
|
|
58
145
|
OrderRedemption = __decorate([
|
|
59
146
|
Collection("orders"),
|
|
60
147
|
__metadata("design:paramtypes", [Object])
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import { type IDataEntity, type ICreatable, type IModifiable, type IUpsertable } from "../global/interfaces.js";
|
|
2
2
|
import { PaymentProviderType } from "../global/enums.js";
|
|
3
3
|
import type { Currency } from "../global/types.js";
|
|
4
|
+
export declare class PaymentBillingDetails {
|
|
5
|
+
email?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class PaymentMethodDetails {
|
|
9
|
+
country?: string;
|
|
10
|
+
exp_month?: number;
|
|
11
|
+
exp_year?: number;
|
|
12
|
+
funding?: string;
|
|
13
|
+
last4?: string;
|
|
14
|
+
provider?: string;
|
|
15
|
+
three_d_secure?: boolean;
|
|
16
|
+
wallet?: any;
|
|
17
|
+
bin?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class PaymentPot {
|
|
20
|
+
id?: string;
|
|
21
|
+
owner?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
}
|
|
4
24
|
export declare class Payment implements IDataEntity, ICreatable, IModifiable, IUpsertable {
|
|
5
25
|
id: string;
|
|
6
26
|
create_date: Date;
|
|
@@ -22,6 +42,9 @@ export declare class Payment implements IDataEntity, ICreatable, IModifiable, IU
|
|
|
22
42
|
pot: PaymentPot;
|
|
23
43
|
constructor(args?: Partial<Payment>);
|
|
24
44
|
}
|
|
45
|
+
type PaymentMarketingOptIn = {
|
|
46
|
+
email: boolean;
|
|
47
|
+
};
|
|
25
48
|
export declare enum PaymentStatus {
|
|
26
49
|
Pending = "pending",
|
|
27
50
|
Paid = "paid",
|
|
@@ -40,28 +63,5 @@ export declare enum PaymentStatus {
|
|
|
40
63
|
DisputeClosed = "dispute_closed",
|
|
41
64
|
DisputeHeld = "dispute_held"
|
|
42
65
|
}
|
|
43
|
-
export type PaymentBillingDetails = {
|
|
44
|
-
email?: string;
|
|
45
|
-
name?: string;
|
|
46
|
-
};
|
|
47
|
-
export type PaymentMethodDetails = {
|
|
48
|
-
country?: string;
|
|
49
|
-
exp_month?: number;
|
|
50
|
-
exp_year?: number;
|
|
51
|
-
funding?: string;
|
|
52
|
-
last4?: string;
|
|
53
|
-
provider?: string;
|
|
54
|
-
three_d_secure?: boolean;
|
|
55
|
-
wallet?: any;
|
|
56
|
-
bin?: string;
|
|
57
|
-
};
|
|
58
|
-
export type PaymentPot = {
|
|
59
|
-
id?: string;
|
|
60
|
-
name?: string;
|
|
61
|
-
owner?: string;
|
|
62
|
-
};
|
|
63
|
-
type PaymentMarketingOptIn = {
|
|
64
|
-
email: boolean;
|
|
65
|
-
};
|
|
66
66
|
export {};
|
|
67
67
|
//# sourceMappingURL=payment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../entities/payment.ts"],"names":[],"mappings":"AACA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AE,WAAW;IAEtE,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAc;IAC/B,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAK;IACnB,cAAc,EAAE,MAAM,CAAQ;IAC9B,eAAe,EAAE,qBAAqB,CAAM;IAC5C,sBAAsB,EAAE,oBAAoB,CAAM;IAGlD,MAAM,EAAE,aAAa,CAAyB;IAG9C,SAAS,EAAE,OAAO,CAAS;IAG3B,OAAO,EAAE,MAAM,CAAM;IAGrB,gBAAgB,EAAE,qBAAqB,CAAoB;IAG3D,QAAQ,EAAE,GAAG,CAAM;IAEnB,QAAQ,EAAE,mBAAmB,CAAQ;IACrC,QAAQ,EAAE,QAAQ,CAAS;IAC3B,GAAG,EAAE,MAAM,CAAK;IAChB,GAAG,EAAE,MAAM,CAAK;IAChB,MAAM,EAAE,MAAM,CAAQ;IAGtB,GAAG,EAAE,UAAU,CAAM;gBAET,IAAI,GAAE,OAAO,CAAC,OAAO,CAAM;CAGjD;AAED,KAAK,qBAAqB,GAAG;IACzB,KAAK,EAAE,OAAO,CAAC;CAClB,CAAA;AAED,oBAAY,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,iBAAiB,uBAAuB;IACxC,cAAc,oBAAoB;IAClC,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;IACpC,oBAAoB,0BAA0B;IAC9C,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,aAAa,mBAAmB;IAChC,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;IAC5B,aAAa,mBAAmB;IAChC,WAAW,iBAAiB;CAC/B"}
|
package/dist/entities/payment.js
CHANGED
|
@@ -7,9 +7,37 @@ 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, TransactionId, Topic } from "../global/decorators.js";
|
|
10
|
+
import { Collection, Updatable, TransactionId, Topic, ObjectId, TypeOfObject } from "../global/decorators.js";
|
|
11
11
|
import {} from "../global/interfaces.js";
|
|
12
12
|
import { PaymentProviderType } from "../global/enums.js";
|
|
13
|
+
export class PaymentBillingDetails {
|
|
14
|
+
email;
|
|
15
|
+
name;
|
|
16
|
+
}
|
|
17
|
+
export class PaymentMethodDetails {
|
|
18
|
+
country;
|
|
19
|
+
exp_month;
|
|
20
|
+
exp_year;
|
|
21
|
+
funding;
|
|
22
|
+
last4;
|
|
23
|
+
provider;
|
|
24
|
+
three_d_secure;
|
|
25
|
+
wallet;
|
|
26
|
+
bin;
|
|
27
|
+
}
|
|
28
|
+
export class PaymentPot {
|
|
29
|
+
id;
|
|
30
|
+
owner;
|
|
31
|
+
name;
|
|
32
|
+
}
|
|
33
|
+
__decorate([
|
|
34
|
+
ObjectId(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PaymentPot.prototype, "id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
ObjectId(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], PaymentPot.prototype, "owner", void 0);
|
|
13
41
|
let Payment = class Payment {
|
|
14
42
|
id;
|
|
15
43
|
create_date = new Date();
|
|
@@ -53,6 +81,10 @@ __decorate([
|
|
|
53
81
|
Updatable(),
|
|
54
82
|
__metadata("design:type", Object)
|
|
55
83
|
], Payment.prototype, "metadata", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
TypeOfObject(PaymentPot),
|
|
86
|
+
__metadata("design:type", PaymentPot)
|
|
87
|
+
], Payment.prototype, "pot", void 0);
|
|
56
88
|
Payment = __decorate([
|
|
57
89
|
Collection("payments"),
|
|
58
90
|
Topic("payments"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentRequest.d.ts","sourceRoot":"","sources":["../../entities/paymentRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,qBACa,cAAe,YAAW,WAAW,EAAE,UAAU,EAAE,WAAW;IAEhE,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAc;IAC/B,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAG3B,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,EAAE,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"paymentRequest.d.ts","sourceRoot":"","sources":["../../entities/paymentRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,qBACa,cAAe,YAAW,WAAW,EAAE,UAAU,EAAE,WAAW;IAEhE,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAc;IAC/B,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAG3B,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAIlC,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IAGjD,YAAY,CAAC,EAAE,kCAAkC,CAAC;gBAEtC,IAAI,GAAE,OAAO,CAAC,cAAc,CAAM;CAGxD;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,MAAM,MAAM,kCAAkC,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf,CAAA"}
|
|
@@ -8,7 +8,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
10
|
import {} from "../global/interfaces.js";
|
|
11
|
-
import { Updatable, Collection } from "../global/decorators.js";
|
|
11
|
+
import { Updatable, Collection, ObjectId } from "../global/decorators.js";
|
|
12
12
|
import { PaymentProviderType } from "../global/enums.js";
|
|
13
13
|
let PaymentRequest = class PaymentRequest {
|
|
14
14
|
id;
|
|
@@ -33,10 +33,12 @@ __decorate([
|
|
|
33
33
|
__metadata("design:type", Object)
|
|
34
34
|
], PaymentRequest.prototype, "metadata", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
+
ObjectId(),
|
|
36
37
|
Updatable(),
|
|
37
38
|
__metadata("design:type", String)
|
|
38
39
|
], PaymentRequest.prototype, "organiser_id", void 0);
|
|
39
40
|
__decorate([
|
|
41
|
+
ObjectId(),
|
|
40
42
|
Updatable(),
|
|
41
43
|
__metadata("design:type", String)
|
|
42
44
|
], PaymentRequest.prototype, "pot_id", void 0);
|
package/dist/entities/pot.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export declare class Pot implements IDataEntity, ICreatable, IModifiable, IUpser
|
|
|
19
19
|
status: PotStatus;
|
|
20
20
|
category: PotCategory;
|
|
21
21
|
created_by: string;
|
|
22
|
-
owner: string;
|
|
23
22
|
slug: string;
|
|
23
|
+
owner: string;
|
|
24
24
|
balance: Balance<PotBalance>;
|
|
25
25
|
constructor(args?: Partial<Pot | Balance<PotBalance>>);
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pot.d.ts","sourceRoot":"","sources":["../../entities/pot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAChH,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAExD,qBAAa,WAAW;IAGb,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IAGpB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGhC,kBAAkB,EAAE,OAAO,CAAC;IAG5B,uBAAuB,EAAE,OAAO,CAAC;IAGjC,yBAAyB,EAAE,OAAO,CAAC;IAGnC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,qBAEa,GAAI,YAAW,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW;IAElE,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAc;IAG/B,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAG3B,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,EAAE,MAAM,CAAC;IAGtB,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,WAAW,CAAC;IAGtB,MAAM,EAAE,SAAS,CAAkB;IAEnC,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"pot.d.ts","sourceRoot":"","sources":["../../entities/pot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAChH,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAExD,qBAAa,WAAW;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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, Topic, NotCreatable } from "../global/decorators.js";
|
|
10
|
+
import { Collection, Updatable, Topic, NotCreatable, ObjectId } from "../global/decorators.js";
|
|
11
11
|
import {} from "../global/interfaces.js";
|
|
12
12
|
export class PotSettings {
|
|
13
13
|
closes;
|
|
@@ -52,8 +52,8 @@ let Pot = class Pot {
|
|
|
52
52
|
status = PotStatus.Open;
|
|
53
53
|
category;
|
|
54
54
|
created_by;
|
|
55
|
-
owner;
|
|
56
55
|
slug;
|
|
56
|
+
owner;
|
|
57
57
|
balance;
|
|
58
58
|
constructor(args = {}) {
|
|
59
59
|
Object.assign(this, args);
|
|
@@ -83,6 +83,10 @@ __decorate([
|
|
|
83
83
|
Updatable(),
|
|
84
84
|
__metadata("design:type", String)
|
|
85
85
|
], Pot.prototype, "status", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
ObjectId(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], Pot.prototype, "owner", void 0);
|
|
86
90
|
__decorate([
|
|
87
91
|
NotCreatable(),
|
|
88
92
|
__metadata("design:type", Function)
|
package/dist/entities/user.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { type IDataEntity, type ICreatable, type IModifiable, type IUpsertable } from "../global/interfaces.js";
|
|
2
2
|
import type { Country, Currency } from "../global/types.js";
|
|
3
|
-
export declare class OidTestObject1 {
|
|
4
|
-
oid_test_level_3: OidTestObject1;
|
|
5
|
-
}
|
|
6
3
|
export declare class User implements IDataEntity, ICreatable, IModifiable, IUpsertable {
|
|
7
4
|
id: string;
|
|
8
5
|
create_date: Date;
|
|
9
6
|
modified_date: Date | null;
|
|
10
|
-
oid_test_object: OidTestObject1;
|
|
11
7
|
first_name: string;
|
|
12
8
|
last_name: string;
|
|
13
9
|
full_name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../entities/user.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,WAAW,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../entities/user.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,WAAW,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE5D,qBAEa,IAAK,YAAW,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW;IAEnE,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAc;IAC/B,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAG3B,UAAU,EAAE,MAAM,CAAQ;IAG1B,SAAS,EAAE,MAAM,CAAQ;IAGzB,SAAS,EAAE,MAAM,CAAQ;IAGzB,IAAI,EAAE,QAAQ,CAAuB;IAGrC,KAAK,EAAE,MAAM,CAAQ;IAGrB,OAAO,EAAE,OAAO,CAAQ;IAGxB,QAAQ,EAAE,QAAQ,CAAS;IAG3B,aAAa,EAAE,OAAO,CAAS;IAG/B,MAAM,EAAE,UAAU,CAAqB;IAGvC,WAAW,EAAE,OAAO,CAAS;IAG7B,aAAa,EAAE,MAAM,CAAQ;IAG7B,cAAc,EAAE,OAAO,CAAS;gBAEpB,IAAI,GAAE,OAAO,CAAC,IAAI,CAAM;CAG9C;AAED,oBAAY,UAAU;IAClB,MAAM,WAAW;IACjB,aAAa,mBAAmB;IAChC,MAAM,WAAW;IACjB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