@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.
Files changed (163) 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/DocumentTypes/GetMany/Response.js.map +1 -0
  5. package/lib/invoices/DocumentTypes/GetSingle/Response.d.ts +2 -0
  6. package/lib/invoices/DocumentTypes/GetSingle/Response.js.map +1 -0
  7. package/lib/invoices/DocumentTypes/index.d.ts +2 -0
  8. package/lib/invoices/DocumentTypes/index.js +19 -0
  9. package/lib/invoices/DocumentTypes/index.js.map +1 -0
  10. package/lib/invoices/DocumentTypes/invoices.document-types.interface.d.ts +9 -0
  11. package/lib/invoices/DocumentTypes/invoices.document-types.interface.js +3 -0
  12. package/lib/invoices/DocumentTypes/invoices.document-types.interface.js.map +1 -0
  13. package/lib/invoices/Documents/CreateMany/Request.d.ts +2 -0
  14. package/lib/invoices/Documents/CreateMany/Request.js.map +1 -0
  15. package/lib/invoices/Documents/CreateMany/Response.d.ts +2 -0
  16. package/lib/invoices/Documents/CreateMany/Response.js.map +1 -0
  17. package/lib/invoices/Documents/CreateSingle/Request.d.ts +2 -0
  18. package/lib/invoices/Documents/CreateSingle/Request.js.map +1 -0
  19. package/lib/invoices/Documents/CreateSingle/Response.d.ts +2 -0
  20. package/lib/invoices/Documents/CreateSingle/Response.js +3 -0
  21. package/lib/invoices/Documents/CreateSingle/Response.js.map +1 -0
  22. package/lib/invoices/Documents/GetMany/Response.d.ts +2 -2
  23. package/lib/invoices/Documents/GetSingle/Response.d.ts +2 -4
  24. package/lib/invoices/Documents/GetSingleLayout/Response.d.ts +9 -10
  25. package/lib/invoices/Documents/UpdateMany/Request.d.ts +4 -0
  26. package/lib/invoices/Documents/UpdateMany/Request.js.map +1 -0
  27. package/lib/invoices/Documents/UpdateMany/Response.d.ts +2 -0
  28. package/lib/invoices/Documents/UpdateMany/Response.js +3 -0
  29. package/lib/invoices/Documents/UpdateMany/Response.js.map +1 -0
  30. package/lib/invoices/Documents/UpdateManyStatuses/Request.d.ts +3 -3
  31. package/lib/invoices/Documents/UpdateSingle/Request.d.ts +2 -0
  32. package/lib/invoices/Documents/UpdateSingle/Request.js +3 -0
  33. package/lib/invoices/Documents/UpdateSingle/Request.js.map +1 -0
  34. package/lib/invoices/Documents/UpdateSingle/Response.js +3 -0
  35. package/lib/invoices/Documents/UpdateSingle/Response.js.map +1 -0
  36. package/lib/invoices/Documents/UpdateSingleStatus/Request.d.ts +3 -2
  37. package/lib/invoices/Documents/index.d.ts +8 -6
  38. package/lib/invoices/Documents/index.js +8 -6
  39. package/lib/invoices/Documents/index.js.map +1 -1
  40. package/lib/invoices/Documents/{documents.interfaces.d.ts → invoices.documents.interfaces.d.ts} +4 -2
  41. package/lib/invoices/Documents/invoices.documents.interfaces.js +3 -0
  42. package/lib/invoices/Documents/invoices.documents.interfaces.js.map +1 -0
  43. package/lib/invoices/Invoices/GetDocumentTypes/Response.d.ts +1 -1
  44. package/lib/invoices/Invoices/invoices.interfaces.d.ts +2 -2
  45. package/lib/invoices/PaymentConditions/DeleteMany/Request.d.ts +3 -0
  46. package/lib/invoices/PaymentConditions/DeleteMany/Request.js +3 -0
  47. package/lib/invoices/PaymentConditions/DeleteMany/Request.js.map +1 -0
  48. package/lib/invoices/PaymentConditions/UpdateSingle/Response.d.ts +2 -2
  49. package/lib/invoices/PaymentConditions/index.d.ts +1 -0
  50. package/lib/invoices/PaymentConditions/index.js +1 -0
  51. package/lib/invoices/PaymentConditions/index.js.map +1 -1
  52. package/lib/invoices/Sellers/CreateSingle/Request.d.ts +1 -1
  53. package/lib/invoices/Sellers/DeleteMany/Request.d.ts +3 -0
  54. package/lib/invoices/Sellers/DeleteMany/Request.js +3 -0
  55. package/lib/invoices/Sellers/DeleteMany/Request.js.map +1 -0
  56. package/lib/invoices/Sellers/UpdateMany/Request.d.ts +2 -2
  57. package/lib/invoices/Sellers/UpdateSingle/Request.d.ts +1 -1
  58. package/lib/invoices/Sellers/UpdateSingleStatus/Request.d.ts +3 -2
  59. package/lib/invoices/Sellers/index.d.ts +1 -0
  60. package/lib/invoices/Sellers/index.js +1 -0
  61. package/lib/invoices/Sellers/index.js.map +1 -1
  62. package/lib/invoices/Sellers/invoices.sellers.interface.d.ts +1 -1
  63. package/lib/invoices/Zones/CreateSingle/Request.d.ts +1 -1
  64. package/lib/invoices/Zones/DeleteMany/Request.d.ts +3 -0
  65. package/lib/invoices/Zones/DeleteMany/Request.js +3 -0
  66. package/lib/invoices/Zones/DeleteMany/Request.js.map +1 -0
  67. package/lib/invoices/Zones/UpdateManyStatuses/Request.d.ts +2 -2
  68. package/lib/invoices/Zones/UpdateSingle/Request.d.ts +1 -1
  69. package/lib/invoices/Zones/UpdateSingleStatus/Request.d.ts +3 -2
  70. package/lib/invoices/Zones/index.d.ts +1 -0
  71. package/lib/invoices/Zones/index.js +1 -0
  72. package/lib/invoices/Zones/index.js.map +1 -1
  73. package/lib/invoices/Zones/invoices.zones.interfaces.d.ts +1 -1
  74. package/lib/invoices/index.d.ts +2 -1
  75. package/lib/invoices/index.js +2 -1
  76. package/lib/invoices/index.js.map +1 -1
  77. package/lib/services/SellingTypes/GetMany/Response.d.ts +1 -3
  78. package/lib/services/Services/UpdateMany/Request.d.ts +3 -3
  79. package/lib/system/Directory/system.directory.interfaces.d.ts +18 -0
  80. package/lib/system/Directory/system.directory.interfaces.js +3 -0
  81. package/lib/system/Directory/system.directory.interfaces.js.map +1 -0
  82. package/lib/system/Genders/system.genders.interfaces.d.ts +6 -0
  83. package/lib/system/Genders/system.genders.interfaces.js +3 -0
  84. package/lib/system/Genders/system.genders.interfaces.js.map +1 -0
  85. package/lib/system/Logs/system.logs.interfaces.d.ts +10 -0
  86. package/lib/system/Logs/system.logs.interfaces.js +3 -0
  87. package/lib/system/Logs/system.logs.interfaces.js.map +1 -0
  88. package/package.json +1 -1
  89. package/src/invoices/Calculation/GetSingle/Request.ts +2 -2
  90. package/src/invoices/Calculation/GetSingle/Response.ts +7 -13
  91. package/src/invoices/DocumentTypes/GetMany/Response.ts +3 -0
  92. package/src/invoices/DocumentTypes/GetSingle/Response.ts +3 -0
  93. package/src/invoices/DocumentTypes/index.ts +2 -0
  94. package/src/invoices/DocumentTypes/invoices.document-types.interface.ts +10 -0
  95. package/src/invoices/Documents/CreateMany/Request.ts +3 -0
  96. package/src/invoices/Documents/CreateMany/Response.ts +3 -0
  97. package/src/invoices/Documents/CreateSingle/Request.ts +3 -0
  98. package/src/invoices/Documents/CreateSingle/Response.ts +3 -0
  99. package/src/invoices/Documents/GetMany/Response.ts +2 -2
  100. package/src/invoices/Documents/GetSingle/Response.ts +2 -4
  101. package/src/invoices/Documents/GetSingleLayout/Response.ts +6 -8
  102. package/src/invoices/Documents/UpdateMany/Request.ts +7 -0
  103. package/src/invoices/Documents/UpdateMany/Response.ts +3 -0
  104. package/src/invoices/Documents/UpdateManyStatuses/Request.ts +2 -2
  105. package/src/invoices/Documents/UpdateSingle/Request.ts +3 -0
  106. package/src/invoices/Documents/UpdateSingleStatus/Request.ts +3 -3
  107. package/src/invoices/Documents/index.ts +8 -6
  108. package/src/invoices/Documents/{documents.interfaces.ts → invoices.documents.interfaces.ts} +7 -2
  109. package/src/invoices/Invoices/GetDocumentTypes/Response.ts +1 -1
  110. package/src/invoices/Invoices/invoices.interfaces.ts +2 -2
  111. package/src/invoices/PaymentConditions/DeleteMany/Request.ts +3 -0
  112. package/src/invoices/PaymentConditions/UpdateSingle/Response.ts +2 -2
  113. package/src/invoices/PaymentConditions/index.ts +1 -0
  114. package/src/invoices/Sellers/CreateSingle/Request.ts +1 -1
  115. package/src/invoices/Sellers/DeleteMany/Request.ts +3 -0
  116. package/src/invoices/Sellers/UpdateMany/Request.ts +2 -2
  117. package/src/invoices/Sellers/UpdateSingle/Request.ts +1 -1
  118. package/src/invoices/Sellers/UpdateSingleStatus/Request.ts +3 -3
  119. package/src/invoices/Sellers/index.ts +1 -0
  120. package/src/invoices/Sellers/invoices.sellers.interface.ts +1 -1
  121. package/src/invoices/Zones/CreateSingle/Request.ts +1 -1
  122. package/src/invoices/Zones/DeleteMany/Request.ts +3 -0
  123. package/src/invoices/Zones/UpdateManyStatuses/Request.ts +2 -3
  124. package/src/invoices/Zones/UpdateSingle/Request.ts +1 -1
  125. package/src/invoices/Zones/UpdateSingleStatus/Request.ts +3 -3
  126. package/src/invoices/Zones/index.ts +1 -0
  127. package/src/invoices/Zones/invoices.zones.interfaces.ts +1 -1
  128. package/src/invoices/index.ts +2 -1
  129. package/src/services/SellingTypes/GetMany/Response.ts +1 -3
  130. package/src/services/Services/UpdateMany/Request.ts +2 -2
  131. package/src/system/Directory/system.directory.interfaces.ts +27 -0
  132. package/src/system/Genders/system.genders.interfaces.ts +7 -0
  133. package/src/system/Logs/system.logs.interfaces.ts +14 -0
  134. package/lib/invoices/Documents/UpsertMany/Request.d.ts +0 -4
  135. package/lib/invoices/Documents/UpsertMany/Request.js.map +0 -1
  136. package/lib/invoices/Documents/UpsertMany/Response.d.ts +0 -2
  137. package/lib/invoices/Documents/UpsertMany/Response.js.map +0 -1
  138. package/lib/invoices/Documents/UpsertSingle/Request.d.ts +0 -2
  139. package/lib/invoices/Documents/UpsertSingle/Request.js.map +0 -1
  140. package/lib/invoices/Documents/UpsertSingle/Response.js.map +0 -1
  141. package/lib/invoices/Documents/UpsertSingleLayout/Request.d.ts +0 -11
  142. package/lib/invoices/Documents/UpsertSingleLayout/Request.js.map +0 -1
  143. package/lib/invoices/Documents/UpsertSingleLayout/Response.d.ts +0 -2
  144. package/lib/invoices/Documents/UpsertSingleLayout/Response.js.map +0 -1
  145. package/lib/invoices/Documents/documents.interfaces.js +0 -3
  146. package/lib/invoices/Documents/documents.interfaces.js.map +0 -1
  147. package/lib/invoices/invoices.interfaces.d.ts +0 -7
  148. package/lib/invoices/invoices.interfaces.js +0 -3
  149. package/lib/invoices/invoices.interfaces.js.map +0 -1
  150. package/src/invoices/Documents/UpsertMany/Request.ts +0 -5
  151. package/src/invoices/Documents/UpsertMany/Response.ts +0 -3
  152. package/src/invoices/Documents/UpsertSingle/Request.ts +0 -3
  153. package/src/invoices/Documents/UpsertSingleLayout/Request.ts +0 -16
  154. package/src/invoices/Documents/UpsertSingleLayout/Response.ts +0 -3
  155. package/src/invoices/invoices.interfaces.ts +0 -7
  156. /package/lib/invoices/{Documents/UpsertMany → DocumentTypes/GetMany}/Response.js +0 -0
  157. /package/lib/invoices/{Documents/UpsertSingle → DocumentTypes/GetSingle}/Response.js +0 -0
  158. /package/lib/invoices/Documents/{UpsertMany → CreateMany}/Request.js +0 -0
  159. /package/lib/invoices/Documents/{UpsertSingleLayout → CreateMany}/Response.js +0 -0
  160. /package/lib/invoices/Documents/{UpsertSingle → CreateSingle}/Request.js +0 -0
  161. /package/lib/invoices/Documents/{UpsertSingleLayout → UpdateMany}/Request.js +0 -0
  162. /package/lib/invoices/Documents/{UpsertSingle → UpdateSingle}/Response.d.ts +0 -0
  163. /package/src/invoices/Documents/{UpsertSingle → UpdateSingle}/Response.ts +0 -0
