@openbox/shared-types 0.2.20 → 0.2.22

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.
Files changed (48) hide show
  1. package/lib/invoices/Calculation/GetSingle/Request.d.ts +4 -4
  2. package/lib/invoices/Calculation/GetSingle/Response.d.ts +10 -16
  3. package/lib/invoices/DocumentTypes/GetMany/Response.d.ts +2 -0
  4. package/lib/invoices/{invoices.interfaces.js → DocumentTypes/GetMany/Response.js} +1 -1
  5. package/lib/invoices/DocumentTypes/GetMany/Response.js.map +1 -0
  6. package/lib/invoices/DocumentTypes/GetSingle/Response.d.ts +2 -0
  7. package/lib/invoices/DocumentTypes/GetSingle/Response.js +3 -0
  8. package/lib/invoices/DocumentTypes/GetSingle/Response.js.map +1 -0
  9. package/lib/invoices/DocumentTypes/index.d.ts +2 -0
  10. package/lib/invoices/DocumentTypes/index.js +19 -0
  11. package/lib/invoices/DocumentTypes/index.js.map +1 -0
  12. package/lib/invoices/DocumentTypes/invoices.document-types.interface.d.ts +9 -0
  13. package/lib/invoices/DocumentTypes/invoices.document-types.interface.js +3 -0
  14. package/lib/invoices/DocumentTypes/invoices.document-types.interface.js.map +1 -0
  15. package/lib/invoices/Documents/invoices.documents.interfaces.d.ts +1 -1
  16. package/lib/invoices/Invoices/GetDocumentTypes/Response.d.ts +1 -1
  17. package/lib/invoices/Invoices/invoices.interfaces.d.ts +1 -1
  18. package/lib/invoices/index.d.ts +2 -1
  19. package/lib/invoices/index.js +2 -1
  20. package/lib/invoices/index.js.map +1 -1
  21. package/lib/services/SellingTypes/GetMany/Response.d.ts +3 -3
  22. package/lib/system/Directory/system.directory.interfaces.d.ts +18 -0
  23. package/lib/system/Directory/system.directory.interfaces.js +3 -0
  24. package/lib/system/Directory/system.directory.interfaces.js.map +1 -0
  25. package/lib/system/Genders/system.genders.interfaces.d.ts +6 -0
  26. package/lib/system/Genders/system.genders.interfaces.js +3 -0
  27. package/lib/system/Genders/system.genders.interfaces.js.map +1 -0
  28. package/lib/system/Logs/system.logs.interfaces.d.ts +10 -0
  29. package/lib/system/Logs/system.logs.interfaces.js +3 -0
  30. package/lib/system/Logs/system.logs.interfaces.js.map +1 -0
  31. package/package.json +1 -1
  32. package/src/invoices/Calculation/GetSingle/Request.ts +2 -2
  33. package/src/invoices/Calculation/GetSingle/Response.ts +7 -13
  34. package/src/invoices/DocumentTypes/GetMany/Response.ts +3 -0
  35. package/src/invoices/DocumentTypes/GetSingle/Response.ts +3 -0
  36. package/src/invoices/DocumentTypes/index.ts +2 -0
  37. package/src/invoices/DocumentTypes/invoices.document-types.interface.ts +10 -0
  38. package/src/invoices/Documents/invoices.documents.interfaces.ts +1 -1
  39. package/src/invoices/Invoices/GetDocumentTypes/Response.ts +1 -1
  40. package/src/invoices/Invoices/invoices.interfaces.ts +1 -1
  41. package/src/invoices/index.ts +2 -1
  42. package/src/services/SellingTypes/GetMany/Response.ts +2 -2
  43. package/src/system/Directory/system.directory.interfaces.ts +27 -0
  44. package/src/system/Genders/system.genders.interfaces.ts +7 -0
  45. package/src/system/Logs/system.logs.interfaces.ts +14 -0
  46. package/lib/invoices/invoices.interfaces.d.ts +0 -7
  47. package/lib/invoices/invoices.interfaces.js.map +0 -1
  48. package/src/invoices/invoices.interfaces.ts +0 -7
