@felloh-org/lambda-wrapper 1.0.0 → 1.0.4
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/.eslintignore +5 -0
- package/.eslintrc.yml +1 -0
- package/.github/workflows/release.yml +2 -0
- package/babel.config.js +20 -1
- package/cli/seed/create-schema.js +22 -0
- package/dist/config/dependencies.js +36 -0
- package/dist/dependency-injection/dependency-aware.js +43 -0
- package/dist/dependency-injection/dependency-injection.js +135 -0
- package/dist/entity/agent-data/booking/index.js +127 -0
- package/dist/entity/agent-data/booking-component/index.js +39 -0
- package/dist/entity/agent-data/booking-component-type/index.js +39 -0
- package/dist/entity/agent-data/index.js +24 -0
- package/dist/entity/agent-data/supplier/index.js +39 -0
- package/dist/entity/agent-data/supplier-type/index.js +39 -0
- package/dist/entity/bank/account/index.js +87 -0
- package/dist/entity/bank/beneficiary-organisation/index.js +69 -0
- package/dist/entity/bank/beneficiary-provider/index.js +79 -0
- package/dist/entity/bank/disbursal/index.js +39 -0
- package/dist/entity/bank/index.js +20 -0
- package/dist/entity/index.js +22 -0
- package/dist/entity/nuapay/account/index.js +96 -0
- package/dist/entity/nuapay/balance/index.js +64 -0
- package/dist/entity/nuapay/beneficiary/index.js +60 -0
- package/dist/entity/nuapay/index.js +20 -0
- package/dist/entity/nuapay/transaction/index.js +120 -0
- package/dist/entity/payment/index.js +28 -0
- package/dist/entity/payment/payment-link/index.js +161 -0
- package/dist/entity/payment/transaction/index.js +150 -0
- package/dist/entity/payment/transaction-event/index.js +71 -0
- package/dist/entity/payment/transaction-event-type/index.js +39 -0
- package/dist/entity/payment/transaction-metadata/index.js +140 -0
- package/dist/entity/payment/transaction-method/index.js +39 -0
- package/dist/entity/payment/transaction-status/index.js +39 -0
- package/dist/entity/payment/transaction-type/index.js +39 -0
- package/dist/entity/user/feature/index.js +63 -0
- package/dist/entity/user/index.js +26 -0
- package/dist/entity/user/organisation/index.js +111 -0
- package/dist/entity/user/organisation-feature/index.js +69 -0
- package/dist/entity/user/role/index.js +107 -0
- package/dist/entity/user/user/index.js +154 -0
- package/dist/entity/user/user-activity/index.js +82 -0
- package/dist/entity/user/user-role/index.js +83 -0
- package/dist/index.js +359 -0
- package/dist/migration/agent-data/1642121041760-inital.js +15 -0
- package/dist/migration/agent-data/1642121610577-organisation-suppliers.js +13 -0
- package/dist/migration/agent-data/1642121681610-organisation-suppliers-type.js +13 -0
- package/dist/migration/agent-data/1642122014731-booking-component-type.js +13 -0
- package/dist/migration/agent-data/1642505882721-booking-fields.js +29 -0
- package/dist/migration/agent-data/1642508385880-booking-id.js +19 -0
- package/dist/migration/bank/1642313073694-bank-initial.js +25 -0
- package/dist/migration/nuapay/1642200051764-initial.js +13 -0
- package/dist/migration/nuapay/1642201303413-add-fields-nuapay.js +15 -0
- package/dist/migration/nuapay/1642282666475-add-nuapay-account.js +13 -0
- package/dist/migration/nuapay/1642283420696-fix-iban-length.js +15 -0
- package/dist/migration/nuapay/1642283781684-account-relation.js +15 -0
- package/dist/migration/nuapay/1642286393959-beneficiary.js +13 -0
- package/dist/migration/nuapay/1642316424390-account-ibans.js +21 -0
- package/dist/migration/nuapay/1642318117667-cleanup-beneficaries.js +23 -0
- package/dist/migration/nuapay/1642365244026-nullable-bic.js +13 -0
- package/dist/migration/nuapay/1642366232568-remove-bic.js +13 -0
- package/dist/migration/nuapay/1642370449589-transaction.js +17 -0
- package/dist/migration/payment/1642120204899-inital.js +21 -0
- package/dist/migration/payment/1642514728358-payment-link-updates.js +39 -0
- package/dist/migration/payment/1642516017835-payment-link-add-booking.js +15 -0
- package/dist/migration/payment/1642519453365-transaction.js +63 -0
- package/dist/migration/payment/1642520774562-transaction-payment-link.js +15 -0
- package/dist/migration/payment/1642533711013-transaction-metadata.js +15 -0
- package/dist/migration/payment/1642540883807-transaction-event.js +27 -0
- package/dist/migration/user/1641774481300-initial.js +27 -0
- package/dist/migration/user/1641829697638-add_parent_org.js +25 -0
- package/dist/migration/user/1641901624008-add_roles.js +21 -0
- package/dist/migration/user/1641903059924-add_roles_kyc.js +13 -0
- package/dist/migration/user/1641903425025-roles-defaults.js +15 -0
- package/dist/migration/user/1641939221103-feature.js +13 -0
- package/dist/migration/user/1642019067334-organisation-feature.js +17 -0
- package/dist/migration/user/1642078564295-user-activity-relation.js +16 -0
- package/dist/migration/user/1642207858247-fix-user-constraint.js +19 -0
- package/dist/model/index.js +45 -0
- package/dist/model/response/index.js +150 -0
- package/dist/model/status/index.js +82 -0
- package/dist/service/http.js +55 -0
- package/dist/service/logger.js +236 -0
- package/dist/service/request.js +342 -0
- package/dist/service/warehouse.js +59 -0
- package/dist/util/lambda-termination.js +39 -0
- package/dist/util/promisified-delay.js +59 -0
- package/dist/wrapper/index.js +165 -0
- package/ormconfig.js +25 -0
- package/package.json +19 -5
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _booking = _interopRequireDefault(require("../../agent-data/booking"));
|
|
11
|
+
|
|
12
|
+
var _transaction = _interopRequireDefault(require("../transaction"));
|
|
13
|
+
|
|
14
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
19
|
+
|
|
20
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
21
|
+
|
|
22
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
23
|
+
|
|
24
|
+
let TransactionMetadata = (_dec = (0, _typeorm.Entity)({
|
|
25
|
+
name: 'transaction_metadata',
|
|
26
|
+
schema: 'payment'
|
|
27
|
+
}), _dec2 = (0, _typeorm.ManyToOne)(() => _transaction.default, {
|
|
28
|
+
primary: true
|
|
29
|
+
}), _dec3 = (0, _typeorm.JoinColumn)({
|
|
30
|
+
name: 'transaction_id',
|
|
31
|
+
referencedColumnName: 'id'
|
|
32
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
33
|
+
type: "varchar",
|
|
34
|
+
nullable: true,
|
|
35
|
+
length: 20
|
|
36
|
+
}), _dec5 = (0, _typeorm.Column)({
|
|
37
|
+
type: "varchar",
|
|
38
|
+
nullable: true,
|
|
39
|
+
length: 20
|
|
40
|
+
}), _dec6 = (0, _typeorm.Column)({
|
|
41
|
+
type: "varchar",
|
|
42
|
+
nullable: true,
|
|
43
|
+
length: 20
|
|
44
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
45
|
+
type: "varchar",
|
|
46
|
+
nullable: true,
|
|
47
|
+
length: 10
|
|
48
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
49
|
+
type: "varchar",
|
|
50
|
+
nullable: true,
|
|
51
|
+
length: 10
|
|
52
|
+
}), _dec9 = (0, _typeorm.Column)({
|
|
53
|
+
type: "varchar",
|
|
54
|
+
nullable: true,
|
|
55
|
+
length: 10
|
|
56
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
57
|
+
type: "varchar",
|
|
58
|
+
nullable: true,
|
|
59
|
+
length: 4
|
|
60
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
61
|
+
type: "varchar",
|
|
62
|
+
nullable: true,
|
|
63
|
+
length: 150
|
|
64
|
+
}), _dec12 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class TransactionMetadata {
|
|
65
|
+
constructor() {
|
|
66
|
+
_initializerDefineProperty(this, "transaction", _descriptor, this);
|
|
67
|
+
|
|
68
|
+
_initializerDefineProperty(this, "card_type", _descriptor2, this);
|
|
69
|
+
|
|
70
|
+
_initializerDefineProperty(this, "bin_type", _descriptor3, this);
|
|
71
|
+
|
|
72
|
+
_initializerDefineProperty(this, "payment_brand", _descriptor4, this);
|
|
73
|
+
|
|
74
|
+
_initializerDefineProperty(this, "payment_type", _descriptor5, this);
|
|
75
|
+
|
|
76
|
+
_initializerDefineProperty(this, "issuing_country", _descriptor6, this);
|
|
77
|
+
|
|
78
|
+
_initializerDefineProperty(this, "currency", _descriptor7, this);
|
|
79
|
+
|
|
80
|
+
_initializerDefineProperty(this, "last_four_digits", _descriptor8, this);
|
|
81
|
+
|
|
82
|
+
_initializerDefineProperty(this, "cardholder_name", _descriptor9, this);
|
|
83
|
+
|
|
84
|
+
_initializerDefineProperty(this, "created_at", _descriptor10, this);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "transaction", [_dec2, _dec3], {
|
|
88
|
+
configurable: true,
|
|
89
|
+
enumerable: true,
|
|
90
|
+
writable: true,
|
|
91
|
+
initializer: function () {
|
|
92
|
+
return _booking.default;
|
|
93
|
+
}
|
|
94
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "card_type", [_dec4], {
|
|
95
|
+
configurable: true,
|
|
96
|
+
enumerable: true,
|
|
97
|
+
writable: true,
|
|
98
|
+
initializer: null
|
|
99
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "bin_type", [_dec5], {
|
|
100
|
+
configurable: true,
|
|
101
|
+
enumerable: true,
|
|
102
|
+
writable: true,
|
|
103
|
+
initializer: null
|
|
104
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "payment_brand", [_dec6], {
|
|
105
|
+
configurable: true,
|
|
106
|
+
enumerable: true,
|
|
107
|
+
writable: true,
|
|
108
|
+
initializer: null
|
|
109
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "payment_type", [_dec7], {
|
|
110
|
+
configurable: true,
|
|
111
|
+
enumerable: true,
|
|
112
|
+
writable: true,
|
|
113
|
+
initializer: null
|
|
114
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "issuing_country", [_dec8], {
|
|
115
|
+
configurable: true,
|
|
116
|
+
enumerable: true,
|
|
117
|
+
writable: true,
|
|
118
|
+
initializer: null
|
|
119
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec9], {
|
|
120
|
+
configurable: true,
|
|
121
|
+
enumerable: true,
|
|
122
|
+
writable: true,
|
|
123
|
+
initializer: null
|
|
124
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "last_four_digits", [_dec10], {
|
|
125
|
+
configurable: true,
|
|
126
|
+
enumerable: true,
|
|
127
|
+
writable: true,
|
|
128
|
+
initializer: null
|
|
129
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "cardholder_name", [_dec11], {
|
|
130
|
+
configurable: true,
|
|
131
|
+
enumerable: true,
|
|
132
|
+
writable: true,
|
|
133
|
+
initializer: null
|
|
134
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec12], {
|
|
135
|
+
configurable: true,
|
|
136
|
+
enumerable: true,
|
|
137
|
+
writable: true,
|
|
138
|
+
initializer: null
|
|
139
|
+
})), _class2)) || _class);
|
|
140
|
+
exports.default = TransactionMetadata;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
11
|
+
|
|
12
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
|
+
|
|
14
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
15
|
+
|
|
16
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
+
|
|
18
|
+
let TransactionMethod = (_dec = (0, _typeorm.Entity)({
|
|
19
|
+
name: 'transaction_method',
|
|
20
|
+
schema: 'payment'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class TransactionMethod {
|
|
22
|
+
constructor() {
|
|
23
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
24
|
+
|
|
25
|
+
_initializerDefineProperty(this, "created_at", _descriptor2, this);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
29
|
+
configurable: true,
|
|
30
|
+
enumerable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
initializer: null
|
|
33
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec3], {
|
|
34
|
+
configurable: true,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
initializer: null
|
|
38
|
+
})), _class2)) || _class);
|
|
39
|
+
exports.default = TransactionMethod;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
11
|
+
|
|
12
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
|
+
|
|
14
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
15
|
+
|
|
16
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
+
|
|
18
|
+
let TransactionStatus = (_dec = (0, _typeorm.Entity)({
|
|
19
|
+
name: 'transaction_status',
|
|
20
|
+
schema: 'payment'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class TransactionStatus {
|
|
22
|
+
constructor() {
|
|
23
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
24
|
+
|
|
25
|
+
_initializerDefineProperty(this, "created_at", _descriptor2, this);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
29
|
+
configurable: true,
|
|
30
|
+
enumerable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
initializer: null
|
|
33
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec3], {
|
|
34
|
+
configurable: true,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
initializer: null
|
|
38
|
+
})), _class2)) || _class);
|
|
39
|
+
exports.default = TransactionStatus;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
11
|
+
|
|
12
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
|
+
|
|
14
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
15
|
+
|
|
16
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
+
|
|
18
|
+
let TransactionType = (_dec = (0, _typeorm.Entity)({
|
|
19
|
+
name: 'transaction_type',
|
|
20
|
+
schema: 'payment'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class TransactionType {
|
|
22
|
+
constructor() {
|
|
23
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
24
|
+
|
|
25
|
+
_initializerDefineProperty(this, "created_at", _descriptor2, this);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
29
|
+
configurable: true,
|
|
30
|
+
enumerable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
initializer: null
|
|
33
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec3], {
|
|
34
|
+
configurable: true,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
initializer: null
|
|
38
|
+
})), _class2)) || _class);
|
|
39
|
+
exports.default = TransactionType;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
11
|
+
|
|
12
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
|
+
|
|
14
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
15
|
+
|
|
16
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
+
|
|
18
|
+
let Feature = (_dec = (0, _typeorm.Entity)({
|
|
19
|
+
name: 'feature',
|
|
20
|
+
schema: 'user'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
|
|
22
|
+
type: "varchar",
|
|
23
|
+
length: "50"
|
|
24
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
25
|
+
type: "varchar",
|
|
26
|
+
length: "150"
|
|
27
|
+
}), _dec5 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Feature {
|
|
28
|
+
constructor() {
|
|
29
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
30
|
+
|
|
31
|
+
_initializerDefineProperty(this, "machine_name", _descriptor2, this);
|
|
32
|
+
|
|
33
|
+
_initializerDefineProperty(this, "name", _descriptor3, this);
|
|
34
|
+
|
|
35
|
+
_initializerDefineProperty(this, "created_at", _descriptor4, this);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
39
|
+
configurable: true,
|
|
40
|
+
enumerable: true,
|
|
41
|
+
writable: true,
|
|
42
|
+
initializer: null
|
|
43
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "machine_name", [_dec3], {
|
|
44
|
+
configurable: true,
|
|
45
|
+
enumerable: true,
|
|
46
|
+
writable: true,
|
|
47
|
+
initializer: function () {
|
|
48
|
+
return "";
|
|
49
|
+
}
|
|
50
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "name", [_dec4], {
|
|
51
|
+
configurable: true,
|
|
52
|
+
enumerable: true,
|
|
53
|
+
writable: true,
|
|
54
|
+
initializer: function () {
|
|
55
|
+
return "";
|
|
56
|
+
}
|
|
57
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec5], {
|
|
58
|
+
configurable: true,
|
|
59
|
+
enumerable: true,
|
|
60
|
+
writable: true,
|
|
61
|
+
initializer: null
|
|
62
|
+
})), _class2)) || _class);
|
|
63
|
+
exports.default = Feature;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _organisation = _interopRequireDefault(require("./organisation"));
|
|
9
|
+
|
|
10
|
+
var _role = _interopRequireDefault(require("./role"));
|
|
11
|
+
|
|
12
|
+
var _userRole = _interopRequireDefault(require("./user-role"));
|
|
13
|
+
|
|
14
|
+
var _user = _interopRequireDefault(require("./user"));
|
|
15
|
+
|
|
16
|
+
var _userActivity = _interopRequireDefault(require("./user-activity"));
|
|
17
|
+
|
|
18
|
+
var _feature = _interopRequireDefault(require("./feature"));
|
|
19
|
+
|
|
20
|
+
var _organisationFeature = _interopRequireDefault(require("./organisation-feature"));
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
24
|
+
const ENTITIES = [_organisation.default, _role.default, _userRole.default, _user.default, _userActivity.default, _feature.default, _organisationFeature.default];
|
|
25
|
+
var _default = ENTITIES;
|
|
26
|
+
exports.default = _default;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _user = _interopRequireDefault(require("../user"));
|
|
11
|
+
|
|
12
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
17
|
+
|
|
18
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
19
|
+
|
|
20
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
21
|
+
|
|
22
|
+
let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
23
|
+
name: 'organisation',
|
|
24
|
+
schema: 'user'
|
|
25
|
+
}), _dec2 = (0, _typeorm.Tree)("closure-table"), _dec3 = (0, _typeorm.PrimaryColumn)({
|
|
26
|
+
type: "varchar",
|
|
27
|
+
length: "150"
|
|
28
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
29
|
+
type: "varchar",
|
|
30
|
+
length: "150"
|
|
31
|
+
}), _dec5 = (0, _typeorm.CreateDateColumn)(), _dec6 = (0, _typeorm.UpdateDateColumn)(), _dec7 = (0, _typeorm.DeleteDateColumn)(), _dec8 = (0, _typeorm.ManyToMany)(() => _user.default, users => users.organisations), _dec9 = (0, _typeorm.JoinTable)({
|
|
32
|
+
name: "user_organisation",
|
|
33
|
+
schema: "user",
|
|
34
|
+
joinColumn: {
|
|
35
|
+
name: "user_id",
|
|
36
|
+
referencedColumnName: "id"
|
|
37
|
+
},
|
|
38
|
+
inverseJoinColumn: {
|
|
39
|
+
name: "organisation_id",
|
|
40
|
+
referencedColumnName: "id"
|
|
41
|
+
}
|
|
42
|
+
}), _dec10 = (0, _typeorm.TreeParent)(), _dec11 = (0, _typeorm.TreeChildren)(), _dec(_class = _dec2(_class = (_class2 = class Organisation {
|
|
43
|
+
constructor() {
|
|
44
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
45
|
+
|
|
46
|
+
_initializerDefineProperty(this, "name", _descriptor2, this);
|
|
47
|
+
|
|
48
|
+
_initializerDefineProperty(this, "created_at", _descriptor3, this);
|
|
49
|
+
|
|
50
|
+
_initializerDefineProperty(this, "updated_at", _descriptor4, this);
|
|
51
|
+
|
|
52
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor5, this);
|
|
53
|
+
|
|
54
|
+
_initializerDefineProperty(this, "users", _descriptor6, this);
|
|
55
|
+
|
|
56
|
+
_initializerDefineProperty(this, "parent", _descriptor7, this);
|
|
57
|
+
|
|
58
|
+
_initializerDefineProperty(this, "children", _descriptor8, this);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
propgate(id, name) {
|
|
62
|
+
this.id = id;
|
|
63
|
+
this.name = name;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec3], {
|
|
67
|
+
configurable: true,
|
|
68
|
+
enumerable: true,
|
|
69
|
+
writable: true,
|
|
70
|
+
initializer: function () {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "name", [_dec4], {
|
|
74
|
+
configurable: true,
|
|
75
|
+
enumerable: true,
|
|
76
|
+
writable: true,
|
|
77
|
+
initializer: function () {
|
|
78
|
+
return "";
|
|
79
|
+
}
|
|
80
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec5], {
|
|
81
|
+
configurable: true,
|
|
82
|
+
enumerable: true,
|
|
83
|
+
writable: true,
|
|
84
|
+
initializer: null
|
|
85
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec6], {
|
|
86
|
+
configurable: true,
|
|
87
|
+
enumerable: true,
|
|
88
|
+
writable: true,
|
|
89
|
+
initializer: null
|
|
90
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec7], {
|
|
91
|
+
configurable: true,
|
|
92
|
+
enumerable: true,
|
|
93
|
+
writable: true,
|
|
94
|
+
initializer: null
|
|
95
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "users", [_dec8, _dec9], {
|
|
96
|
+
configurable: true,
|
|
97
|
+
enumerable: true,
|
|
98
|
+
writable: true,
|
|
99
|
+
initializer: null
|
|
100
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec10], {
|
|
101
|
+
configurable: true,
|
|
102
|
+
enumerable: true,
|
|
103
|
+
writable: true,
|
|
104
|
+
initializer: null
|
|
105
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec11], {
|
|
106
|
+
configurable: true,
|
|
107
|
+
enumerable: true,
|
|
108
|
+
writable: true,
|
|
109
|
+
initializer: null
|
|
110
|
+
})), _class2)) || _class) || _class);
|
|
111
|
+
exports.default = Organisation;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _organisation = _interopRequireDefault(require("../organisation"));
|
|
11
|
+
|
|
12
|
+
var _feature = _interopRequireDefault(require("../feature"));
|
|
13
|
+
|
|
14
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
19
|
+
|
|
20
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
21
|
+
|
|
22
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
23
|
+
|
|
24
|
+
let OrganisationFeature = (_dec = (0, _typeorm.Entity)({
|
|
25
|
+
name: 'organisation_feature',
|
|
26
|
+
schema: 'user'
|
|
27
|
+
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
28
|
+
name: 'organisation_id',
|
|
29
|
+
referencedColumnName: 'id'
|
|
30
|
+
}), _dec5 = (0, _typeorm.ManyToOne)(() => _feature.default), _dec6 = (0, _typeorm.JoinColumn)({
|
|
31
|
+
name: 'feature_id',
|
|
32
|
+
referencedColumnName: 'id'
|
|
33
|
+
}), _dec7 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class OrganisationFeature {
|
|
34
|
+
constructor() {
|
|
35
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
36
|
+
|
|
37
|
+
_initializerDefineProperty(this, "organisation", _descriptor2, this);
|
|
38
|
+
|
|
39
|
+
_initializerDefineProperty(this, "feature", _descriptor3, this);
|
|
40
|
+
|
|
41
|
+
_initializerDefineProperty(this, "created_at", _descriptor4, this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
45
|
+
configurable: true,
|
|
46
|
+
enumerable: true,
|
|
47
|
+
writable: true,
|
|
48
|
+
initializer: null
|
|
49
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec3, _dec4], {
|
|
50
|
+
configurable: true,
|
|
51
|
+
enumerable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
initializer: function () {
|
|
54
|
+
return _organisation.default;
|
|
55
|
+
}
|
|
56
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "feature", [_dec5, _dec6], {
|
|
57
|
+
configurable: true,
|
|
58
|
+
enumerable: true,
|
|
59
|
+
writable: true,
|
|
60
|
+
initializer: function () {
|
|
61
|
+
return _feature.default;
|
|
62
|
+
}
|
|
63
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
|
|
64
|
+
configurable: true,
|
|
65
|
+
enumerable: true,
|
|
66
|
+
writable: true,
|
|
67
|
+
initializer: null
|
|
68
|
+
})), _class2)) || _class);
|
|
69
|
+
exports.default = OrganisationFeature;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
|
|
11
|
+
|
|
12
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
|
+
|
|
14
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
15
|
+
|
|
16
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
+
|
|
18
|
+
let Role = (_dec = (0, _typeorm.Entity)({
|
|
19
|
+
name: 'role',
|
|
20
|
+
schema: 'user'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
|
|
22
|
+
type: "varchar",
|
|
23
|
+
length: "50"
|
|
24
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
25
|
+
type: "varchar",
|
|
26
|
+
length: "150"
|
|
27
|
+
}), _dec5 = (0, _typeorm.Column)({
|
|
28
|
+
type: "varchar",
|
|
29
|
+
length: "250"
|
|
30
|
+
}), _dec6 = (0, _typeorm.Column)({
|
|
31
|
+
type: "boolean",
|
|
32
|
+
default: false
|
|
33
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
34
|
+
type: "boolean",
|
|
35
|
+
default: false
|
|
36
|
+
}), _dec8 = (0, _typeorm.Column)({
|
|
37
|
+
type: "varchar",
|
|
38
|
+
length: "100"
|
|
39
|
+
}), _dec9 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Role {
|
|
40
|
+
constructor() {
|
|
41
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
42
|
+
|
|
43
|
+
_initializerDefineProperty(this, "machine_name", _descriptor2, this);
|
|
44
|
+
|
|
45
|
+
_initializerDefineProperty(this, "name", _descriptor3, this);
|
|
46
|
+
|
|
47
|
+
_initializerDefineProperty(this, "description", _descriptor4, this);
|
|
48
|
+
|
|
49
|
+
_initializerDefineProperty(this, "parent_only", _descriptor5, this);
|
|
50
|
+
|
|
51
|
+
_initializerDefineProperty(this, "kyc_required", _descriptor6, this);
|
|
52
|
+
|
|
53
|
+
_initializerDefineProperty(this, "group", _descriptor7, this);
|
|
54
|
+
|
|
55
|
+
_initializerDefineProperty(this, "created_at", _descriptor8, this);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
59
|
+
configurable: true,
|
|
60
|
+
enumerable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
initializer: null
|
|
63
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "machine_name", [_dec3], {
|
|
64
|
+
configurable: true,
|
|
65
|
+
enumerable: true,
|
|
66
|
+
writable: true,
|
|
67
|
+
initializer: function () {
|
|
68
|
+
return "";
|
|
69
|
+
}
|
|
70
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "name", [_dec4], {
|
|
71
|
+
configurable: true,
|
|
72
|
+
enumerable: true,
|
|
73
|
+
writable: true,
|
|
74
|
+
initializer: function () {
|
|
75
|
+
return "";
|
|
76
|
+
}
|
|
77
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec5], {
|
|
78
|
+
configurable: true,
|
|
79
|
+
enumerable: true,
|
|
80
|
+
writable: true,
|
|
81
|
+
initializer: function () {
|
|
82
|
+
return "";
|
|
83
|
+
}
|
|
84
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "parent_only", [_dec6], {
|
|
85
|
+
configurable: true,
|
|
86
|
+
enumerable: true,
|
|
87
|
+
writable: true,
|
|
88
|
+
initializer: null
|
|
89
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "kyc_required", [_dec7], {
|
|
90
|
+
configurable: true,
|
|
91
|
+
enumerable: true,
|
|
92
|
+
writable: true,
|
|
93
|
+
initializer: null
|
|
94
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "group", [_dec8], {
|
|
95
|
+
configurable: true,
|
|
96
|
+
enumerable: true,
|
|
97
|
+
writable: true,
|
|
98
|
+
initializer: function () {
|
|
99
|
+
return "";
|
|
100
|
+
}
|
|
101
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec9], {
|
|
102
|
+
configurable: true,
|
|
103
|
+
enumerable: true,
|
|
104
|
+
writable: true,
|
|
105
|
+
initializer: null
|
|
106
|
+
})), _class2)) || _class);
|
|
107
|
+
exports.default = Role;
|