@@ -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>;
@@ -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 @@
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":""}
@@ -0,0 +1,2 @@
1
+ import { InvoicesDocumentsCreateSingleRequest } from '../CreateSingle/Request';
2
+ export type InvoicesDocumentsCreateManyRequest = Array<InvoicesDocumentsCreateSingleRequest>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/CreateMany/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { ManyResponse } from '../../../interfaces';
2
+ export type InvoicesDocumentsCreateManyResponse = ManyResponse;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/CreateMany/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { InvoicesDocumentsRequest } from '../invoices.documents.interfaces';
2
+ export type InvoicesDocumentsCreateSingleRequest = InvoicesDocumentsRequest;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/CreateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type InvoicesDocumentsCreateSingleResponse = SingleResponse;
@@ -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/Documents/CreateSingle/Response.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
- import { InvoicesDocumentsResponse } from '../documents.interfaces';
2
+ import { InvoicesDocumentsResponse } from '../invoices.documents.interfaces';
3
3
  export type InvoicesDocumentsGetManyResponse = GetManyResponse & {
4
- data: InvoicesDocumentsResponse[];
4
+ data: Array<InvoicesDocumentsResponse>;
5
5
  };
@@ -1,4 +1,2 @@
1
- import { InvoicesDocumentsResponse } from '../documents.interfaces';
2
- export interface InvoicesDocumentsGetSingleResponse {
3
- data: InvoicesDocumentsResponse;
4
- }
1
+ import { InvoicesDocumentsResponse } from '../invoices.documents.interfaces';
2
+ export type InvoicesDocumentsGetSingleResponse = InvoicesDocumentsResponse;
@@ -1,29 +1,28 @@
1
- export interface InvoicesDocumentsLayoutHelpers {
1
+ export type InvoicesDocumentsLayoutHelpers = {
2
2
  length: number;
3
3
  value: string;
4
4
  type: string;
5
5
  x: number;
6
6
  y: number;
7
- }
8
- export type InvoicesDocumentsHeaderPositionsLayout = InvoicesDocumentsLayoutHelpers;
7
+ };
9
8
  export type InvoicesDocumentsShortPositionsLayout = Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
