@carlosdiazz/lottodiz-shared 2.0.7 → 2.0.9
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/enum/method-valid.d.ts +10 -0
- package/dist/enum/method-valid.js +12 -0
- package/dist/enum/permission-valid.d.ts +8 -0
- package/dist/enum/permission-valid.js +10 -0
- package/dist/enum/valid-job.enum.d.ts +3 -1
- package/dist/enum/valid-job.enum.js +2 -0
- 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
|
@@ -96,6 +96,16 @@ export declare class MethodValid {
|
|
|
96
96
|
static PLATFORM_ADS_FIND_ALL: string;
|
|
97
97
|
static PLATFORM_ADS_UPDATE: string;
|
|
98
98
|
static PLATFORM_ADS_REMOVE: string;
|
|
99
|
+
static PLATFORM_DEVICE_CREATE: string;
|
|
100
|
+
static PLATFORM_DEVICE_FIND_ONE: string;
|
|
101
|
+
static PLATFORM_DEVICE_FIND_ALL: string;
|
|
102
|
+
static PLATFORM_DEVICE_UPDATE: string;
|
|
103
|
+
static PLATFORM_DEVICE_REMOVE: string;
|
|
104
|
+
static PLATFORM_MESSAGE_CREATE: string;
|
|
105
|
+
static PLATFORM_MESSAGE_FIND_ONE: string;
|
|
106
|
+
static PLATFORM_MESSAGE_FIND_ALL: string;
|
|
107
|
+
static PLATFORM_MESSAGE_UPDATE: string;
|
|
108
|
+
static PLATFORM_MESSAGE_REMOVE: string;
|
|
99
109
|
static JOB_CREATE: string;
|
|
100
110
|
static JOB_FIND_ONE: string;
|
|
101
111
|
static JOB_FIND_ALL: string;
|
|
@@ -123,6 +123,18 @@ MethodValid.PLATFORM_ADS_FIND_ONE = "PLATFORM_ADS_FIND_ONE";
|
|
|
123
123
|
MethodValid.PLATFORM_ADS_FIND_ALL = "PLATFORM_ADS_FIND_ALL";
|
|
124
124
|
MethodValid.PLATFORM_ADS_UPDATE = "PLATFORM_ADS_UPDATE";
|
|
125
125
|
MethodValid.PLATFORM_ADS_REMOVE = "PLATFORM_ADS_REMOVE";
|
|
126
|
+
//PLATFORM DEVICE
|
|
127
|
+
MethodValid.PLATFORM_DEVICE_CREATE = "PLATFORM_DEVICE_CREATE";
|
|
128
|
+
MethodValid.PLATFORM_DEVICE_FIND_ONE = "PLATFORM_DEVICE_FIND_ONE";
|
|
129
|
+
MethodValid.PLATFORM_DEVICE_FIND_ALL = "PLATFORM_DEVICE_FIND_ALL";
|
|
130
|
+
MethodValid.PLATFORM_DEVICE_UPDATE = "PLATFORM_DEVICE_UPDATE";
|
|
131
|
+
MethodValid.PLATFORM_DEVICE_REMOVE = "PLATFORM_DEVICE_REMOVE";
|
|
132
|
+
//PLATFORM MESSAGE
|
|
133
|
+
MethodValid.PLATFORM_MESSAGE_CREATE = "PLATFORM_MESSAGE_CREATE";
|
|
134
|
+
MethodValid.PLATFORM_MESSAGE_FIND_ONE = "PLATFORM_MESSAGE_FIND_ONE";
|
|
135
|
+
MethodValid.PLATFORM_MESSAGE_FIND_ALL = "PLATFORM_MESSAGE_FIND_ALL";
|
|
136
|
+
MethodValid.PLATFORM_MESSAGE_UPDATE = "PLATFORM_MESSAGE_UPDATE";
|
|
137
|
+
MethodValid.PLATFORM_MESSAGE_REMOVE = "PLATFORM_MESSAGE_REMOVE";
|
|
126
138
|
//JOB
|
|
127
139
|
MethodValid.JOB_CREATE = "JOB_CREATE";
|
|
128
140
|
MethodValid.JOB_FIND_ONE = "JOB_FIND_ONE";
|
|
@@ -83,4 +83,12 @@ export declare class PermissionValid {
|
|
|
83
83
|
static PLATFORM_ADS_VIEW: string;
|
|
84
84
|
static PLATFORM_ADS_UPDATE: string;
|
|
85
85
|
static PLATFORM_ADS_DELETE: string;
|
|
86
|
+
static PLATFORM_DEVICE_CREATE: string;
|
|
87
|
+
static PLATFORM_DEVICE_VIEW: string;
|
|
88
|
+
static PLATFORM_DEVICE_UPDATE: string;
|
|
89
|
+
static PLATFORM_DEVICE_DELETE: string;
|
|
90
|
+
static PLATFORM_MESSAGE_CREATE: string;
|
|
91
|
+
static PLATFORM_MESSAGE_VIEW: string;
|
|
92
|
+
static PLATFORM_MESSAGE_UPDATE: string;
|
|
93
|
+
static PLATFORM_MESSAGE_DELETE: string;
|
|
86
94
|
}
|
|
@@ -108,3 +108,13 @@ PermissionValid.PLATFORM_ADS_CREATE = "PLATFORM_ADS_CREATE";
|
|
|
108
108
|
PermissionValid.PLATFORM_ADS_VIEW = "PLATFORM_ADS_VIEW";
|
|
109
109
|
PermissionValid.PLATFORM_ADS_UPDATE = "PLATFORM_ADS_UPDATE";
|
|
110
110
|
PermissionValid.PLATFORM_ADS_DELETE = "PLATFORM_ADS_DELETE";
|
|
111
|
+
//PLATFORM DEVICE
|
|
112
|
+
PermissionValid.PLATFORM_DEVICE_CREATE = "PLATFORM_DEVICE_CREATE";
|
|
113
|
+
PermissionValid.PLATFORM_DEVICE_VIEW = "PLATFORM_DEVICE_VIEW";
|
|
114
|
+
PermissionValid.PLATFORM_DEVICE_UPDATE = "PLATFORM_DEVICE_UPDATE";
|
|
115
|
+
PermissionValid.PLATFORM_DEVICE_DELETE = "PLATFORM_DEVICE_DELETE";
|
|
116
|
+
//PLATFORM MESSAGE
|
|
117
|
+
PermissionValid.PLATFORM_MESSAGE_CREATE = "PLATFORM_MESSAGE_CREATE";
|
|
118
|
+
PermissionValid.PLATFORM_MESSAGE_VIEW = "PLATFORM_MESSAGE_VIEW";
|
|
119
|
+
PermissionValid.PLATFORM_MESSAGE_UPDATE = "PLATFORM_MESSAGE_UPDATE";
|
|
120
|
+
PermissionValid.PLATFORM_MESSAGE_DELETE = "PLATFORM_MESSAGE_DELETE";
|
|
@@ -2,5 +2,7 @@ export declare enum ValidJobEnum {
|
|
|
2
2
|
CLOSE_SORTEO = "CLOSE_SORTEO",
|
|
3
3
|
OPEN_SORTEO = "OPEN_SORTEO",
|
|
4
4
|
INIT_WEB_SCRAPING = "INIT_WEB_SCRAPING",
|
|
5
|
-
UNKNOWN = "UNKNOWN"
|
|
5
|
+
UNKNOWN = "UNKNOWN",
|
|
6
|
+
DECREASE_DAY_PLATFORM_ADS = "DECREASE_DAY_PLATFORM_ADS",
|
|
7
|
+
DECREASE_DAY_PLATFORM_MESSAGE = "DECREASE_DAY_PLATFORM_MESSAGE"
|
|
6
8
|
}
|
|
@@ -7,4 +7,6 @@ var ValidJobEnum;
|
|
|
7
7
|
ValidJobEnum["OPEN_SORTEO"] = "OPEN_SORTEO";
|
|
8
8
|
ValidJobEnum["INIT_WEB_SCRAPING"] = "INIT_WEB_SCRAPING";
|
|
9
9
|
ValidJobEnum["UNKNOWN"] = "UNKNOWN";
|
|
10
|
+
ValidJobEnum["DECREASE_DAY_PLATFORM_ADS"] = "DECREASE_DAY_PLATFORM_ADS";
|
|
11
|
+
ValidJobEnum["DECREASE_DAY_PLATFORM_MESSAGE"] = "DECREASE_DAY_PLATFORM_MESSAGE";
|
|
10
12
|
})(ValidJobEnum || (exports.ValidJobEnum = ValidJobEnum = {}));
|
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
|
+
}
|