asv-hlps 1.0.73 → 1.0.76

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,6 +1,6 @@
1
1
  import { NaCoAc } from "../../shared/NaCoAc";
2
2
  import { AuthTagCat } from "./AuthTagCat";
3
3
  export interface AuthTag extends NaCoAc {
4
- cat: AuthTagCat;
4
+ cat?: AuthTagCat;
5
5
  isChecked?: boolean;
6
6
  }
@@ -3,25 +3,25 @@ import { User } from "../users/User";
3
3
  import { BillLine } from "./BillLine";
4
4
  import { BillPayment } from "./BillPayment";
5
5
  export interface Bill {
6
- id: number;
7
- createdAt: Date;
8
- ref: string;
9
- totalAmount: number;
10
- isPaid: boolean;
11
- isPartialPaid: boolean;
12
- paidDate: Date;
13
- dueAmount: number;
14
- escompteAmount: number;
15
- totalAmountAllIncluded: number;
16
- hasTva: boolean;
17
- isBack: boolean;
18
- fromCron: boolean;
19
- nbPrint: number;
6
+ id?: number;
7
+ createdAt?: Date;
8
+ ref?: string;
9
+ totalAmount?: number;
10
+ isPaid?: boolean;
11
+ isPartialPaid?: boolean;
12
+ paidDate?: Date;
13
+ dueAmount?: number;
14
+ escompteAmount?: number;
15
+ totalAmountAllIncluded?: number;
16
+ hasTva?: boolean;
17
+ isBack?: boolean;
18
+ fromCron?: boolean;
19
+ nbPrint?: number;
20
20
  payments?: BillPayment[];
21
- lines: BillLine[];
22
- type: "sale" | "avoir";
23
- store: string;
24
- client: User;
25
- sales: Sale[];
26
- nbrePayment: number;
21
+ lines?: BillLine[];
22
+ type?: "sale" | "avoir";
23
+ store?: string;
24
+ client?: User;
25
+ sales?: Sale[];
26
+ nbrePayment?: number;
27
27
  }
@@ -1,9 +1,9 @@
1
1
  import { Bill } from "./Bill";
2
2
  export interface BillLine {
3
- id: number;
4
- createdAt: Date;
5
- amount: number;
6
- designation: string;
7
- isActive: true;
8
- bill: Bill;
3
+ id?: number;
4
+ createdAt?: Date;
5
+ amount?: number;
6
+ designation?: string;
7
+ isActive?: true;
8
+ bill?: Bill;
9
9
  }