10
- export interface InvoicesDocumentsDetailsPositionsLayout {
11
- position_y: string;
12
- height: string;
9
+ export type InvoicesDocumentsDetailsPositionsLayout = {
10
+ position_y: number;
11
+ height: number;
13
12
  quantity: InvoicesDocumentsShortPositionsLayout;
14
13
  description: InvoicesDocumentsShortPositionsLayout;
15
14
  price: InvoicesDocumentsShortPositionsLayout;
16
15
  sujeto: InvoicesDocumentsShortPositionsLayout;
17
16
  exento: InvoicesDocumentsShortPositionsLayout;
18
17
  afecto: InvoicesDocumentsShortPositionsLayout;
19
- }
20
- export interface InvoicesDocumentsLayoutSingleResponse {
18
+ };
19
+ export type InvoicesDocumentsLayoutSingleResponse = {
21
20
  configuration: string;
22
21
  resolution: number[];
23
- header: InvoicesDocumentsHeaderPositionsLayout[];
22
+ header: InvoicesDocumentsLayoutHelpers[];
24
23
  details: InvoicesDocumentsDetailsPositionsLayout;
25
24
  totals: Omit<InvoicesDocumentsLayoutHelpers, 'length'>[];
26
25
  fontSizeDetails: number;
27
26
  fontSizeHeader: number;
28
27
  fontSizeTotals: number;
29
- }
28
+ };
@@ -0,0 +1,4 @@
1
+ import { InvoicesDocumentsUpdateSingleRequest } from '../UpdateSingle/Request';
2
+ export type InvoicesDocumentsUpdateManyRequest = Array<InvoicesDocumentsUpdateSingleRequest & {
3
+ id: string;
4
+ }>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpdateMany/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { ManyResponse } from '../../../interfaces';
2
+ export type InvoicesDocumentsUpdateManyResponse = ManyResponse;
@@ -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/Documents/UpdateMany/Response.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- export interface InvoicesDocumentsUpdateManyStatusesRequest {
2
- ids: string[];
1
+ export type InvoicesDocumentsUpdateManyStatusesRequest = {
2
+ ids: Array<string>;
3
3
  active: boolean;
4
- }
4
+ };
@@ -0,0 +1,2 @@
1
+ import { InvoicesDocumentsRequest } from '../invoices.documents.interfaces';
2
+ export type InvoicesDocumentsUpdateSingleRequest = Partial<InvoicesDocumentsRequest>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpdateSingle/Request.ts"],"names":[],"mappings":""}
@@ -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/Documents/UpdateSingle/Response.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
- import { InvoicesDocumentsRequest } from '../documents.interfaces';
2
- export type InvoicesDocumentsUpdateSingleStatusRequest = Pick<InvoicesDocumentsRequest, 'active'>;
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';
@@ -14,18 +14,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CreateMany/Request"), exports);
18
+ __exportStar(require("./CreateMany/Response"), exports);
19
+ __exportStar(require("./CreateSingle/Request"), exports);
20
+ __exportStar(require("./CreateSingle/Response"), exports);
17
21
  __exportStar(require("./GetMany/Request"), exports);