@@ -1,4 +1,4 @@
1
- export interface InvoicesCalculationsDetailsRequest {
1
+ export type InvoicesCalculationsDetailsRequest = {
2
2
  service: string;
3
3
  quantity: number;
4
4
  unitPrice: number;
@@ -7,9 +7,9 @@ export interface InvoicesCalculationsDetailsRequest {
7
7
  incRenta5: boolean;
8
8
  incRenta10: boolean;
9
9
  chargeDescription: string;
10
- }
11
- export interface InvoicesCalculationGetSingleRequest {
10
+ };
11
+ export type InvoicesCalculationGetSingleRequest = {
12
12
  document: string;
13
13
  customer: string;
14
14
  details: InvoicesCalculationsDetailsRequest[];
15
- }
15
+ };
@@ -1,12 +1,6 @@
1
- export interface InvoicesCalculationsService {
2
- id: string;
3
- name: string;
4
- }
5
- export interface InvoicesCalculationsServiceSellingType {
6
- id: string;
7
- name: string;
8
- }
9
- export interface InvoicesCalculationsDetailsResponse {
1
+ import { ServicesSellingTypesResponse } from '../../../services/SellingTypes/services.selling-types.interface';
2
+ import { ServicesResponse } from '../../../services/Services/services.interface';
3
+ export type InvoicesCalculationsDetailsResponse = {
10
4
  id: string;
11
5
  quantity: number;
12
6
  unitPrice: number;
@@ -23,17 +17,17 @@ export interface InvoicesCalculationsDetailsResponse {
23
17
  vExenta?: number;
24
18
  vGravada?: number;
25
19
  chargeDescription: string;
26
- service: InvoicesCalculationsService;
27
- sellingType: InvoicesCalculationsServiceSellingType;
28
- }
29
- export interface InvoicesCalculationsTotalsResponse {
20
+ service: Pick<ServicesResponse, 'id' | 'name'>;
21
+ sellingType: ServicesSellingTypesResponse;
22
+ };
23
+ export type InvoicesCalculationsTotalsResponse = {
30
24
  name: string;
31
25
  amount: number;
32
26
  id: string;
33
27
  show: boolean;
34
28
  style: string[];
35
- }
36
- export interface InvoicesCalculationGetSingleResponse {
29
+ };
30
+ export type InvoicesCalculationGetSingleResponse = {
37
31
  details: InvoicesCalculationsDetailsResponse[];
38
32
  totals: InvoicesCalculationsTotalsResponse[];
39
- }
33
+ };
@@ -0,0 +1,2 @@
1
+ import { InvoicesDocumentTypesGetSingleResponse } from '../GetSingle/Response';
2
+ export type InvoicesDocumentTypesGetManyResponse = Array<InvoicesDocumentTypesGetSingleResponse>;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invoices.interfaces.js.map
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/DocumentTypes/GetMany/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { InvoicesDocumentTypesResponse } from '../invoices.document-types.interface';
2
+ export type InvoicesDocumentTypesGetSingleResponse = InvoicesDocumentTypesResponse;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/DocumentTypes/GetSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './GetMany/Response';
2
+ export * from './GetSingle/Response';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GetMany/Response"), exports);
18
+ __exportStar(require("./GetSingle/Response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/DocumentTypes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
@@ -0,0 +1,9 @@
1
+ export type InvoicesDocumentTypes = {
2
+ id: number;
3
+ name: string;
4
+ code: string;
5
+ includeInTaxes: boolean;
6
+ showForNonTaxers: boolean;
7
+ };
8
+ export type InvoicesDocumentTypesRequest = Omit<InvoicesDocumentTypes, 'id'>;
9
+ export type InvoicesDocumentTypesResponse = InvoicesDocumentTypes;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=invoices.document-types.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.document-types.interface.js","sourceRoot":"","sources":["../../../src/invoices/DocumentTypes/invoices.document-types.interface.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { InvoicesDocumentTypes } from '../invoices.interfaces';
1
+ import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface';
2
2
  export type InvoicesDocuments = {
3
3
  id: string;
4
4
  authorization?: string;
@@ -1,2 +1,2 @@
1
- import { InvoicesDocumentTypes } from '../../invoices.interfaces';
1
+ import { InvoicesDocumentTypes } from '../../DocumentTypes/invoices.document-types.interface';
2
2
  export type InvoicesInvoicesGetManyDocumentTypesResponse = InvoicesDocumentTypes[];
@@ -3,12 +3,12 @@ import { CustomersResponse } from '../../customers/Customers/customers.interface
3
3
  import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response';
4
4
  import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response';
5
5
  import { InvoicesCalculationsDetailsResponse, InvoicesCalculationsTotalsResponse } from '../Calculation';
6
+ import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface';
6
7
  import { InvoicesDocumentsResponse } from '../Documents/invoices.documents.interfaces';
7
8
  import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/invoices.payment-conditions.interface';
8
9
  import { InvoicesSellersResponse } from '../Sellers/invoices.sellers.interface';
9
10
  import { InvoicesStatusesResponse } from '../Statuses/invoices.statuses.interfaces';
10
11
  import { InvoicesZones } from '../Zones/invoices.zones.interfaces';
11
- import { InvoicesDocumentTypes } from '../invoices.interfaces';
12
12
  export type InvoicesDetails = InvoicesCalculationsDetailsResponse;
13
13
  export type InvoicesTotals = InvoicesCalculationsTotalsResponse;
14
14
  export type Invoices = {
@@ -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/';
@@ -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,4CAAyB;AACzB,8CAA2B;AAC3B,2CAAwB"}
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,4 @@
1
1
  import { ServicesSellingTypesGetSingleResponse } from '../GetSingle/Response';
2
- export interface ServicesSellingTypesGetManyResponse {
3
- data: ServicesSellingTypesGetSingleResponse[];
4
- }
2
+ export type ServicesSellingTypesGetManyResponse = {
3
+ data: Array<ServicesSellingTypesGetSingleResponse>;
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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=system.directory.interfaces.js.map
@@ -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,6 @@
1
+ export type SystemGenders = {
2
+ id: string;
3
+ name: string;
4
+ };
5
+ export type SystemGendersRequest = Omit<SystemGenders, 'id'>;
6
+ export type SystemGendersResponse = SystemGenders;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=system.genders.interfaces.js.map
@@ -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,10 @@
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
+ };
10
+ export type SystemLogsResponse = SystemLogs;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=system.logs.interfaces.js.map
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.20",
3
+ "version": "0.2.22",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,4 +1,4 @@
1
- export interface InvoicesCalculationsDetailsRequest {
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 interface InvoicesCalculationGetSingleRequest {
12
+ export type InvoicesCalculationGetSingleRequest = {
13
13
  document: string
14
14
  customer: string
15
15
  details: InvoicesCalculationsDetailsRequest[]
@@ -1,13 +1,7 @@
1
- export interface InvoicesCalculationsService {
2
- id: string
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 interface InvoicesCalculationsDetailsResponse {
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: InvoicesCalculationsService
28
- sellingType: InvoicesCalculationsServiceSellingType
21
+ service: Pick<ServicesResponse, 'id' | 'name'>
22
+ sellingType: ServicesSellingTypesResponse
29
23
  }
30
24
 
31
- export interface InvoicesCalculationsTotalsResponse {
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 interface InvoicesCalculationGetSingleResponse {
33
+ export type InvoicesCalculationGetSingleResponse = {
40
34
  details: InvoicesCalculationsDetailsResponse[]
41
35
  totals: InvoicesCalculationsTotalsResponse[]
42
36
  }
@@ -0,0 +1,3 @@
1
+ import { InvoicesDocumentTypesGetSingleResponse } from '../GetSingle/Response'
2
+
3
+ export type InvoicesDocumentTypesGetManyResponse = Array<InvoicesDocumentTypesGetSingleResponse>
@@ -0,0 +1,3 @@
1
+ import { InvoicesDocumentTypesResponse } from '../invoices.document-types.interface'
2
+
3
+ export type InvoicesDocumentTypesGetSingleResponse = InvoicesDocumentTypesResponse
@@ -0,0 +1,2 @@
1
+ export * from './GetMany/Response'
2
+ export * from './GetSingle/Response'
@@ -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,4 +1,4 @@
1
- import { InvoicesDocumentTypes } from '../invoices.interfaces'
1
+ import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface'
2
2
 
3
3
  export type InvoicesDocuments = {
4
4
  id: string
@@ -1,3 +1,3 @@
1
- import { InvoicesDocumentTypes } from '../../invoices.interfaces'
1
+ import { InvoicesDocumentTypes } from '../../DocumentTypes/invoices.document-types.interface'
2
2
 
3
3
  export type InvoicesInvoicesGetManyDocumentTypesResponse = InvoicesDocumentTypes[]
@@ -6,12 +6,12 @@ import {
6
6
  InvoicesCalculationsDetailsResponse,
7
7
  InvoicesCalculationsTotalsResponse,
8
8
  } from '../Calculation'
9
+ import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface'
9
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,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,5 @@
1
1
  import { ServicesSellingTypesGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export interface ServicesSellingTypesGetManyResponse {
4
- data: ServicesSellingTypesGetSingleResponse[]
3
+ export type ServicesSellingTypesGetManyResponse = {
4
+ data: Array<ServicesSellingTypesGetSingleResponse>
5
5
  }
@@ -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,7 @@
1
+ export type SystemGenders = {
2
+ id: string
3
+ name: string
4
+ }
5
+
6
+ export type SystemGendersRequest = Omit<SystemGenders, 'id'>
7
+ export type SystemGendersResponse = SystemGenders
@@ -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,7 +0,0 @@
1
- export interface InvoicesDocumentTypes {
2
- id: number;
3
- name: string;
4
- code: string;
5
- includeInTaxes: boolean;
6
- showForNonTaxers: boolean;
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoices.interfaces.js","sourceRoot":"","sources":["../../src/invoices/invoices.interfaces.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- export interface InvoicesDocumentTypes {
2
- id: number
3
- name: string
4
- code: string
5
- includeInTaxes: boolean
6
- showForNonTaxers: boolean
7
- }