@nomalism-com/types 0.46.40 → 0.46.41
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/index.cjs
CHANGED
|
@@ -6051,6 +6051,7 @@ var createBodyKeys66 = {
|
|
|
6051
6051
|
};
|
|
6052
6052
|
var createBody68 = joi122.object().keys(createBodyKeys66).messages(messages);
|
|
6053
6053
|
var updateBodyKeys56 = {
|
|
6054
|
+
name: joi122.string().required(),
|
|
6054
6055
|
allow_app: joi122.boolean().required(),
|
|
6055
6056
|
allow_sms: joi122.boolean().required(),
|
|
6056
6057
|
allow_ticket: joi122.boolean().required()
|
package/dist/index.js
CHANGED
|
@@ -6051,6 +6051,7 @@ var createBodyKeys66 = {
|
|
|
6051
6051
|
};
|
|
6052
6052
|
var createBody68 = joi122.object().keys(createBodyKeys66).messages(messages);
|
|
6053
6053
|
var updateBodyKeys56 = {
|
|
6054
|
+
name: joi122.string().required(),
|
|
6054
6055
|
allow_app: joi122.boolean().required(),
|
|
6055
6056
|
allow_sms: joi122.boolean().required(),
|
|
6056
6057
|
allow_ticket: joi122.boolean().required()
|
|
@@ -6,9 +6,7 @@ export interface IEntity extends Entity {
|
|
|
6
6
|
}
|
|
7
7
|
export type ICreateRequest = Pick<Entity, 'key' | 'apk_name'>;
|
|
8
8
|
export type apkType = 'sms' | 'ticket' | 'app';
|
|
9
|
-
export type IUpdateRequest =
|
|
10
|
-
[K in apkType as `allow_${K}`]?: boolean;
|
|
11
|
-
};
|
|
9
|
+
export type IUpdateRequest = Pick<Entity, 'name' | 'allow_app' | 'allow_sms' | 'allow_ticket'>;
|
|
12
10
|
export interface IRepository {
|
|
13
11
|
find(): Promise<IEntity[]>;
|
|
14
12
|
findById(id: string): Promise<IEntity>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.46.
|
|
4
|
+
"version": "0.46.41",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|