@openbox/shared-types 0.2.18 → 0.2.19
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.
- package/lib/customers/Branches/CreateMany/Response.d.ts +2 -4
- package/lib/customers/Branches/CreateSingle/Response.d.ts +2 -4
- package/lib/customers/Branches/DeleteMany/Request.d.ts +1 -1
- package/lib/customers/Branches/DeleteMany/Response.d.ts +2 -4
- package/lib/customers/Branches/DeleteSingle/Response.d.ts +2 -4
- package/lib/customers/Branches/GetMany/Response.d.ts +1 -1
- package/lib/customers/Branches/UpdateMany/Request.d.ts +3 -1
- package/lib/customers/Branches/UpdateMany/Response.d.ts +2 -4
- package/lib/customers/Branches/UpdateSingle/Response.d.ts +2 -4
- package/lib/customers/Branches/UpdateSingleDefault/Response.d.ts +2 -4
- package/lib/customers/Branches/customers.branches.interfaces.d.ts +6 -6
- package/lib/customers/Customers/CreateMany/Request.d.ts +1 -3
- package/lib/customers/Customers/CreateMany/Response.d.ts +2 -4
- package/lib/customers/Customers/CreateSingle/Response.d.ts +2 -4
- package/lib/customers/Customers/DeleteMany/Request.d.ts +3 -3
- package/lib/customers/Customers/DeleteMany/Response.d.ts +2 -4
- package/lib/customers/Customers/DeleteSingle/Response.d.ts +2 -4
- package/lib/customers/Customers/GetMany/Response.d.ts +1 -1
- package/lib/customers/Customers/GetSingle/Response.d.ts +1 -3
- package/lib/customers/Customers/UpdateMany/Request.d.ts +3 -3
- package/lib/customers/Customers/UpdateMany/Response.d.ts +2 -4
- package/lib/customers/Customers/UpdateManyStatuses/Request.d.ts +3 -3
- package/lib/customers/Customers/UpdateManyStatuses/Response.d.ts +2 -4
- package/lib/customers/Customers/UpdateSingle/Response.d.ts +2 -4
- package/lib/customers/Customers/UpdateSingleStatus/Request.d.ts +2 -2
- package/lib/customers/Customers/UpdateSingleStatus/Response.d.ts +2 -4
- package/lib/customers/Customers/customers.interfaces.d.ts +2 -2
- package/lib/interfaces.d.ts +9 -9
- package/lib/invoices/Documents/documents.interfaces.d.ts +2 -2
- package/lib/invoices/Invoices/invoices.interfaces.d.ts +6 -6
- package/lib/invoices/PaymentConditions/CreateMany/Request.d.ts +1 -3
- package/lib/invoices/PaymentConditions/CreateSingle/Request.d.ts +2 -2
- package/lib/invoices/PaymentConditions/GetMany/Response.d.ts +2 -2
- package/lib/invoices/PaymentConditions/GetSingle/Response.d.ts +2 -4
- package/lib/invoices/PaymentConditions/UpdateMany/Request.d.ts +3 -3
- package/lib/invoices/PaymentConditions/UpdateManyStatuses/Request.d.ts +3 -3
- package/lib/invoices/PaymentConditions/UpdateSingle/Request.d.ts +1 -1
- package/lib/invoices/PaymentConditions/UpdateSingleStatus/Request.d.ts +2 -2
- package/lib/invoices/PaymentConditions/UpdateSingleStatus/Response.d.ts +2 -4
- package/lib/invoices/PaymentConditions/{payment-conditions.interface.d.ts → invoices.payment-conditions.interface.d.ts} +3 -3
- package/lib/invoices/PaymentConditions/invoices.payment-conditions.interface.js +3 -0
- package/lib/invoices/PaymentConditions/invoices.payment-conditions.interface.js.map +1 -0
- package/lib/invoices/Sellers/CreateSingle/Request.d.ts +1 -1
- package/lib/invoices/Sellers/GetMany/Response.d.ts +1 -1
- package/lib/invoices/Sellers/GetSingle/Response.d.ts +1 -1
- package/lib/invoices/Sellers/UpdateMany/Request.d.ts +3 -1
- package/lib/invoices/Sellers/UpdateManyStatuses/Request.d.ts +1 -1
- package/lib/invoices/Sellers/UpdateSingle/Request.d.ts +1 -1
- package/lib/invoices/Sellers/UpdateSingleStatus/Request.d.ts +1 -1
- package/lib/invoices/Sellers/{sellers.interface.d.ts → invoices.sellers.interface.d.ts} +1 -1
- package/lib/invoices/{Statuses/statuses.interfaces.js → Sellers/invoices.sellers.interface.js} +1 -1
- package/lib/invoices/Sellers/invoices.sellers.interface.js.map +1 -0
- package/lib/invoices/Statuses/GetMany/Response.d.ts +2 -5
- package/lib/invoices/Statuses/GetSingle/Response.d.ts +2 -0
- package/lib/invoices/Statuses/GetSingle/Response.js.map +1 -0
- package/lib/invoices/Statuses/index.d.ts +1 -2
- package/lib/invoices/Statuses/index.js +1 -2
- package/lib/invoices/Statuses/index.js.map +1 -1
- package/lib/invoices/Statuses/invoices.statuses.interfaces.d.ts +6 -0
- package/lib/invoices/{PaymentConditions/payment-conditions.interface.js → Statuses/invoices.statuses.interfaces.js} +1 -1
- package/lib/invoices/Statuses/invoices.statuses.interfaces.js.map +1 -0
- package/lib/invoices/Zones/CreateSingle/Request.d.ts +1 -1
- package/lib/invoices/Zones/GetMany/Response.d.ts +2 -2
- package/lib/invoices/Zones/GetSingle/Response.d.ts +1 -1
- package/lib/invoices/Zones/UpdateMany/Request.d.ts +3 -1
- package/lib/invoices/Zones/UpdateManyStatuses/Request.d.ts +2 -2
- package/lib/invoices/Zones/UpdateSingle/Request.d.ts +1 -1
- package/lib/invoices/Zones/UpdateSingleStatus/Request.d.ts +1 -1
- package/lib/invoices/Zones/{interfaces.d.ts → invoices.zones.interfaces.d.ts} +2 -2
- package/lib/invoices/{Sellers/sellers.interface.js → Zones/invoices.zones.interfaces.js} +1 -1
- package/lib/invoices/Zones/invoices.zones.interfaces.js.map +1 -0
- package/lib/services/Services/DeleteMany/Request.d.ts +3 -3
- package/lib/services/Services/DeleteMany/Response.d.ts +2 -3
- package/lib/services/Services/DeleteSingle/Response.d.ts +2 -3
- package/lib/services/Services/GetMany/Request.d.ts +1 -1
- package/lib/services/Services/GetMany/Response.d.ts +1 -1
- package/lib/services/Services/GetSingle/Response.d.ts +1 -3
- package/lib/services/Services/UpdateManyStatuses/Request.d.ts +3 -3
- package/lib/services/Services/UpdateManyStatuses/Response.d.ts +2 -3
- package/lib/services/Services/UpdateSingle/Response.d.ts +2 -3
- package/lib/services/Services/UpdateSingleStatus/Request.d.ts +2 -2
- package/lib/services/Services/UpdateSingleStatus/Response.d.ts +2 -3
- package/lib/system/Cities/GetMany/Response.d.ts +1 -3
- package/lib/system/Cities/GetSingle/Response.d.ts +2 -4
- package/lib/system/Cities/system.cities.interfaces.d.ts +3 -3
- package/lib/system/Countries/GetMany/Response.d.ts +1 -3
- package/lib/system/Countries/GetSingle/Response.d.ts +2 -4
- package/lib/system/Countries/system.countries.interfaces.d.ts +2 -2
- package/lib/system/NaturalTypes/GetMany/Response.d.ts +1 -3
- package/lib/system/NaturalTypes/GetSingle/Response.d.ts +2 -4
- package/lib/system/NaturalTypes/system.natural-types.interfaces.d.ts +6 -0
- package/lib/system/NaturalTypes/system.natural-types.interfaces.js +3 -0
- package/lib/system/NaturalTypes/system.natural-types.interfaces.js.map +1 -0
- package/lib/system/PersonTypes/GetMany/Response.d.ts +1 -3
- package/lib/system/PersonTypes/GetSingle/Response.d.ts +2 -4
- package/lib/system/PersonTypes/system.person-types.interfaces.d.ts +6 -0
- package/lib/system/PersonTypes/system.person-types.interfaces.js +3 -0
- package/lib/system/PersonTypes/system.person-types.interfaces.js.map +1 -0
- package/lib/system/SellingTypes/GetMany/Response.d.ts +1 -3
- package/lib/system/States/GetMany/Response.d.ts +1 -3
- package/lib/system/States/GetSingle/Response.d.ts +2 -4
- package/lib/system/States/system.states.interfaces.d.ts +2 -2
- package/lib/system/TaxerTypes/GetMany/Response.d.ts +1 -3
- package/lib/system/TaxerTypes/GetSingle/Response.d.ts +2 -4
- package/lib/system/TaxerTypes/system.taxer-types.interfaces.d.ts +6 -0
- package/lib/{invoices/Statuses/UpdateSingle/Request.js → system/TaxerTypes/system.taxer-types.interfaces.js} +1 -1
- package/lib/system/TaxerTypes/system.taxer-types.interfaces.js.map +1 -0
- package/package.json +1 -1
- package/src/customers/Branches/CreateMany/Response.ts +3 -4
- package/src/customers/Branches/CreateSingle/Response.ts +3 -4
- package/src/customers/Branches/DeleteMany/Request.ts +1 -1
- package/src/customers/Branches/DeleteMany/Response.ts +3 -4
- package/src/customers/Branches/DeleteSingle/Response.ts +3 -4
- package/src/customers/Branches/GetMany/Response.ts +1 -1
- package/src/customers/Branches/UpdateMany/Request.ts +5 -1
- package/src/customers/Branches/UpdateMany/Response.ts +3 -4
- package/src/customers/Branches/UpdateSingle/Response.ts +3 -4
- package/src/customers/Branches/UpdateSingleDefault/Response.ts +3 -4
- package/src/customers/Branches/customers.branches.interfaces.ts +4 -4
- package/src/customers/Customers/CreateMany/Request.ts +1 -3
- package/src/customers/Customers/CreateMany/Response.ts +3 -4
- package/src/customers/Customers/CreateSingle/Response.ts +3 -4
- package/src/customers/Customers/DeleteMany/Request.ts +2 -2
- package/src/customers/Customers/DeleteMany/Response.ts +3 -4
- package/src/customers/Customers/DeleteSingle/Response.ts +3 -4
- package/src/customers/Customers/GetMany/Response.ts +1 -1
- package/src/customers/Customers/GetSingle/Response.ts +1 -3
- package/src/customers/Customers/UpdateMany/Request.ts +5 -3
- package/src/customers/Customers/UpdateMany/Response.ts +3 -4
- package/src/customers/Customers/UpdateManyStatuses/Request.ts +2 -2
- package/src/customers/Customers/UpdateManyStatuses/Response.ts +3 -4
- package/src/customers/Customers/UpdateSingle/Response.ts +3 -4
- package/src/customers/Customers/UpdateSingleStatus/Request.ts +1 -1
- package/src/customers/Customers/UpdateSingleStatus/Response.ts +3 -4
- package/src/customers/Customers/customers.interfaces.ts +1 -1
- package/src/interfaces.ts +5 -5
- package/src/invoices/Documents/documents.interfaces.ts +1 -1
- package/src/invoices/Invoices/invoices.interfaces.ts +5 -5
- package/src/invoices/PaymentConditions/CreateMany/Request.ts +2 -3
- package/src/invoices/PaymentConditions/CreateSingle/Request.ts +2 -5
- package/src/invoices/PaymentConditions/GetMany/Response.ts +2 -2
- package/src/invoices/PaymentConditions/GetSingle/Response.ts +2 -4
- package/src/invoices/PaymentConditions/UpdateMany/Request.ts +5 -3
- package/src/invoices/PaymentConditions/UpdateManyStatuses/Request.ts +2 -2
- package/src/invoices/PaymentConditions/UpdateSingle/Request.ts +1 -1
- package/src/invoices/PaymentConditions/UpdateSingleStatus/Request.ts +1 -1
- package/src/invoices/PaymentConditions/UpdateSingleStatus/Response.ts +3 -4
- package/src/invoices/PaymentConditions/{payment-conditions.interface.ts → invoices.payment-conditions.interface.ts} +2 -2
- package/src/invoices/Sellers/CreateSingle/Request.ts +1 -1
- package/src/invoices/Sellers/GetMany/Response.ts +1 -1
- package/src/invoices/Sellers/GetSingle/Response.ts +1 -1
- package/src/invoices/Sellers/UpdateMany/Request.ts +5 -1
- package/src/invoices/Sellers/UpdateManyStatuses/Request.ts +1 -1
- package/src/invoices/Sellers/UpdateSingle/Request.ts +1 -1
- package/src/invoices/Sellers/UpdateSingleStatus/Request.ts +1 -1
- package/src/invoices/Sellers/{sellers.interface.ts → invoices.sellers.interface.ts} +1 -1
- package/src/invoices/Statuses/GetMany/Response.ts +2 -5
- package/src/invoices/Statuses/GetSingle/Response.ts +3 -0
- package/src/invoices/Statuses/index.ts +1 -2
- package/src/invoices/Statuses/invoices.statuses.interfaces.ts +7 -0
- package/src/invoices/Zones/CreateSingle/Request.ts +1 -1
- package/src/invoices/Zones/GetMany/Response.ts +2 -2
- package/src/invoices/Zones/GetSingle/Response.ts +1 -1
- package/src/invoices/Zones/UpdateMany/Request.ts +5 -1
- package/src/invoices/Zones/UpdateManyStatuses/Request.ts +2 -2
- package/src/invoices/Zones/UpdateSingle/Request.ts +1 -1
- package/src/invoices/Zones/UpdateSingleStatus/Request.ts +1 -1
- package/src/invoices/Zones/{interfaces.ts → invoices.zones.interfaces.ts} +1 -1
- package/src/services/Services/DeleteMany/Request.ts +2 -2
- package/src/services/Services/DeleteMany/Response.ts +3 -3
- package/src/services/Services/DeleteSingle/Response.ts +3 -3
- package/src/services/Services/GetMany/Request.ts +1 -1
- package/src/services/Services/GetMany/Response.ts +1 -1
- package/src/services/Services/GetSingle/Response.ts +1 -3
- package/src/services/Services/UpdateManyStatuses/Request.ts +2 -2
- package/src/services/Services/UpdateManyStatuses/Response.ts +3 -3
- package/src/services/Services/UpdateSingle/Response.ts +3 -3
- package/src/services/Services/UpdateSingleStatus/Request.ts +1 -1
- package/src/services/Services/UpdateSingleStatus/Response.ts +3 -3
- package/src/system/Cities/GetMany/Response.ts +1 -3
- package/src/system/Cities/GetSingle/Response.ts +3 -4
- package/src/system/Cities/system.cities.interfaces.ts +2 -2
- package/src/system/Countries/GetMany/Response.ts +1 -3
- package/src/system/Countries/GetSingle/Response.ts +3 -4
- package/src/system/Countries/system.countries.interfaces.ts +1 -1
- package/src/system/NaturalTypes/GetMany/Response.ts +1 -3
- package/src/system/NaturalTypes/GetSingle/Response.ts +3 -4
- package/src/system/NaturalTypes/system.natural-types.interfaces.ts +7 -0
- package/src/system/PersonTypes/GetMany/Response.ts +1 -3
- package/src/system/PersonTypes/GetSingle/Response.ts +3 -4
- package/src/system/PersonTypes/system.person-types.interfaces.ts +7 -0
- package/src/system/SellingTypes/GetMany/Response.ts +1 -3
- package/src/system/States/GetMany/Response.ts +1 -3
- package/src/system/States/GetSingle/Response.ts +3 -4
- package/src/system/States/system.states.interfaces.ts +1 -1
- package/src/system/TaxerTypes/GetMany/Response.ts +1 -3
- package/src/system/TaxerTypes/GetSingle/Response.ts +3 -4
- package/src/system/TaxerTypes/system.taxer-types.interfaces.ts +7 -0
- package/lib/invoices/PaymentConditions/payment-conditions.interface.js.map +0 -1
- package/lib/invoices/Sellers/sellers.interface.js.map +0 -1
- package/lib/invoices/Statuses/UpdateSingle/Request.d.ts +0 -4
- package/lib/invoices/Statuses/UpdateSingle/Request.js.map +0 -1
- package/lib/invoices/Statuses/UpdateSingle/Response.d.ts +0 -2
- package/lib/invoices/Statuses/UpdateSingle/Response.js.map +0 -1
- package/lib/invoices/Statuses/statuses.interfaces.d.ts +0 -4
- package/lib/invoices/Statuses/statuses.interfaces.js.map +0 -1
- package/lib/invoices/Zones/interfaces.js +0 -3
- package/lib/invoices/Zones/interfaces.js.map +0 -1
- package/src/invoices/Statuses/UpdateSingle/Request.ts +0 -4
- package/src/invoices/Statuses/UpdateSingle/Response.ts +0 -3
- package/src/invoices/Statuses/statuses.interfaces.ts +0 -4
- /package/lib/invoices/Statuses/{UpdateSingle → GetSingle}/Response.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces';
|
|
2
2
|
import { CustomersBranchesResponse } from '../customers.branches.interfaces';
|
|
3
3
|
export type CustomersBranchesGetManyResponse = GetManyResponse & {
|
|
4
|
-
data: CustomersBranchesResponse
|
|
4
|
+
data: Array<CustomersBranchesResponse>;
|
|
5
5
|
};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { CustomersBranchesUpdateSingleRequest } from '../UpdateSingle/Request';
|
|
2
|
-
export type CustomersBranchesUpdateManyRequest = Array<CustomersBranchesUpdateSingleRequest
|
|
2
|
+
export type CustomersBranchesUpdateManyRequest = Array<CustomersBranchesUpdateSingleRequest & {
|
|
3
|
+
id: string;
|
|
4
|
+
}>;
|
|
@@ -2,11 +2,11 @@ import { SystemCities } from '../../system/Cities/system.cities.interfaces';
|
|
|
2
2
|
import { SystemCountries } from '../../system/Countries/system.countries.interfaces';
|
|
3
3
|
import { SystemStates } from '../../system/States/system.states.interfaces';
|
|
4
4
|
import { Customers } from '../Customers/customers.interfaces';
|
|
5
|
-
export
|
|
6
|
-
phones: string
|
|
7
|
-
emails: string
|
|
8
|
-
}
|
|
9
|
-
export
|
|
5
|
+
export type CustomerBranchesContactInfo = {
|
|
6
|
+
phones: Array<string>;
|
|
7
|
+
emails: Array<string>;
|
|
8
|
+
};
|
|
9
|
+
export type CustomersBranches = {
|
|
10
10
|
id: string;
|
|
11
11
|
name: string;
|
|
12
12
|
contactName: string;
|
|
@@ -19,7 +19,7 @@ export interface CustomersBranches {
|
|
|
19
19
|
city: SystemCities;
|
|
20
20
|
country: SystemCountries;
|
|
21
21
|
state: SystemStates;
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
23
|
export type CustomersBranchesRequest = Omit<CustomersBranches, 'id' | 'city' | 'country' | 'state' | 'customer'> & {
|
|
24
24
|
customer: string;
|
|
25
25
|
city: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
ids: string
|
|
3
|
-
}
|
|
1
|
+
export type CustomersDeleteManyRequest = {
|
|
2
|
+
ids: Array<string>;
|
|
3
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CustomersUpdateSingleRequest } from '../UpdateSingle/Request';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
export type CustomersUpdateManyRequest = Array<CustomersUpdateSingleRequest & {
|
|
3
|
+
id: string;
|
|
4
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
ids: string
|
|
1
|
+
export type CustomerUpdateManyStatusesRequest = {
|
|
2
|
+
ids: Array<string>;
|
|
3
3
|
active: boolean;
|
|
4
|
-
}
|
|
4
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type CustomersUpdateSingleStatusRequest = {
|
|
2
2
|
active: boolean;
|
|
3
|
-
}
|
|
3
|
+
};
|
|
@@ -3,7 +3,7 @@ import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetS
|
|
|
3
3
|
import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response';
|
|
4
4
|
import { SystemTaxerTypesGetSingleResponse } from '../../system/TaxerTypes/GetSingle/Response';
|
|
5
5
|
import { CustomersBranchesCreateSingleRequest } from '../Branches';
|
|
6
|
-
export
|
|
6
|
+
export type Customers = {
|
|
7
7
|
id: string;
|
|
8
8
|
name: string;
|
|
9
9
|
name1?: string;
|
|
@@ -29,7 +29,7 @@ export interface Customers {
|
|
|
29
29
|
personType: SystemPersonTypeGetSingleResponse;
|
|
30
30
|
customerType: SystemSellingTypeGetSingleResponse;
|
|
31
31
|
customerTypeNatural: SystemNaturalTypesGetSingleResponse;
|
|
32
|
-
}
|
|
32
|
+
};
|
|
33
33
|
export type CustomersRequest = Omit<Customers, 'id' | 'customerTaxerType' | 'personType' | 'customerType' | 'customerTypeNatural'> & {
|
|
34
34
|
customerTaxerType: number;
|
|
35
35
|
personType: number;
|
package/lib/interfaces.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type GetManyRequest = {
|
|
2
2
|
limit?: number;
|
|
3
3
|
page?: number;
|
|
4
4
|
search?: string;
|
|
5
5
|
prop?: string;
|
|
6
6
|
order?: string;
|
|
7
|
-
}
|
|
8
|
-
export
|
|
7
|
+
};
|
|
8
|
+
export type GetManyResponse = {
|
|
9
9
|
count: number;
|
|
10
10
|
page: number;
|
|
11
11
|
limit: number;
|
|
12
|
-
}
|
|
13
|
-
export
|
|
12
|
+
};
|
|
13
|
+
export type SingleResponse = {
|
|
14
14
|
id: string;
|
|
15
15
|
message: string;
|
|
16
|
-
}
|
|
17
|
-
export
|
|
18
|
-
ids: string
|
|
16
|
+
};
|
|
17
|
+
export type ManyResponse = {
|
|
18
|
+
ids: Array<string>;
|
|
19
19
|
message: string;
|
|
20
|
-
}
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InvoicesDocumentTypes } from '../invoices.interfaces';
|
|
2
|
-
export
|
|
2
|
+
export type InvoicesDocuments = {
|
|
3
3
|
id: string;
|
|
4
4
|
authorization?: string;
|
|
5
5
|
initial?: number;
|
|
@@ -9,6 +9,6 @@ export interface InvoicesDocuments {
|
|
|
9
9
|
used: boolean;
|
|
10
10
|
isCurrentDocument: boolean;
|
|
11
11
|
documentType: Omit<InvoicesDocumentTypes, 'includeInTaxes, showForNonTaxers'>;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
export type InvoicesDocumentsRequest = Omit<InvoicesDocuments, 'id'>;
|
|
14
14
|
export type InvoicesDocumentsResponse = InvoicesDocuments;
|
|
@@ -4,14 +4,14 @@ import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/G
|
|
|
4
4
|
import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response';
|
|
5
5
|
import { InvoicesCalculationsDetailsResponse, InvoicesCalculationsTotalsResponse } from '../Calculation';
|
|
6
6
|
import { InvoicesDocumentsResponse } from '../Documents/documents.interfaces';
|
|
7
|
-
import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/payment-conditions.interface';
|
|
8
|
-
import { InvoicesSellersResponse } from '../Sellers/sellers.interface';
|
|
9
|
-
import { InvoicesStatusesResponse } from '../Statuses/statuses.interfaces';
|
|
10
|
-
import { InvoicesZones } from '../Zones/interfaces';
|
|
7
|
+
import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/invoices.payment-conditions.interface';
|
|
8
|
+
import { InvoicesSellersResponse } from '../Sellers/invoices.sellers.interface';
|
|
9
|
+
import { InvoicesStatusesResponse } from '../Statuses/invoices.statuses.interfaces';
|
|
10
|
+
import { InvoicesZones } from '../Zones/invoices.zones.interfaces';
|
|
11
11
|
import { InvoicesDocumentTypes } from '../invoices.interfaces';
|
|
12
12
|
export type InvoicesDetails = InvoicesCalculationsDetailsResponse;
|
|
13
13
|
export type InvoicesTotals = InvoicesCalculationsTotalsResponse;
|
|
14
|
-
export
|
|
14
|
+
export type Invoices = {
|
|
15
15
|
id: string;
|
|
16
16
|
authorization: string;
|
|
17
17
|
sequence: string;
|
|
@@ -54,4 +54,4 @@ export interface Invoices {
|
|
|
54
54
|
document: InvoicesDocumentsResponse;
|
|
55
55
|
details: InvoicesDetails[];
|
|
56
56
|
totals: InvoicesTotals[];
|
|
57
|
-
}
|
|
57
|
+
};
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { InvoicesPaymentConditionsCreateSingleRequest } from '../CreateSingle/Request';
|
|
2
|
-
export
|
|
3
|
-
data: InvoicesPaymentConditionsCreateSingleRequest[];
|
|
4
|
-
}
|
|
2
|
+
export type InvoicesPaymentConditionsCreateManyRequest = Array<InvoicesPaymentConditionsCreateSingleRequest>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesPaymentConditionsRequest } from '../payment-conditions.interface';
|
|
2
|
-
export type InvoicesPaymentConditionsCreateSingleRequest =
|
|
1
|
+
import { InvoicesPaymentConditionsRequest } from '../invoices.payment-conditions.interface';
|
|
2
|
+
export type InvoicesPaymentConditionsCreateSingleRequest = InvoicesPaymentConditionsRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces';
|
|
2
|
-
import { InvoicesPaymentConditionsResponse } from '../payment-conditions.interface';
|
|
2
|
+
import { InvoicesPaymentConditionsResponse } from '../invoices.payment-conditions.interface';
|
|
3
3
|
export type InvoicesPaymentsConditionsGetManyResponse = GetManyResponse & {
|
|
4
|
-
data: InvoicesPaymentConditionsResponse
|
|
4
|
+
data: Array<InvoicesPaymentConditionsResponse>;
|
|
5
5
|
};
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { InvoicesPaymentConditionsResponse } from '../payment-conditions.interface';
|
|
2
|
-
export
|
|
3
|
-
data: InvoicesPaymentConditionsResponse;
|
|
4
|
-
}
|
|
1
|
+
import { InvoicesPaymentConditionsResponse } from '../invoices.payment-conditions.interface';
|
|
2
|
+
export type InvoicesPaymentConditionsGetSingleResponse = InvoicesPaymentConditionsResponse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InvoicesPaymentsConditionsUpdateSingleRequest } from '../UpdateSingle/Request';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
export type InvoicesPaymentConditionsUpdateManyRequest = Array<InvoicesPaymentsConditionsUpdateSingleRequest & {
|
|
3
|
+
id: string;
|
|
4
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
ids: string
|
|
1
|
+
export type InvoicesPaymentConditionsUpdateManyStatusesRequest = {
|
|
2
|
+
ids: Array<string>;
|
|
3
3
|
active: boolean;
|
|
4
|
-
}
|
|
4
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesPaymentConditionsRequest } from '../payment-conditions.interface';
|
|
1
|
+
import { InvoicesPaymentConditionsRequest } from '../invoices.payment-conditions.interface';
|
|
2
2
|
export type InvoicesPaymentsConditionsUpdateSingleRequest = Partial<InvoicesPaymentConditionsRequest>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type InvoicesPaymentsConditionsUpdateSingleStatusRequest = {
|
|
2
2
|
active: boolean;
|
|
3
|
-
}
|
|
3
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type InvoicesPaymentConditons = {
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
active: boolean;
|
|
5
5
|
cashPayment: boolean;
|
|
6
|
-
}
|
|
7
|
-
export type InvoicesPaymentConditionsRequest = Omit<InvoicesPaymentConditons, 'id'>;
|
|
6
|
+
};
|
|
7
|
+
export type InvoicesPaymentConditionsRequest = Omit<InvoicesPaymentConditons, 'id' | 'active'>;
|
|
8
8
|
export type InvoicesPaymentConditionsResponse = InvoicesPaymentConditons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoices.payment-conditions.interface.js","sourceRoot":"","sources":["../../../src/invoices/PaymentConditions/invoices.payment-conditions.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesSellersRequest } from '../sellers.interface';
|
|
1
|
+
import { InvoicesSellersRequest } from '../invoices.sellers.interface';
|
|
2
2
|
export type InvoicesSellersCreateSingleRequest = Omit<InvoicesSellersRequest, 'active'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces';
|
|
2
|
-
import { InvoicesSellersResponse } from '../sellers.interface';
|
|
2
|
+
import { InvoicesSellersResponse } from '../invoices.sellers.interface';
|
|
3
3
|
export type InvoicesSellerGetManyResponse = GetManyResponse & {
|
|
4
4
|
data: Array<InvoicesSellersResponse>;
|
|
5
5
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesSellersResponse } from '../sellers.interface';
|
|
1
|
+
import { InvoicesSellersResponse } from '../invoices.sellers.interface';
|
|
2
2
|
export type InvoicesSellersGetSingleResponse = InvoicesSellersResponse;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { InvoicesSellersUpdateSingleStatusRequest } from '../UpdateSingleStatus/Request';
|
|
2
|
-
export type InvoicesSellersUpdateManyRequest = Array<InvoicesSellersUpdateSingleStatusRequest
|
|
2
|
+
export type InvoicesSellersUpdateManyRequest = Array<InvoicesSellersUpdateSingleStatusRequest & {
|
|
3
|
+
id: string;
|
|
4
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesSellersRequest } from '../sellers.interface';
|
|
1
|
+
import { InvoicesSellersRequest } from '../invoices.sellers.interface';
|
|
2
2
|
export type InvoicesSellersUpdateSingleRequest = Omit<Partial<InvoicesSellersRequest>, 'active'>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesSellersRequest } from '../sellers.interface';
|
|
1
|
+
import { InvoicesSellersRequest } from '../invoices.sellers.interface';
|
|
2
2
|
export type InvoicesSellersUpdateSingleStatusRequest = Pick<InvoicesSellersRequest, 'active'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoices.sellers.interface.js","sourceRoot":"","sources":["../../../src/invoices/Sellers/invoices.sellers.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export type InvoicesStatusesGetManyResponse = Pick<GetManyResponse, 'count'> & {
|
|
4
|
-
data: InvoicesStatusesResponse[];
|
|
5
|
-
};
|
|
1
|
+
import { InvoicesStatusesResponse } from '../invoices.statuses.interfaces';
|
|
2
|
+
export type InvoicesStatusesGetManyResponse = Array<InvoicesStatusesResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Statuses/GetSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./GetMany/Response"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./UpdateSingle/Response"), exports);
|
|
18
|
+
__exportStar(require("./GetSingle/Response"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Statuses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Statuses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoices.statuses.interfaces.js","sourceRoot":"","sources":["../../../src/invoices/Statuses/invoices.statuses.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesZonesRequest } from '../interfaces';
|
|
1
|
+
import { InvoicesZonesRequest } from '../invoices.zones.interfaces';
|
|
2
2
|
export type InvoicesZonesCreateSingleRequest = Pick<InvoicesZonesRequest, 'name'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces';
|
|
2
|
-
import { InvoicesZonesResponse } from '../interfaces';
|
|
2
|
+
import { InvoicesZonesResponse } from '../invoices.zones.interfaces';
|
|
3
3
|
export type InvoicesZonesGetManyResponse = GetManyResponse & {
|
|
4
|
-
data: InvoicesZonesResponse
|
|
4
|
+
data: Array<InvoicesZonesResponse>;
|
|
5
5
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesZonesResponse } from '../interfaces';
|
|
1
|
+
import { InvoicesZonesResponse } from '../invoices.zones.interfaces';
|
|
2
2
|
export type InvoicesZonesGetSingleResponse = InvoicesZonesResponse;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { InvoicesZonesUpdateSingleRequest } from '../UpdateSingle/Request';
|
|
2
|
-
export type InvoicesZonesUpdateManyRequest = Array<InvoicesZonesUpdateSingleRequest
|
|
2
|
+
export type InvoicesZonesUpdateManyRequest = Array<InvoicesZonesUpdateSingleRequest & {
|
|
3
|
+
id: string;
|
|
4
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesZonesRequest } from '../interfaces';
|
|
1
|
+
import { InvoicesZonesRequest } from '../invoices.zones.interfaces';
|
|
2
2
|
export type InvoicesZonesUpdateSingleRequest = Pick<Partial<InvoicesZonesRequest>, 'name'>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InvoicesZonesRequest } from '../interfaces';
|
|
1
|
+
import { InvoicesZonesRequest } from '../invoices.zones.interfaces';
|
|
2
2
|
export type InvoicesZonesUpdateSingleStatusRequest = Pick<InvoicesZonesRequest, 'active'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoices.zones.interfaces.js","sourceRoot":"","sources":["../../../src/invoices/Zones/invoices.zones.interfaces.ts"],"names":[],"mappings":""}
|