@spytecgps/nova-orm 1.0.53 → 1.0.54
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/customerAttribute.d.ts +17 -0
- package/dist/entities/customerAttribute.js +35 -0
- package/dist/entities/customerAttribute.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/repositories/clients/createCustomerAttribute.js +6 -1
- package/dist/repositories/clients/createCustomerAttribute.js.map +1 -1
- package/dist/repositories/clients/updateCustomerAttribute.js +6 -7
- package/dist/repositories/clients/updateCustomerAttribute.js.map +1 -1
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.d.ts +4 -0
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js +54 -0
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js.map +1 -0
- package/dist/repositories/users/index.d.ts +8 -1
- package/dist/repositories/users/index.js +14 -0
- package/dist/repositories/users/index.js.map +1 -1
- package/dist/types/clients.d.ts +9 -0
- package/dist/types/clients.js +14 -1
- package/dist/types/clients.js.map +1 -1
- package/dist/types/user.d.ts +17 -0
- package/package.json +1 -1
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import { Relation } from 'typeorm';
|
|
2
2
|
import { Client } from './client';
|
|
3
|
+
export declare enum BillingMethod {
|
|
4
|
+
CreditCardHubspot = "credit-card-hubspot",
|
|
5
|
+
AchHubSpot = "ach-hub-spot",
|
|
6
|
+
CreditCardBraintree = "credit-card-braintree",
|
|
7
|
+
AchBraintree = "ach-braintree",
|
|
8
|
+
AchWire = "ach-wire",
|
|
9
|
+
Check = "check",
|
|
10
|
+
DibSap = "dib-sap"
|
|
11
|
+
}
|
|
12
|
+
export declare enum CustomerSegment {
|
|
13
|
+
Whale = "whale",
|
|
14
|
+
Bass = "bass",
|
|
15
|
+
Guppy = "guppy",
|
|
16
|
+
GuppySelfService = "guppy-self-service"
|
|
17
|
+
}
|
|
3
18
|
export declare class CustomerAttribute {
|
|
4
19
|
clientId: number;
|
|
5
20
|
client: Relation<Client>;
|
|
6
21
|
enterprise: boolean;
|
|
7
22
|
maintenanceModule: boolean;
|
|
23
|
+
billingMethod: BillingMethod | null;
|
|
24
|
+
customerSegment: CustomerSegment | null;
|
|
8
25
|
}
|
|
@@ -10,11 +10,30 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { Column, Entity, JoinColumn, OneToOne } from 'typeorm';
|
|
11
11
|
import { BoolToNumberTransformer } from '../utils/boolToNumberTransformer';
|
|
12
12
|
import { Client } from './client';
|
|
13
|
+
export var BillingMethod;
|
|
14
|
+
(function (BillingMethod) {
|
|
15
|
+
BillingMethod["CreditCardHubspot"] = "credit-card-hubspot";
|
|
16
|
+
BillingMethod["AchHubSpot"] = "ach-hub-spot";
|
|
17
|
+
BillingMethod["CreditCardBraintree"] = "credit-card-braintree";
|
|
18
|
+
BillingMethod["AchBraintree"] = "ach-braintree";
|
|
19
|
+
BillingMethod["AchWire"] = "ach-wire";
|
|
20
|
+
BillingMethod["Check"] = "check";
|
|
21
|
+
BillingMethod["DibSap"] = "dib-sap";
|
|
22
|
+
})(BillingMethod || (BillingMethod = {}));
|
|
23
|
+
export var CustomerSegment;
|
|
24
|
+
(function (CustomerSegment) {
|
|
25
|
+
CustomerSegment["Whale"] = "whale";
|
|
26
|
+
CustomerSegment["Bass"] = "bass";
|
|
27
|
+
CustomerSegment["Guppy"] = "guppy";
|
|
28
|
+
CustomerSegment["GuppySelfService"] = "guppy-self-service";
|
|
29
|
+
})(CustomerSegment || (CustomerSegment = {}));
|
|
13
30
|
let CustomerAttribute = class CustomerAttribute {
|
|
14
31
|
clientId;
|
|
15
32
|
client;
|
|
16
33
|
enterprise;
|
|
17
34
|
maintenanceModule;
|
|
35
|
+
billingMethod;
|
|
36
|
+
customerSegment;
|
|
18
37
|
};
|
|
19
38
|
__decorate([
|
|
20
39
|
Column('int', { primary: true, name: 'clientId' }),
|
|
@@ -46,6 +65,22 @@ __decorate([
|
|
|
46
65
|
}),
|
|
47
66
|
__metadata("design:type", Boolean)
|
|
48
67
|
], CustomerAttribute.prototype, "maintenanceModule", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
Column('enum', {
|
|
70
|
+
enum: Object.values(BillingMethod),
|
|
71
|
+
name: 'billingMethod',
|
|
72
|
+
nullable: true,
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], CustomerAttribute.prototype, "billingMethod", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
Column('enum', {
|
|
78
|
+
enum: Object.values(CustomerSegment),
|
|
79
|
+
name: 'customerSegment',
|
|
80
|
+
nullable: true,
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], CustomerAttribute.prototype, "customerSegment", void 0);
|
|
49
84
|
CustomerAttribute = __decorate([
|
|
50
85
|
Entity('customerAttribute', { schema: 'nova' })
|
|
51
86
|
], CustomerAttribute);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerAttribute.js","sourceRoot":"","sources":["../../src/entities/customerAttribute.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAY,MAAM,SAAS,CAAA;AAExE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"customerAttribute.js","sourceRoot":"","sources":["../../src/entities/customerAttribute.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAY,MAAM,SAAS,CAAA;AAExE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,MAAM,CAAN,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,0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