asv-hlps 1.0.70 → 1.0.71

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
- import { User } from "../..";
2
1
  import { Account } from "../cashs/Account";
3
2
  import { Bank } from "../cashs/Bank";
3
+ import { User } from "../users/User";
4
4
  import { Bill } from "./Bill";
5
5
  import { BillPaymentMethod } from "./BillPaymentMethod";
6
6
  export interface BillPayment {
@@ -1,4 +1,4 @@
1
- import { User } from "../..";
1
+ import { User } from "../users/User";
2
2
  import { BuyItem } from "./BuyItem";
3
3
  export interface Buy {
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import { User } from "../..";
1
+ import { User } from "../users/User";
2
2
  import { Bank } from "./Bank";
3
3
  export interface Deposit {
4
4
  id: number;
@@ -1,5 +1,5 @@
1
- import { User } from "../..";
2
1
  import { BillPaymentMethod } from "../bills/BillPaymentMethod";
2
+ import { User } from "../users/User";
3
3
  import { Account } from "./Account";
4
4
  import { Bank } from "./Bank";
5
5
  export interface Feed {
@@ -1,5 +1,5 @@
1
- import { User } from "../..";
2
1
  import { Entry } from "../comptas/Entry";
2
+ import { User } from "../users/User";
3
3
  export interface Spent {
4
4
  id: number;
5
5
  createdAt: Date;
@@ -1,9 +1,11 @@
1
- import { Product, User, Bill } from "../..";
2
- import { BillPayment } from "../bills/BillPayment";
3
- import { Spent } from "../cashs/Spent";
4
1
  import { EntryCat } from "./EntryCat";
5
2
  import { EntryLine } from "./EntryLine";
6
3
  import { OhadaCat } from "./OhadaCat";
4
+ import { BillPayment } from "../bills/BillPayment";
5
+ import { Spent } from "../cashs/Spent";
6
+ import { Product } from "../products/Product";
7
+ import { User } from "../users/User";
8
+ import { Bill } from "../bills/Bill";
7
9
  export interface Entry {
8
10
  id: number;
9
11
  ref: string;
@@ -1,4 +1,6 @@
1
- import { Bill, Product, User } from "../..";
1
+ import { Bill } from "../bills/Bill";
2
+ import { Product } from "../products/Product";
3
+ import { User } from "../users/User";
2
4
  export interface EntryLine {
3
5
  id: number;
4
6
  createdAt?: Date;
@@ -1,4 +1,4 @@
1
- import { UserRole } from "../..";
1
+ import { UserRole } from "../users/UserRole";
2
2
  import { Faq } from "./Faq";
3
3
  export interface FaqCat {
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import { User } from "../../..";
1
+ import { User } from "../users/User";
2
2
  import { MsgAbs } from "./MsgAbs";
3
3
  export interface Mail extends MsgAbs {
4
4
  read: boolean;
@@ -1,4 +1,5 @@
1
- import { UserRole, SteGrp } from "../../..";
1
+ import { SteGrp } from "../users/SteGrp";
2
+ import { UserRole } from "../users/UserRole";
2
3
  import { MsgAbs } from "./MsgAbs";
3
4
  export interface MsgAlert extends MsgAbs {
4
5
  startDate: string;
@@ -1,3 +1,3 @@
1
- import { Product, User } from ".";
1
+ import { Product, User } from "./models";
2
2
  export declare const unitPriceByClientCat: (product: Product, client: User, speUnitPrice?: number, addDiscount?: boolean) => number;
3
3
  export declare const productCatCode: (product: Product, catCodes: string[]) => boolean;
package/lib/cjs/sale.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Sale } from ".";
1
+ import { Sale } from "./models";
2
2
  export declare const getNbProductsOnSale: (sale: Sale) => number;
3
3
  export declare const getTotalTvaOnSale: (sale: Sale, dlvr?: boolean) => number;
4
4
  export declare const getSubTotalAmountOnSale: (sale: Sale, dlvr?: boolean) => number;
package/lib/cjs/user.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { User, Ste } from ".";
1
+ import { Ste, User } from "./models";
2
2
  export declare const inGrp: (grps: string[], user: User) => boolean;
3
3
  export declare const inSteGrp: (grps: string[], user: User) => boolean;
4
4
  export declare const hasRole: (roles: string[], user: User) => boolean;
@@ -1,6 +1,6 @@
1
- import { User } from "../..";
2
1
  import { Account } from "../cashs/Account";
3
2
  import { Bank } from "../cashs/Bank";
3
+ import { User } from "../users/User";
4
4
  import { Bill } from "./Bill";
5
5
  import { BillPaymentMethod } from "./BillPaymentMethod";
6
6
  export interface BillPayment {
@@ -1,4 +1,4 @@
1
- import { User } from "../..";
1
+ import { User } from "../users/User";
2
2
  import { BuyItem } from "./BuyItem";
3
3
  export interface Buy {
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import { User } from "../..";
1
+ import { User } from "../users/User";
2
2
  import { Bank } from "./Bank";
3
3
  export interface Deposit {
4
4
  id: number;
@@ -1,5 +1,5 @@
1
- import { User } from "../..";
2
1
  import { BillPaymentMethod } from "../bills/BillPaymentMethod";
2
+ import { User } from "../users/User";
3
3
  import { Account } from "./Account";
4
4
  import { Bank } from "./Bank";
5
5
  export interface Feed {
@@ -1,5 +1,5 @@
1
- import { User } from "../..";
2
1
  import { Entry } from "../comptas/Entry";
2
+ import { User } from "../users/User";
3
3
  export interface Spent {
4
4
  id: number;
5
5
  createdAt: Date;
@@ -1,9 +1,11 @@
1
- import { Product, User, Bill } from "../..";
2
- import { BillPayment } from "../bills/BillPayment";
3
- import { Spent } from "../cashs/Spent";
4
1
  import { EntryCat } from "./EntryCat";
5
2
  import { EntryLine } from "./EntryLine";
6
3
  import { OhadaCat } from "./OhadaCat";
4
+ import { BillPayment } from "../bills/BillPayment";
5
+ import { Spent } from "../cashs/Spent";
6
+ import { Product } from "../products/Product";
7
+ import { User } from "../users/User";
8
+ import { Bill } from "../bills/Bill";
7
9
  export interface Entry {
8
10
  id: number;
9
11
  ref: string;
@@ -1,4 +1,6 @@
1
- import { Bill, Product, User } from "../..";
1
+ import { Bill } from "../bills/Bill";
2
+ import { Product } from "../products/Product";
3
+ import { User } from "../users/User";
2
4
  export interface EntryLine {
3
5
  id: number;
4
6
  createdAt?: Date;
@@ -1,4 +1,4 @@
1
- import { UserRole } from "../..";
1
+ import { UserRole } from "../users/UserRole";
2
2
  import { Faq } from "./Faq";
3
3
  export interface FaqCat {
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import { User } from "../../..";
1
+ import { User } from "../users/User";
2
2
  import { MsgAbs } from "./MsgAbs";
3
3
  export interface Mail extends MsgAbs {
4
4
  read: boolean;
@@ -1,4 +1,5 @@
1
- import { UserRole, SteGrp } from "../../..";
1
+ import { SteGrp } from "../users/SteGrp";
2
+ import { UserRole } from "../users/UserRole";
2
3
  import { MsgAbs } from "./MsgAbs";
3
4
  export interface MsgAlert extends MsgAbs {
4
5
  startDate: string;
@@ -1,3 +1,3 @@
1
- import { Product, User } from ".";
1
+ import { Product, User } from "./models";
2
2
  export declare const unitPriceByClientCat: (product: Product, client: User, speUnitPrice?: number, addDiscount?: boolean) => number;
3
3
  export declare const productCatCode: (product: Product, catCodes: string[]) => boolean;
package/lib/esm/sale.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Sale } from ".";
1
+ import { Sale } from "./models";
2
2
  export declare const getNbProductsOnSale: (sale: Sale) => number;
3
3
  export declare const getTotalTvaOnSale: (sale: Sale, dlvr?: boolean) => number;
4
4
  export declare const getSubTotalAmountOnSale: (sale: Sale, dlvr?: boolean) => number;
package/lib/esm/user.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { User, Ste } from ".";
1
+ import { Ste, User } from "./models";
2
2
  export declare const inGrp: (grps: string[], user: User) => boolean;
3
3
  export declare const inSteGrp: (grps: string[], user: User) => boolean;
4
4
  export declare const hasRole: (roles: string[], user: User) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",