@@ -6,15 +6,15 @@ import { BillPaymentMethod } from "./BillPaymentMethod";
6
6
  export interface BillPayment {
7
7
  id: number;
8
8
  ref?: string;
9
- paymentDate: Date;
10
- prevAmount: number;
11
- paidAmount: number;
12
- restAmount: number;
13
- bill: Bill;
14
- method: BillPaymentMethod;
15
- checkNumber: string;
16
- checkDate: string;
17
- bank: Bank;
18
- account: Account;
19
- encoder: User;
9
+ paymentDate?: Date;
10
+ prevAmount?: number;
11
+ paidAmount?: number;
12
+ restAmount?: number;
13
+ bill?: Bill;
14
+ method?: BillPaymentMethod;
15
+ checkNumber?: string;
16
+ checkDate?: string;
17
+ bank?: Bank;
18
+ account?: Account;
19
+ encoder?: User;
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import { Bank } from "./Bank";
2
2
  export interface Account {
3
3
  id: number;
4
- name: string;
5
- bank: Bank;
4
+ name?: string;
5
+ bank?: Bank;
6
6
  }
@@ -1,4 +1,4 @@
1
1
  export interface Bank {
2
- id: number;
3
- name: string;
2
+ id?: number;
3
+ name?: string;
4
4
  }
@@ -3,24 +3,24 @@ import { ProductOutReason } from "../products/ProductOutReason";
3
3
  import { Sale } from "./Sale";
4
4
  import { SaleProductLot } from "./SaleProductLot";
5
5
  export declare class SaleProduct {
6
- id: number;
7
- createdAt: Date;
8
- qtityFund: number;
9
- qtityOdr: number;
10
- qtityDlvr: number;
11
- qtityFree: number;
12
- qtityBack: number;
13
- publicPrice: number;
14
- unitPrice: number;
15
- speUnitPrice: number;
16
- pghtPrice: number;
17
- promo: number;
18
- tva: number;
19
- isBack: boolean;
20
- hasBack: boolean;
21
- product: Product;
22
- sale: Sale;
23
- lot: string;
24
- lots: SaleProductLot[];
25
- backReason: ProductOutReason;
6
+ id?: number;
7
+ createdAt?: Date;
8
+ qtityFund?: number;
9
+ qtityOdr?: number;
10
+ qtityDlvr?: number;
11
+ qtityFree?: number;
12
+ qtityBack?: number;
13
+ publicPrice?: number;
14
+ unitPrice?: number;
15
+ speUnitPrice?: number;
16
+ pghtPrice?: number;
17
+ promo?: number;
18
+ tva?: number;
19
+ isBack?: boolean;
20
+ hasBack?: boolean;
21
+ product?: Product;
22
+ sale?: Sale;
23
+ lot?: string;
24
+ lots?: SaleProductLot[];
25
+ backReason?: ProductOutReason;
26
26
  }
@@ -1,6 +1,6 @@
1
1
  export interface Gender {
2
2
  id: number;
3
- name: string;
4
- avatar: string;
5
- abr: string;
3
+ name?: string;
4
+ avatar?: string;
5
+ abr?: string;
6
6
  }
@@ -4,12 +4,12 @@ import { User } from "./User";
4
4
  import { Zone } from "./Zone";
5
5
  export interface Ste extends Address {
6
6
  id: number;
7
- name: string;
8
- username: string;
7
+ name?: string;
8
+ username?: string;
9
9
  shortname?: string;
10
- nif: string;
11
- isValided: boolean;
12
- isActive: boolean;
10
+ nif?: string;
11
+ isValided?: boolean;
12
+ isActive?: boolean;
13
13
  user?: User;
14
14
  grp?: SteGrp;
15
15
  zone?: Zone;
@@ -1,4 +1,4 @@
1
1
  import { NaCoShortAc } from "../../shared/NaCoShortAc";
2
2
  export interface UserGrp extends NaCoShortAc {
3
- coef: number;
3
+ coef?: number;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import { NaCoAc } from "../../shared/NaCoAc";
2
2
  import { AuthTagCat } from "./AuthTagCat";
3
3
  export interface AuthTag extends NaCoAc {
4
- cat: AuthTagCat;
4
+ cat?: AuthTagCat;
5
5
  isChecked?: boolean;
6
6
  }
@@ -3,25 +3,25 @@ import { User } from "../users/User";
3
3
  import { BillLine } from "./BillLine";
4
4
  import { BillPayment } from "./BillPayment";
5
5
  export interface Bill {
6
- id: number;
7
- createdAt: Date;
8
- ref: string;
9
- totalAmount: number;
10
- isPaid: boolean;
11
- isPartialPaid: boolean;
12
- paidDate: Date;
13
- dueAmount: number;
14
- escompteAmount: number;
15
- totalAmountAllIncluded: number;
16
- hasTva: boolean;
17
- isBack: boolean;
18
- fromCron: boolean;
19
- nbPrint: number;
6
+ id?: number;
7
+ createdAt?: Date;
8
+ ref?: string;
9
+ totalAmount?: number;
10
+ isPaid?: boolean;
11
+ isPartialPaid?: boolean;
12
+ paidDate?: Date;
13
+ dueAmount?: number;
14
+ escompteAmount?: number;
15
+ totalAmountAllIncluded?: number;
16
+ hasTva?: boolean;
17
+ isBack?: boolean;
18
+ fromCron?: boolean;
19
+ nbPrint?: number;
20
20
  payments?: BillPayment[];
21
- lines: BillLine[];
22
- type: "sale" | "avoir";
23
- store: string;
24
- client: User;
25
- sales: Sale[];
26
- nbrePayment: number;
21
+ lines?: BillLine[];
22
+ type?: "sale" | "avoir";
23
+ store?: string;
24
+ client?: User;
25
+ sales?: Sale[];
26
+ nbrePayment?: number;
27
27
  }
@@ -1,9 +1,9 @@
1
1
  import { Bill } from "./Bill";
2
2
  export interface BillLine {
3
- id: number;
4
- createdAt: Date;
5
- amount: number;
6
- designation: string;
7
- isActive: true;
8
- bill: Bill;
3
+ id?: number;
4
+ createdAt?: Date;
5
+ amount?: number;
6
+ designation?: string;
7
+ isActive?: true;
8
+ bill?: Bill;
9
9
  }
@@ -6,15 +6,15 @@ import { BillPaymentMethod } from "./BillPaymentMethod";
6
6
  export interface BillPayment {
7
7
  id: number;
8
8
  ref?: string;
9
- paymentDate: Date;
10
- prevAmount: number;
11
- paidAmount: number;
12
- restAmount: number;
13
- bill: Bill;
14
- method: BillPaymentMethod;
15
- checkNumber: string;
16
- checkDate: string;
17
- bank: Bank;
18
- account: Account;
19
- encoder: User;
9
+ paymentDate?: Date;
10
+ prevAmount?: number;
11
+ paidAmount?: number;
12
+ restAmount?: number;
13
+ bill?: Bill;
14
+ method?: BillPaymentMethod;
15
+ checkNumber?: string;
16
+ checkDate?: string;
17
+ bank?: Bank;
18
+ account?: Account;
19
+ encoder?: User;
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import { Bank } from "./Bank";
2
2
  export interface Account {
3
3
  id: number;
4
- name: string;
5
- bank: Bank;
4
+ name?: string;
5
+ bank?: Bank;
6
6
  }
@@ -1,4 +1,4 @@
1
1
  export interface Bank {
2
- id: number;
3
- name: string;
2
+ id?: number;
3
+ name?: string;
4
4
  }
@@ -3,24 +3,24 @@ import { ProductOutReason } from "../products/ProductOutReason";
3
3
  import { Sale } from "./Sale";
4
4
  import { SaleProductLot } from "./SaleProductLot";
5
5
  export declare class SaleProduct {
6
- id: number;
7
- createdAt: Date;
8
- qtityFund: number;
9
- qtityOdr: number;
10
- qtityDlvr: number;
11
- qtityFree: number;
12
- qtityBack: number;
13
- publicPrice: number;
14
- unitPrice: number;
15
- speUnitPrice: number;
16
- pghtPrice: number;
17
- promo: number;
18
- tva: number;
19
- isBack: boolean;
20
- hasBack: boolean;
21
- product: Product;
22
- sale: Sale;
23
- lot: string;
24
- lots: SaleProductLot[];
25
- backReason: ProductOutReason;
6
+ id?: number;
7
+ createdAt?: Date;
8
+ qtityFund?: number;
9
+ qtityOdr?: number;
10
+ qtityDlvr?: number;
11
+ qtityFree?: number;
12
+ qtityBack?: number;
13
+ publicPrice?: number;
14
+ unitPrice?: number;
15
+ speUnitPrice?: number;
16
+ pghtPrice?: number;
17
+ promo?: number;
18
+ tva?: number;
19
+ isBack?: boolean;
20
+ hasBack?: boolean;
21
+ product?: Product;
22
+ sale?: Sale;
23
+ lot?: string;
24
+ lots?: SaleProductLot[];
25
+ backReason?: ProductOutReason;
26
26
  }
@@ -1,6 +1,6 @@
1
1
  export interface Gender {
2
2
  id: number;
3
- name: string;
4
- avatar: string;
5
- abr: string;
3
+ name?: string;
4
+ avatar?: string;
5
+ abr?: string;
6
6
  }
@@ -4,12 +4,12 @@ import { User } from "./User";
4
4
  import { Zone } from "./Zone";
5
5
  export interface Ste extends Address {
6
6
  id: number;
7
- name: string;
8
- username: string;
7
+ name?: string;
8
+ username?: string;
9
9
  shortname?: string;
10
- nif: string;
11
- isValided: boolean;
12
- isActive: boolean;
10
+ nif?: string;
11
+ isValided?: boolean;
12
+ isActive?: boolean;
13
13
  user?: User;
14
14
  grp?: SteGrp;
15
15
  zone?: Zone;
@@ -1,4 +1,4 @@
1
1
  import { NaCoShortAc } from "../../shared/NaCoShortAc";
2
2
  export interface UserGrp extends NaCoShortAc {
3
- coef: number;
3
+ coef?: number;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.0.73",
3
+ "version": "1.0.76",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",