@nomalism-com/types 0.27.81 → 0.27.83
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.
|
@@ -211,7 +211,7 @@ export interface IUpdateRequest {
|
|
|
211
211
|
created_by?: string;
|
|
212
212
|
chat_token_active?: boolean;
|
|
213
213
|
}
|
|
214
|
-
export type IGetActionsDocumentType = Pick<DocumentType, "user_type" | "allow_create_from_header_without_lines" | "pay" | "credit" | "debit" | "invoice" | "code" | "return" | "allow_duplicates" | "duplicate_group" | "id">;
|
|
214
|
+
export type IGetActionsDocumentType = Pick<DocumentType, "user_type" | "allow_create_from_header_without_lines" | "pay" | "credit" | "debit" | "invoice" | "code" | "return" | "allow_duplicates" | "duplicate_group" | "id" | 'description'>;
|
|
215
215
|
export interface IGetActionsResponse {
|
|
216
216
|
document_type: IGetActionsDocumentType;
|
|
217
217
|
transition_name: string;
|
|
@@ -55,15 +55,12 @@ export type ISendEmailDocumentRequest = IShared.RequireOnlyOne<ISendEmailDocumen
|
|
|
55
55
|
export interface IRepository {
|
|
56
56
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
57
57
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse>;
|
|
58
|
-
sendEmailDocument: (data: ISendEmailDocumentRequest) => Promise<
|
|
58
|
+
sendEmailDocument: (data: ISendEmailDocumentRequest) => Promise<void>;
|
|
59
59
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
60
60
|
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
61
61
|
create(data: ICreateRequest): Promise<Entity>;
|
|
62
62
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
63
63
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
64
64
|
}
|
|
65
|
-
export type IApi = Omit<IRepository, "sendEmailDocument"> & {
|
|
66
|
-
sendEmailDocument: (data: ISendEmailDocumentRequest) => Promise<void>;
|
|
67
|
-
};
|
|
68
65
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
69
66
|
export {};
|