@spytecgps/nova-orm 0.0.5 → 0.0.6
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/index.js +2 -5
- package/dist/index.js.LICENSE.txt +39 -0
- package/dist/utils/uuidHelpers.d.ts +0 -1
- package/package.json +2 -2
- package/dist/entities/alert.js +0 -118
- package/dist/entities/alertType.js +0 -65
- package/dist/entities/assetCategory.js +0 -29
- package/dist/entities/billing.js +0 -81
- package/dist/entities/billingCustomerBraintree.js +0 -53
- package/dist/entities/billingDeviceHistory.js +0 -52
- package/dist/entities/billingStatusHistoryBraintree.js +0 -55
- package/dist/entities/billingSubscriptionBraintree.js +0 -169
- package/dist/entities/blacklist.js +0 -44
- package/dist/entities/blacklistType.js +0 -28
- package/dist/entities/cellTower.js +0 -56
- package/dist/entities/client.js +0 -96
- package/dist/entities/clientConfiguration.js +0 -42
- package/dist/entities/clientDeviceSetting.js +0 -76
- package/dist/entities/clientType.js +0 -32
- package/dist/entities/country.js +0 -76
- package/dist/entities/dataSourceType.js +0 -28
- package/dist/entities/deactivation.js +0 -63
- package/dist/entities/deactivationReason.js +0 -36
- package/dist/entities/device.js +0 -123
- package/dist/entities/deviceBehavior.js +0 -105
- package/dist/entities/deviceHistory.js +0 -44
- package/dist/entities/deviceModelListener.js +0 -40
- package/dist/entities/deviceReplacement.js +0 -49
- package/dist/entities/deviceType.js +0 -100
- package/dist/entities/deviceTypeEvent.js +0 -29
- package/dist/entities/deviceTypeFeature.js +0 -29
- package/dist/entities/deviceTypeFirmware.js +0 -57
- package/dist/entities/entityTag.js +0 -42
- package/dist/entities/entityType.js +0 -28
- package/dist/entities/event.js +0 -32
- package/dist/entities/feature.js +0 -32
- package/dist/entities/firmwareUpgradeTask.js +0 -53
- package/dist/entities/geofence.js +0 -86
- package/dist/entities/geofenceEvent.js +0 -87
- package/dist/entities/imeiIccidCarrier.js +0 -78
- package/dist/entities/imeiIccidHistory.js +0 -38
- package/dist/entities/index.js +0 -68
- package/dist/entities/industry.js +0 -40
- package/dist/entities/mobileNetwork.js +0 -44
- package/dist/entities/notificationRecipient.js +0 -70
- package/dist/entities/organization.js +0 -40
- package/dist/entities/plan.js +0 -72
- package/dist/entities/position.js +0 -84
- package/dist/entities/securityRole.js +0 -36
- package/dist/entities/serviceProvider.js +0 -36
- package/dist/entities/serviceProviderProduct.js +0 -54
- package/dist/entities/serviceProviderProductNetwork.js +0 -28
- package/dist/entities/serviceProviderProductType.js +0 -28
- package/dist/entities/sim.js +0 -78
- package/dist/entities/trip.js +0 -103
- package/dist/entities/tripCompletionStatus.js +0 -32
- package/dist/entities/tripPosition.js +0 -24
- package/dist/entities/user.js +0 -116
- package/dist/entities/userActivation.js +0 -45
- package/dist/entities/userActivationDevice.js +0 -105
- package/dist/entities/userActivationEvent.js +0 -52
- package/dist/entities/userActivationMetric.js +0 -167
- package/dist/entities/userAlertConfiguration.js +0 -68
- package/dist/entities/userAppFeedback.js +0 -45
- package/dist/entities/userAppIncident.js +0 -131
- package/dist/entities/userConfiguration.js +0 -87
- package/dist/entities/userDataDeletionRequest.js +0 -48
- package/dist/entities/userDeviceBehaviorTask.js +0 -61
- package/dist/entities/userInvitation.js +0 -75
- package/dist/entities/userRatingRequest.js +0 -63
- package/dist/entities/userRegistrationAttempt.js +0 -145
- package/dist/entities/userSecurityRole.js +0 -30
- package/dist/novaDataSource.js +0 -59
- package/dist/repositories/baseRepository.js +0 -5
- package/dist/repositories/devicesRepository.js +0 -122
- package/dist/repositories/index.js +0 -3
- package/dist/repositories/securityRepository.js +0 -99
- package/dist/types/enums.js +0 -11
- package/dist/utils/uuidHelpers.js +0 -6
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*/
|
|
3
|
+
|
|
4
|
+
/*! *****************************************************************************
|
|
5
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
7
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
8
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
11
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
12
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
13
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
14
|
+
|
|
15
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
16
|
+
and limitations under the License.
|
|
17
|
+
***************************************************************************** */
|
|
18
|
+
|
|
19
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @license
|
|
23
|
+
* Copyright 2009 The Closure Library Authors
|
|
24
|
+
* Copyright 2020 Daniel Wirtz / The long.js Authors.
|
|
25
|
+
*
|
|
26
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27
|
+
* you may not use this file except in compliance with the License.
|
|
28
|
+
* You may obtain a copy of the License at
|
|
29
|
+
*
|
|
30
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
31
|
+
*
|
|
32
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
33
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
34
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
35
|
+
* See the License for the specific language governing permissions and
|
|
36
|
+
* limitations under the License.
|
|
37
|
+
*
|
|
38
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
39
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spytecgps/nova-orm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "ORM with PlanetScale",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"lint": "eslint \"./src/**\"",
|
|
39
39
|
"lint-fix": "eslint \"./src/**\" --fix",
|
|
40
40
|
"build-dev": "webpack --mode=development",
|
|
41
|
-
"build": "
|
|
41
|
+
"build": "webpack --mode=production",
|
|
42
42
|
"schema-sync": "yarn typeorm schema:drop --dataSource ./data-source.ts & yarn typeorm schema:sync --dataSource ./data-source.ts"
|
|
43
43
|
},
|
|
44
44
|
"author": "Spytec",
|
package/dist/entities/alert.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
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
|
-
};
|
|
10
|
-
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let Alert = class Alert {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'bigint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", String)
|
|
16
|
-
], Alert.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('tinyint', { name: 'alertTypeId' }),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], Alert.prototype, "alertTypeId", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'value', nullable: true, length: 50 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Alert.prototype, "value", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('datetime', { name: 'createdAt', nullable: true }),
|
|
27
|
-
__metadata("design:type", Date)
|
|
28
|
-
], Alert.prototype, "createdAt", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('binary', { name: 'userId', nullable: true, length: 16 }),
|
|
31
|
-
__metadata("design:type", Buffer)
|
|
32
|
-
], Alert.prototype, "userId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('binary', { name: 'messageId', length: 16 }),
|
|
35
|
-
__metadata("design:type", Buffer)
|
|
36
|
-
], Alert.prototype, "messageId", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('mediumint', { name: 'geofenceId', nullable: true }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], Alert.prototype, "geofenceId", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('int', { name: 'deviceId', nullable: true }),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], Alert.prototype, "deviceId", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('varchar', { name: 'imei', length: 15 }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Alert.prototype, "imei", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column('datetime', { name: 'sendTime' }),
|
|
51
|
-
__metadata("design:type", Date)
|
|
52
|
-
], Alert.prototype, "sendTime", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
Column('double', { name: 'lat', nullable: true }),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], Alert.prototype, "lat", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
Column('double', { name: 'lon', nullable: true }),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], Alert.prototype, "lon", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
Column('varchar', { name: 'address', nullable: true, length: 255 }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], Alert.prototype, "address", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
Column('int', { name: 'clientId', nullable: true }),
|
|
67
|
-
__metadata("design:type", Number)
|
|
68
|
-
], Alert.prototype, "clientId", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
Column('tinyint', {
|
|
71
|
-
name: 'fromMigration',
|
|
72
|
-
nullable: true,
|
|
73
|
-
width: 1,
|
|
74
|
-
default: () => "'0'",
|
|
75
|
-
}),
|
|
76
|
-
__metadata("design:type", Boolean)
|
|
77
|
-
], Alert.prototype, "fromMigration", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
Column('tinyint', { name: 'isBuffer', nullable: true, width: 1 }),
|
|
80
|
-
__metadata("design:type", Boolean)
|
|
81
|
-
], Alert.prototype, "isBuffer", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
Column('tinyint', { name: 'isNotification', nullable: true, width: 1 }),
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
85
|
-
], Alert.prototype, "isNotification", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
Column('datetime', { name: 'eventUtcTime', nullable: true }),
|
|
88
|
-
__metadata("design:type", Date)
|
|
89
|
-
], Alert.prototype, "eventUtcTime", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
Column('datetime', { name: 'gpsUtcTime', nullable: true }),
|
|
92
|
-
__metadata("design:type", Date)
|
|
93
|
-
], Alert.prototype, "gpsUtcTime", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
Column('varchar', { name: 'relevantAddress', nullable: true, length: 255 }),
|
|
96
|
-
__metadata("design:type", String)
|
|
97
|
-
], Alert.prototype, "relevantAddress", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
Column('binary', { name: 'gpsMessageId', nullable: true, length: 16 }),
|
|
100
|
-
__metadata("design:type", Buffer)
|
|
101
|
-
], Alert.prototype, "gpsMessageId", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
Column('varchar', {
|
|
104
|
-
name: 'cellTowerRelevantAddress',
|
|
105
|
-
nullable: true,
|
|
106
|
-
length: 255,
|
|
107
|
-
}),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], Alert.prototype, "cellTowerRelevantAddress", void 0);
|
|
110
|
-
Alert = __decorate([
|
|
111
|
-
Index('ixAlertAlertTypeId', ['alertTypeId'], {}),
|
|
112
|
-
Index('ixAlertClientId', ['clientId'], {}),
|
|
113
|
-
Index('ixAlertImei', ['imei'], {}),
|
|
114
|
-
Index('ixAlertSendTime', ['sendTime'], {}),
|
|
115
|
-
Index('ixAlertUserId', ['userId'], {}),
|
|
116
|
-
Entity('alert', { schema: 'nova' })
|
|
117
|
-
], Alert);
|
|
118
|
-
export { Alert };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
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
|
-
};
|
|
10
|
-
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let AlertType = class AlertType {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], AlertType.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'name', length: 50 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], AlertType.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'title', nullable: true, length: 255 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], AlertType.prototype, "title", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'description', nullable: true, length: 2000 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], AlertType.prototype, "description", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('tinyint', { name: 'isSystem', width: 1, default: () => "'0'" }),
|
|
31
|
-
__metadata("design:type", Boolean)
|
|
32
|
-
], AlertType.prototype, "isSystem", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', { name: 'icon', nullable: true, length: 50 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], AlertType.prototype, "icon", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('varchar', { name: 'context', nullable: true, length: 25 }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], AlertType.prototype, "context", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('varchar', { name: 'identifier', nullable: true, length: 50 }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], AlertType.prototype, "identifier", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('varchar', { name: 'stage', nullable: true, length: 10 }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], AlertType.prototype, "stage", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column('varchar', { name: 'category', nullable: true, length: 25 }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], AlertType.prototype, "category", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
Column('varchar', { name: 'key', nullable: true, length: 25 }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], AlertType.prototype, "key", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
Column('datetime', { name: 'createdAt', nullable: true }),
|
|
59
|
-
__metadata("design:type", Date)
|
|
60
|
-
], AlertType.prototype, "createdAt", void 0);
|
|
61
|
-
AlertType = __decorate([
|
|
62
|
-
Index('ixAlertTypeStage', ['stage'], {}),
|
|
63
|
-
Entity('alertType', { schema: 'nova' })
|
|
64
|
-
], AlertType);
|
|
65
|
-
export { AlertType };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
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
|
-
};
|
|
10
|
-
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let AssetCategory = class AssetCategory {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], AssetCategory.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'name', length: 50 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], AssetCategory.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'description', nullable: true, length: 255 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], AssetCategory.prototype, "description", void 0);
|
|
25
|
-
AssetCategory = __decorate([
|
|
26
|
-
Index('ixuAssetCategoryName', ['name'], { unique: true }),
|
|
27
|
-
Entity('assetCategory', { schema: 'nova' })
|
|
28
|
-
], AssetCategory);
|
|
29
|
-
export { AssetCategory };
|
package/dist/entities/billing.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
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
|
-
};
|
|
10
|
-
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let Billing = class Billing {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], Billing.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('int', { name: 'deviceId', nullable: true }),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], Billing.prototype, "deviceId", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'imei', nullable: true, length: 15 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Billing.prototype, "imei", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'planId', nullable: true, length: 50 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], Billing.prototype, "planId", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'subscriptionId', nullable: true, length: 50 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Billing.prototype, "subscriptionId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', { name: 'platform', nullable: true, length: 25 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], Billing.prototype, "platform", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('varchar', { name: 'status', nullable: true, length: 10 }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], Billing.prototype, "status", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('datetime', { name: 'createdAt', nullable: true }),
|
|
43
|
-
__metadata("design:type", Date)
|
|
44
|
-
], Billing.prototype, "createdAt", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('datetime', { name: 'updatedAt', nullable: true }),
|
|
47
|
-
__metadata("design:type", Date)
|
|
48
|
-
], Billing.prototype, "updatedAt", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column('decimal', {
|
|
51
|
-
name: 'subscriptionValue',
|
|
52
|
-
nullable: true,
|
|
53
|
-
precision: 19,
|
|
54
|
-
scale: 4,
|
|
55
|
-
}),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], Billing.prototype, "subscriptionValue", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
Column('tinyint', { name: 'subscriptionPeriodMonths', nullable: true }),
|
|
60
|
-
__metadata("design:type", Number)
|
|
61
|
-
], Billing.prototype, "subscriptionPeriodMonths", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
Column('decimal', {
|
|
64
|
-
name: 'subscriptionValueMonthly',
|
|
65
|
-
nullable: true,
|
|
66
|
-
precision: 19,
|
|
67
|
-
scale: 4,
|
|
68
|
-
}),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], Billing.prototype, "subscriptionValueMonthly", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
Column('int', { name: 'clientId', nullable: true }),
|
|
73
|
-
__metadata("design:type", Number)
|
|
74
|
-
], Billing.prototype, "clientId", void 0);
|
|
75
|
-
Billing = __decorate([
|
|
76
|
-
Index('ixuBillingImei', ['imei'], { unique: true }),
|
|
77
|
-
Index('ixBillingClientId', ['clientId'], {}),
|
|
78
|
-
Index('ixBillingPlanId', ['planId'], {}),
|
|
79
|
-
Entity('billing', { schema: 'nova' })
|
|
80
|
-
], Billing);
|
|
81
|
-
export { Billing };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
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
|
-
};
|
|
10
|
-
import { Column, Entity, Index } from 'typeorm';
|
|
11
|
-
let BillingCustomerBraintree = class BillingCustomerBraintree {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
Column('varchar', { primary: true, name: 'id', length: 50 }),
|
|
15
|
-
__metadata("design:type", String)
|
|
16
|
-
], BillingCustomerBraintree.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'firstName', nullable: true, length: 50 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], BillingCustomerBraintree.prototype, "firstName", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'lastName', nullable: true, length: 50 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], BillingCustomerBraintree.prototype, "lastName", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'company', nullable: true, length: 100 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], BillingCustomerBraintree.prototype, "company", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'email', nullable: true, length: 255 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], BillingCustomerBraintree.prototype, "email", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', { name: 'phone', nullable: true, length: 50 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], BillingCustomerBraintree.prototype, "phone", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('datetime', { name: 'createdAt', nullable: true }),
|
|
39
|
-
__metadata("design:type", Date)
|
|
40
|
-
], BillingCustomerBraintree.prototype, "createdAt", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('datetime', { name: 'updatedAt', nullable: true }),
|
|
43
|
-
__metadata("design:type", Date)
|
|
44
|
-
], BillingCustomerBraintree.prototype, "updatedAt", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('varchar', { name: 'churnStatus', nullable: true, length: 50 }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], BillingCustomerBraintree.prototype, "churnStatus", void 0);
|
|
49
|
-
BillingCustomerBraintree = __decorate([
|
|
50
|
-
Index('ixBillingCustomerBraintreeEmail', ['email'], {}),
|
|
51
|
-
Entity('billingCustomerBraintree', { schema: 'nova' })
|
|
52
|
-
], BillingCustomerBraintree);
|
|
53
|
-
export { BillingCustomerBraintree };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
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
|
-
};
|
|
10
|
-
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let BillingDeviceHistory = class BillingDeviceHistory {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], BillingDeviceHistory.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('int', { name: 'clientId', nullable: true }),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], BillingDeviceHistory.prototype, "clientId", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('int', { name: 'deviceId', nullable: true }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], BillingDeviceHistory.prototype, "deviceId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'imei', nullable: true, length: 15 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], BillingDeviceHistory.prototype, "imei", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'planId', nullable: true, length: 50 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], BillingDeviceHistory.prototype, "planId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', { name: 'subscriptionId', nullable: true, length: 50 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], BillingDeviceHistory.prototype, "subscriptionId", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('varchar', { name: 'platform', nullable: true, length: 25 }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], BillingDeviceHistory.prototype, "platform", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('varchar', { name: 'status', nullable: true, length: 10 }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], BillingDeviceHistory.prototype, "status", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('datetime', { name: 'createdAt', nullable: true }),
|
|
47
|
-
__metadata("design:type", Date)
|
|
48
|
-
], BillingDeviceHistory.prototype, "createdAt", void 0);
|
|
49
|
-
BillingDeviceHistory = __decorate([
|
|
50
|
-
Entity('billingDeviceHistory', { schema: 'nova' })
|
|
51
|
-
], BillingDeviceHistory);
|
|
52
|
-
export { BillingDeviceHistory };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
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
|
-
};
|
|
10
|
-
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let BillingStatusHistoryBraintree = class BillingStatusHistoryBraintree {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], BillingStatusHistoryBraintree.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'timestamp', nullable: true, length: 255 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], BillingStatusHistoryBraintree.prototype, "timestamp", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'status', nullable: true, length: 10 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], BillingStatusHistoryBraintree.prototype, "status", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('decimal', {
|
|
27
|
-
name: 'balance',
|
|
28
|
-
nullable: true,
|
|
29
|
-
precision: 19,
|
|
30
|
-
scale: 4,
|
|
31
|
-
}),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], BillingStatusHistoryBraintree.prototype, "balance", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
Column('decimal', { name: 'price', nullable: true, precision: 19, scale: 4 }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], BillingStatusHistoryBraintree.prototype, "price", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
Column('varchar', { name: 'currencyIsoCode', nullable: true, length: 3 }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], BillingStatusHistoryBraintree.prototype, "currencyIsoCode", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
Column('varchar', { name: 'planId', nullable: true, length: 50 }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], BillingStatusHistoryBraintree.prototype, "planId", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
Column('varchar', { name: 'subscriptionId', nullable: true, length: 25 }),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], BillingStatusHistoryBraintree.prototype, "subscriptionId", void 0);
|
|
50
|
-
BillingStatusHistoryBraintree = __decorate([
|
|
51
|
-
Index('ixBillingStatusHistoryBraintreeSubscriptionIdTimestamp', ['subscriptionId', 'timestamp'], {}),
|
|
52
|
-
Index('ixBillingStatusHistoryBraintreeTimestamp', ['timestamp'], {}),
|
|
53
|
-
Entity('billingStatusHistoryBraintree', { schema: 'nova' })
|
|
54
|
-
], BillingStatusHistoryBraintree);
|
|
55
|
-
export { BillingStatusHistoryBraintree };
|