@nomalism-com/types 1.3.60 → 1.3.62
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 +630 -745
- package/dist/index.js +556 -661
- package/dist/main.d.ts +2 -12
- package/dist/modules/document/NRCL/interface.d.ts +0 -2
- package/dist/modules/document/materialEntrance/interfaces.d.ts +0 -6
- package/dist/modules/document/order/interfaces.d.ts +0 -14
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +0 -1
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +0 -3
- package/dist/modules/integration/emailLog/interfaces.d.ts +0 -3
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +0 -13
- package/dist/modules/integration/emailVerification/interfaces.d.ts +0 -2
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +0 -8
- package/dist/modules/integration/patchNotes/interfaces.d.ts +0 -4
- package/dist/modules/integration/projectInfo/interfaces.d.ts +0 -2
- package/dist/modules/integration/settings/interfaces.d.ts +0 -1
- package/dist/modules/llm/llm/interfaces.d.ts +0 -2
- package/dist/modules/print/printer/interfaces.d.ts +0 -1
- package/dist/modules/sms/smsSender/interfaces.d.ts +0 -7
- package/dist/modules/sms/smsTemplate/interfaces.d.ts +0 -9
- package/dist/modules/stock/conferirEncomenda/interface.d.ts +0 -3
- package/dist/modules/stock/displayLabel/interface.d.ts +6 -1
- package/dist/modules/stock/emailAccount/interface.d.ts +0 -1
- package/dist/modules/stock/gmails/interface.d.ts +0 -4
- package/dist/modules/stock/googleSheetPool/interface.d.ts +0 -2
- package/dist/modules/stock/location/interface.d.ts +0 -44
- package/dist/modules/stock/mobilePrint/interface.d.ts +0 -2
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +0 -7
- package/dist/modules/stock/productImage/interface.d.ts +3 -1
- package/dist/modules/stock/productUpdate/interface.d.ts +214 -0
- package/dist/modules/stock/promotion/interface.d.ts +0 -2
- package/dist/modules/stock/queryList/interfaces.d.ts +0 -18
- package/dist/modules/stock/queryParameter/interfaces.d.ts +0 -34
- package/dist/modules/stock/recurrentTasks/interface.d.ts +0 -2
- package/dist/modules/stock/returnReason/interfaces.d.ts +0 -9
- package/dist/modules/stock/stockMovement/interface.d.ts +0 -3
- package/dist/modules/stock/task/interface.d.ts +0 -2
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +0 -9
- package/dist/modules/stock/vatTax/interface.d.ts +0 -9
- package/dist/modules/stock/vatTaxZone/interface.d.ts +0 -9
- package/dist/modules/supply/currentAccount/interface.d.ts +9 -88
- package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +0 -1
- package/dist/modules/supply/documentHeaderSurvey/interfaces.d.ts +0 -2
- package/dist/modules/supply/documentLine/interfaces.d.ts +0 -5
- package/dist/modules/supply/documentSet/interface.d.ts +0 -7
- package/dist/modules/supply/documentType/interfaces.d.ts +0 -2
- package/dist/modules/supply/externalDocumentType/interface.d.ts +0 -7
- package/dist/modules/supply/payment/interface.d.ts +2 -5
- package/dist/modules/supply/paymentBatch/interface.d.ts +2 -2
- package/dist/modules/supply/preSale/interface.d.ts +0 -1
- package/dist/modules/supply/preSaleProduct/interface.d.ts +0 -1
- package/dist/modules/supply/schedule/interface.d.ts +0 -1
- package/dist/modules/tickets/tickets/interfaces.d.ts +1 -2
- package/dist/modules/ui/sidemenuHighlight/interface.d.ts +0 -11
- package/dist/modules/user/bankData/interface.d.ts +0 -9
- package/dist/modules/user/clientType/interface.d.ts +0 -16
- package/dist/modules/user/country/interface.d.ts +0 -12
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +0 -1
- package/dist/modules/user/favorites/interfaces.d.ts +0 -3
- package/dist/modules/user/language/interface.d.ts +0 -9
- package/dist/modules/user/maturityDates/interfaces.d.ts +0 -1
- package/dist/modules/user/paymentMethods/interfaces.d.ts +0 -1
- package/dist/modules/user/providerType/interface.d.ts +0 -13
- package/dist/modules/user/purchaseConditions/interface.d.ts +0 -9
- package/dist/modules/user/reasonForExemption/interface.d.ts +0 -3
- package/dist/modules/user/segmentsArea/interface.d.ts +0 -17
- package/dist/modules/user/shippings/interface.d.ts +0 -8
- package/dist/modules/user/storeOperator/interface.d.ts +0 -2
- package/dist/modules/user/swift/interface.d.ts +0 -17
- package/dist/modules/user/systemModule/interface.d.ts +0 -11
- package/dist/modules/user/timeSheet/interfaces.d.ts +0 -3
- package/dist/modules/user/userTokens/interface.d.ts +0 -6
- package/dist/modules/user/users/interface.d.ts +1 -9
- package/dist/modules/view/adminPanel/interfaces.d.ts +0 -3
- package/dist/modules/view/errorLog/interfaces.d.ts +0 -1
- package/dist/modules/view/webSocket/interfaces.d.ts +0 -1
- package/dist/shared/entities/user.d.ts +0 -14
- package/dist/shared/interface.d.ts +0 -31
- package/package.json +5 -5
- package/dist/modules/document/adiantamento/interfaces.d.ts +0 -24
- package/dist/modules/document/faturaCredito/interfaces.d.ts +0 -26
- package/dist/modules/document/faturaRecibo/interfaces.d.ts +0 -25
- package/dist/modules/document/faturaSimplificada/interfaces.d.ts +0 -24
- package/dist/modules/document/notaCredito/interfaces.d.ts +0 -29
- package/dist/modules/document/notaCreditoAdiantamento/interfaces.d.ts +0 -25
- package/dist/modules/document/productionOrder/interfaces.d.ts +0 -10
- package/dist/modules/document/recibo/interfaces.d.ts +0 -21
- package/dist/modules/integration/observationType/interfaces.d.ts +0 -25
- package/dist/modules/stock/typeOfLocation/interface.d.ts +0 -30
- package/dist/modules/supply/batch/interface.d.ts +0 -0
- package/dist/modules/user/userPositions/interface.d.ts +0 -28
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Payment } from "../../../shared/entities/stock";
|
|
2
1
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = Payment;
|
|
4
2
|
export declare const Route = "payment_batch";
|
|
5
3
|
export interface IPaymentsNotExportedRequest {
|
|
6
4
|
whiteList?: string[];
|
|
@@ -25,7 +23,9 @@ export interface IExportPaymentsRequest {
|
|
|
25
23
|
export interface ICreateBulkPdfRequest {
|
|
26
24
|
month?: number;
|
|
27
25
|
year?: number;
|
|
26
|
+
/** ids separados por vírgula */
|
|
28
27
|
ids?: string;
|
|
28
|
+
token: string;
|
|
29
29
|
}
|
|
30
30
|
export type IBatchType = "national" | "international" | "null";
|
|
31
31
|
export interface IPaymentsBatchNpfDh {
|
|
@@ -4,7 +4,6 @@ import * as DocumentLine from "../documentLine/interfaces";
|
|
|
4
4
|
import { IProductState } from "./../../stock/productGoogleSheets/interface";
|
|
5
5
|
export type Entity = PreSale;
|
|
6
6
|
export declare const Route = "pre_sale";
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
7
|
export type IFindResponse = Entity;
|
|
9
8
|
export interface IFindResponseWithCount extends Entity {
|
|
10
9
|
count_products: number;
|
|
@@ -2,7 +2,6 @@ import { PreSaleProduct } from "../../../shared/entities/stock";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = PreSaleProduct;
|
|
4
4
|
export declare const Route = "pre_sale_product";
|
|
5
|
-
export type IFindRequest = Record<string, unknown>;
|
|
6
5
|
export type IFindResponse = Entity;
|
|
7
6
|
export interface IRepository {
|
|
8
7
|
find(user_id: string): Promise<PreSaleProduct[]>;
|
|
@@ -10,7 +10,6 @@ export declare const ScheduleTypeEnum: {
|
|
|
10
10
|
retryErroredEmails: "retryErroredEmails";
|
|
11
11
|
};
|
|
12
12
|
export type IScheduleType = (typeof ScheduleTypeEnum)[keyof typeof ScheduleTypeEnum];
|
|
13
|
-
export declare const scheduleTypes: string[];
|
|
14
13
|
export declare const ScheduleTypeLabel: Record<IScheduleType, string>;
|
|
15
14
|
export interface IRunImmediatelyRequest {
|
|
16
15
|
scheduleType: IScheduleType;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Language
|
|
1
|
+
import { Language } from "../../../shared/entities/tickets";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
import { IChannel } from "../channel/interfaces";
|
|
4
|
-
export type Entity = Tickets;
|
|
5
4
|
export declare const Route = "tickets";
|
|
6
5
|
export interface ILastTicketCalledToday {
|
|
7
6
|
language: Language;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { SidemenuHightlight } from "../../../shared/entities/stock";
|
|
2
1
|
import * as IShared from "../../../shared/interface";
|
|
3
2
|
import type { IDocumentTypeUserType } from "../../supply/documentType/interfaces";
|
|
4
3
|
export declare const Route = "sidemenu_highlight";
|
|
5
|
-
export type Entity = SidemenuHightlight;
|
|
6
4
|
export interface IHighlightItem {
|
|
7
5
|
user_type: IDocumentTypeUserType;
|
|
8
6
|
state: string;
|
|
@@ -10,25 +8,16 @@ export interface IHighlightItem {
|
|
|
10
8
|
export declare const highlightValueSeparator = "|:|";
|
|
11
9
|
/** Serialize / parse helpers for the composite "user_type|:|state" value. */
|
|
12
10
|
export declare const buildHighlightValue: (item: IHighlightItem) => string;
|
|
13
|
-
export declare const parseHighlightValue: (value: string) => IHighlightItem | null;
|
|
14
11
|
export interface IFindResponseItem {
|
|
15
12
|
store_operator_id: string;
|
|
16
13
|
values: string[];
|
|
17
14
|
}
|
|
18
|
-
export interface IFindByStoreOperatorIdRequest {
|
|
19
|
-
store_operator_id: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IFindByStoreOperatorIdResponse {
|
|
22
|
-
store_operator_id: string;
|
|
23
|
-
values: string[];
|
|
24
|
-
}
|
|
25
15
|
export interface ISetStoreOperatorHighlightsRequest {
|
|
26
16
|
store_operator_id: string;
|
|
27
17
|
values: string[];
|
|
28
18
|
}
|
|
29
19
|
export interface IRepository {
|
|
30
20
|
find(): Promise<IFindResponseItem[]>;
|
|
31
|
-
findByStoreOperatorId(selector: IFindByStoreOperatorIdRequest): Promise<IFindByStoreOperatorIdResponse>;
|
|
32
21
|
setStoreOperatorHighlights(data: ISetStoreOperatorHighlightsRequest): Promise<void>;
|
|
33
22
|
}
|
|
34
23
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -6,13 +6,7 @@ interface IFindDetailedResponse extends Entity {
|
|
|
6
6
|
swift: Swift | null;
|
|
7
7
|
country: Country;
|
|
8
8
|
}
|
|
9
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "swift" | "country">;
|
|
10
9
|
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
11
|
-
export type IFindRequest = Record<string, unknown>;
|
|
12
|
-
export type IFindResponse = Omit<IFindDetailedResponse, "swift" | "country">;
|
|
13
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
14
|
-
}
|
|
15
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "swift" | "country">>;
|
|
16
10
|
export interface ICreateRequest {
|
|
17
11
|
provider_id?: string | null;
|
|
18
12
|
client_id?: string | null;
|
|
@@ -28,10 +22,7 @@ export interface IUpdateRequest {
|
|
|
28
22
|
country_id?: string;
|
|
29
23
|
}
|
|
30
24
|
export interface IRepository {
|
|
31
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
32
25
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
33
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
34
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
35
26
|
create(data: ICreateRequest): Promise<IFindByOwnerIdResponse>;
|
|
36
27
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
37
28
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
@@ -2,27 +2,11 @@ import { ClientType } from "../../../shared/entities/user";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ClientType;
|
|
4
4
|
export declare const Route = "client_type";
|
|
5
|
-
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
5
|
export interface ICreateRequest {
|
|
13
6
|
name: string;
|
|
14
7
|
}
|
|
15
|
-
export interface IUpdateRequest {
|
|
16
|
-
name?: string;
|
|
17
|
-
}
|
|
18
8
|
export interface IRepository {
|
|
19
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
20
9
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
21
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
22
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
23
10
|
create(data: ICreateRequest): Promise<Entity>;
|
|
24
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
25
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
26
11
|
}
|
|
27
12
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
28
|
-
export {};
|
|
@@ -8,26 +8,14 @@ export type IFindRequest = {
|
|
|
8
8
|
name?: string;
|
|
9
9
|
};
|
|
10
10
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
11
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
12
|
-
}
|
|
13
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
14
11
|
export interface ICreateRequest {
|
|
15
12
|
name: string;
|
|
16
13
|
alpha2: string;
|
|
17
14
|
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
name?: string;
|
|
20
|
-
alpha2?: string;
|
|
21
|
-
}
|
|
22
15
|
export interface IRepository {
|
|
23
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
24
16
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
|
-
findByAlpha2(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
26
17
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
27
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
28
18
|
create(data: ICreateRequest): Promise<Entity>;
|
|
29
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
30
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
31
19
|
}
|
|
32
20
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
33
21
|
export {};
|
|
@@ -12,7 +12,6 @@ export interface IRepository {
|
|
|
12
12
|
create(data: ICreateRequest): Promise<Entity>;
|
|
13
13
|
find(): Promise<Entity[]>;
|
|
14
14
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
15
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
16
15
|
update(selector: IShared.IFindByIdRequest, body: IUpdateRequest): Promise<Entity | null>;
|
|
17
16
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
18
17
|
}
|
|
@@ -13,8 +13,5 @@ export interface IFindOneRequest {
|
|
|
13
13
|
}
|
|
14
14
|
export interface IRepository {
|
|
15
15
|
list(user_id: string): Promise<Entity[]>;
|
|
16
|
-
findByUrl(params: IFindOneRequest): Promise<boolean>;
|
|
17
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
18
|
-
deleteOne(params: IDeleteRequest): Promise<Entity | null>;
|
|
19
16
|
}
|
|
20
17
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -6,26 +6,17 @@ type IFindDetailedResponse = Entity;
|
|
|
6
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
7
|
export type IFindRequest = Record<string, unknown>;
|
|
8
8
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
9
|
export interface ICreateRequest {
|
|
13
10
|
name: string;
|
|
14
11
|
native_name: string;
|
|
15
12
|
iso_code: string;
|
|
16
13
|
short_list: boolean;
|
|
17
14
|
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
name?: string;
|
|
20
|
-
}
|
|
21
15
|
export interface IRepository {
|
|
22
16
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
23
17
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
24
18
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
25
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
26
19
|
create(data: ICreateRequest): Promise<Entity>;
|
|
27
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
28
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
29
20
|
}
|
|
30
21
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
31
22
|
export {};
|
|
@@ -11,7 +11,6 @@ export interface IUpdateRequest {
|
|
|
11
11
|
days?: number;
|
|
12
12
|
}
|
|
13
13
|
export interface IRepository {
|
|
14
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
15
14
|
find(): Promise<Entity[]>;
|
|
16
15
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
17
16
|
create(data: ICreateRequest): Promise<Entity>;
|
|
@@ -25,7 +25,6 @@ export interface IUpdateRequest {
|
|
|
25
25
|
incluir_no_apuro_caixa?: boolean;
|
|
26
26
|
}
|
|
27
27
|
export interface IRepository {
|
|
28
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
29
28
|
find(): Promise<Entity[]>;
|
|
30
29
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
31
30
|
create(data: ICreateRequest): Promise<Entity>;
|
|
@@ -3,26 +3,13 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = ProviderType;
|
|
4
4
|
export declare const Route = "provider_type";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
6
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
7
|
export interface ICreateRequest {
|
|
13
8
|
name: string;
|
|
14
9
|
}
|
|
15
|
-
export interface IUpdateRequest {
|
|
16
|
-
name?: string;
|
|
17
|
-
}
|
|
18
10
|
export interface IRepository {
|
|
19
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
20
11
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
21
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
22
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
23
12
|
create(data: ICreateRequest): Promise<Entity>;
|
|
24
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
25
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
26
13
|
}
|
|
27
14
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
28
15
|
export {};
|
|
@@ -2,13 +2,7 @@ import { PurchaseConditions } from "../../../shared/entities/user";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = PurchaseConditions;
|
|
4
4
|
export declare const Route = "purchase_conditions";
|
|
5
|
-
export type IFindByIdResponse = Omit<Entity, "product_category">;
|
|
6
5
|
export type IFindByOwnerIdResponse = Omit<Entity, "">;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Omit<Entity, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<Entity, "">>;
|
|
12
6
|
export interface ICreateRequest {
|
|
13
7
|
provider_id: string;
|
|
14
8
|
discount: string;
|
|
@@ -21,10 +15,7 @@ export interface IUpdateRequest {
|
|
|
21
15
|
minimum_quantity?: string;
|
|
22
16
|
}
|
|
23
17
|
export interface IRepository {
|
|
24
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
25
18
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
26
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
27
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
28
19
|
create(data: ICreateRequest): Promise<Entity>;
|
|
29
20
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
30
21
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
@@ -8,9 +8,7 @@ export declare const ReasonForExemptionTypeEnum: {
|
|
|
8
8
|
tenant: "tenant";
|
|
9
9
|
};
|
|
10
10
|
export type IReasonForExemptionType = (typeof ReasonForExemptionTypeEnum)[keyof typeof ReasonForExemptionTypeEnum];
|
|
11
|
-
export declare const reasonForExemptionTypes: string[];
|
|
12
11
|
type IFindDetailedResponse = Entity;
|
|
13
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
14
12
|
export type IFindRequest = Record<string, unknown>;
|
|
15
13
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
16
14
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
@@ -29,7 +27,6 @@ export interface IUpdateRequest {
|
|
|
29
27
|
saft_code?: string;
|
|
30
28
|
}
|
|
31
29
|
export interface IRepository {
|
|
32
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
33
30
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
34
31
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
35
32
|
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
@@ -2,29 +2,12 @@ import { SegmentsArea } from "../../../shared/entities/user";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = SegmentsArea;
|
|
4
4
|
export declare const Route = "segments_area";
|
|
5
|
-
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
5
|
export interface ICreateRequest {
|
|
13
6
|
type: string;
|
|
14
7
|
name: string;
|
|
15
8
|
}
|
|
16
|
-
export interface IUpdateRequest {
|
|
17
|
-
type?: string;
|
|
18
|
-
name?: string;
|
|
19
|
-
}
|
|
20
9
|
export interface IRepository {
|
|
21
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
22
10
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
23
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
24
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
25
11
|
create(data: ICreateRequest): Promise<Entity>;
|
|
26
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
27
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
28
12
|
}
|
|
29
13
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
30
|
-
export {};
|
|
@@ -3,13 +3,8 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = Shippings;
|
|
4
4
|
export declare const Route = "shippings";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
6
|
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
8
|
-
export type IFindRequest = Record<string, unknown>;
|
|
9
7
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
10
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
11
|
-
}
|
|
12
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
13
8
|
export interface ICreateRequest {
|
|
14
9
|
provider_id: string;
|
|
15
10
|
type: string;
|
|
@@ -24,10 +19,7 @@ export interface IUpdateRequest {
|
|
|
24
19
|
unit?: string;
|
|
25
20
|
}
|
|
26
21
|
export interface IRepository {
|
|
27
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
28
22
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
29
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
30
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
31
23
|
create(data: ICreateRequest): Promise<Entity>;
|
|
32
24
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
33
25
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
@@ -33,12 +33,10 @@ export interface IUpdateOwnPinRequest {
|
|
|
33
33
|
pin: string;
|
|
34
34
|
}
|
|
35
35
|
export interface IRepository {
|
|
36
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
37
36
|
find(): Promise<IFindResponse[]>;
|
|
38
37
|
findPaginated(selector: IFindPaginatedRequest): Promise<IShared.IPaginationResponse<IFindResponse>>;
|
|
39
38
|
create(data: ICreateRequest): Promise<string>;
|
|
40
39
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
41
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
42
40
|
updatePassword(selector: IShared.IFindByIdRequest, data: IUpdatePasswordRequest): Promise<void>;
|
|
43
41
|
updateOwnPin(data: IUpdateOwnPinRequest): Promise<void>;
|
|
44
42
|
}
|
|
@@ -3,12 +3,7 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = Swift;
|
|
4
4
|
export declare const Route = "swift";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
6
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
7
|
export interface ICreateRequest {
|
|
13
8
|
bank: string;
|
|
14
9
|
city: string;
|
|
@@ -16,21 +11,9 @@ export interface ICreateRequest {
|
|
|
16
11
|
code: string;
|
|
17
12
|
country_id: string;
|
|
18
13
|
}
|
|
19
|
-
export interface IUpdateRequest {
|
|
20
|
-
bank?: string;
|
|
21
|
-
city?: string;
|
|
22
|
-
branch?: string | null;
|
|
23
|
-
code?: string;
|
|
24
|
-
country_id?: string;
|
|
25
|
-
}
|
|
26
14
|
export interface IRepository {
|
|
27
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
28
15
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
29
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
30
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
31
16
|
create(data: ICreateRequest): Promise<Entity>;
|
|
32
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
33
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
34
17
|
}
|
|
35
18
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
36
19
|
export {};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { SystemModule } from "../../../shared/entities/user";
|
|
2
1
|
import type * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = SystemModule;
|
|
4
2
|
export declare const Route = "system_module";
|
|
5
3
|
export declare const SystemModuleEnum: {
|
|
6
4
|
encomendas_stock: "encomendas_stock";
|
|
@@ -22,14 +20,6 @@ export declare const SystemModuleEnum: {
|
|
|
22
20
|
clientes_duplicados: "clientes_duplicados";
|
|
23
21
|
};
|
|
24
22
|
export type ISystemModule = (typeof SystemModuleEnum)[keyof typeof SystemModuleEnum];
|
|
25
|
-
export declare const systemModules: string[];
|
|
26
|
-
export interface IFindByStoreOperatorIdRequest {
|
|
27
|
-
store_operator_id: string;
|
|
28
|
-
}
|
|
29
|
-
export interface IFindByStoreOperatorIdResponse {
|
|
30
|
-
store_operator_id: string;
|
|
31
|
-
values: ISystemModule[];
|
|
32
|
-
}
|
|
33
23
|
export interface IFindResponseItem {
|
|
34
24
|
store_operator_id: string;
|
|
35
25
|
values: ISystemModule[];
|
|
@@ -40,7 +30,6 @@ export interface ISetStoreOperatorModulesRequest {
|
|
|
40
30
|
}
|
|
41
31
|
export interface IRepository {
|
|
42
32
|
find(): Promise<IFindResponseItem[]>;
|
|
43
|
-
findByStoreOperatorId(selector: IFindByStoreOperatorIdRequest): Promise<IFindByStoreOperatorIdResponse>;
|
|
44
33
|
setStoreOperatorModules(data: ISetStoreOperatorModulesRequest): Promise<void>;
|
|
45
34
|
}
|
|
46
35
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -9,13 +9,11 @@ export declare const ITimeSheetRecordTypeEnum: {
|
|
|
9
9
|
readonly DEBIT: "DEBIT";
|
|
10
10
|
};
|
|
11
11
|
export type ITimeSheetRecordType = (typeof ITimeSheetRecordTypeEnum)[keyof typeof ITimeSheetRecordTypeEnum];
|
|
12
|
-
export declare const timeSheetRecordTypes: ("ENTRY" | "EXIT" | "CREDIT" | "DEBIT")[];
|
|
13
12
|
export declare const ITimeSheetRegistryTypeEnum: {
|
|
14
13
|
readonly AUTOMATIC: "AUTOMATIC";
|
|
15
14
|
readonly MANUAL: "MANUAL";
|
|
16
15
|
};
|
|
17
16
|
export type ITimeSheetRegistryType = (typeof ITimeSheetRegistryTypeEnum)[keyof typeof ITimeSheetRegistryTypeEnum];
|
|
18
|
-
export declare const timeSheetRegistryTypes: ("AUTOMATIC" | "MANUAL")[];
|
|
19
17
|
export interface IFindRequest {
|
|
20
18
|
user_id?: string;
|
|
21
19
|
start_date?: string;
|
|
@@ -48,5 +46,4 @@ export interface IRepository {
|
|
|
48
46
|
findByUserAndDate(filters: IFindByDateRequest): Promise<Entity[]>;
|
|
49
47
|
getDailySummary(filters: IDailySummaryRequest): Promise<IDailySummaryResponse[]>;
|
|
50
48
|
}
|
|
51
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
52
49
|
export type IApi = Omit<IRepository, "findById">;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { UserTokens } from "../../../shared/entities/user";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = UserTokens;
|
|
4
|
-
export declare const Route = "user_token";
|
|
5
4
|
export type IFindRequest = Record<string, unknown>;
|
|
6
5
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
7
6
|
}
|
|
8
7
|
export type IFindWithPaginationResponse = IShared.IPaginationResponse<UserTokens>;
|
|
9
|
-
export interface ICreateRequest {
|
|
10
|
-
user_id: string;
|
|
11
|
-
expires_date: Date;
|
|
12
|
-
refresh_token: string;
|
|
13
|
-
}
|
|
14
8
|
export interface IUpdateRequest {
|
|
15
9
|
consumed?: boolean;
|
|
16
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Clients, ClientType, Commissioner, Country, DeliveryMethods, Language, MaturityDates, PaymentMethods, Persona, Providers, ProviderType, ReasonForExemption, SegmentsArea, StoreOperator, Theme,
|
|
1
|
+
import { Clients, ClientType, Commissioner, Country, DeliveryMethods, Language, MaturityDates, PaymentMethods, Persona, Providers, ProviderType, ReasonForExemption, SegmentsArea, StoreOperator, Theme, Users, Vehicles } from "../../../shared/entities/user";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
import type { ISystemModule } from "../systemModule/interface";
|
|
4
4
|
export type Entity = Users;
|
|
@@ -40,7 +40,6 @@ export interface IFindByIdResponse extends EntityWithoutPassword {
|
|
|
40
40
|
main_persona: IMainPersona;
|
|
41
41
|
}) | null;
|
|
42
42
|
store_operator: (Omit<StoreOperator, "pin"> & {
|
|
43
|
-
user_position: UserPositions | null;
|
|
44
43
|
support_language: Language | null;
|
|
45
44
|
main_persona: IMainPersona;
|
|
46
45
|
}) | null;
|
|
@@ -65,13 +64,6 @@ export interface IFindProvidersWithClientIdRequest {
|
|
|
65
64
|
export interface IUpdatePassword {
|
|
66
65
|
password: string;
|
|
67
66
|
}
|
|
68
|
-
export interface ISendForgotPassword {
|
|
69
|
-
token: string;
|
|
70
|
-
user: {
|
|
71
|
-
name: string;
|
|
72
|
-
email: string;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
67
|
export interface IFindFromClientOrProviderRequest {
|
|
76
68
|
ids: string[];
|
|
77
69
|
}
|
|
@@ -110,7 +110,6 @@ export declare const IDataTypeEnum: {
|
|
|
110
110
|
all: "all";
|
|
111
111
|
};
|
|
112
112
|
export type IDataType = (typeof IDataTypeEnum)[keyof typeof IDataTypeEnum];
|
|
113
|
-
export declare const dataTypes: string[];
|
|
114
113
|
export declare const IServiceEnum: {
|
|
115
114
|
prints: "prints";
|
|
116
115
|
eventstores: "eventstores";
|
|
@@ -126,7 +125,6 @@ export declare const IServiceEnum: {
|
|
|
126
125
|
kafka: "kafka";
|
|
127
126
|
};
|
|
128
127
|
export type IService = (typeof IServiceEnum)[keyof typeof IServiceEnum];
|
|
129
|
-
export declare const adminPanelServices: string[];
|
|
130
128
|
export declare const IServerEnum: {
|
|
131
129
|
services: "services";
|
|
132
130
|
logs: "logs";
|
|
@@ -135,7 +133,6 @@ export declare const IServerEnum: {
|
|
|
135
133
|
backups: "backups";
|
|
136
134
|
};
|
|
137
135
|
export type IServer = (typeof IServerEnum)[keyof typeof IServerEnum];
|
|
138
|
-
export declare const adminPanelServers: string[];
|
|
139
136
|
export interface IGetDataRequest {
|
|
140
137
|
token: string;
|
|
141
138
|
dataType: IDataType;
|
|
@@ -2,7 +2,6 @@ import type { IChatBalloon } from "../../stock/chat/interfaces";
|
|
|
2
2
|
import type { IFindByOwnerIdItemWithVersions } from "../../supply/externalDocumentHeader/interface";
|
|
3
3
|
import type { ILastTicketCalledTodayByChannel, IRemainingTodayTickets } from "../../tickets/tickets/interfaces";
|
|
4
4
|
import type { IPublicDocument, IPublicFindBySubscriberId, ITags } from "../../ui/portal/interface";
|
|
5
|
-
export declare const Route = "ws";
|
|
6
5
|
export interface IEvent {
|
|
7
6
|
type: string;
|
|
8
7
|
}
|
|
@@ -281,7 +281,6 @@ export type ReasonForExemption = {
|
|
|
281
281
|
export type StoreOperator = {
|
|
282
282
|
id: string;
|
|
283
283
|
user_id: string;
|
|
284
|
-
user_position_id: string | null;
|
|
285
284
|
number: number;
|
|
286
285
|
internal_email: string | null;
|
|
287
286
|
support_language_id: string | null;
|
|
@@ -298,19 +297,6 @@ export type StoreOperator = {
|
|
|
298
297
|
updated_by: string;
|
|
299
298
|
origin_id: string | null;
|
|
300
299
|
};
|
|
301
|
-
/**
|
|
302
|
-
* Model UserPositions
|
|
303
|
-
*
|
|
304
|
-
*/
|
|
305
|
-
export type UserPositions = {
|
|
306
|
-
id: string;
|
|
307
|
-
name: string;
|
|
308
|
-
created_at: Date;
|
|
309
|
-
updated_at: Date;
|
|
310
|
-
created_by: string;
|
|
311
|
-
updated_by: string;
|
|
312
|
-
origin_id: string | null;
|
|
313
|
-
};
|
|
314
300
|
/**
|
|
315
301
|
* Model PaymentMethods
|
|
316
302
|
*
|