@carlosdiazz/lottodiz-shared 2.0.7 → 2.0.8
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/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/platform_devices/create-platform-device.base.d.ts +7 -0
- package/dist/models/platform_devices/create-platform-device.base.js +2 -0
- package/dist/models/platform_devices/index.d.ts +9 -0
- package/dist/models/platform_devices/index.js +25 -0
- package/dist/models/platform_devices/params-platform-device.base.d.ts +7 -0
- package/dist/models/platform_devices/params-platform-device.base.js +2 -0
- package/dist/models/platform_devices/platform-device.base.d.ts +21 -0
- package/dist/models/platform_devices/platform-device.base.js +2 -0
- package/dist/models/platform_devices/platform-device.controller.d.ts +13 -0
- package/dist/models/platform_devices/platform-device.controller.js +2 -0
- package/dist/models/platform_devices/platform-device.datasource.d.ts +7 -0
- package/dist/models/platform_devices/platform-device.datasource.js +2 -0
- package/dist/models/platform_devices/platform-device.resolver.d.ts +14 -0
- package/dist/models/platform_devices/platform-device.resolver.js +2 -0
- package/dist/models/platform_devices/platform-device.service.d.ts +13 -0
- package/dist/models/platform_devices/platform-device.service.js +2 -0
- package/dist/models/platform_devices/response-platform-device.base.d.ts +5 -0
- package/dist/models/platform_devices/response-platform-device.base.js +2 -0
- package/dist/models/platform_devices/update-platform-device.base.d.ts +7 -0
- package/dist/models/platform_devices/update-platform-device.base.js +2 -0
- package/dist/models/platform_message/create-platform-message.base.d.ts +16 -0
- package/dist/models/platform_message/create-platform-message.base.js +2 -0
- package/dist/models/platform_message/index.d.ts +9 -0
- package/dist/models/platform_message/index.js +25 -0
- package/dist/models/platform_message/params-platform-message.base.d.ts +8 -0
- package/dist/models/platform_message/params-platform-message.base.js +2 -0
- package/dist/models/platform_message/platform-message.base.d.ts +32 -0
- package/dist/models/platform_message/platform-message.base.js +2 -0
- package/dist/models/platform_message/platform-message.controller.d.ts +13 -0
- package/dist/models/platform_message/platform-message.controller.js +2 -0
- package/dist/models/platform_message/platform-message.datasource.d.ts +13 -0
- package/dist/models/platform_message/platform-message.datasource.js +2 -0
- package/dist/models/platform_message/platform-message.resolver.d.ts +14 -0
- package/dist/models/platform_message/platform-message.resolver.js +2 -0
- package/dist/models/platform_message/platform-messsage.service.d.ts +13 -0
- package/dist/models/platform_message/platform-messsage.service.js +2 -0
- package/dist/models/platform_message/response-platform-message.base.d.ts +5 -0
- package/dist/models/platform_message/response-platform-message.base.js +2 -0
- package/dist/models/platform_message/update-platform-message.base.d.ts +10 -0
- package/dist/models/platform_message/update-platform-message.base.js +2 -0
- package/package.json +1 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export * from "./lottery";
|
|
|
13
13
|
export * from "./page_webscraping";
|
|
14
14
|
export * from "./permission";
|
|
15
15
|
export * from "./platform_ads";
|
|
16
|
+
export * from "./platform_devices";
|
|
17
|
+
export * from "./platform_message";
|
|
16
18
|
export * from "./platform";
|
|
17
19
|
export * from "./position_result";
|
|
18
20
|
export * from "./queue";
|
package/dist/models/index.js
CHANGED
|
@@ -29,6 +29,8 @@ __exportStar(require("./lottery"), exports);
|
|
|
29
29
|
__exportStar(require("./page_webscraping"), exports);
|
|
30
30
|
__exportStar(require("./permission"), exports);
|
|
31
31
|
__exportStar(require("./platform_ads"), exports);
|
|
32
|
+
__exportStar(require("./platform_devices"), exports);
|
|
33
|
+
__exportStar(require("./platform_message"), exports);
|
|
32
34
|
__exportStar(require("./platform"), exports);
|
|
33
35
|
__exportStar(require("./position_result"), exports);
|
|
34
36
|
__exportStar(require("./queue"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./create-platform-device.base";
|
|
2
|
+
export * from "./platform-device.base";
|
|
3
|
+
export * from "./platform-device.controller";
|
|
4
|
+
export * from "./platform-device.datasource";
|
|
5
|
+
export * from "./platform-device.resolver";
|
|
6
|
+
export * from "./platform-device.service";
|
|
7
|
+
export * from "./response-platform-device.base";
|
|
8
|
+
export * from "./update-platform-device.base";
|
|
9
|
+
export * from "./params-platform-device.base";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-platform-device.base"), exports);
|
|
18
|
+
__exportStar(require("./platform-device.base"), exports);
|
|
19
|
+
__exportStar(require("./platform-device.controller"), exports);
|
|
20
|
+
__exportStar(require("./platform-device.datasource"), exports);
|
|
21
|
+
__exportStar(require("./platform-device.resolver"), exports);
|
|
22
|
+
__exportStar(require("./platform-device.service"), exports);
|
|
23
|
+
__exportStar(require("./response-platform-device.base"), exports);
|
|
24
|
+
__exportStar(require("./update-platform-device.base"), exports);
|
|
25
|
+
__exportStar(require("./params-platform-device.base"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PlatformInterface } from "../platform/platform.base";
|
|
2
|
+
export interface PlatformDeviceInterface {
|
|
3
|
+
id: number;
|
|
4
|
+
device_uuid: string;
|
|
5
|
+
device_name: string;
|
|
6
|
+
device_os: string;
|
|
7
|
+
app_version: string;
|
|
8
|
+
platform?: PlatformInterface;
|
|
9
|
+
create_at: Date;
|
|
10
|
+
update_at: Date;
|
|
11
|
+
}
|
|
12
|
+
export interface PlatformDeviceFormInterface {
|
|
13
|
+
id: number;
|
|
14
|
+
device_uuid: string;
|
|
15
|
+
device_name: string;
|
|
16
|
+
device_os: string;
|
|
17
|
+
app_version: string;
|
|
18
|
+
id_platform: number;
|
|
19
|
+
create_at: Date;
|
|
20
|
+
update_at: Date;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CreatePlatformDeviceInterface } from "./create-platform-device.base";
|
|
2
|
+
import { ParamsPlatformDevicesInterface } from "./params-platform-device.base";
|
|
3
|
+
import { PlatformDeviceInterface } from "./platform-device.base";
|
|
4
|
+
import { ResponsePlatformDeviceInterface } from "./response-platform-device.base";
|
|
5
|
+
import { UpdatePlatformDeviceInterface } from "./update-platform-device.base";
|
|
6
|
+
import { ResponseInterface } from "../common";
|
|
7
|
+
export interface PlatformDeviceControllerInterface {
|
|
8
|
+
create(dto: CreatePlatformDeviceInterface): Promise<PlatformDeviceInterface>;
|
|
9
|
+
findAll(pagination: ParamsPlatformDevicesInterface): Promise<ResponsePlatformDeviceInterface>;
|
|
10
|
+
findOne(id: number): Promise<PlatformDeviceInterface>;
|
|
11
|
+
update(dto: UpdatePlatformDeviceInterface): Promise<PlatformDeviceInterface>;
|
|
12
|
+
remove(id: number): Promise<ResponseInterface>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParamsPlatformDevicesInterface } from "./params-platform-device.base";
|
|
2
|
+
import { PlatformDeviceInterface } from "./platform-device.base";
|
|
3
|
+
import { ResponsePlatformDeviceInterface } from "./response-platform-device.base";
|
|
4
|
+
export interface PlatformDeviceDatasourceInterface {
|
|
5
|
+
findAll(pagination: ParamsPlatformDevicesInterface): Promise<ResponsePlatformDeviceInterface>;
|
|
6
|
+
findOne(id: number): Promise<PlatformDeviceInterface>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreatePlatformDeviceInterface } from "./create-platform-device.base";
|
|
2
|
+
import { ParamsPlatformDevicesInterface } from "./params-platform-device.base";
|
|
3
|
+
import { PlatformDeviceInterface } from "./platform-device.base";
|
|
4
|
+
import { ResponsePlatformDeviceInterface } from "./response-platform-device.base";
|
|
5
|
+
import { UpdatePlatformDeviceInterface } from "./update-platform-device.base";
|
|
6
|
+
import { ResponseInterface } from "../common";
|
|
7
|
+
import { UserInterface } from "../user";
|
|
8
|
+
export interface PlatformDeviceResolverInterface {
|
|
9
|
+
create(dto: CreatePlatformDeviceInterface, user?: UserInterface): Promise<PlatformDeviceInterface>;
|
|
10
|
+
findAll(pagination: ParamsPlatformDevicesInterface, user?: UserInterface): Promise<ResponsePlatformDeviceInterface>;
|
|
11
|
+
findOne(id: number, user?: UserInterface): Promise<PlatformDeviceInterface>;
|
|
12
|
+
update(dto: UpdatePlatformDeviceInterface, user?: UserInterface): Promise<PlatformDeviceInterface>;
|
|
13
|
+
remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CreatePlatformDeviceInterface } from "./create-platform-device.base";
|
|
2
|
+
import { ParamsPlatformDevicesInterface } from "./params-platform-device.base";
|
|
3
|
+
import { PlatformDeviceInterface } from "./platform-device.base";
|
|
4
|
+
import { ResponsePlatformDeviceInterface } from "./response-platform-device.base";
|
|
5
|
+
import { UpdatePlatformDeviceInterface } from "./update-platform-device.base";
|
|
6
|
+
import { ResponseInterface } from "../common";
|
|
7
|
+
export interface PlatformDeviceServiceInterface {
|
|
8
|
+
create(dto: CreatePlatformDeviceInterface): Promise<PlatformDeviceInterface>;
|
|
9
|
+
findAll(pagination: ParamsPlatformDevicesInterface): Promise<ResponsePlatformDeviceInterface>;
|
|
10
|
+
findOne(id: number): Promise<PlatformDeviceInterface>;
|
|
11
|
+
update(dto: UpdatePlatformDeviceInterface): Promise<PlatformDeviceInterface>;
|
|
12
|
+
remove(id: number): Promise<ResponseInterface>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface KeyValueInterface {
|
|
2
|
+
key: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export interface CreatePlatformMessageInterface {
|
|
6
|
+
title: string;
|
|
7
|
+
body: string;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
image?: string;
|
|
10
|
+
topic: string;
|
|
11
|
+
data?: KeyValueInterface[];
|
|
12
|
+
id_platform: number;
|
|
13
|
+
is_recurring?: boolean;
|
|
14
|
+
days_active?: number;
|
|
15
|
+
time?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./create-platform-message.base";
|
|
2
|
+
export * from "./platform-message.base";
|
|
3
|
+
export * from "./platform-message.controller";
|
|
4
|
+
export * from "./platform-message.datasource";
|
|
5
|
+
export * from "./platform-message.resolver";
|
|
6
|
+
export * from "./platform-messsage.service";
|
|
7
|
+
export * from "./response-platform-message.base";
|
|
8
|
+
export * from "./update-platform-message.base";
|
|
9
|
+
export * from "./params-platform-message.base";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-platform-message.base"), exports);
|
|
18
|
+
__exportStar(require("./platform-message.base"), exports);
|
|
19
|
+
__exportStar(require("./platform-message.controller"), exports);
|
|
20
|
+
__exportStar(require("./platform-message.datasource"), exports);
|
|
21
|
+
__exportStar(require("./platform-message.resolver"), exports);
|
|
22
|
+
__exportStar(require("./platform-messsage.service"), exports);
|
|
23
|
+
__exportStar(require("./response-platform-message.base"), exports);
|
|
24
|
+
__exportStar(require("./update-platform-message.base"), exports);
|
|
25
|
+
__exportStar(require("./params-platform-message.base"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PlatformInterface } from "../platform/platform.base";
|
|
2
|
+
import { KeyValueInterface } from "./create-platform-message.base";
|
|
3
|
+
export interface PlatformMessageInterface {
|
|
4
|
+
id: number;
|
|
5
|
+
active: boolean;
|
|
6
|
+
title: string;
|
|
7
|
+
body: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
topic: string;
|
|
10
|
+
data: KeyValueInterface[];
|
|
11
|
+
is_recurring: boolean;
|
|
12
|
+
days_active: number;
|
|
13
|
+
time: string;
|
|
14
|
+
platform?: PlatformInterface;
|
|
15
|
+
create_at: Date;
|
|
16
|
+
update_at: Date;
|
|
17
|
+
}
|
|
18
|
+
export interface PlatformMessageFormInterface {
|
|
19
|
+
id: number;
|
|
20
|
+
active: boolean;
|
|
21
|
+
title: string;
|
|
22
|
+
body: string;
|
|
23
|
+
image?: string;
|
|
24
|
+
topic: string;
|
|
25
|
+
data?: KeyValueInterface[];
|
|
26
|
+
id_platform: number;
|
|
27
|
+
is_recurring: boolean;
|
|
28
|
+
days_active: number;
|
|
29
|
+
time: string;
|
|
30
|
+
create_at: Date;
|
|
31
|
+
update_at: Date;
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CreatePlatformMessageInterface } from "./create-platform-message.base";
|
|
2
|
+
import { ParamsPlatformMessageInterface } from "./params-platform-message.base";
|
|
3
|
+
import { PlatformMessageInterface } from "./platform-message.base";
|
|
4
|
+
import { ResponsePlatformMessageInterface } from "./response-platform-message.base";
|
|
5
|
+
import { UpdatePlatformMessageInterface } from "./update-platform-message.base";
|
|
6
|
+
import { ResponseInterface } from "../common";
|
|
7
|
+
export interface PlatformMessageControllerInterface {
|
|
8
|
+
create(dto: CreatePlatformMessageInterface): Promise<PlatformMessageInterface>;
|
|
9
|
+
findAll(pagination: ParamsPlatformMessageInterface): Promise<ResponsePlatformMessageInterface>;
|
|
10
|
+
findOne(id: number): Promise<PlatformMessageInterface>;
|
|
11
|
+
update(dto: UpdatePlatformMessageInterface): Promise<PlatformMessageInterface>;
|
|
12
|
+
remove(id: number): Promise<ResponseInterface>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CreatePlatformMessageInterface } from "./create-platform-message.base";
|
|
2
|
+
import { ParamsPlatformMessageInterface } from "./params-platform-message.base";
|
|
3
|
+
import { PlatformMessageInterface } from "./platform-message.base";
|
|
4
|
+
import { ResponsePlatformMessageInterface } from "./response-platform-message.base";
|
|
5
|
+
import { UpdatePlatformMessageInterface } from "./update-platform-message.base";
|
|
6
|
+
import { ResponseInterface } from "../common";
|
|
7
|
+
export interface PlatformMessageDatasourceInterface {
|
|
8
|
+
create(dto: CreatePlatformMessageInterface): Promise<PlatformMessageInterface>;
|
|
9
|
+
findAll(pagination: ParamsPlatformMessageInterface): Promise<ResponsePlatformMessageInterface>;
|
|
10
|
+
findOne(id: number): Promise<PlatformMessageInterface>;
|
|
11
|
+
update(dto: UpdatePlatformMessageInterface): Promise<PlatformMessageInterface>;
|
|
12
|
+
remove(id: number): Promise<ResponseInterface>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreatePlatformMessageInterface } from "./create-platform-message.base";
|
|
2
|
+
import { ParamsPlatformMessageInterface } from "./params-platform-message.base";
|
|
3
|
+
import { PlatformMessageInterface } from "./platform-message.base";
|
|
4
|
+
import { ResponsePlatformMessageInterface } from "./response-platform-message.base";
|
|
5
|
+
import { UpdatePlatformMessageInterface } from "./update-platform-message.base";
|
|
6
|
+
import { ResponseInterface } from "../common";
|
|
7
|
+
import { UserInterface } from "../user";
|
|
8
|
+
export interface PlatformMessageResolverInterface {
|
|
9
|
+
create(dto: CreatePlatformMessageInterface, user?: UserInterface): Promise<PlatformMessageInterface>;
|
|
10
|
+
findAll(pagination: ParamsPlatformMessageInterface, user?: UserInterface): Promise<ResponsePlatformMessageInterface>;
|
|
11
|
+
findOne(id: number, user?: UserInterface): Promise<PlatformMessageInterface>;
|
|
12
|
+
update(dto: UpdatePlatformMessageInterface, user?: UserInterface): Promise<PlatformMessageInterface>;
|
|
13
|
+
remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CreatePlatformMessageInterface } from "./create-platform-message.base";
|
|
2
|
+
import { ParamsPlatformMessageInterface } from "./params-platform-message.base";
|
|
3
|
+
import { PlatformMessageInterface } from "./platform-message.base";
|
|
4
|
+
import { ResponsePlatformMessageInterface } from "./response-platform-message.base";
|
|
5
|
+
import { UpdatePlatformMessageInterface } from "./update-platform-message.base";
|
|
6
|
+
import { ResponseInterface } from "../common";
|
|
7
|
+
export interface PlatformMessageMessageInterface {
|
|
8
|
+
create(dto: CreatePlatformMessageInterface): Promise<PlatformMessageInterface>;
|
|
9
|
+
findAll(pagination: ParamsPlatformMessageInterface): Promise<ResponsePlatformMessageInterface>;
|
|
10
|
+
findOne(id: number): Promise<PlatformMessageInterface>;
|
|
11
|
+
update(dto: UpdatePlatformMessageInterface): Promise<PlatformMessageInterface>;
|
|
12
|
+
remove(id: number): Promise<ResponseInterface>;
|
|
13
|
+
}
|