@nomalism-com/types 0.34.39 → 0.35.1
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 +41 -2
- package/dist/index.js +41 -2
- package/dist/main.d.ts +3 -1
- package/dist/modules/stock/sideMenu/interface.d.ts +0 -1
- package/dist/modules/stock/tag/interface.d.ts +23 -0
- package/dist/modules/stock/tag/route.schema.d.ts +3 -0
- package/dist/modules/supply/documentHeader/interfaces.d.ts +0 -3
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +0 -1
- package/dist/shared/entities/stock.d.ts +16 -1
- package/package-lock.json +213 -256
- package/package.json +1 -1
- package/src/main.ts +7 -0
- package/src/modules/stock/sideMenu/interface.ts +0 -1
- package/src/modules/stock/tag/interface.ts +34 -0
- package/src/modules/stock/tag/route.schema.ts +20 -0
- package/src/modules/supply/documentHeader/interfaces.ts +0 -3
- package/src/modules/supply/documentHeader/route.schema.ts +0 -1
- package/src/modules/supply/externalDocumentHeader/interface.ts +0 -1
- package/src/modules/user/persona/route.schema.ts +1 -3
- package/src/shared/entities/stock.ts +17 -1
package/dist/index.cjs
CHANGED
|
@@ -190,6 +190,8 @@ __export(main_exports, {
|
|
|
190
190
|
StoreOperatorRoutes: () => route_schema_exports48,
|
|
191
191
|
Swift: () => interface_exports29,
|
|
192
192
|
SwiftRoutes: () => route_schema_exports49,
|
|
193
|
+
Tag: () => interface_exports59,
|
|
194
|
+
TagRoutes: () => route_schema_exports111,
|
|
193
195
|
Task: () => interface_exports50,
|
|
194
196
|
TaskMessage: () => interface_exports51,
|
|
195
197
|
TaskMessageRoutes: () => route_schema_exports101,
|
|
@@ -1654,7 +1656,6 @@ var updateBodyKeys9 = {
|
|
|
1654
1656
|
is_archived: joi11.boolean().optional(),
|
|
1655
1657
|
is_void: joi11.boolean().optional(),
|
|
1656
1658
|
who_handles: joi11.string().allow(null).optional(),
|
|
1657
|
-
tags: joi11.string().allow(null, "").optional(),
|
|
1658
1659
|
warning: joi11.string().optional().valid(...Object.values(IWarningType)),
|
|
1659
1660
|
created_by: joi11.string().uuid().allow(null).optional()
|
|
1660
1661
|
};
|
|
@@ -4517,7 +4518,7 @@ __export(route_schema_exports81, {
|
|
|
4517
4518
|
updateBody: () => updateBody51
|
|
4518
4519
|
});
|
|
4519
4520
|
import joi82 from "joi";
|
|
4520
|
-
var emailSchema = joi82.string().trim(true).lowercase().email({ tlds: { allow: false } })
|
|
4521
|
+
var emailSchema = joi82.string().trim(true).lowercase().email({ tlds: { allow: false } });
|
|
4521
4522
|
var createBodyKeys56 = {
|
|
4522
4523
|
name: joi82.string().allow(null, "").optional(),
|
|
4523
4524
|
nif: joi82.string().allow(null, "").optional(),
|
|
@@ -5817,6 +5818,44 @@ var createOrUpdateBodyKeys2 = {
|
|
|
5817
5818
|
};
|
|
5818
5819
|
var createOrUpdateBody2 = joi111.object().keys(createOrUpdateBodyKeys2).messages(messages);
|
|
5819
5820
|
|
|
5821
|
+
// src/modules/stock/tag/interface.ts
|
|
5822
|
+
var interface_exports59 = {};
|
|
5823
|
+
__export(interface_exports59, {
|
|
5824
|
+
ITagType: () => ITagType,
|
|
5825
|
+
ITagTypeEnum: () => ITagTypeEnum,
|
|
5826
|
+
LowerName: () => LowerName104,
|
|
5827
|
+
Route: () => Route105,
|
|
5828
|
+
UpperName: () => UpperName104
|
|
5829
|
+
});
|
|
5830
|
+
var Route105 = "tag";
|
|
5831
|
+
var UpperName104 = "Tag";
|
|
5832
|
+
var LowerName104 = UpperName104[0].toLowerCase() + UpperName104.substring(1);
|
|
5833
|
+
var ITagTypeEnum = {
|
|
5834
|
+
private: "private",
|
|
5835
|
+
public: "public"
|
|
5836
|
+
};
|
|
5837
|
+
var ITagType = Object.keys(ITagTypeEnum);
|
|
5838
|
+
|
|
5839
|
+
// src/modules/stock/tag/route.schema.ts
|
|
5840
|
+
var route_schema_exports111 = {};
|
|
5841
|
+
__export(route_schema_exports111, {
|
|
5842
|
+
createBody: () => createBody70,
|
|
5843
|
+
updateBody: () => updateBody61
|
|
5844
|
+
});
|
|
5845
|
+
import joi112 from "joi";
|
|
5846
|
+
var createBodyKeys69 = {
|
|
5847
|
+
document_header_id: joi112.string().uuid().required(),
|
|
5848
|
+
index: joi112.number().allow(0).required(),
|
|
5849
|
+
text: joi112.string().required(),
|
|
5850
|
+
type: joi112.string().valid("private", "public").required()
|
|
5851
|
+
};
|
|
5852
|
+
var createBody70 = joi112.object().keys(createBodyKeys69).messages(messages);
|
|
5853
|
+
var updateBodyKeys59 = {
|
|
5854
|
+
index: joi112.number().allow(0).optional(),
|
|
5855
|
+
type: joi112.string().valid("private", "public").optional()
|
|
5856
|
+
};
|
|
5857
|
+
var updateBody61 = joi112.object().keys(updateBodyKeys59).messages(messages);
|
|
5858
|
+
|
|
5820
5859
|
// src/index.ts
|
|
5821
5860
|
var index_default = main_exports;
|
|
5822
5861
|
export {
|
package/dist/index.js
CHANGED
|
@@ -190,6 +190,8 @@ __export(main_exports, {
|
|
|
190
190
|
StoreOperatorRoutes: () => route_schema_exports48,
|
|
191
191
|
Swift: () => interface_exports29,
|
|
192
192
|
SwiftRoutes: () => route_schema_exports49,
|
|
193
|
+
Tag: () => interface_exports59,
|
|
194
|
+
TagRoutes: () => route_schema_exports111,
|
|
193
195
|
Task: () => interface_exports50,
|
|
194
196
|
TaskMessage: () => interface_exports51,
|
|
195
197
|
TaskMessageRoutes: () => route_schema_exports101,
|
|
@@ -1654,7 +1656,6 @@ var updateBodyKeys9 = {
|
|
|
1654
1656
|
is_archived: joi11.boolean().optional(),
|
|
1655
1657
|
is_void: joi11.boolean().optional(),
|
|
1656
1658
|
who_handles: joi11.string().allow(null).optional(),
|
|
1657
|
-
tags: joi11.string().allow(null, "").optional(),
|
|
1658
1659
|
warning: joi11.string().optional().valid(...Object.values(IWarningType)),
|
|
1659
1660
|
created_by: joi11.string().uuid().allow(null).optional()
|
|
1660
1661
|
};
|
|
@@ -4517,7 +4518,7 @@ __export(route_schema_exports81, {
|
|
|
4517
4518
|
updateBody: () => updateBody51
|
|
4518
4519
|
});
|
|
4519
4520
|
import joi82 from "joi";
|
|
4520
|
-
var emailSchema = joi82.string().trim(true).lowercase().email({ tlds: { allow: false } })
|
|
4521
|
+
var emailSchema = joi82.string().trim(true).lowercase().email({ tlds: { allow: false } });
|
|
4521
4522
|
var createBodyKeys56 = {
|
|
4522
4523
|
name: joi82.string().allow(null, "").optional(),
|
|
4523
4524
|
nif: joi82.string().allow(null, "").optional(),
|
|
@@ -5817,6 +5818,44 @@ var createOrUpdateBodyKeys2 = {
|
|
|
5817
5818
|
};
|
|
5818
5819
|
var createOrUpdateBody2 = joi111.object().keys(createOrUpdateBodyKeys2).messages(messages);
|
|
5819
5820
|
|
|
5821
|
+
// src/modules/stock/tag/interface.ts
|
|
5822
|
+
var interface_exports59 = {};
|
|
5823
|
+
__export(interface_exports59, {
|
|
5824
|
+
ITagType: () => ITagType,
|
|
5825
|
+
ITagTypeEnum: () => ITagTypeEnum,
|
|
5826
|
+
LowerName: () => LowerName104,
|
|
5827
|
+
Route: () => Route105,
|
|
5828
|
+
UpperName: () => UpperName104
|
|
5829
|
+
});
|
|
5830
|
+
var Route105 = "tag";
|
|
5831
|
+
var UpperName104 = "Tag";
|
|
5832
|
+
var LowerName104 = UpperName104[0].toLowerCase() + UpperName104.substring(1);
|
|
5833
|
+
var ITagTypeEnum = {
|
|
5834
|
+
private: "private",
|
|
5835
|
+
public: "public"
|
|
5836
|
+
};
|
|
5837
|
+
var ITagType = Object.keys(ITagTypeEnum);
|
|
5838
|
+
|
|
5839
|
+
// src/modules/stock/tag/route.schema.ts
|
|
5840
|
+
var route_schema_exports111 = {};
|
|
5841
|
+
__export(route_schema_exports111, {
|
|
5842
|
+
createBody: () => createBody70,
|
|
5843
|
+
updateBody: () => updateBody61
|
|
5844
|
+
});
|
|
5845
|
+
import joi112 from "joi";
|
|
5846
|
+
var createBodyKeys69 = {
|
|
5847
|
+
document_header_id: joi112.string().uuid().required(),
|
|
5848
|
+
index: joi112.number().allow(0).required(),
|
|
5849
|
+
text: joi112.string().required(),
|
|
5850
|
+
type: joi112.string().valid("private", "public").required()
|
|
5851
|
+
};
|
|
5852
|
+
var createBody70 = joi112.object().keys(createBodyKeys69).messages(messages);
|
|
5853
|
+
var updateBodyKeys59 = {
|
|
5854
|
+
index: joi112.number().allow(0).optional(),
|
|
5855
|
+
type: joi112.string().valid("private", "public").optional()
|
|
5856
|
+
};
|
|
5857
|
+
var updateBody61 = joi112.object().keys(updateBodyKeys59).messages(messages);
|
|
5858
|
+
|
|
5820
5859
|
// src/index.ts
|
|
5821
5860
|
var index_default = main_exports;
|
|
5822
5861
|
export {
|
package/dist/main.d.ts
CHANGED
|
@@ -229,4 +229,6 @@ import * as DocumentLineMt from './modules/supply/documentLineMT/interface';
|
|
|
229
229
|
import * as DocumentLineMtRoutes from './modules/supply/documentLineMT/route.schema';
|
|
230
230
|
import * as ChatSubscriber from './modules/user/chatSubscribers/interfaces';
|
|
231
231
|
import * as ChatSubscriberRoutes from './modules/user/chatSubscribers/route.schema';
|
|
232
|
-
|
|
232
|
+
import * as Tag from './modules/stock/tag/interface';
|
|
233
|
+
import * as TagRoutes from './modules/stock/tag/route.schema';
|
|
234
|
+
export { shared, viewErrors, stockErrors, userErrors, documentManagementErrors, integrationErrors, ZipCode, ZipCodeRoutes, BankData, BankDataRoutes, Client, ClientRoutes, ClientType, ClientTypeRoutes, ClientCurrentAccount, ClientCurrentAccountRoutes, Chat, ChatRoutes, Commissioner, CommissionerRoutes, Counter, CounterRoutes, Country, CountryRoutes, DeliveryMethods, DeliveryMethodsRoutes, DocumentHeader, DocumentHeaderRoutes, BillOfLading, BillOfLadingRoutes, ProductionOrder, ProductionOrderRoutes, Proforma, ProformaRoutes, PropostaFornecedor, PropostaFornecedorRoutes, ProviderCreditNoteFromReturn, ProviderCreditNoteFromReturnRoutes, ProviderFinancialCreditNote, ProviderFinancialCreditNoteRoutes, ProviderServiceInvoice, ProviderServiceInvoiceRoutes, DocumentLine, DocumentLineRoutes, DocumentLineAssoc, DocumentLineAssocRoutes, DocumentSet, DocumentSetRoutes, DocumentType, DocumentTypeRoutes, ExternalDocumentType, ExternalDocumentHeader, ExternalDocumentHeaderRoutes, Favorites, FavoritesRoutes, File, FileRoutes, GroupPermissions, GroupPermissionsRoutes, GoogleSheets, GoogleSheetsRoutes, Language, LanguageRoutes, Location, LocationRoutes, MaturityDates, MaturityDatesRoutes, Multimedia, MultimediaRoutes, OrderManagement, Observation, ObservationRoutes, ObservationType, ObservationTypeRoutes, Password, PasswordRoutes, Payment, PaymentRoutes, PaymentMethods, PaymentMethodsRoutes, Permissions, PermissionsRoutes, ProductImage, ProductImageRoutes, Promotion, PromotionRoutes, PromotionAssoc, PromotionAssocRoutes, Providers, ProvidersRoutes, ProviderType, ProviderTypeRoutes, ProviderCurrentAccount, ProviderCurrentAccountRoutes, PurchaseConditions, PurchaseConditionsRoutes, ReasonForExemption, ReasonForExemptionRoutes, RefreshToken, RefreshTokenRoutes, SegmentsArea, SegmentsAreaRoutes, Sessions, SessionsRoutes, Shippings, ShippingsRoutes, StoreOperator, StoreOperatorRoutes, Swift, SwiftRoutes, TypeOfLocation, TypeOfLocationRoutes, UnitOfMeasure, UnitOfMeasureRoutes, UserPermissions, UserPermissionsRoutes, UserPositions, UserPositionsRoutes, Users, UsersRoutes, UserTokens, UserTokensRoutes, VatValidation, VatValidationRoutes, VatTax, VatTaxRoutes, VatTaxZone, VatTaxZoneRoutes, Vehicles, VehiclesRoutes, Workflow, WorkflowRoutes, StockMovement, StockMovementRoutes, Tenant, TenantRoutes, PreSale, PreSaleRoutes, PreSaleProduct, PreSaleProductRoutes, Npc, NpcRoutes, Printer, PrinterRoutes, SchedulePrintJob, SchedulePrintJobRoutes, QueryList, QueryListRoutes, QueryParameter, QueryParameterRoutes, ReturnReason, ReturnReasonRoutes, PropostaSheets, PropostaSheetsRoutes, Schedule, ScheduleRoutes, GoogleFilePermission, GoogleFilePermissionRoutes, Settings, SettingsRoutes, Tickets, TicketsRoutes, Channel, ChannelRoutes, TicketsLanguage, TicketsLanguageRoutes, CLT, CLTRoutes, StartDocumentHeaderLastUpdate, Persona, PersonaRoutes, ProjectInfo, ProjectInfoRoutes, EmailVerification, EmailVerificationRoutes, EmailLog, EmailLogRoutes, Purchase, PurchaseRoutes, Order, OrderRoutes, MaterialEntrance, MaterialEntranceRoutes, Transformado, TransformadoRoutes, Quebra, QuebraRoutes, UpfrontReturn, UpfrontReturnRoutes, SavedEmPicking, SavedEmPickingRoutes, EmailTemplate, EmailTemplateRoutes, EmailTemplateAttachment, EmailTemplateAttachmentRoutes, Inventario, InventarioRoutes, ReturnToProvider, ReturnToProviderRoutes, Prison, PrisonRoutes, DocumentLineNote, DocumentLineNoteRoutes, SavedProviderProposal, SavedProviderProposalRoutes, ProductGoogleSheets, ProductGoogleSheetsRoutes, Task, TaskRoutes, TaskMessage, TaskMessageRoutes, RecurrentTasks, TaskRead, TaskReadRoutes, Theme, ThemeRoutes, Dashboard, DashboardRoutes, ChatRapidMessage, ChatRapidMessageRoutes, SideMenu, SideMenuRoutes, AdminPanel, ErrorLog, ErrorLogRoutes, DocumentLineRm, DocumentLineRmRoutes, DocumentLineMt, DocumentLineMtRoutes, ChatSubscriber, ChatSubscriberRoutes, Tag, TagRoutes, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as IShared from '../../../shared/interface';
|
|
2
|
+
import { Tag } from '../../../shared/entities/stock';
|
|
3
|
+
export type Entity = Tag;
|
|
4
|
+
export declare const Route = "tag";
|
|
5
|
+
export declare const UpperName = "Tag";
|
|
6
|
+
export declare const LowerName: string;
|
|
7
|
+
export declare const ITagTypeEnum: {
|
|
8
|
+
private: 'private';
|
|
9
|
+
public: 'public';
|
|
10
|
+
};
|
|
11
|
+
export type ITagType = (typeof ITagTypeEnum)[keyof typeof ITagTypeEnum];
|
|
12
|
+
export declare const ITagType: string[];
|
|
13
|
+
export type ICreateRequest = Omit<Entity, 'id' | 'createdAt' | 'updatedAt'>;
|
|
14
|
+
export type IUpdateRequest = Pick<Entity, 'index' | 'type'>;
|
|
15
|
+
export type IFindResponse = Omit<Entity, 'createdAt' | 'updatedAt'>;
|
|
16
|
+
export interface IRepository {
|
|
17
|
+
create(data: ICreateRequest): Promise<void>;
|
|
18
|
+
findByDocumentHeaderId(selector: IShared.IFindByIdRequest): Promise<IFindResponse[]>;
|
|
19
|
+
findById(selector: IShared.IFindByIdRequest): Promise<IFindResponse>;
|
|
20
|
+
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
21
|
+
delete(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -170,7 +170,6 @@ export interface IUpdateRequest {
|
|
|
170
170
|
is_archived?: boolean;
|
|
171
171
|
is_void?: boolean;
|
|
172
172
|
who_handles?: string | null;
|
|
173
|
-
tags?: string | null;
|
|
174
173
|
warning?: IWarningType;
|
|
175
174
|
created_by?: string;
|
|
176
175
|
}
|
|
@@ -203,7 +202,6 @@ export interface IFindResponse {
|
|
|
203
202
|
total: number;
|
|
204
203
|
emission_date: string;
|
|
205
204
|
line_count: number;
|
|
206
|
-
tags: string;
|
|
207
205
|
is_void: boolean;
|
|
208
206
|
is_archived: boolean;
|
|
209
207
|
adjudicado: boolean;
|
|
@@ -287,7 +285,6 @@ export interface IFindRmOpenDocuments {
|
|
|
287
285
|
document_header_id: string;
|
|
288
286
|
document_number: string;
|
|
289
287
|
identifier: string;
|
|
290
|
-
tags: string | null;
|
|
291
288
|
upfront_total: number | null;
|
|
292
289
|
who_handles: string | null;
|
|
293
290
|
document_lines: {
|
|
@@ -3,6 +3,7 @@ import { IDocumentTypeUserType, IDocumentTypeCodeType } from '../../modules/supp
|
|
|
3
3
|
import { IBatchType, IPaymentOrigin } from '../../modules/supply/payment/interface';
|
|
4
4
|
import { IProductType } from '../../modules/stock/productGoogleSheets/interface';
|
|
5
5
|
import { IImageType } from '../../modules/stock/productImage/interface';
|
|
6
|
+
import { ITagType } from '../../modules/stock/tag/interface';
|
|
6
7
|
import { IQueryParameterDatatype } from '../../modules/stock/queryParameter/interfaces';
|
|
7
8
|
import { IData, IDataDocumentoPago, IDataPagamento, IPromotions, type IImportedFromSheets } from '../../modules/supply/documentLine/interfaces';
|
|
8
9
|
import { IPhcDocumentType } from '../../modules/supply/clientCurrentAccount/interfaces';
|
|
@@ -318,7 +319,6 @@ export type DocumentHeader = {
|
|
|
318
319
|
is_void: boolean;
|
|
319
320
|
origin_id: string | null;
|
|
320
321
|
who_handles: string | null;
|
|
321
|
-
tags: string | null;
|
|
322
322
|
warning: string | null;
|
|
323
323
|
created_at: Date;
|
|
324
324
|
updated_at: Date;
|
|
@@ -1206,3 +1206,18 @@ export type DocumentLineMT = {
|
|
|
1206
1206
|
created_at: Date;
|
|
1207
1207
|
updated_at: Date;
|
|
1208
1208
|
};
|
|
1209
|
+
/**
|
|
1210
|
+
* Model Tag
|
|
1211
|
+
*
|
|
1212
|
+
*/
|
|
1213
|
+
export type Tag = {
|
|
1214
|
+
id: string;
|
|
1215
|
+
text: string;
|
|
1216
|
+
index: number;
|
|
1217
|
+
type: ITagType;
|
|
1218
|
+
document_header_id: string;
|
|
1219
|
+
created_by: string;
|
|
1220
|
+
updated_by: string;
|
|
1221
|
+
created_at: Date;
|
|
1222
|
+
updated_at: Date;
|
|
1223
|
+
};
|