@openbox/shared-types 0.2.19 → 0.2.21
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/invoices/Calculation/GetSingle/Request.d.ts +4 -4
- package/lib/invoices/Calculation/GetSingle/Response.d.ts +10 -16
- package/lib/invoices/DocumentTypes/GetMany/Response.d.ts +2 -0
- package/lib/invoices/DocumentTypes/GetMany/Response.js.map +1 -0
- package/lib/invoices/DocumentTypes/GetSingle/Response.d.ts +2 -0
- package/lib/invoices/DocumentTypes/GetSingle/Response.js.map +1 -0
- package/lib/invoices/DocumentTypes/index.d.ts +2 -0
- package/lib/invoices/DocumentTypes/index.js +19 -0
- package/lib/invoices/DocumentTypes/index.js.map +1 -0
- package/lib/invoices/DocumentTypes/invoices.document-types.interface.d.ts +9 -0
- package/lib/invoices/DocumentTypes/invoices.document-types.interface.js +3 -0
- package/lib/invoices/DocumentTypes/invoices.document-types.interface.js.map +1 -0
- package/lib/invoices/Documents/CreateMany/Request.d.ts +2 -0
- package/lib/invoices/Documents/CreateMany/Request.js.map +1 -0
- package/lib/invoices/Documents/CreateMany/Response.d.ts +2 -0
- package/lib/invoices/Documents/CreateMany/Response.js.map +1 -0
- package/lib/invoices/Documents/CreateSingle/Request.d.ts +2 -0
- package/lib/invoices/Documents/CreateSingle/Request.js.map +1 -0
- package/lib/invoices/Documents/CreateSingle/Response.d.ts +2 -0
- package/lib/invoices/Documents/CreateSingle/Response.js +3 -0
- package/lib/invoices/Documents/CreateSingle/Response.js.map +1 -0
- package/lib/invoices/Documents/GetMany/Response.d.ts +2 -2
- package/lib/invoices/Documents/GetSingle/Response.d.ts +2 -4
- package/lib/invoices/Documents/GetSingleLayout/Response.d.ts +9 -10
- package/lib/invoices/Documents/UpdateMany/Request.d.ts +4 -0
- package/lib/invoices/Documents/UpdateMany/Request.js.map +1 -0
- package/lib/invoices/Documents/UpdateMany/Response.d.ts +2 -0
- package/lib/invoices/Documents/UpdateMany/Response.js +3 -0
- package/lib/invoices/Documents/UpdateMany/Response.js.map +1 -0
- package/lib/invoices/Documents/UpdateManyStatuses/Request.d.ts +3 -3
- package/lib/invoices/Documents/UpdateSingle/Request.d.ts +2 -0
- package/lib/invoices/Documents/UpdateSingle/Request.js +3 -0
- package/lib/invoices/Documents/UpdateSingle/Request.js.map +1 -0
- package/lib/invoices/Documents/UpdateSingle/Response.js +3 -0
- package/lib/invoices/Documents/UpdateSingle/Response.js.map +1 -0
- package/lib/invoices/Documents/UpdateSingleStatus/Request.d.ts +3 -2
- package/lib/invoices/Documents/index.d.ts +8 -6
- package/lib/invoices/Documents/index.js +8 -6
- package/lib/invoices/Documents/index.js.map +1 -1
- package/lib/invoices/Documents/{documents.interfaces.d.ts → invoices.documents.interfaces.d.ts} +4 -2
- package/lib/invoices/Documents/invoices.documents.interfaces.js +3 -0
- package/lib/invoices/Documents/invoices.documents.interfaces.js.map +1 -0
- package/lib/invoices/Invoices/GetDocumentTypes/Response.d.ts +1 -1
- package/lib/invoices/Invoices/invoices.interfaces.d.ts +2 -2
- package/lib/invoices/PaymentConditions/DeleteMany/Request.d.ts +3 -0
- package/lib/invoices/PaymentConditions/DeleteMany/Request.js +3 -0
- package/lib/invoices/PaymentConditions/DeleteMany/Request.js.map +1 -0
- package/lib/invoices/PaymentConditions/UpdateSingle/Response.d.ts +2 -2
- package/lib/invoices/PaymentConditions/index.d.ts +1 -0
- package/lib/invoices/PaymentConditions/index.js +1 -0
- package/lib/invoices/PaymentConditions/index.js.map +1 -1
- package/lib/invoices/Sellers/CreateSingle/Request.d.ts +1 -1
- package/lib/invoices/Sellers/DeleteMany/Request.d.ts +3 -0
- package/lib/invoices/Sellers/DeleteMany/Request.js +3 -0
- package/lib/invoices/Sellers/DeleteMany/Request.js.map +1 -0
- package/lib/invoices/Sellers/UpdateMany/Request.d.ts +2 -2
- package/lib/invoices/Sellers/UpdateSingle/Request.d.ts +1 -1
- package/lib/invoices/Sellers/UpdateSingleStatus/Request.d.ts +3 -2
- package/lib/invoices/Sellers/index.d.ts +1 -0
- package/lib/invoices/Sellers/index.js +1 -0
- package/lib/invoices/Sellers/index.js.map +1 -1
- package/lib/invoices/Sellers/invoices.sellers.interface.d.ts +1 -1
- package/lib/invoices/Zones/CreateSingle/Request.d.ts +1 -1
- package/lib/invoices/Zones/DeleteMany/Request.d.ts +3 -0
- package/lib/invoices/Zones/DeleteMany/Request.js +3 -0
- package/lib/invoices/Zones/DeleteMany/Request.js.map +1 -0
- 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 +3 -2
- package/lib/invoices/Zones/index.d.ts +1 -0
- package/lib/invoices/Zones/index.js +1 -0
- package/lib/invoices/Zones/index.js.map +1 -1
- package/lib/invoices/Zones/invoices.zones.interfaces.d.ts +1 -1
- package/lib/invoices/index.d.ts +2 -1
- package/lib/invoices/index.js +2 -1
- package/lib/invoices/index.js.map +1 -1
- package/lib/services/SellingTypes/GetMany/Response.d.ts +1 -3
- package/lib/services/Services/UpdateMany/Request.d.ts +3 -3
- package/lib/system/Directory/system.directory.interfaces.d.ts +18 -0
- package/lib/system/Directory/system.directory.interfaces.js +3 -0
- package/lib/system/Directory/system.directory.interfaces.js.map +1 -0
- package/lib/system/Genders/system.genders.interfaces.d.ts +6 -0
- package/lib/system/Genders/system.genders.interfaces.js +3 -0
- package/lib/system/Genders/system.genders.interfaces.js.map +1 -0
- package/lib/system/Logs/system.logs.interfaces.d.ts +10 -0
- package/lib/system/Logs/system.logs.interfaces.js +3 -0
- package/lib/system/Logs/system.logs.interfaces.js.map +1 -0
- package/package.json +1 -1
- package/src/invoices/Calculation/GetSingle/Request.ts +2 -2
- package/src/invoices/Calculation/GetSingle/Response.ts +7 -13
- package/src/invoices/DocumentTypes/GetMany/Response.ts +3 -0
- package/src/invoices/DocumentTypes/GetSingle/Response.ts +3 -0
- package/src/invoices/DocumentTypes/index.ts +2 -0
- package/src/invoices/DocumentTypes/invoices.document-types.interface.ts +10 -0
- package/src/invoices/Documents/CreateMany/Request.ts +3 -0
- package/src/invoices/Documents/CreateMany/Response.ts +3 -0
- package/src/invoices/Documents/CreateSingle/Request.ts +3 -0
- package/src/invoices/Documents/CreateSingle/Response.ts +3 -0
- package/src/invoices/Documents/GetMany/Response.ts +2 -2
- package/src/invoices/Documents/GetSingle/Response.ts +2 -4
- package/src/invoices/Documents/GetSingleLayout/Response.ts +6 -8
- package/src/invoices/Documents/UpdateMany/Request.ts +7 -0
- package/src/invoices/Documents/UpdateMany/Response.ts +3 -0
- package/src/invoices/Documents/UpdateManyStatuses/Request.ts +2 -2
- package/src/invoices/Documents/UpdateSingle/Request.ts +3 -0
- package/src/invoices/Documents/UpdateSingleStatus/Request.ts +3 -3
- package/src/invoices/Documents/index.ts +8 -6
- package/src/invoices/Documents/{documents.interfaces.ts → invoices.documents.interfaces.ts} +7 -2
- package/src/invoices/Invoices/GetDocumentTypes/Response.ts +1 -1
- package/src/invoices/Invoices/invoices.interfaces.ts +2 -2
- package/src/invoices/PaymentConditions/DeleteMany/Request.ts +3 -0
- package/src/invoices/PaymentConditions/UpdateSingle/Response.ts +2 -2
- package/src/invoices/PaymentConditions/index.ts +1 -0
- package/src/invoices/Sellers/CreateSingle/Request.ts +1 -1
- package/src/invoices/Sellers/DeleteMany/Request.ts +3 -0
- package/src/invoices/Sellers/UpdateMany/Request.ts +2 -2
- package/src/invoices/Sellers/UpdateSingle/Request.ts +1 -1
- package/src/invoices/Sellers/UpdateSingleStatus/Request.ts +3 -3
- package/src/invoices/Sellers/index.ts +1 -0
- package/src/invoices/Sellers/invoices.sellers.interface.ts +1 -1
- package/src/invoices/Zones/CreateSingle/Request.ts +1 -1
- package/src/invoices/Zones/DeleteMany/Request.ts +3 -0
- package/src/invoices/Zones/UpdateManyStatuses/Request.ts +2 -3
- package/src/invoices/Zones/UpdateSingle/Request.ts +1 -1
- package/src/invoices/Zones/UpdateSingleStatus/Request.ts +3 -3
- package/src/invoices/Zones/index.ts +1 -0
- package/src/invoices/Zones/invoices.zones.interfaces.ts +1 -1
- package/src/invoices/index.ts +2 -1
- package/src/services/SellingTypes/GetMany/Response.ts +1 -3
- package/src/services/Services/UpdateMany/Request.ts +2 -2
- package/src/system/Directory/system.directory.interfaces.ts +27 -0
- package/src/system/Genders/system.genders.interfaces.ts +7 -0
- package/src/system/Logs/system.logs.interfaces.ts +14 -0
- package/lib/invoices/Documents/UpsertMany/Request.d.ts +0 -4
- package/lib/invoices/Documents/UpsertMany/Request.js.map +0 -1
- package/lib/invoices/Documents/UpsertMany/Response.d.ts +0 -2
- package/lib/invoices/Documents/UpsertMany/Response.js.map +0 -1
- package/lib/invoices/Documents/UpsertSingle/Request.d.ts +0 -2
- package/lib/invoices/Documents/UpsertSingle/Request.js.map +0 -1
- package/lib/invoices/Documents/UpsertSingle/Response.js.map +0 -1
- package/lib/invoices/Documents/UpsertSingleLayout/Request.d.ts +0 -11
- package/lib/invoices/Documents/UpsertSingleLayout/Request.js.map +0 -1
- package/lib/invoices/Documents/UpsertSingleLayout/Response.d.ts +0 -2
- package/lib/invoices/Documents/UpsertSingleLayout/Response.js.map +0 -1
- package/lib/invoices/Documents/documents.interfaces.js +0 -3
- package/lib/invoices/Documents/documents.interfaces.js.map +0 -1
- package/lib/invoices/invoices.interfaces.d.ts +0 -7
- package/lib/invoices/invoices.interfaces.js +0 -3
- package/lib/invoices/invoices.interfaces.js.map +0 -1
- package/src/invoices/Documents/UpsertMany/Request.ts +0 -5
- package/src/invoices/Documents/UpsertMany/Response.ts +0 -3
- package/src/invoices/Documents/UpsertSingle/Request.ts +0 -3
- package/src/invoices/Documents/UpsertSingleLayout/Request.ts +0 -16
- package/src/invoices/Documents/UpsertSingleLayout/Response.ts +0 -3
- package/src/invoices/invoices.interfaces.ts +0 -7
- /package/lib/invoices/{Documents/UpsertMany → DocumentTypes/GetMany}/Response.js +0 -0
- /package/lib/invoices/{Documents/UpsertSingle → DocumentTypes/GetSingle}/Response.js +0 -0
- /package/lib/invoices/Documents/{UpsertMany → CreateMany}/Request.js +0 -0
- /package/lib/invoices/Documents/{UpsertSingleLayout → CreateMany}/Response.js +0 -0
- /package/lib/invoices/Documents/{UpsertSingle → CreateSingle}/Request.js +0 -0
- /package/lib/invoices/Documents/{UpsertSingleLayout → UpdateMany}/Request.js +0 -0
- /package/lib/invoices/Documents/{UpsertSingle → UpdateSingle}/Response.d.ts +0 -0
- /package/src/invoices/Documents/{UpsertSingle → UpdateSingle}/Response.ts +0 -0
package/lib/invoices/index.js
CHANGED
|
@@ -15,10 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Calculation/"), exports);
|
|
18
|
+
__exportStar(require("./DocumentTypes/"), exports);
|
|
18
19
|
__exportStar(require("./Documents/"), exports);
|
|
19
20
|
__exportStar(require("./Invoices/"), exports);
|
|
20
21
|
__exportStar(require("./PaymentConditions"), exports);
|
|
21
|
-
__exportStar(require("./Sellers"), exports);
|
|
22
|
+
__exportStar(require("./Sellers/"), exports);
|
|
22
23
|
__exportStar(require("./Statuses/"), exports);
|
|
23
24
|
__exportStar(require("./Zones/"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/invoices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,+CAA4B;AAC5B,8CAA2B;AAC3B,sDAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/invoices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,mDAAgC;AAChC,+CAA4B;AAC5B,8CAA2B;AAC3B,sDAAmC;AACnC,6CAA0B;AAC1B,8CAA2B;AAC3B,2CAAwB"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { ServicesSellingTypesGetSingleResponse } from '../GetSingle/Response';
|
|
2
|
-
export
|
|
3
|
-
data: ServicesSellingTypesGetSingleResponse[];
|
|
4
|
-
}
|
|
2
|
+
export type ServicesSellingTypesGetManyResponse = Array<ServicesSellingTypesGetSingleResponse>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type ServicesUpdateManyRequest = Array<
|
|
1
|
+
import { ServicesUpdateSingleRequest } from '../UpdateSingle/Request';
|
|
2
|
+
export type ServicesUpdateManyRequest = Array<ServicesUpdateSingleRequest & {
|
|
3
3
|
id: string;
|
|
4
|
-
}
|
|
4
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.interfaces';
|
|
2
|
+
import { CustomersResponse } from '../../customers/Customers/customers.interfaces';
|
|
3
|
+
import { InvoicesSellersResponse } from '../../invoices/Sellers/invoices.sellers.interface';
|
|
4
|
+
export type SystemDirectory = {
|
|
5
|
+
id: string;
|
|
6
|
+
type: 'phone' | 'cellphone' | 'email';
|
|
7
|
+
value: string;
|
|
8
|
+
hasWhatsapp?: boolean;
|
|
9
|
+
customer: CustomersResponse;
|
|
10
|
+
customerBranch: CustomersBranchesResponse;
|
|
11
|
+
invoicesSellers: InvoicesSellersResponse;
|
|
12
|
+
};
|
|
13
|
+
export type SystemDirectoryRequest = Omit<SystemDirectory, 'id' | 'customer' | 'customerBranch' | 'invoicesSellers'> & {
|
|
14
|
+
customer: 'string';
|
|
15
|
+
customerBranch: 'string';
|
|
16
|
+
invoicesSellers: 'string';
|
|
17
|
+
};
|
|
18
|
+
export type SystemDirectoryResponse = SystemDirectory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.directory.interfaces.js","sourceRoot":"","sources":["../../../src/system/Directory/system.directory.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.genders.interfaces.js","sourceRoot":"","sources":["../../../src/system/Genders/system.genders.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.logs.interfaces.js","sourceRoot":"","sources":["../../../src/system/Logs/system.logs.interfaces.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type InvoicesCalculationsDetailsRequest = {
|
|
2
2
|
service: string
|
|
3
3
|
quantity: number
|
|
4
4
|
unitPrice: number
|
|
@@ -9,7 +9,7 @@ export interface InvoicesCalculationsDetailsRequest {
|
|
|
9
9
|
chargeDescription: string
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export
|
|
12
|
+
export type InvoicesCalculationGetSingleRequest = {
|
|
13
13
|
document: string
|
|
14
14
|
customer: string
|
|
15
15
|
details: InvoicesCalculationsDetailsRequest[]
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
name: string
|
|
4
|
-
}
|
|
5
|
-
export interface InvoicesCalculationsServiceSellingType {
|
|
6
|
-
id: string
|
|
7
|
-
name: string
|
|
8
|
-
}
|
|
1
|
+
import { ServicesSellingTypesResponse } from '../../../services/SellingTypes/services.selling-types.interface'
|
|
2
|
+
import { ServicesResponse } from '../../../services/Services/services.interface'
|
|
9
3
|
|
|
10
|
-
export
|
|
4
|
+
export type InvoicesCalculationsDetailsResponse = {
|
|
11
5
|
id: string
|
|
12
6
|
quantity: number
|
|
13
7
|
unitPrice: number
|
|
@@ -24,11 +18,11 @@ export interface InvoicesCalculationsDetailsResponse {
|
|
|
24
18
|
vExenta?: number
|
|
25
19
|
vGravada?: number
|
|
26
20
|
chargeDescription: string
|
|
27
|
-
service:
|
|
28
|
-
sellingType:
|
|
21
|
+
service: Pick<ServicesResponse, 'id' | 'name'>
|
|
22
|
+
sellingType: ServicesSellingTypesResponse
|
|
29
23
|
}
|
|
30
24
|
|
|
31
|
-
export
|
|
25
|
+
export type InvoicesCalculationsTotalsResponse = {
|
|
32
26
|
name: string
|
|
33
27
|
amount: number
|
|
34
28
|
id: string
|
|
@@ -36,7 +30,7 @@ export interface InvoicesCalculationsTotalsResponse {
|
|
|
36
30
|
style: string[]
|
|
37
31
|
}
|
|
38
32
|
|
|
39
|
-
export
|
|
33
|
+
export type InvoicesCalculationGetSingleResponse = {
|
|
40
34
|
details: InvoicesCalculationsDetailsResponse[]
|
|
41
35
|
totals: InvoicesCalculationsTotalsResponse[]
|
|
42
36
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type InvoicesDocumentTypes = {
|
|
2
|
+
id: number
|
|
3
|
+
name: string
|
|
4
|
+
code: string
|
|
5
|
+
includeInTaxes: boolean
|
|
6
|
+
showForNonTaxers: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type InvoicesDocumentTypesRequest = Omit<InvoicesDocumentTypes, 'id'>
|
|
10
|
+
export type InvoicesDocumentTypesResponse = InvoicesDocumentTypes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces'
|
|
2
|
-
import { InvoicesDocumentsResponse } from '../documents.interfaces'
|
|
2
|
+
import { InvoicesDocumentsResponse } from '../invoices.documents.interfaces'
|
|
3
3
|
|
|
4
4
|
export type InvoicesDocumentsGetManyResponse = GetManyResponse & {
|
|
5
|
-
data: InvoicesDocumentsResponse
|
|
5
|
+
data: Array<InvoicesDocumentsResponse>
|
|
6
6
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { InvoicesDocumentsResponse } from '../documents.interfaces'
|
|
1
|
+
import { InvoicesDocumentsResponse } from '../invoices.documents.interfaces'
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
data: InvoicesDocumentsResponse
|
|
5
|
-
}
|
|
3
|
+
export type InvoicesDocumentsGetSingleResponse = InvoicesDocumentsResponse
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type InvoicesDocumentsLayoutHelpers = {
|
|
2
2
|
length: number
|
|
3
3
|
value: string
|
|
4
4
|
type: string
|
|
@@ -6,13 +6,11 @@ export interface InvoicesDocumentsLayoutHelpers {
|
|
|
6
6
|
y: number
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export type InvoicesDocumentsHeaderPositionsLayout = InvoicesDocumentsLayoutHelpers
|
|
10
|
-
|
|
11
9
|
export type InvoicesDocumentsShortPositionsLayout = Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
12
10
|
|
|
13
|
-
export
|
|
14
|
-
position_y:
|
|
15
|
-
height:
|
|
11
|
+
export type InvoicesDocumentsDetailsPositionsLayout = {
|
|
12
|
+
position_y: number
|
|
13
|
+
height: number
|
|
16
14
|
quantity: InvoicesDocumentsShortPositionsLayout
|
|
17
15
|
description: InvoicesDocumentsShortPositionsLayout
|
|
18
16
|
price: InvoicesDocumentsShortPositionsLayout
|
|
@@ -21,10 +19,10 @@ export interface InvoicesDocumentsDetailsPositionsLayout {
|
|
|
21
19
|
afecto: InvoicesDocumentsShortPositionsLayout
|
|
22
20
|
}
|
|
23
21
|
|
|
24
|
-
export
|
|
22
|
+
export type InvoicesDocumentsLayoutSingleResponse = {
|
|
25
23
|
configuration: string
|
|
26
24
|
resolution: number[]
|
|
27
|
-
header:
|
|
25
|
+
header: InvoicesDocumentsLayoutHelpers[]
|
|
28
26
|
details: InvoicesDocumentsDetailsPositionsLayout
|
|
29
27
|
totals: Omit<InvoicesDocumentsLayoutHelpers, 'length'>[]
|
|
30
28
|
fontSizeDetails: number
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type InvoicesDocumentsUpdateSingleStatusRequest = {
|
|
2
|
+
active: boolean
|
|
3
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
export * from './CreateMany/Request'
|
|
2
|
+
export * from './CreateMany/Response'
|
|
3
|
+
export * from './CreateSingle/Request'
|
|
4
|
+
export * from './CreateSingle/Response'
|
|
1
5
|
export * from './GetMany/Request'
|
|
2
6
|
export * from './GetMany/Response'
|
|
3
7
|
export * from './GetSingle/Response'
|
|
4
8
|
export * from './GetSingleLayout/Response'
|
|
9
|
+
export * from './UpdateMany/Request'
|
|
10
|
+
export * from './UpdateMany/Response'
|
|
5
11
|
export * from './UpdateManyStatuses/Request'
|
|
6
12
|
export * from './UpdateManyStatuses/Response'
|
|
13
|
+
export * from './UpdateSingle/Request'
|
|
14
|
+
export * from './UpdateSingle/Response'
|
|
7
15
|
export * from './UpdateSingleStatus/Request'
|
|
8
16
|
export * from './UpdateSingleStatus/Response'
|
|
9
|
-
export * from './UpsertMany/Request'
|
|
10
|
-
export * from './UpsertMany/Response'
|
|
11
|
-
export * from './UpsertSingle/Request'
|
|
12
|
-
export * from './UpsertSingle/Response'
|
|
13
|
-
export * from './UpsertSingleLayout/Request'
|
|
14
|
-
export * from './UpsertSingleLayout/Response'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InvoicesDocumentTypes } from '../invoices.
|
|
1
|
+
import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface'
|
|
2
2
|
|
|
3
3
|
export type InvoicesDocuments = {
|
|
4
4
|
id: string
|
|
@@ -12,6 +12,11 @@ export type InvoicesDocuments = {
|
|
|
12
12
|
documentType: Omit<InvoicesDocumentTypes, 'includeInTaxes, showForNonTaxers'>
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export type InvoicesDocumentsRequest = Omit<
|
|
15
|
+
export type InvoicesDocumentsRequest = Omit<
|
|
16
|
+
InvoicesDocuments,
|
|
17
|
+
'id' | 'active' | 'used' | 'isCurrentDocument' | 'documentType'
|
|
18
|
+
> & {
|
|
19
|
+
documentType: number
|
|
20
|
+
}
|
|
16
21
|
|
|
17
22
|
export type InvoicesDocumentsResponse = InvoicesDocuments
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
InvoicesCalculationsDetailsResponse,
|
|
7
7
|
InvoicesCalculationsTotalsResponse,
|
|
8
8
|
} from '../Calculation'
|
|
9
|
-
import {
|
|
9
|
+
import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface'
|
|
10
|
+
import { InvoicesDocumentsResponse } from '../Documents/invoices.documents.interfaces'
|
|
10
11
|
import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/invoices.payment-conditions.interface'
|
|
11
12
|
import { InvoicesSellersResponse } from '../Sellers/invoices.sellers.interface'
|
|
12
13
|
import { InvoicesStatusesResponse } from '../Statuses/invoices.statuses.interfaces'
|
|
13
14
|
import { InvoicesZones } from '../Zones/invoices.zones.interfaces'
|
|
14
|
-
import { InvoicesDocumentTypes } from '../invoices.interfaces'
|
|
15
15
|
|
|
16
16
|
export type InvoicesDetails = InvoicesCalculationsDetailsResponse
|
|
17
17
|
export type InvoicesTotals = InvoicesCalculationsTotalsResponse
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleResponse } from '../../../interfaces'
|
|
2
2
|
|
|
3
|
-
export type InvoicesPaymentsConditionsUpdateSingleResponse =
|
|
3
|
+
export type InvoicesPaymentsConditionsUpdateSingleResponse = SingleResponse
|
|
@@ -2,6 +2,7 @@ export * from './CreateMany/Request'
|
|
|
2
2
|
export * from './CreateMany/Response'
|
|
3
3
|
export * from './CreateSingle/Request'
|
|
4
4
|
export * from './CreateSingle/Response'
|
|
5
|
+
export * from './DeleteMany/Request'
|
|
5
6
|
export * from './DeleteMany/Response'
|
|
6
7
|
export * from './DeleteSingle/Response'
|
|
7
8
|
export * from './GetMany/Request'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InvoicesSellersUpdateSingleRequest } from '../UpdateSingle/Request'
|
|
2
2
|
|
|
3
3
|
export type InvoicesSellersUpdateManyRequest = Array<
|
|
4
|
-
|
|
4
|
+
InvoicesSellersUpdateSingleRequest & {
|
|
5
5
|
id: string
|
|
6
6
|
}
|
|
7
7
|
>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type InvoicesSellersUpdateSingleStatusRequest = {
|
|
2
|
+
active: boolean
|
|
3
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from './CreateMany/Request'
|
|
|
2
2
|
export * from './CreateMany/Response'
|
|
3
3
|
export * from './CreateSingle/Request'
|
|
4
4
|
export * from './CreateSingle/Response'
|
|
5
|
+
export * from './DeleteMany/Request'
|
|
5
6
|
export * from './DeleteMany/Response'
|
|
6
7
|
export * from './DeleteSingle/Response'
|
|
7
8
|
export * from './GetMany/Request'
|
|
@@ -6,7 +6,7 @@ export interface InvoicesSellers {
|
|
|
6
6
|
active: boolean
|
|
7
7
|
invoicesZone: InvoicesZones
|
|
8
8
|
}
|
|
9
|
-
export type InvoicesSellersRequest = Omit<InvoicesSellers, 'id' | 'invoicesZone'> & {
|
|
9
|
+
export type InvoicesSellersRequest = Omit<InvoicesSellers, 'id' | 'active' | 'invoicesZone'> & {
|
|
10
10
|
invoicesZone: string
|
|
11
11
|
}
|
|
12
12
|
export type InvoicesSellersResponse = InvoicesSellers
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type InvoicesZonesUpdateSingleStatusRequest = {
|
|
2
|
+
active: boolean
|
|
3
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from './CreateMany/Request'
|
|
|
2
2
|
export * from './CreateMany/Response'
|
|
3
3
|
export * from './CreateSingle/Request'
|
|
4
4
|
export * from './CreateSingle/Response'
|
|
5
|
+
export * from './DeleteMany/Request'
|
|
5
6
|
export * from './DeleteMany/Response'
|
|
6
7
|
export * from './DeleteSingle/Response'
|
|
7
8
|
export * from './GetMany/Request'
|
package/src/invoices/index.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from './Calculation/'
|
|
2
|
+
export * from './DocumentTypes/'
|
|
2
3
|
export * from './Documents/'
|
|
3
4
|
export * from './Invoices/'
|
|
4
5
|
export * from './PaymentConditions'
|
|
5
|
-
export * from './Sellers'
|
|
6
|
+
export * from './Sellers/'
|
|
6
7
|
export * from './Statuses/'
|
|
7
8
|
export * from './Zones/'
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { ServicesSellingTypesGetSingleResponse } from '../GetSingle/Response'
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
data: ServicesSellingTypesGetSingleResponse[]
|
|
5
|
-
}
|
|
3
|
+
export type ServicesSellingTypesGetManyResponse = Array<ServicesSellingTypesGetSingleResponse>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ServicesUpdateSingleRequest } from '../UpdateSingle/Request'
|
|
2
2
|
|
|
3
|
-
export type ServicesUpdateManyRequest = Array<
|
|
3
|
+
export type ServicesUpdateManyRequest = Array<ServicesUpdateSingleRequest & { id: string }>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.interfaces'
|
|
2
|
+
import { CustomersResponse } from '../../customers/Customers/customers.interfaces'
|
|
3
|
+
import { InvoicesSellersResponse } from '../../invoices/Sellers/invoices.sellers.interface'
|
|
4
|
+
|
|
5
|
+
export type SystemDirectory = {
|
|
6
|
+
id: string
|
|
7
|
+
type: 'phone' | 'cellphone' | 'email'
|
|
8
|
+
value: string
|
|
9
|
+
hasWhatsapp?: boolean
|
|
10
|
+
// warehouse: InventoryWarehousesEntity
|
|
11
|
+
// appointee: LegalAppointeesEntity
|
|
12
|
+
// assignee: LegalAssigneesEntity
|
|
13
|
+
// legalJurisdiction: LegalJurisdictionsEntity
|
|
14
|
+
customer: CustomersResponse
|
|
15
|
+
customerBranch: CustomersBranchesResponse
|
|
16
|
+
invoicesSellers: InvoicesSellersResponse
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type SystemDirectoryRequest = Omit<
|
|
20
|
+
SystemDirectory,
|
|
21
|
+
'id' | 'customer' | 'customerBranch' | 'invoicesSellers'
|
|
22
|
+
> & {
|
|
23
|
+
customer: 'string'
|
|
24
|
+
customerBranch: 'string'
|
|
25
|
+
invoicesSellers: 'string'
|
|
26
|
+
}
|
|
27
|
+
export type SystemDirectoryResponse = SystemDirectory
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type SystemLogs = {
|
|
2
|
+
id: string
|
|
3
|
+
summary: string
|
|
4
|
+
payload: string
|
|
5
|
+
entityId: string
|
|
6
|
+
entityName: string
|
|
7
|
+
action: 'create' | 'read' | 'update' | 'delete'
|
|
8
|
+
status: 'success' | 'error'
|
|
9
|
+
// user: AuthUsersEntity
|
|
10
|
+
// module: SystemModules
|
|
11
|
+
// company: CompaniesEntity
|
|
12
|
+
// companyBranch: CompaniesBranchesEntity
|
|
13
|
+
}
|
|
14
|
+
export type SystemLogsResponse = SystemLogs
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpsertMany/Request.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpsertMany/Response.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpsertSingle/Request.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpsertSingle/Response.ts"],"names":[],"mappings":""}
|