@nomalism-com/types 0.30.27 → 0.31.2
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/main.d.ts +229 -229
- package/dist/modules/document/billOfLading/interfaces.d.ts +1 -1
- package/dist/modules/document/billOfLading/route.schema.d.ts +1 -1
- package/dist/modules/document/materialEntrance/interfaces.d.ts +13 -13
- package/dist/modules/document/materialEntrance/route.schema.d.ts +2 -2
- package/dist/modules/document/order/interfaces.d.ts +34 -34
- package/dist/modules/document/order/route.schema.d.ts +2 -2
- package/dist/modules/document/productionOrder/interfaces.d.ts +1 -1
- package/dist/modules/document/productionOrder/route.schema.d.ts +1 -1
- package/dist/modules/document/proforma/interfaces.d.ts +1 -1
- package/dist/modules/document/proforma/route.schema.d.ts +2 -2
- package/dist/modules/document/propostaFornecedor/interfaces.d.ts +1 -1
- package/dist/modules/document/propostaFornecedor/route.schema.d.ts +1 -1
- package/dist/modules/document/propostaSheets/interface.d.ts +7 -7
- package/dist/modules/document/propostaSheets/route.schema.d.ts +2 -2
- package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +1 -1
- package/dist/modules/document/providerCreditNoteFromReturn/route.schema.d.ts +1 -1
- package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +1 -1
- package/dist/modules/document/providerFinancialCreditNote/route.schema.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice/route.schema.d.ts +1 -1
- package/dist/modules/document/purchase/interfaces.d.ts +3 -3
- package/dist/modules/document/purchase/route.schema.d.ts +2 -2
- package/dist/modules/document/returnToProvider/interface.d.ts +3 -3
- package/dist/modules/document/returnToProvider/route.schema.d.ts +1 -1
- package/dist/modules/integration/emailLog/interfaces.d.ts +9 -9
- package/dist/modules/integration/emailLog/route.schema.d.ts +2 -2
- package/dist/modules/integration/emailTemplate/interfaces.d.ts +3 -3
- package/dist/modules/integration/emailTemplate/route.schema.d.ts +1 -1
- package/dist/modules/integration/emailVerification/interfaces.d.ts +1 -1
- package/dist/modules/integration/emailVerification/route.schema.d.ts +2 -2
- package/dist/modules/integration/file/interface.d.ts +3 -3
- package/dist/modules/integration/file/route.schema.d.ts +2 -2
- package/dist/modules/integration/googleSheets/interfaces.d.ts +9 -9
- package/dist/modules/integration/observation/interfaces.d.ts +3 -3
- package/dist/modules/integration/observation/route.schema.d.ts +1 -1
- package/dist/modules/integration/projectInfo/interfaces.d.ts +5 -5
- package/dist/modules/print/schedulePrintJob/interfaces.d.ts +3 -3
- package/dist/modules/print/schedulePrintJob/route.schema.d.ts +2 -2
- package/dist/modules/stock/chat/interfaces.d.ts +8 -8
- package/dist/modules/stock/chat/route.schema.d.ts +1 -1
- package/dist/modules/stock/chatRapidMessage/interface.d.ts +2 -2
- package/dist/modules/stock/chatRapidMessage/route.schema.d.ts +1 -1
- package/dist/modules/stock/dashboard/interface.d.ts +1 -1
- package/dist/modules/stock/dashboard/route.schema.d.ts +1 -1
- package/dist/modules/stock/prison/interface.d.ts +3 -3
- package/dist/modules/stock/prison/route.schema.d.ts +2 -2
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +15 -15
- package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +2 -2
- package/dist/modules/stock/productImage/interface.d.ts +8 -8
- package/dist/modules/stock/productImage/route.schema.d.ts +1 -1
- package/dist/modules/stock/queryList/route.schema.d.ts +3 -3
- package/dist/modules/stock/queryParameter/interfaces.d.ts +12 -12
- package/dist/modules/stock/recurrentTasks/interface.d.ts +1 -1
- package/dist/modules/stock/savedEmPicking/interfaces.d.ts +4 -4
- package/dist/modules/stock/savedEmPicking/route.schema.d.ts +2 -2
- package/dist/modules/stock/stockMovement/interface.d.ts +8 -8
- package/dist/modules/stock/stockMovement/route.schema.d.ts +1 -1
- package/dist/modules/stock/task/interface.d.ts +13 -13
- package/dist/modules/stock/task/route.schema.d.ts +1 -1
- package/dist/modules/stock/taskMessage/interface.d.ts +4 -4
- package/dist/modules/stock/taskMessage/route.schema.d.ts +1 -1
- package/dist/modules/stock/taskRead/interface.d.ts +4 -4
- package/dist/modules/stock/taskRead/route.schema.d.ts +1 -1
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +6 -6
- package/dist/modules/stock/unitOfMeasure/route.schema.d.ts +1 -1
- package/dist/modules/supply/clientCurrentAccount/interfaces.d.ts +17 -17
- package/dist/modules/supply/clientCurrentAccount/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentHeader/interfaces.d.ts +11 -20
- package/dist/modules/supply/documentHeader/route.schema.d.ts +3 -3
- package/dist/modules/supply/documentLine/interfaces.d.ts +12 -12
- package/dist/modules/supply/documentLine/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +5 -5
- package/dist/modules/supply/documentType/interfaces.d.ts +49 -49
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +7 -7
- package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +1 -1
- package/dist/modules/supply/orderManagement/interface.d.ts +1 -1
- package/dist/modules/supply/payment/interface.d.ts +14 -14
- package/dist/modules/supply/payment/route.schema.d.ts +2 -2
- package/dist/modules/supply/preSale/interface.d.ts +4 -4
- package/dist/modules/supply/schedule/interface.d.ts +7 -7
- package/dist/modules/tickets/channel/interfaces.d.ts +3 -3
- package/dist/modules/tickets/channel/route.schema.d.ts +1 -1
- package/dist/modules/tickets/clt/route.schema.d.ts +1 -1
- package/dist/modules/tickets/tickets/interfaces.d.ts +3 -3
- package/dist/modules/tickets/tickets/route.schema.d.ts +1 -1
- package/dist/modules/user/clients/interface.d.ts +8 -8
- package/dist/modules/user/clients/route.schema.d.ts +1 -1
- package/dist/modules/user/commissioner/interface.d.ts +8 -8
- package/dist/modules/user/commissioner/route.schema.d.ts +1 -1
- package/dist/modules/user/persona/interface.d.ts +4 -4
- package/dist/modules/user/persona/route.schema.d.ts +1 -1
- package/dist/modules/user/providers/interface.d.ts +8 -8
- package/dist/modules/user/providers/route.schema.d.ts +1 -1
- package/dist/modules/user/purchaseConditions/interface.d.ts +6 -6
- package/dist/modules/user/purchaseConditions/route.schema.d.ts +1 -1
- package/dist/modules/user/sessions/route.schema.d.ts +1 -1
- package/dist/modules/user/storeOperator/interface.d.ts +9 -9
- package/dist/modules/user/storeOperator/route.schema.d.ts +1 -1
- package/dist/modules/user/theme/interfaces.d.ts +2 -2
- package/dist/modules/user/theme/route.schema.d.ts +1 -1
- package/dist/modules/user/users/interface.d.ts +8 -8
- package/dist/modules/user/users/route.schema.d.ts +1 -1
- package/dist/shared/entities/index.d.ts +7 -7
- package/dist/shared/entities/integration.d.ts +1 -1
- package/dist/shared/entities/stock.d.ts +13 -13
- package/dist/shared/entities/user.d.ts +1 -2
- package/dist/shared/interface.d.ts +15 -15
- package/package.json +12 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as IShared from
|
|
2
|
-
import { Providers, Country, Language, ProviderType, ReasonForExemption, Persona, Clients, SegmentsArea, ClientType, StoreOperator, UserPositions, Commissioner, Users, PaymentMethods, MaturityDates, DeliveryMethods, Vehicles, Theme } from
|
|
1
|
+
import * as IShared from '../../../shared/interface';
|
|
2
|
+
import { Providers, Country, Language, ProviderType, ReasonForExemption, Persona, Clients, SegmentsArea, ClientType, StoreOperator, UserPositions, Commissioner, Users, PaymentMethods, MaturityDates, DeliveryMethods, Vehicles, Theme } from '../../../shared/entities';
|
|
3
3
|
export type Entity = Users;
|
|
4
4
|
export declare const Route = "users";
|
|
5
5
|
export declare const UpperName = "Users";
|
|
@@ -8,9 +8,9 @@ interface IMainPersona extends Persona {
|
|
|
8
8
|
country: Country | null;
|
|
9
9
|
reason_for_exemption: ReasonForExemption | null;
|
|
10
10
|
}
|
|
11
|
-
interface IStoreOperator extends Pick<StoreOperator,
|
|
12
|
-
main_persona: Pick<Persona,
|
|
13
|
-
theme: Pick<Theme,
|
|
11
|
+
interface IStoreOperator extends Pick<StoreOperator, 'id' | 'location_id'> {
|
|
12
|
+
main_persona: Pick<Persona, 'name'>;
|
|
13
|
+
theme: Pick<Theme, 'colors'>;
|
|
14
14
|
}
|
|
15
15
|
export interface IFindByEmailResponse extends Entity {
|
|
16
16
|
store_operator: IStoreOperator;
|
|
@@ -54,10 +54,10 @@ export interface IFindByIdResponse extends Entity {
|
|
|
54
54
|
}) | null;
|
|
55
55
|
}
|
|
56
56
|
export type IFindRequest = Record<string, unknown>;
|
|
57
|
-
export type IFindResponse = Omit<Entity,
|
|
57
|
+
export type IFindResponse = Omit<Entity, ''>;
|
|
58
58
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
59
59
|
}
|
|
60
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<Entity,
|
|
60
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<Entity, ''>>;
|
|
61
61
|
export interface IFindProvidersWithClientIdResponse {
|
|
62
62
|
name: string;
|
|
63
63
|
provider_id: string;
|
|
@@ -109,5 +109,5 @@ export interface IRepository {
|
|
|
109
109
|
findFromClientOrProviderId(data: IFindFromClientOrProviderRequest): Promise<IFindFromClientOrProviderResponse[]>;
|
|
110
110
|
}
|
|
111
111
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
112
|
-
export type IApi = Omit<IRepository,
|
|
112
|
+
export type IApi = Omit<IRepository, 'resetPassword' | 'removeAccess'>;
|
|
113
113
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as Stock from
|
|
2
|
-
import * as User from
|
|
3
|
-
import * as Integration from
|
|
4
|
-
import * as DocumentManagement from
|
|
5
|
-
import * as View from
|
|
6
|
-
import * as Print from
|
|
7
|
-
import * as Tickets from
|
|
1
|
+
import * as Stock from './stock';
|
|
2
|
+
import * as User from './user';
|
|
3
|
+
import * as Integration from './integration';
|
|
4
|
+
import * as DocumentManagement from './documentManagement';
|
|
5
|
+
import * as View from './view';
|
|
6
|
+
import * as Print from './print';
|
|
7
|
+
import * as Tickets from './tickets';
|
|
8
8
|
export import BankData = User.BankData;
|
|
9
9
|
export import Clients = User.Clients;
|
|
10
10
|
export import ClientType = User.ClientType;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { IConflict } from
|
|
2
|
-
import { IDocumentTypeUserType, IDocumentTypeCodeType } from
|
|
3
|
-
import { IBatchType, IPaymentOrigin } from
|
|
4
|
-
import { IProductType } from
|
|
5
|
-
import { IImageType } from
|
|
6
|
-
import { IQueryParameterDatatype } from
|
|
7
|
-
import { IData, IDataDocumentoPago, IDataPagamento, IPromotions } from
|
|
8
|
-
import { IPhcDocumentType } from
|
|
9
|
-
import { ISavedEmPickingData } from
|
|
10
|
-
import { IDocumentLineNoteType } from
|
|
11
|
-
import { IProductSheetState } from
|
|
12
|
-
import type { IFindProposals } from
|
|
13
|
-
import { ITaskStatusDataType } from
|
|
1
|
+
import { IConflict } from '../../modules/document/propostaSheets/interface';
|
|
2
|
+
import { IDocumentTypeUserType, IDocumentTypeCodeType } from '../../modules/supply/documentType/interfaces';
|
|
3
|
+
import { IBatchType, IPaymentOrigin } from '../../modules/supply/payment/interface';
|
|
4
|
+
import { IProductType } from '../../modules/stock/productGoogleSheets/interface';
|
|
5
|
+
import { IImageType } from '../../modules/stock/productImage/interface';
|
|
6
|
+
import { IQueryParameterDatatype } from '../../modules/stock/queryParameter/interfaces';
|
|
7
|
+
import { IData, IDataDocumentoPago, IDataPagamento, IPromotions } from '../../modules/supply/documentLine/interfaces';
|
|
8
|
+
import { IPhcDocumentType } from '../../modules/supply/clientCurrentAccount/interfaces';
|
|
9
|
+
import { ISavedEmPickingData } from '../../modules/stock/savedEmPicking/interfaces';
|
|
10
|
+
import { IDocumentLineNoteType } from '../../modules/supply/documentLineNote/interfaces';
|
|
11
|
+
import { IProductSheetState } from '../../modules/stock/productGoogleSheets/interface';
|
|
12
|
+
import type { IFindProposals } from '../../modules/supply/orderManagement/interface';
|
|
13
|
+
import { ITaskStatusDataType } from '../../modules/stock/task/interface';
|
|
14
14
|
export type Chat = {
|
|
15
15
|
id: string;
|
|
16
16
|
owner_id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IChatType } from
|
|
1
|
+
import type { IChatType } from '../../modules/stock/chat/interfaces';
|
|
2
2
|
export type Users = {
|
|
3
3
|
id: string;
|
|
4
4
|
account: string | null;
|
|
@@ -259,7 +259,6 @@ export type StoreOperator = {
|
|
|
259
259
|
created_by: string;
|
|
260
260
|
updated_by: string;
|
|
261
261
|
origin_id: string | null;
|
|
262
|
-
external_id: string | null;
|
|
263
262
|
};
|
|
264
263
|
export type UserPositions = {
|
|
265
264
|
id: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import * as IErrorHandler from
|
|
3
|
-
import * as IGoogleSheets from
|
|
4
|
-
import { messages } from
|
|
5
|
-
import { ILastTicketCalledTodayByChannel, IRemainingTodayTickets } from
|
|
6
|
-
import { IDocumentTypeUserType } from
|
|
7
|
-
import { IScheduleType } from
|
|
8
|
-
import { IWarningType } from
|
|
9
|
-
import { IProjectInfoType } from
|
|
1
|
+
import joi from 'joi';
|
|
2
|
+
import * as IErrorHandler from '../modules/integration/errorHandler/interfaces';
|
|
3
|
+
import * as IGoogleSheets from '../modules/integration/googleSheets/interfaces';
|
|
4
|
+
import { messages } from './messages';
|
|
5
|
+
import { ILastTicketCalledTodayByChannel, IRemainingTodayTickets } from '../modules/tickets/tickets/interfaces';
|
|
6
|
+
import { IDocumentTypeUserType } from '../modules/supply/documentType/interfaces';
|
|
7
|
+
import { IScheduleType } from '../modules/supply/schedule/interface';
|
|
8
|
+
import { IWarningType } from '../modules/supply/documentHeader/interfaces';
|
|
9
|
+
import { IProjectInfoType } from '../modules/integration/projectInfo/interfaces';
|
|
10
10
|
export { messages };
|
|
11
|
-
type CreatedAt =
|
|
12
|
-
type UpdatedAt =
|
|
11
|
+
type CreatedAt = 'created_at';
|
|
12
|
+
type UpdatedAt = 'updated_at';
|
|
13
13
|
export interface WithCreatedAt {
|
|
14
14
|
created_at: Date;
|
|
15
15
|
}
|
|
@@ -22,8 +22,8 @@ export interface WithOriginId {
|
|
|
22
22
|
export type WithTimestamps = WithCreatedAt & WithUpdatedAt;
|
|
23
23
|
export type WithTimestampsOriginID = (WithCreatedAt & WithUpdatedAt) | WithOriginId;
|
|
24
24
|
export type WithoutTimestamps<T> = Omit<T, CreatedAt | UpdatedAt>;
|
|
25
|
-
type CreatedBy =
|
|
26
|
-
type UpdatedBy =
|
|
25
|
+
type CreatedBy = 'created_by';
|
|
26
|
+
type UpdatedBy = 'updated_by';
|
|
27
27
|
export interface WithCreatedBy {
|
|
28
28
|
created_by?: string | null;
|
|
29
29
|
}
|
|
@@ -99,8 +99,8 @@ export interface ITaskCluster {
|
|
|
99
99
|
loading: ITaskClusterLoading[];
|
|
100
100
|
}
|
|
101
101
|
export declare const IUserSendEmailDocumentTemplateEnum: {
|
|
102
|
-
generic:
|
|
103
|
-
provider_payment_order:
|
|
102
|
+
generic: 'generic';
|
|
103
|
+
provider_payment_order: 'provider_payment_order';
|
|
104
104
|
};
|
|
105
105
|
export type IUserSendEmailDocumentTemplate = (typeof IUserSendEmailDocumentTemplateEnum)[keyof typeof IUserSendEmailDocumentTemplateEnum];
|
|
106
106
|
export declare const IUserSendEmailDocumentTemplateTypes: string[];
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.31.2",
|
|
13
13
|
"main": "./dist/index.min.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"url": "git+https://gitlab.com/nomalism-develop/types.git"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"lint": "eslint
|
|
29
|
+
"lint": "eslint . --fix --ignore-pattern dist --ignore-pattern node_modules",
|
|
30
30
|
"typecheck": "tsc --project tsconfig.json --noEmit",
|
|
31
31
|
"start": "node dist/index.min.js",
|
|
32
32
|
"prebuild": "rm -rf dist",
|
|
@@ -38,12 +38,16 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@rollup/plugin-terser": "^0.4.4",
|
|
41
|
-
"@rollup/plugin-typescript": "^
|
|
42
|
-
"@types/node": "^
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
44
|
-
"@typescript-eslint/parser": "^
|
|
45
|
-
"eslint": "^
|
|
46
|
-
"
|
|
41
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
42
|
+
"@types/node": "^22.13.2",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.24.0",
|
|
44
|
+
"@typescript-eslint/parser": "^8.24.0",
|
|
45
|
+
"eslint": "^9.20.1",
|
|
46
|
+
"eslint-config-prettier": "^10.0.1",
|
|
47
|
+
"eslint-import-resolver-typescript": "^3.7.0",
|
|
48
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
49
|
+
"prettier": "^3.5.0",
|
|
50
|
+
"rollup": "^4.34.6",
|
|
47
51
|
"tslib": "^2.8.1"
|
|
48
52
|
}
|
|
49
53
|
}
|