@nomalism-com/types 0.49.16 → 0.49.19
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 +338 -352
- package/dist/index.js +338 -351
- package/dist/main.d.ts +1 -2
- package/dist/modules/integration/patchNotes/interfaces.d.ts +1 -1
- package/dist/modules/stock/workflow/interfaces.d.ts +0 -41
- package/dist/modules/supply/documentType/interfaces.d.ts +0 -51
- package/package.json +2 -2
- package/dist/modules/stock/promotionAssoc/interface.d.ts +0 -38
package/dist/main.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ import * as ProductGoogleSheets from "./modules/stock/productGoogleSheets/interf
|
|
|
62
62
|
import * as ProductImage from "./modules/stock/productImage/interface";
|
|
63
63
|
import * as ProductLocation from "./modules/stock/productLocation/interface";
|
|
64
64
|
import * as Promotion from "./modules/stock/promotion/interface";
|
|
65
|
-
import * as PromotionAssoc from "./modules/stock/promotionAssoc/interface";
|
|
66
65
|
import * as QueryList from "./modules/stock/queryList/interfaces";
|
|
67
66
|
import * as QueryParameter from "./modules/stock/queryParameter/interfaces";
|
|
68
67
|
import * as RecurrentTasks from "./modules/stock/recurrentTasks/interface";
|
|
@@ -149,4 +148,4 @@ import * as stockErrors from "./shared/errors/stockErrors";
|
|
|
149
148
|
import * as userErrors from "./shared/errors/userErrors";
|
|
150
149
|
import * as viewErrors from "./shared/errors/viewErrors";
|
|
151
150
|
import * as shared from "./shared/interface";
|
|
152
|
-
export { AccountCode, Adiantamento, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, EuPago, ExternalDocumentHeader, ExternalDocumentType, FaturaCredito, FaturaRecibo, FaturaSimplificada, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, NotaCredito, NotaCreditoAdiantamento, Npc, NPF, NRCL, Observation, ObservationType, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, PersonaMerge, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductionOrder, ProductLocation, Proforma, ProjectInfo, Promotion,
|
|
151
|
+
export { AccountCode, Adiantamento, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, EuPago, ExternalDocumentHeader, ExternalDocumentType, FaturaCredito, FaturaRecibo, FaturaSimplificada, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, NotaCredito, NotaCreditoAdiantamento, Npc, NPF, NRCL, Observation, ObservationType, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, PersonaMerge, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductionOrder, ProductLocation, Proforma, ProjectInfo, Promotion, PropostaFornecedor, PropostaSheets, ProviderCreditNoteFromReturn, ProviderFinancialCreditNote, Providers, ProviderServiceInvoice, ProviderType, Purchase, PurchaseConditions, Quebra, QueryList, QueryParameter, ReasonForExemption, Recibo, RecurrentTasks, RefreshToken, ReturnReason, ReturnToProvider, Saft, SavedEmPicking, SavedProviderProposal, Schedule, SchedulePrintJob, SegmentsArea, Sessions, Settings, shared, Shippings, SideMenu, SidemenuHighlight, SmsSender, SmsTemplate, StartDocumentHeaderLastUpdate, stockErrors, StockMovement, StoreOperator, Swift, SystemModule, Tag, Task, TaskMessage, TaskRead, Tenant, Theme, Tickets, TicketsLanguage, TimeSheet, Transformado, TypeOfLocation, UnitOfMeasure, UpfrontReturn, userErrors, UserPositions, Users, UserTokens, VatTax, VatTaxZone, VatValidation, Vehicles, viewErrors, WebSocket, Workflow, };
|
|
@@ -30,7 +30,7 @@ export interface ICreateRequest {
|
|
|
30
30
|
job_name?: string | null;
|
|
31
31
|
job_url?: string | null;
|
|
32
32
|
merge_request_iid?: number | null;
|
|
33
|
-
|
|
33
|
+
merge_request_id?: number | null;
|
|
34
34
|
mr_source_branch?: string | null;
|
|
35
35
|
mr_target_branch?: string | null;
|
|
36
36
|
changes?: unknown;
|
|
@@ -1,43 +1,2 @@
|
|
|
1
1
|
import { Workflow } from "../../../shared/entities/stock";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
|
-
import * as DocumentType from "../../supply/documentType/interfaces";
|
|
4
|
-
import { IDocumentTypeUserType } from "../../supply/documentType/interfaces";
|
|
5
2
|
export type Entity = Workflow;
|
|
6
|
-
export declare const Route = "workflow";
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export interface ICreateRequest {
|
|
9
|
-
from_document_type_id: number;
|
|
10
|
-
to_document_type_id: number;
|
|
11
|
-
transition_name: string;
|
|
12
|
-
is_active: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface IUpdateRequest {
|
|
15
|
-
from_document_type_id?: number;
|
|
16
|
-
to_document_type_id?: number;
|
|
17
|
-
transition_name?: string;
|
|
18
|
-
is_active?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface IFindByQueryRequest extends IShared.IPaginationRequest {
|
|
21
|
-
id?: number;
|
|
22
|
-
from?: number;
|
|
23
|
-
}
|
|
24
|
-
export interface IFindByOwnerIdRequest {
|
|
25
|
-
from?: number;
|
|
26
|
-
to?: number;
|
|
27
|
-
user_type?: IDocumentTypeUserType;
|
|
28
|
-
}
|
|
29
|
-
export interface IFindByOwnerIdResponse extends Entity {
|
|
30
|
-
from_document_type: DocumentType.Entity | null;
|
|
31
|
-
to_document_type: DocumentType.Entity | null;
|
|
32
|
-
}
|
|
33
|
-
export interface IRepository {
|
|
34
|
-
findById(id: number): Promise<Workflow | null>;
|
|
35
|
-
findByQuery(data: IFindByQueryRequest): Promise<IShared.IPaginationResponse<Workflow>>;
|
|
36
|
-
findByOwnerId(data: IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
37
|
-
find(data: IFindRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
38
|
-
create(data: ICreateRequest): Promise<IFindByOwnerIdResponse>;
|
|
39
|
-
update(selector: IShared.IFindByIdNumberRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
40
|
-
deleteOne(selector: IShared.IFindByIdNumberRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
41
|
-
}
|
|
42
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
43
|
-
export type IApi = Omit<IRepository, "findById" | "findByQuery">;
|
|
@@ -76,54 +76,6 @@ export declare const documentTypeCodeTypes: string[];
|
|
|
76
76
|
export interface IEntityExtended extends DocumentType {
|
|
77
77
|
external_document_type: ExternalDocumentType | null;
|
|
78
78
|
}
|
|
79
|
-
export interface ICreateRequest {
|
|
80
|
-
external_document_type_id: string | null;
|
|
81
|
-
document_set_id: string;
|
|
82
|
-
code: IDocumentTypeCodeType;
|
|
83
|
-
description: string;
|
|
84
|
-
group: string;
|
|
85
|
-
is_searchable: boolean;
|
|
86
|
-
quantity_in?: boolean;
|
|
87
|
-
quantity_out?: boolean;
|
|
88
|
-
credit?: boolean;
|
|
89
|
-
debit?: boolean;
|
|
90
|
-
invoice: boolean;
|
|
91
|
-
return: boolean;
|
|
92
|
-
pay: boolean;
|
|
93
|
-
allow_create_from_header_without_lines: boolean;
|
|
94
|
-
allow_commissioner: boolean;
|
|
95
|
-
duplicate_group?: string | null;
|
|
96
|
-
allow_duplicates: boolean;
|
|
97
|
-
requires_picking: boolean;
|
|
98
|
-
allow_document_line_assoc_plugins: boolean;
|
|
99
|
-
user_type: IDocumentTypeUserType;
|
|
100
|
-
final_consumer: boolean;
|
|
101
|
-
ensure_same_provider: boolean;
|
|
102
|
-
}
|
|
103
|
-
export interface IUpdateRequest {
|
|
104
|
-
external_document_type_id?: string | null;
|
|
105
|
-
document_set_id?: string;
|
|
106
|
-
code?: IDocumentTypeCodeType;
|
|
107
|
-
description?: string;
|
|
108
|
-
group?: string;
|
|
109
|
-
is_searchable?: boolean;
|
|
110
|
-
quantity_in?: boolean;
|
|
111
|
-
quantity_out?: boolean;
|
|
112
|
-
credit?: boolean;
|
|
113
|
-
debit?: boolean;
|
|
114
|
-
invoice: boolean;
|
|
115
|
-
return: boolean;
|
|
116
|
-
pay: boolean;
|
|
117
|
-
allow_create_from_header_without_lines: boolean;
|
|
118
|
-
allow_commissioner?: boolean;
|
|
119
|
-
duplicate_group?: string | null;
|
|
120
|
-
allow_duplicates?: boolean;
|
|
121
|
-
requires_picking?: boolean;
|
|
122
|
-
allow_document_line_assoc_plugins: boolean;
|
|
123
|
-
user_type?: IDocumentTypeUserType;
|
|
124
|
-
final_consumer?: boolean;
|
|
125
|
-
ensure_same_provider?: boolean;
|
|
126
|
-
}
|
|
127
79
|
export interface IFindRequest {
|
|
128
80
|
description?: string;
|
|
129
81
|
}
|
|
@@ -139,9 +91,6 @@ export interface IRepository {
|
|
|
139
91
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
140
92
|
find(): Promise<IFindResponse[]>;
|
|
141
93
|
findDetailed(): Promise<IEntityExtended[]>;
|
|
142
|
-
create(data: ICreateRequest): Promise<IEntityExtended>;
|
|
143
|
-
update(selector: IShared.IFindByIdNumberRequest, data: IUpdateRequest): Promise<IEntityExtended | null>;
|
|
144
|
-
deleteOne(selector: IShared.IFindByIdNumberRequest): Promise<IEntityExtended | null>;
|
|
145
94
|
}
|
|
146
95
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
147
96
|
export type IApi = Omit<IRepository, "findById" | "findByQuery">;
|
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.49.
|
|
4
|
+
"version": "0.49.19",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"globals": "^17.12.0",
|
|
38
38
|
"husky": "^9.1.7",
|
|
39
39
|
"lint-staged": "^17.5.1",
|
|
40
|
-
"prettier": "^3.9.
|
|
40
|
+
"prettier": "^3.9.8",
|
|
41
41
|
"tsup": "^8.5.1",
|
|
42
42
|
"typescript-eslint": "^8.70.0"
|
|
43
43
|
},
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Location, Promotion, PromotionAssoc } from "../../../shared/entities/stock";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = PromotionAssoc;
|
|
4
|
-
export declare const Route = "promotion_assoc";
|
|
5
|
-
interface IFindDetailedResponse extends Entity {
|
|
6
|
-
location: Location | null;
|
|
7
|
-
promotion: Promotion;
|
|
8
|
-
}
|
|
9
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "location" | "promotion">;
|
|
10
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
11
|
-
export type IFindRequest = Record<string, unknown>;
|
|
12
|
-
export type IFindResponse = Omit<IFindDetailedResponse, "location" | "promotion">;
|
|
13
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
14
|
-
}
|
|
15
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "location" | "promotion">>;
|
|
16
|
-
export interface ICreateRequest {
|
|
17
|
-
client_id: string;
|
|
18
|
-
location_id: string;
|
|
19
|
-
product_id: string;
|
|
20
|
-
promotion_id: string;
|
|
21
|
-
}
|
|
22
|
-
export interface IUpdateRequest {
|
|
23
|
-
client_id?: string;
|
|
24
|
-
location_id?: string;
|
|
25
|
-
product_id?: string;
|
|
26
|
-
promotion_id?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface IRepository {
|
|
29
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
30
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
31
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
32
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
33
|
-
create(data: ICreateRequest): Promise<IFindByOwnerIdResponse>;
|
|
34
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
35
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
36
|
-
}
|
|
37
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
38
|
-
export {};
|