@carlosdiazz/lottodiz-shared 2.1.8 → 2.2.0
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 +1 -0
- package/dist/enum/method-valid.js +1 -0
- package/dist/models/platform_message/platform-message.controller.d.ts +1 -0
- package/dist/models/platform_message/platform-messsage.service.d.ts +1 -0
- package/dist/utils/convert-array-to-record.d.ts +2 -0
- package/dist/utils/convert-array-to-record.js +10 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +1 -1
|
@@ -103,6 +103,7 @@ export declare class MethodValid {
|
|
|
103
103
|
static PLATFORM_DEVICE_UPDATE: string;
|
|
104
104
|
static PLATFORM_DEVICE_REMOVE: string;
|
|
105
105
|
static PLATFORM_MESSAGE_CREATE: string;
|
|
106
|
+
static PLATFORM_MESSAGE_AUTO_CREATE: string;
|
|
106
107
|
static PLATFORM_MESSAGE_FIND_ONE: string;
|
|
107
108
|
static PLATFORM_MESSAGE_FIND_ALL: string;
|
|
108
109
|
static PLATFORM_MESSAGE_UPDATE: string;
|
|
@@ -132,6 +132,7 @@ MethodValid.PLATFORM_DEVICE_UPDATE = "PLATFORM_DEVICE_UPDATE";
|
|
|
132
132
|
MethodValid.PLATFORM_DEVICE_REMOVE = "PLATFORM_DEVICE_REMOVE";
|
|
133
133
|
//PLATFORM MESSAGE
|
|
134
134
|
MethodValid.PLATFORM_MESSAGE_CREATE = "PLATFORM_MESSAGE_CREATE";
|
|
135
|
+
MethodValid.PLATFORM_MESSAGE_AUTO_CREATE = "PLATFORM_MESSAGE_AUTO_CREATE";
|
|
135
136
|
MethodValid.PLATFORM_MESSAGE_FIND_ONE = "PLATFORM_MESSAGE_FIND_ONE";
|
|
136
137
|
MethodValid.PLATFORM_MESSAGE_FIND_ALL = "PLATFORM_MESSAGE_FIND_ALL";
|
|
137
138
|
MethodValid.PLATFORM_MESSAGE_UPDATE = "PLATFORM_MESSAGE_UPDATE";
|
|
@@ -5,6 +5,7 @@ import { ResponsePlatformMessageInterface } from "./response-platform-message.ba
|
|
|
5
5
|
import { UpdatePlatformMessageInterface } from "./update-platform-message.base";
|
|
6
6
|
import { ResponseInterface } from "../common";
|
|
7
7
|
export interface PlatformMessageControllerInterface {
|
|
8
|
+
autoCreate(dto: CreatePlatformMessageInterface): void;
|
|
8
9
|
create(dto: CreatePlatformMessageInterface): Promise<PlatformMessageInterface>;
|
|
9
10
|
findAll(pagination: ParamsPlatformMessageInterface): Promise<ResponsePlatformMessageInterface>;
|
|
10
11
|
findOne(id: number): Promise<PlatformMessageInterface>;
|
|
@@ -5,6 +5,7 @@ import { ResponsePlatformMessageInterface } from "./response-platform-message.ba
|
|
|
5
5
|
import { UpdatePlatformMessageInterface } from "./update-platform-message.base";
|
|
6
6
|
import { ResponseInterface } from "../common";
|
|
7
7
|
export interface PlatformMessageServiceInterface {
|
|
8
|
+
autoCreate(dto: CreatePlatformMessageInterface): void;
|
|
8
9
|
create(dto: CreatePlatformMessageInterface): Promise<PlatformMessageInterface>;
|
|
9
10
|
findAll(pagination: ParamsPlatformMessageInterface): Promise<ResponsePlatformMessageInterface>;
|
|
10
11
|
findOne(id: number): Promise<PlatformMessageInterface>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertArrayToRecord = void 0;
|
|
4
|
+
const convertArrayToRecord = (arr) => {
|
|
5
|
+
return arr.reduce((acc, item) => {
|
|
6
|
+
acc[item.key] = item.value;
|
|
7
|
+
return acc;
|
|
8
|
+
}, {});
|
|
9
|
+
};
|
|
10
|
+
exports.convertArrayToRecord = convertArrayToRecord;
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./convert-array-to-record"), exports);
|
|
17
18
|
__exportStar(require("./convert-date-to-string"), exports);
|
|
18
19
|
__exportStar(require("./convert-time-zone"), exports);
|
|
19
20
|
__exportStar(require("./convert-to-number-array"), exports);
|