18
22
  __exportStar(require("./GetMany/Response"), exports);
19
23
  __exportStar(require("./GetSingle/Response"), exports);
20
24
  __exportStar(require("./GetSingleLayout/Response"), exports);
25
+ __exportStar(require("./UpdateMany/Request"), exports);
26
+ __exportStar(require("./UpdateMany/Response"), exports);
21
27
  __exportStar(require("./UpdateManyStatuses/Request"), exports);
22
28
  __exportStar(require("./UpdateManyStatuses/Response"), exports);
29
+ __exportStar(require("./UpdateSingle/Request"), exports);
30
+ __exportStar(require("./UpdateSingle/Response"), exports);
23
31
  __exportStar(require("./UpdateSingleStatus/Request"), exports);
24
32
  __exportStar(require("./UpdateSingleStatus/Response"), exports);
25
- __exportStar(require("./UpsertMany/Request"), exports);
26
- __exportStar(require("./UpsertMany/Response"), exports);
27
- __exportStar(require("./UpsertSingle/Request"), exports);
28
- __exportStar(require("./UpsertSingle/Response"), exports);
29
- __exportStar(require("./UpsertSingleLayout/Request"), exports);
30
- __exportStar(require("./UpsertSingleLayout/Response"), exports);
31
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Documents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,6DAA0C;AAC1C,+DAA4C;AAC5C,gEAA6C;AAC7C,+DAA4C;AAC5C,gEAA6C;AAC7C,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Documents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,6DAA0C;AAC1C,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
@@ -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;
@@ -10,5 +10,7 @@ export type InvoicesDocuments = {
10
10
  isCurrentDocument: boolean;
11
11
  documentType: Omit<InvoicesDocumentTypes, 'includeInTaxes, showForNonTaxers'>;
12
12
  };
