@nomalism-com/types 0.11.18 → 0.11.20
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.
|
@@ -200,8 +200,8 @@ export interface IUpdateRequest {
|
|
|
200
200
|
commissioner_id?: string | null;
|
|
201
201
|
commission_percentage?: number;
|
|
202
202
|
commission_paid?: boolean;
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
is_archived?: boolean;
|
|
204
|
+
is_void?: boolean;
|
|
205
205
|
}
|
|
206
206
|
export interface IGetActionsResponse {
|
|
207
207
|
document_type: DocumentType;
|
|
@@ -344,16 +344,14 @@ export interface IRepository {
|
|
|
344
344
|
createProviderServiceInvoice(params: ICreateProviderServiceInvoiceRequest): Promise<void>;
|
|
345
345
|
createProviderCreditNoteFromReturn(params: ICreateProviderCreditNoteFromReturnRequest): Promise<void>;
|
|
346
346
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity>;
|
|
347
|
-
updateDocumentLineAssocExternalIdAndExternalData(documentHeaderId: string, externalData: unknown): Promise<void>;
|
|
348
347
|
updateManyWithPersona(params: IUpdateManyWithPersona): Promise<void>;
|
|
349
348
|
transferClientOwnership(params: ITransferOwnershipRequest): Promise<void>;
|
|
350
|
-
rollback(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
351
349
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
352
350
|
sendClientNotification(selector: IShared.IFindByIdRequest, data: ISendClientNotificationRequest): Promise<void>;
|
|
353
351
|
markUnsentClientNotification(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
354
352
|
documentPdf(selector: IShared.IFindByIdRequest, data: IDocumentPdfRequest): Promise<string>;
|
|
355
353
|
}
|
|
356
|
-
export type IApi = Omit<IRepository, '
|
|
354
|
+
export type IApi = Omit<IRepository, 'createFromHeader' | 'createProductionOrder'> & {
|
|
357
355
|
createFromHeader(data: ICreateFromHeaderRequest): Promise<IShared.ITaskCluster[]>;
|
|
358
356
|
createProductionOrder(data: ICreateProductionOrderRequest): Promise<void>;
|
|
359
357
|
};
|
|
@@ -237,8 +237,8 @@ var updateBodyKeys = {
|
|
|
237
237
|
commissioner_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
238
238
|
commission_percentage: joi_1.default.number().positive().allow(0).optional(),
|
|
239
239
|
commission_paid: joi_1.default.boolean().optional(),
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
is_archived: joi_1.default.boolean().optional(),
|
|
241
|
+
is_void: joi_1.default.boolean().optional(),
|
|
242
242
|
};
|
|
243
243
|
exports.updateBody = joi_1.default
|
|
244
244
|
.object()
|
|
@@ -568,8 +568,8 @@ export type DocumentHeader = {
|
|
|
568
568
|
commission_percentage: number;
|
|
569
569
|
commission_paid: boolean;
|
|
570
570
|
return_reason: string | null;
|
|
571
|
-
|
|
572
|
-
|
|
571
|
+
is_archived: boolean;
|
|
572
|
+
is_void: boolean;
|
|
573
573
|
origin_id: string | null;
|
|
574
574
|
created_at: Date;
|
|
575
575
|
updated_at: Date;
|