nc-db-new 1.6.6 → 1.6.7
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.
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
declare const settings: {
|
|
2
|
-
name: string;
|
|
3
|
-
value: string;
|
|
4
|
-
updated_at: Date;
|
|
5
|
-
created_at: Date;
|
|
6
|
-
}[];
|
|
7
|
-
declare const userRoles: {
|
|
8
|
-
name: string;
|
|
9
|
-
updated_at: Date;
|
|
10
|
-
created_at: Date;
|
|
11
|
-
}[];
|
|
12
|
-
declare const userStatus: {
|
|
13
|
-
name: string;
|
|
14
|
-
updated_at: Date;
|
|
15
|
-
created_at: Date;
|
|
16
|
-
}[];
|
|
17
|
-
declare const payoutStatuses: {
|
|
18
|
-
name: string;
|
|
19
|
-
updated_at: Date;
|
|
20
|
-
created_at: Date;
|
|
21
|
-
}[];
|
|
22
|
-
declare const users: ({
|
|
23
|
-
name: string;
|
|
24
|
-
email: string;
|
|
25
|
-
password: string;
|
|
26
|
-
user_role_id: number;
|
|
27
|
-
user_status_id: number;
|
|
28
|
-
total_revenue: number;
|
|
29
|
-
paid_revenue: number;
|
|
30
|
-
created_by: number;
|
|
31
|
-
updated_by: number;
|
|
32
|
-
updated_at: Date;
|
|
33
|
-
created_at: Date;
|
|
34
|
-
image?: undefined;
|
|
35
|
-
} | {
|
|
36
|
-
name: string;
|
|
37
|
-
email: string;
|
|
38
|
-
password: string;
|
|
39
|
-
user_role_id: number;
|
|
40
|
-
user_status_id: number;
|
|
41
|
-
total_revenue: number;
|
|
42
|
-
paid_revenue: number;
|
|
43
|
-
image: string;
|
|
44
|
-
created_by: number;
|
|
45
|
-
updated_by: number;
|
|
46
|
-
updated_at: Date;
|
|
47
|
-
created_at: Date;
|
|
48
|
-
})[];
|
|
49
|
-
export { settings, userRoles, userStatus, users, payoutStatuses, };
|
|
@@ -1,164 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.payoutStatuses = exports.users = exports.userStatus = exports.userRoles = exports.settings = void 0;
|
|
4
|
-
const settings = [
|
|
5
|
-
{
|
|
6
|
-
name: 'variables',
|
|
7
|
-
value: JSON.stringify({
|
|
8
|
-
regularVariables: {
|
|
9
|
-
nextupToOwedSplitPercentage: '0.5',
|
|
10
|
-
systemActivationDate: '2023-02-22',
|
|
11
|
-
fetchMaxCount: '10',
|
|
12
|
-
expiredAfterInYears: '2',
|
|
13
|
-
uScreenEndpoint: 'https://www.uscreen.io/publisher_api/v1',
|
|
14
|
-
uScreenWatchesFetchLimit: '1000',
|
|
15
|
-
calculatorEndpoint: 'https://sjtisy3q46.execute-api.us-east-2.amazonaws.com/dev/',
|
|
16
|
-
},
|
|
17
|
-
encryptedVariables: {
|
|
18
|
-
uscreenApiKey: 'U2FsdGVkX1/3B+fSkAa/x9w21hKYPlsV1an8kbIxGDA=',
|
|
19
|
-
stripeKey: 'U2FsdGVkX1+6ph+Vx39ZD+B2d+CoPgyuOBso2YEGaWa9lH36zJU5wq9vdgDrQ1axQaOYjqyEQLXe66zRuMzgRvnlvG3OC6gPErcRdiDv/kSkoI9DIg8c/gM0PE7dnv50WHm3Yiy6BPgBBMkj8Irtlax8KxEAU/9x4PxuLT9SYNc=',
|
|
20
|
-
},
|
|
21
|
-
}),
|
|
22
|
-
updated_at: new Date(),
|
|
23
|
-
created_at: new Date(),
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'plans',
|
|
27
|
-
value: JSON.stringify({
|
|
28
|
-
'57da63f9-49cd-4728-8494-18d33b1fe365': 12,
|
|
29
|
-
'6839856e-4495-4652-9253-d6f526d886b4': 12,
|
|
30
|
-
'2c22c49e-fe1c-4184-a55e-7f0b0340f48f': 12,
|
|
31
|
-
'2c22c49d-fe1c-4184-a55e-8f0b0340f48e': 12,
|
|
32
|
-
'1bc4ef27-eddc-4ef9-916c-79960a8a946a': 12,
|
|
33
|
-
'838b29a4-6923-4678-9d38-c893e6101601': 12,
|
|
34
|
-
'4ef8f8c1-b865-43a3-34e4-8078b3952b0a': 12,
|
|
35
|
-
'6c801b8a-e2cb-4834-9638-e7b5132d8008': 12,
|
|
36
|
-
'652fa303-46ca-4795-bb5b-ef0bad11aa48': 12,
|
|
37
|
-
'b70236b6-0f90-4b7a-89d6-62e9b608bbc8': 12,
|
|
38
|
-
'1f4fafa8-eccd-41b3-b4a0-53010c30c2b4': 12,
|
|
39
|
-
'fab337b3-a9dc-46e6-944c-573fb75e6285': 12,
|
|
40
|
-
'5981bc33-088f-4467-b030-994cc8caa24f': 12,
|
|
41
|
-
'5282cf46-c31c-4669-b0a4-671750b6bc56': 12,
|
|
42
|
-
'b6f5c67b-59f6-48cf-b0f5-d24ce559bf70': 12,
|
|
43
|
-
'fb9a41c2-f5ad-4237-9df2-93bad868cae1': 12,
|
|
44
|
-
'f5004bff-d37e-4c81-a8d6-3f2a9adbfd66': 1,
|
|
45
|
-
'c73d8014-b5aa-4d5c-be2e-82176da1a5fc': 1,
|
|
46
|
-
'1d02b12f-f2dd-40e4-85db-fc49cad2cfc8': 1,
|
|
47
|
-
'5ee8f9c1-a865-43a3-b4e4-8078a3952b0a': 1,
|
|
48
|
-
'8e00712a-e6b9-400f-8ab4-fa00002a690f': 1,
|
|
49
|
-
'6747d7ed-990a-4f4f-8cf1-4a645dc59285': 1,
|
|
50
|
-
'83b4b6d8-7c42-423a-9f3e-31f281eef189': 1,
|
|
51
|
-
'298bcc2d-1b18-45e8-9d2a-cfea02f0d603': 1,
|
|
52
|
-
'799f85b6-9d84-446f-a8f5-634dad5529f5': 1,
|
|
53
|
-
'f861defb-35a4-4b6d-9719-af3dc176fc30': 1,
|
|
54
|
-
'b6a7799f-2568-4042-b69c-63c6efbaa4fc': 3,
|
|
55
|
-
'058be946-4893-4017-9016-9059d2047b27': 1,
|
|
56
|
-
'80ac8c95-9134-444e-b92c-ad87fc550237': 1,
|
|
57
|
-
'e071f7cd-bc41-48a4-91e8-876174f096ff': 12,
|
|
58
|
-
'fa060d0a-235b-441b-a2df-8ce085a57839': 12,
|
|
59
|
-
'637b27a4-5823-4278-9d38-c595e2101500': 1,
|
|
60
|
-
'57b752ea-61df-4974-823f-401f389aff77': 12,
|
|
61
|
-
'2b4ad1ef-8516-41fb-beb9-84cb6ba69f05': 12,
|
|
62
|
-
'cb16c277-96ac-48b8-adb8-ccd860fe5c50': 12,
|
|
63
|
-
'ee8f49e3-d266-458c-afee-225845795676': 12,
|
|
64
|
-
'1f161f80-5bee-4dec-bf38-8f3333f30a46': 1,
|
|
65
|
-
'6c801b8a-e2cb-4834-9638-e7b5122d8008': 12,
|
|
66
|
-
}),
|
|
67
|
-
updated_at: new Date(),
|
|
68
|
-
created_at: new Date(),
|
|
69
|
-
},
|
|
70
|
-
];
|
|
71
|
-
exports.settings = settings;
|
|
72
|
-
const userRoles = [
|
|
73
|
-
{
|
|
74
|
-
name: 'system',
|
|
75
|
-
updated_at: new Date(),
|
|
76
|
-
created_at: new Date(),
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'master_admin',
|
|
80
|
-
updated_at: new Date(),
|
|
81
|
-
created_at: new Date(),
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: 'admin',
|
|
85
|
-
updated_at: new Date(),
|
|
86
|
-
created_at: new Date(),
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: 'agent',
|
|
90
|
-
updated_at: new Date(),
|
|
91
|
-
created_at: new Date(),
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: 'comedian',
|
|
95
|
-
updated_at: new Date(),
|
|
96
|
-
created_at: new Date(),
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: 'accountant',
|
|
100
|
-
updated_at: new Date(),
|
|
101
|
-
created_at: new Date(),
|
|
102
|
-
},
|
|
103
|
-
];
|
|
104
|
-
exports.userRoles = userRoles;
|
|
105
|
-
const userStatus = [
|
|
106
|
-
{
|
|
107
|
-
name: 'PENDING',
|
|
108
|
-
updated_at: new Date(),
|
|
109
|
-
created_at: new Date(),
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: 'APPROVED',
|
|
113
|
-
updated_at: new Date(),
|
|
114
|
-
created_at: new Date(),
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: 'REJECTED',
|
|
118
|
-
updated_at: new Date(),
|
|
119
|
-
created_at: new Date(),
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'BANNED',
|
|
123
|
-
updated_at: new Date(),
|
|
124
|
-
created_at: new Date(),
|
|
125
|
-
},
|
|
126
|
-
];
|
|
127
|
-
exports.userStatus = userStatus;
|
|
128
|
-
const payoutStatuses = userStatus.slice(0, 3).concat({
|
|
129
|
-
name: 'CANCELLED',
|
|
130
|
-
updated_at: new Date(),
|
|
131
|
-
created_at: new Date(),
|
|
132
|
-
});
|
|
133
|
-
exports.payoutStatuses = payoutStatuses;
|
|
134
|
-
const users = [
|
|
135
|
-
{
|
|
136
|
-
name: 'System',
|
|
137
|
-
email: 'nextup.comedy22@gmail.com',
|
|
138
|
-
password: '$2b$10$m8ZV7QOrCLHlvXroQZgz5.qUds1eIXy1rD4S7kNR1Hl6w4CHu5l6u',
|
|
139
|
-
user_role_id: 1,
|
|
140
|
-
user_status_id: 2,
|
|
141
|
-
total_revenue: 0,
|
|
142
|
-
paid_revenue: 0,
|
|
143
|
-
created_by: 1,
|
|
144
|
-
updated_by: 1,
|
|
145
|
-
updated_at: new Date(),
|
|
146
|
-
created_at: new Date(),
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
name: 'Master Admin',
|
|
150
|
-
email: 'portal@nextupcomedy.com',
|
|
151
|
-
password: '$2b$10$m8ZV7QOrCLHlvXroQZgz5.qUds1eIXy1rD4S7kNR1Hl6w4CHu5l6u',
|
|
152
|
-
user_role_id: 2,
|
|
153
|
-
user_status_id: 2,
|
|
154
|
-
total_revenue: 0,
|
|
155
|
-
paid_revenue: 0,
|
|
156
|
-
image: 'https://s3-eu-west-1.amazonaws.com/tpd/logos/5ca5dcb59121e1000152fc2c/0x0.png',
|
|
157
|
-
created_by: 1,
|
|
158
|
-
updated_by: 1,
|
|
159
|
-
updated_at: new Date(),
|
|
160
|
-
created_at: new Date(),
|
|
161
|
-
},
|
|
162
|
-
];
|
|
163
|
-
exports.users = users;
|
|
164
1
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/database/fakeData/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/database/fakeData/index.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { sequelize, Settings, Content, ContentReport, Report, UserRole, UserStatus, User, Watches, Transactions, Payout, PayoutStatus, News, UserServices, ContentReportWatchesAssociation, ReportContentReportAssociation, } from './database/index';
|
|
2
|
-
export { userRoles, userStatus, settings, users, payoutStatuses, } from './database/fakeData';
|
|
3
2
|
export { IContent, IContentReport, IUserRole, ISettings, IUser, IWatches, IReport, IDatabase, IUserStatus, IVariables, IDashboardSettings, IPayout, IPayoutStatus, ICustomUser, INews, IUserServices, } from './interfaces';
|
|
4
3
|
export { getDashboardSettings, getPlansFromSettings } from './utils';
|
|
5
4
|
export { default as migration } from './migration';
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.migration = exports.getPlansFromSettings = exports.getDashboardSettings = exports.
|
|
6
|
+
exports.migration = exports.getPlansFromSettings = exports.getDashboardSettings = exports.ReportContentReportAssociation = exports.ContentReportWatchesAssociation = exports.UserServices = exports.News = exports.PayoutStatus = exports.Payout = exports.Transactions = exports.Watches = exports.User = exports.UserStatus = exports.UserRole = exports.Report = exports.ContentReport = exports.Content = exports.Settings = exports.sequelize = void 0;
|
|
7
7
|
var index_1 = require("./database/index");
|
|
8
8
|
Object.defineProperty(exports, "sequelize", { enumerable: true, get: function () { return index_1.sequelize; } });
|
|
9
9
|
Object.defineProperty(exports, "Settings", { enumerable: true, get: function () { return index_1.Settings; } });
|
|
@@ -21,12 +21,6 @@ Object.defineProperty(exports, "News", { enumerable: true, get: function () { re
|
|
|
21
21
|
Object.defineProperty(exports, "UserServices", { enumerable: true, get: function () { return index_1.UserServices; } });
|
|
22
22
|
Object.defineProperty(exports, "ContentReportWatchesAssociation", { enumerable: true, get: function () { return index_1.ContentReportWatchesAssociation; } });
|
|
23
23
|
Object.defineProperty(exports, "ReportContentReportAssociation", { enumerable: true, get: function () { return index_1.ReportContentReportAssociation; } });
|
|
24
|
-
var fakeData_1 = require("./database/fakeData");
|
|
25
|
-
Object.defineProperty(exports, "userRoles", { enumerable: true, get: function () { return fakeData_1.userRoles; } });
|
|
26
|
-
Object.defineProperty(exports, "userStatus", { enumerable: true, get: function () { return fakeData_1.userStatus; } });
|
|
27
|
-
Object.defineProperty(exports, "settings", { enumerable: true, get: function () { return fakeData_1.settings; } });
|
|
28
|
-
Object.defineProperty(exports, "users", { enumerable: true, get: function () { return fakeData_1.users; } });
|
|
29
|
-
Object.defineProperty(exports, "payoutStatuses", { enumerable: true, get: function () { return fakeData_1.payoutStatuses; } });
|
|
30
24
|
var utils_1 = require("./utils");
|
|
31
25
|
Object.defineProperty(exports, "getDashboardSettings", { enumerable: true, get: function () { return utils_1.getDashboardSettings; } });
|
|
32
26
|
Object.defineProperty(exports, "getPlansFromSettings", { enumerable: true, get: function () { return utils_1.getPlansFromSettings; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,0CAiB0B;AAhBxB,kGAAA,SAAS,OAAA;AACT,iGAAA,QAAQ,OAAA;AACR,gGAAA,OAAO,OAAA;AACP,sGAAA,aAAa,OAAA;AACb,+FAAA,MAAM,OAAA;AACN,iGAAA,QAAQ,OAAA;AACR,mGAAA,UAAU,OAAA;AACV,6FAAA,IAAI,OAAA;AACJ,gGAAA,OAAO,OAAA;AACP,qGAAA,YAAY,OAAA;AACZ,+FAAA,MAAM,OAAA;AACN,qGAAA,YAAY,OAAA;AACZ,6FAAA,IAAI,OAAA;AACJ,qGAAA,YAAY,OAAA;AACZ,wHAAA,+BAA+B,OAAA;AAC/B,uHAAA,8BAA8B,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,0CAiB0B;AAhBxB,kGAAA,SAAS,OAAA;AACT,iGAAA,QAAQ,OAAA;AACR,gGAAA,OAAO,OAAA;AACP,sGAAA,aAAa,OAAA;AACb,+FAAA,MAAM,OAAA;AACN,iGAAA,QAAQ,OAAA;AACR,mGAAA,UAAU,OAAA;AACV,6FAAA,IAAI,OAAA;AACJ,gGAAA,OAAO,OAAA;AACP,qGAAA,YAAY,OAAA;AACZ,+FAAA,MAAM,OAAA;AACN,qGAAA,YAAY,OAAA;AACZ,6FAAA,IAAI,OAAA;AACJ,qGAAA,YAAY,OAAA;AACZ,wHAAA,+BAA+B,OAAA;AAC/B,uHAAA,8BAA8B,OAAA;AAoBhC,iCAAqE;AAA5D,6GAAA,oBAAoB,OAAA;AAAE,6GAAA,oBAAoB,OAAA;AACnD,yCAAmD;AAA1C,uHAAA,OAAO,OAAa"}
|