@nomalism-com/types 0.47.22 → 0.47.24
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 +30 -21
- package/dist/index.js +30 -21
- package/dist/modules/sms/allowedDevice/interfaces.d.ts +8 -2
- package/dist/modules/user/systemModule/interface.d.ts +23 -21
- package/dist/modules/user/users/interface.d.ts +2 -2
- package/dist/shared/entities/user.d.ts +2 -2
- package/dist/shared/interface.d.ts +2 -2
- package/package.json +10 -6
package/dist/index.cjs
CHANGED
|
@@ -1640,9 +1640,17 @@ var createManySchedulePrintJobBody = joi34.object().keys({
|
|
|
1640
1640
|
// src/modules/sms/allowedDevice/interfaces.ts
|
|
1641
1641
|
var interfaces_exports31 = {};
|
|
1642
1642
|
__export(interfaces_exports31, {
|
|
1643
|
-
Route: () => Route37
|
|
1643
|
+
Route: () => Route37,
|
|
1644
|
+
apkTypeEnum: () => apkTypeEnum,
|
|
1645
|
+
apkTypes: () => apkTypes
|
|
1644
1646
|
});
|
|
1645
1647
|
var Route37 = "allowed_device";
|
|
1648
|
+
var apkTypeEnum = {
|
|
1649
|
+
sms: "sms",
|
|
1650
|
+
ticket: "ticket",
|
|
1651
|
+
app: "app"
|
|
1652
|
+
};
|
|
1653
|
+
var apkTypes = Object.keys(apkTypeEnum);
|
|
1646
1654
|
|
|
1647
1655
|
// src/modules/sms/allowedDevice/route.schema.ts
|
|
1648
1656
|
var route_schema_exports35 = {};
|
|
@@ -5252,28 +5260,29 @@ var findWithPaginationQuery24 = joi113.object().keys(findWithPaginationQueryKeys
|
|
|
5252
5260
|
var interface_exports68 = {};
|
|
5253
5261
|
__export(interface_exports68, {
|
|
5254
5262
|
Route: () => Route125,
|
|
5255
|
-
SystemModuleEnum: () => SystemModuleEnum
|
|
5263
|
+
SystemModuleEnum: () => SystemModuleEnum,
|
|
5264
|
+
systemModules: () => systemModules
|
|
5256
5265
|
});
|
|
5257
5266
|
var Route125 = "system_module";
|
|
5258
|
-
var SystemModuleEnum =
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5267
|
+
var SystemModuleEnum = {
|
|
5268
|
+
encomendas_stock: "encomendas_stock",
|
|
5269
|
+
entradas: "entradas",
|
|
5270
|
+
compras: "compras",
|
|
5271
|
+
pagamentos: "pagamentos",
|
|
5272
|
+
lotes: "lotes",
|
|
5273
|
+
parcelas: "parcelas",
|
|
5274
|
+
obrigacoes_legais: "obrigacoes_legais",
|
|
5275
|
+
dashboard: "dashboard",
|
|
5276
|
+
listagens: "listagens",
|
|
5277
|
+
tasks: "tasks",
|
|
5278
|
+
contas_corrente: "contas_corrente",
|
|
5279
|
+
rms: "rms",
|
|
5280
|
+
calendario: "calendario",
|
|
5281
|
+
gestao_utilizadores: "gestao_utilizadores",
|
|
5282
|
+
templates_email: "templates_email",
|
|
5283
|
+
audit: "audit"
|
|
5284
|
+
};
|
|
5285
|
+
var systemModules = Object.keys(SystemModuleEnum);
|
|
5277
5286
|
|
|
5278
5287
|
// src/modules/user/systemModule/route.schema.ts
|
|
5279
5288
|
var route_schema_exports113 = {};
|
package/dist/index.js
CHANGED
|
@@ -1640,9 +1640,17 @@ var createManySchedulePrintJobBody = joi34.object().keys({
|
|
|
1640
1640
|
// src/modules/sms/allowedDevice/interfaces.ts
|
|
1641
1641
|
var interfaces_exports31 = {};
|
|
1642
1642
|
__export(interfaces_exports31, {
|
|
1643
|
-
Route: () => Route37
|
|
1643
|
+
Route: () => Route37,
|
|
1644
|
+
apkTypeEnum: () => apkTypeEnum,
|
|
1645
|
+
apkTypes: () => apkTypes
|
|
1644
1646
|
});
|
|
1645
1647
|
var Route37 = "allowed_device";
|
|
1648
|
+
var apkTypeEnum = {
|
|
1649
|
+
sms: "sms",
|
|
1650
|
+
ticket: "ticket",
|
|
1651
|
+
app: "app"
|
|
1652
|
+
};
|
|
1653
|
+
var apkTypes = Object.keys(apkTypeEnum);
|
|
1646
1654
|
|
|
1647
1655
|
// src/modules/sms/allowedDevice/route.schema.ts
|
|
1648
1656
|
var route_schema_exports35 = {};
|
|
@@ -5252,28 +5260,29 @@ var findWithPaginationQuery24 = joi113.object().keys(findWithPaginationQueryKeys
|
|
|
5252
5260
|
var interface_exports68 = {};
|
|
5253
5261
|
__export(interface_exports68, {
|
|
5254
5262
|
Route: () => Route125,
|
|
5255
|
-
SystemModuleEnum: () => SystemModuleEnum
|
|
5263
|
+
SystemModuleEnum: () => SystemModuleEnum,
|
|
5264
|
+
systemModules: () => systemModules
|
|
5256
5265
|
});
|
|
5257
5266
|
var Route125 = "system_module";
|
|
5258
|
-
var SystemModuleEnum =
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5267
|
+
var SystemModuleEnum = {
|
|
5268
|
+
encomendas_stock: "encomendas_stock",
|
|
5269
|
+
entradas: "entradas",
|
|
5270
|
+
compras: "compras",
|
|
5271
|
+
pagamentos: "pagamentos",
|
|
5272
|
+
lotes: "lotes",
|
|
5273
|
+
parcelas: "parcelas",
|
|
5274
|
+
obrigacoes_legais: "obrigacoes_legais",
|
|
5275
|
+
dashboard: "dashboard",
|
|
5276
|
+
listagens: "listagens",
|
|
5277
|
+
tasks: "tasks",
|
|
5278
|
+
contas_corrente: "contas_corrente",
|
|
5279
|
+
rms: "rms",
|
|
5280
|
+
calendario: "calendario",
|
|
5281
|
+
gestao_utilizadores: "gestao_utilizadores",
|
|
5282
|
+
templates_email: "templates_email",
|
|
5283
|
+
audit: "audit"
|
|
5284
|
+
};
|
|
5285
|
+
var systemModules = Object.keys(SystemModuleEnum);
|
|
5277
5286
|
|
|
5278
5287
|
// src/modules/user/systemModule/route.schema.ts
|
|
5279
5288
|
var route_schema_exports113 = {};
|
|
@@ -3,11 +3,17 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = AllowedDevice;
|
|
4
4
|
export declare const Route = "allowed_device";
|
|
5
5
|
export type ICreateRequest = Pick<Entity, "key">;
|
|
6
|
-
export
|
|
6
|
+
export declare const apkTypeEnum: {
|
|
7
|
+
sms: "sms";
|
|
8
|
+
ticket: "ticket";
|
|
9
|
+
app: "app";
|
|
10
|
+
};
|
|
11
|
+
export type IApkType = (typeof apkTypeEnum)[keyof typeof apkTypeEnum];
|
|
12
|
+
export declare const apkTypes: string[];
|
|
7
13
|
export type IUpdateRequest = Pick<Entity, "name" | "allow_app" | "allow_sms" | "allow_ticket">;
|
|
8
14
|
export interface ICreateResponse {
|
|
9
15
|
name: string;
|
|
10
|
-
allowed:
|
|
16
|
+
allowed: IApkType[];
|
|
11
17
|
}
|
|
12
18
|
export interface IRepository {
|
|
13
19
|
find(): Promise<Entity[]>;
|
|
@@ -2,38 +2,40 @@ import type { SystemModule } from "../../../shared/entities/user";
|
|
|
2
2
|
import type * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = SystemModule;
|
|
4
4
|
export declare const Route = "system_module";
|
|
5
|
-
export declare
|
|
6
|
-
encomendas_stock
|
|
7
|
-
entradas
|
|
8
|
-
compras
|
|
9
|
-
pagamentos
|
|
10
|
-
lotes
|
|
11
|
-
parcelas
|
|
12
|
-
obrigacoes_legais
|
|
13
|
-
dashboard
|
|
14
|
-
listagens
|
|
15
|
-
tasks
|
|
16
|
-
contas_corrente
|
|
17
|
-
rms
|
|
18
|
-
calendario
|
|
19
|
-
gestao_utilizadores
|
|
20
|
-
templates_email
|
|
21
|
-
audit
|
|
22
|
-
}
|
|
5
|
+
export declare const SystemModuleEnum: {
|
|
6
|
+
encomendas_stock: "encomendas_stock";
|
|
7
|
+
entradas: "entradas";
|
|
8
|
+
compras: "compras";
|
|
9
|
+
pagamentos: "pagamentos";
|
|
10
|
+
lotes: "lotes";
|
|
11
|
+
parcelas: "parcelas";
|
|
12
|
+
obrigacoes_legais: "obrigacoes_legais";
|
|
13
|
+
dashboard: "dashboard";
|
|
14
|
+
listagens: "listagens";
|
|
15
|
+
tasks: "tasks";
|
|
16
|
+
contas_corrente: "contas_corrente";
|
|
17
|
+
rms: "rms";
|
|
18
|
+
calendario: "calendario";
|
|
19
|
+
gestao_utilizadores: "gestao_utilizadores";
|
|
20
|
+
templates_email: "templates_email";
|
|
21
|
+
audit: "audit";
|
|
22
|
+
};
|
|
23
|
+
export type ISystemModule = (typeof SystemModuleEnum)[keyof typeof SystemModuleEnum];
|
|
24
|
+
export declare const systemModules: string[];
|
|
23
25
|
export interface IFindByStoreOperatorIdRequest {
|
|
24
26
|
store_operator_id: string;
|
|
25
27
|
}
|
|
26
28
|
export interface IFindByStoreOperatorIdResponse {
|
|
27
29
|
store_operator_id: string;
|
|
28
|
-
values:
|
|
30
|
+
values: ISystemModule[];
|
|
29
31
|
}
|
|
30
32
|
export interface IFindResponseItem {
|
|
31
33
|
store_operator_id: string;
|
|
32
|
-
values:
|
|
34
|
+
values: ISystemModule[];
|
|
33
35
|
}
|
|
34
36
|
export interface ISetStoreOperatorModulesRequest {
|
|
35
37
|
store_operator_id: string;
|
|
36
|
-
values:
|
|
38
|
+
values: ISystemModule[];
|
|
37
39
|
}
|
|
38
40
|
export interface IRepository {
|
|
39
41
|
find(): Promise<IFindResponseItem[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Clients, ClientType, Commissioner, Country, DeliveryMethods, Language, MaturityDates, PaymentMethods, Persona, Providers, ProviderType, ReasonForExemption, SegmentsArea, StoreOperator, Theme, UserPositions, Users, Vehicles } from "../../../shared/entities/user";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ISystemModule } from "../systemModule/interface";
|
|
4
4
|
export type Entity = Users;
|
|
5
5
|
export type EntityWithoutPassword = Omit<Users, "password">;
|
|
6
6
|
export declare const Route = "users";
|
|
@@ -11,7 +11,7 @@ interface IMainPersona extends Persona {
|
|
|
11
11
|
interface IStoreOperator extends Pick<StoreOperator, "id" | "superuser"> {
|
|
12
12
|
main_persona: Pick<Persona, "name" | "email">;
|
|
13
13
|
theme: Pick<Theme, "colors"> | null;
|
|
14
|
-
system_modules:
|
|
14
|
+
system_modules: ISystemModule[];
|
|
15
15
|
}
|
|
16
16
|
export interface IFindByEmailResponse extends Pick<Entity, "id"> {
|
|
17
17
|
store_operator: IStoreOperator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPaymentMethodsSaftCodeEnum } from "../../modules/user/paymentMethods/interfaces";
|
|
2
2
|
import type { IReasonForExemptionType } from "../../modules/user/reasonForExemption/interface";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ISystemModule } from "../../modules/user/systemModule/interface";
|
|
4
4
|
import { ITimeSheetRecordType, ITimeSheetRegistryType } from "../../modules/user/timeSheet/interfaces";
|
|
5
5
|
/**
|
|
6
6
|
* Model Users
|
|
@@ -461,7 +461,7 @@ export type ChatSubscriber = {
|
|
|
461
461
|
export type SystemModule = {
|
|
462
462
|
id: string;
|
|
463
463
|
store_operator_id: string;
|
|
464
|
-
value:
|
|
464
|
+
value: ISystemModule;
|
|
465
465
|
created_at: Date;
|
|
466
466
|
updated_at: Date;
|
|
467
467
|
created_by: string;
|
|
@@ -5,7 +5,7 @@ import type { IWarningType } from "../modules/supply/documentHeader/interfaces";
|
|
|
5
5
|
import type { IDocumentTypeUserType } from "../modules/supply/documentType/interfaces";
|
|
6
6
|
import type { IAttachment } from "../modules/supply/externalDocumentHeader/interface";
|
|
7
7
|
import type { IScheduleType } from "../modules/supply/schedule/interface";
|
|
8
|
-
import type {
|
|
8
|
+
import type { ISystemModule } from "../modules/user/systemModule/interface";
|
|
9
9
|
import type { IChat, IEmail, IEncomenda, IMultimedia, IMultimediaSummary, IPostgresBackup, IPrint, IProjectInfo, IProposta, IServiceLogs, IServiceStatus, IStock, ITask } from "../modules/view/adminPanel/interfaces";
|
|
10
10
|
import type * as ErrorLog from "../modules/view/errorLog/interfaces";
|
|
11
11
|
import type { ChatSocketEvent, SupplyDocumentSocketEvent, TicketsSocketEvent } from "../modules/view/webSocket/interfaces";
|
|
@@ -41,7 +41,7 @@ export type WithoutUserstamps<T> = Omit<T, CreatedBy | UpdatedBy>;
|
|
|
41
41
|
export interface IUserToken {
|
|
42
42
|
id: string;
|
|
43
43
|
superuser?: boolean;
|
|
44
|
-
system_modules?:
|
|
44
|
+
system_modules?: ISystemModule[];
|
|
45
45
|
}
|
|
46
46
|
export type IEntityWithUserToken<T> = {
|
|
47
47
|
[K in keyof T]: T[K] extends (...params: infer U) => unknown ? (...params: [...U, IUserToken]) => ReturnType<T[K]> : T[K];
|
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.47.
|
|
4
|
+
"version": "0.47.24",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -27,23 +27,23 @@
|
|
|
27
27
|
"prepare": "husky"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"joi": "^18.2.
|
|
30
|
+
"joi": "^18.2.8"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@eslint/js": "^10.0.1",
|
|
34
34
|
"@swc/core": "^1.16.1",
|
|
35
|
-
"@types/node": "^26.
|
|
35
|
+
"@types/node": "^26.4.1",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
37
37
|
"@typescript-eslint/parser": "^8.62.0",
|
|
38
38
|
"eslint": "^10.9.1",
|
|
39
39
|
"eslint-config-prettier": "^10.1.8",
|
|
40
40
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
41
|
-
"globals": "^17.
|
|
41
|
+
"globals": "^17.12.0",
|
|
42
42
|
"husky": "^9.1.7",
|
|
43
|
-
"lint-staged": "^17.
|
|
43
|
+
"lint-staged": "^17.4.1",
|
|
44
44
|
"prettier": "^3.9.6",
|
|
45
45
|
"tsup": "^8.5.1",
|
|
46
|
-
"typescript-eslint": "^8.
|
|
46
|
+
"typescript-eslint": "^8.69.0"
|
|
47
47
|
},
|
|
48
48
|
"repository": {
|
|
49
49
|
"type": "git",
|
|
@@ -62,5 +62,9 @@
|
|
|
62
62
|
"*.{json,jsonc,css,scss,md,html,yml,yaml}": [
|
|
63
63
|
"prettier --write"
|
|
64
64
|
]
|
|
65
|
+
},
|
|
66
|
+
"allowScripts": {
|
|
67
|
+
"@swc/core@1.16.1": true,
|
|
68
|
+
"esbuild@0.27.7": true
|
|
65
69
|
}
|
|
66
70
|
}
|