13
- export type InvoicesDocumentsRequest = Omit<InvoicesDocuments, 'id'>;
13
+ export type InvoicesDocumentsRequest = Omit<InvoicesDocuments, 'id' | 'active' | 'used' | 'isCurrentDocument' | 'documentType'> & {
14
+ documentType: number;
15
+ };
14
16
  export type InvoicesDocumentsResponse = InvoicesDocuments;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=invoices.documents.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.documents.interfaces.js","sourceRoot":"","sources":["../../../src/invoices/Documents/invoices.documents.interfaces.ts"],"names":[],"mappings":""}
@@ -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 { InvoicesDocumentsResponse } from '../Documents/documents.interfaces';
6
+ import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface';
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 = {
@@ -0,0 +1,3 @@
1
+ export type InvoicesPaymentConditionsDeleteManyRequest = {
2
+ ids: Array<string>;
3
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/PaymentConditions/DeleteMany/Request.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import { ManyResponse } from '../../../interfaces';
2
- export type InvoicesPaymentsConditionsUpdateSingleResponse = ManyResponse;
1
+ import { SingleResponse } from '../../../interfaces';
2
+ 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';
@@ -18,6 +18,7 @@ __exportStar(require("./CreateMany/Request"), exports);
18
18
  __exportStar(require("./CreateMany/Response"), exports);
19
19
  __exportStar(require("./CreateSingle/Request"), exports);
20
20
  __exportStar(require("./CreateSingle/Response"), exports);
21
+ __exportStar(require("./DeleteMany/Request"), exports);
21
22
  __exportStar(require("./DeleteMany/Response"), exports);
22
23
  __exportStar(require("./DeleteSingle/Response"), exports);
23
24
  __exportStar(require("./GetMany/Request"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/PaymentConditions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/PaymentConditions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
@@ -1,2 +1,2 @@
1
1
  import { InvoicesSellersRequest } from '../invoices.sellers.interface';
2
- export type InvoicesSellersCreateSingleRequest = Omit<InvoicesSellersRequest, 'active'>;
2
+ export type InvoicesSellersCreateSingleRequest = InvoicesSellersRequest;
@@ -0,0 +1,3 @@
1
+ export type InvoicesSellersDeleteManyRequest = {
2
+ ids: Array<string>;
3
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Sellers/DeleteMany/Request.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { InvoicesSellersUpdateSingleStatusRequest } from '../UpdateSingleStatus/Request';
2
- export type InvoicesSellersUpdateManyRequest = Array<InvoicesSellersUpdateSingleStatusRequest & {
1
+ import { InvoicesSellersUpdateSingleRequest } from '../UpdateSingle/Request';
2
+ export type InvoicesSellersUpdateManyRequest = Array<InvoicesSellersUpdateSingleRequest & {
3
3
  id: string;
4
4
  }>;
@@ -1,2 +1,2 @@
1
1
  import { InvoicesSellersRequest } from '../invoices.sellers.interface';
2
- export type InvoicesSellersUpdateSingleRequest = Omit<Partial<InvoicesSellersRequest>, 'active'>;
2
+ export type InvoicesSellersUpdateSingleRequest = Partial<InvoicesSellersRequest>;
@@ -1,2 +1,3 @@
1
- import { InvoicesSellersRequest } from '../invoices.sellers.interface';
2
- export type InvoicesSellersUpdateSingleStatusRequest = Pick<InvoicesSellersRequest, 'active'>;
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';
@@ -18,6 +18,7 @@ __exportStar(require("./CreateMany/Request"), exports);
18
18
  __exportStar(require("./CreateMany/Response"), exports);
19
19
  __exportStar(require("./CreateSingle/Request"), exports);
20
20
  __exportStar(require("./CreateSingle/Response"), exports);
21
+ __exportStar(require("./DeleteMany/Request"), exports);
21
22
  __exportStar(require("./DeleteMany/Response"), exports);
22
23
  __exportStar(require("./DeleteSingle/Response"), exports);
23
24
  __exportStar(require("./GetMany/Request"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Sellers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Sellers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
@@ -5,7 +5,7 @@ export interface InvoicesSellers {
5
5
  active: boolean;
6
6
  invoicesZone: InvoicesZones;
7
7
  }
8
- export type InvoicesSellersRequest = Omit<InvoicesSellers, 'id' | 'invoicesZone'> & {
8
+ export type InvoicesSellersRequest = Omit<InvoicesSellers, 'id' | 'active' | 'invoicesZone'> & {
9
9
  invoicesZone: string;
10
10
  };
11
11
  export type InvoicesSellersResponse = InvoicesSellers;
@@ -1,2 +1,2 @@
1
1
  import { InvoicesZonesRequest } from '../invoices.zones.interfaces';
2
- export type InvoicesZonesCreateSingleRequest = Pick<InvoicesZonesRequest, 'name'>;
2
+ export type InvoicesZonesCreateSingleRequest = InvoicesZonesRequest;
@@ -0,0 +1,3 @@
1
+ export type InvoicesZonesDeleteManyResquest = {
2
+ ids: Array<string>;
3
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Zones/DeleteMany/Request.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { InvoicesZonesRequest } from '../invoices.zones.interfaces';
2
- export type InvoicesZonesUpdateManyStatusesRequest = Pick<InvoicesZonesRequest, 'active'> & {
1
+ export type InvoicesZonesUpdateManyStatusesRequest = {
3
2
  ids: Array<string>;
3
+ active: boolean;
4
4
  };
@@ -1,2 +1,2 @@
1
1
  import { InvoicesZonesRequest } from '../invoices.zones.interfaces';
2
- export type InvoicesZonesUpdateSingleRequest = Pick<Partial<InvoicesZonesRequest>, 'name'>;
2
+ export type InvoicesZonesUpdateSingleRequest = InvoicesZonesRequest;
@@ -1,2 +1,3 @@
1
- import { InvoicesZonesRequest } from '../invoices.zones.interfaces';
2
- export type InvoicesZonesUpdateSingleStatusRequest = Pick<InvoicesZonesRequest, 'active'>;
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';
@@ -18,6 +18,7 @@ __exportStar(require("./CreateMany/Request"), exports);
18
18
  __exportStar(require("./CreateMany/Response"), exports);
19
19
  __exportStar(require("./CreateSingle/Request"), exports);
20
20
  __exportStar(require("./CreateSingle/Response"), exports);
21
+ __exportStar(require("./DeleteMany/Request"), exports);
21
22
  __exportStar(require("./DeleteMany/Response"), exports);
22
23
  __exportStar(require("./DeleteSingle/Response"), exports);
23
24
  __exportStar(require("./GetMany/Request"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Zones/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Zones/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
@@ -3,5 +3,5 @@ export type InvoicesZones = {
3
3
  name: string;
4
4
  active: boolean;
5
5
  };
6
- export type InvoicesZonesRequest = Omit<InvoicesZones, 'id'>;
6
+ export type InvoicesZonesRequest = Omit<InvoicesZones, 'id' | 'active'>;
7
7
  export type InvoicesZonesResponse = InvoicesZones;
@@ -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/';