@nomalism-com/types 0.47.23 → 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
CHANGED
|
@@ -5260,28 +5260,29 @@ var findWithPaginationQuery24 = joi113.object().keys(findWithPaginationQueryKeys
|
|
|
5260
5260
|
var interface_exports68 = {};
|
|
5261
5261
|
__export(interface_exports68, {
|
|
5262
5262
|
Route: () => Route125,
|
|
5263
|
-
SystemModuleEnum: () => SystemModuleEnum
|
|
5263
|
+
SystemModuleEnum: () => SystemModuleEnum,
|
|
5264
|
+
systemModules: () => systemModules
|
|
5264
5265
|
});
|
|
5265
5266
|
var Route125 = "system_module";
|
|
5266
|
-
var SystemModuleEnum =
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
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);
|
|
5285
5286
|
|
|
5286
5287
|
// src/modules/user/systemModule/route.schema.ts
|
|
5287
5288
|
var route_schema_exports113 = {};
|
package/dist/index.js
CHANGED
|
@@ -5260,28 +5260,29 @@ var findWithPaginationQuery24 = joi113.object().keys(findWithPaginationQueryKeys
|
|
|
5260
5260
|
var interface_exports68 = {};
|
|
5261
5261
|
__export(interface_exports68, {
|
|
5262
5262
|
Route: () => Route125,
|
|
5263
|
-
SystemModuleEnum: () => SystemModuleEnum
|
|
5263
|
+
SystemModuleEnum: () => SystemModuleEnum,
|
|
5264
|
+
systemModules: () => systemModules
|
|
5264
5265
|
});
|
|
5265
5266
|
var Route125 = "system_module";
|
|
5266
|
-
var SystemModuleEnum =
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
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);
|
|
5285
5286
|
|
|
5286
5287
|
// src/modules/user/systemModule/route.schema.ts
|
|
5287
5288
|
var route_schema_exports113 = {};
|
|
@@ -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
|
}
|