@nomalism-com/types 0.18.21 → 0.18.23

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.
@@ -1,8 +1,8 @@
1
- import * as IShared from '../../../shared/interface';
2
- import { DocumentHeader, DocumentHeaderVirtuals, DocumentType, StartDocumentHeaderVirtuals, DocumentHeaderClientPaymentVirtuals, DocumentSet, Payment, DocumentLineNote } from '../../../shared/entities';
3
- import * as IDocumentType from '../documentType/interfaces';
4
- import * as IPayment from '../payment/interface';
5
- export type Entity = Omit<DocumentHeader, 'external_data'>;
1
+ import * as IShared from "../../../shared/interface";
2
+ import { DocumentHeader, DocumentHeaderVirtuals, DocumentType, StartDocumentHeaderVirtuals, DocumentHeaderClientPaymentVirtuals, DocumentSet, Payment, DocumentLineNote } from "../../../shared/entities";
3
+ import * as IDocumentType from "../documentType/interfaces";
4
+ import * as IPayment from "../payment/interface";
5
+ export type Entity = Omit<DocumentHeader, "external_data">;
6
6
  export declare const Route = "documentHeader";
7
7
  export declare const UpperName = "DocumentHeader";
8
8
  export declare const LowerName: string;
@@ -16,8 +16,12 @@ export interface IFindOneResponse extends Entity {
16
16
  start_virtual: StartDocumentHeaderVirtuals | null;
17
17
  virtual: DocumentHeaderVirtuals | null;
18
18
  }
19
- type IFindStartResponseOmitVirtual = Omit<IFindOneResponse, 'virtual'>;
19
+ type IFindStartResponseOmitVirtual = Omit<IFindOneResponse, "virtual">;
20
20
  export interface IFindStartResponse extends IFindStartResponseOmitVirtual {
21
+ last_google_sheet_import: {
22
+ done: boolean;
23
+ error: string | null;
24
+ } | null;
21
25
  client_balance?: number | null;
22
26
  }
23
27
  export interface IFindByDocumentLineStateRequest {
@@ -295,7 +299,7 @@ export interface ITransferOwnershipRequest {
295
299
  document_header_id: string;
296
300
  client_id: string;
297
301
  }
298
- export type IFindResponse = Pick<Entity, 'document_number' | 'id'> & {
302
+ export type IFindResponse = Pick<Entity, "document_number" | "id"> & {
299
303
  legacy_id: string | null;
300
304
  total: number;
301
305
  emission_date: string;
@@ -403,7 +407,7 @@ export interface IRepository {
403
407
  documentList(selector: IShared.IFindByIdRequest, params: IDocumentListRequest): Promise<IDocumentListResponse[]>;
404
408
  createProviderProposal(data: IProviderProposalRequest): Promise<string>;
405
409
  }
406
- export type IApi = Omit<IRepository, 'createFromHeader' | 'createProductionOrder'> & {
410
+ export type IApi = Omit<IRepository, "createFromHeader" | "createProductionOrder"> & {
407
411
  createFromHeader(data: ICreateFromHeaderRequest): Promise<IShared.ITaskCluster[]>;
408
412
  createProductionOrder(data: ICreateProductionOrderRequest): Promise<void>;
409
413
  };
@@ -23,13 +23,10 @@ export interface IFindProviderProductsResponse {
23
23
  multimedia_id: string | null;
24
24
  price_cost: string;
25
25
  price_sale: string;
26
- margin: string;
27
26
  available: string;
28
27
  ordered_quantity: string;
29
28
  client_quantity: string;
30
- last_ef_date: string;
31
29
  last_em_date: string;
32
- pfs: IFindProviderProductsPfs[];
33
30
  pre_ordered_quantity: number;
34
31
  }
35
32
  export interface IFindProductHistoryRequest {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.18.21",
12
+ "version": "0.18.23",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [