@openbox/shared-types 0.2.19 → 0.2.20

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 (119) hide show
  1. package/lib/invoices/Documents/CreateMany/Request.d.ts +2 -0
  2. package/lib/invoices/Documents/CreateMany/Request.js.map +1 -0
  3. package/lib/invoices/Documents/CreateMany/Response.d.ts +2 -0
  4. package/lib/invoices/Documents/CreateMany/Response.js.map +1 -0
  5. package/lib/invoices/Documents/CreateSingle/Request.d.ts +2 -0
  6. package/lib/invoices/Documents/CreateSingle/Request.js.map +1 -0
  7. package/lib/invoices/Documents/CreateSingle/Response.d.ts +2 -0
  8. package/lib/invoices/Documents/CreateSingle/Response.js.map +1 -0
  9. package/lib/invoices/Documents/GetMany/Response.d.ts +2 -2
  10. package/lib/invoices/Documents/GetSingle/Response.d.ts +2 -4
  11. package/lib/invoices/Documents/GetSingleLayout/Response.d.ts +9 -10
  12. package/lib/invoices/Documents/UpdateMany/Request.d.ts +4 -0
  13. package/lib/invoices/Documents/UpdateMany/Request.js.map +1 -0
  14. package/lib/invoices/Documents/UpdateMany/Response.d.ts +2 -0
  15. package/lib/invoices/Documents/UpdateMany/Response.js.map +1 -0
  16. package/lib/invoices/Documents/UpdateManyStatuses/Request.d.ts +3 -3
  17. package/lib/invoices/Documents/UpdateSingle/Request.d.ts +2 -0
  18. package/lib/invoices/Documents/UpdateSingle/Request.js +3 -0
  19. package/lib/invoices/Documents/UpdateSingle/Request.js.map +1 -0
  20. package/lib/invoices/Documents/UpdateSingle/Response.js +3 -0
  21. package/lib/invoices/Documents/UpdateSingle/Response.js.map +1 -0
  22. package/lib/invoices/Documents/UpdateSingleStatus/Request.d.ts +3 -2
  23. package/lib/invoices/Documents/index.d.ts +8 -6
  24. package/lib/invoices/Documents/index.js +8 -6
  25. package/lib/invoices/Documents/index.js.map +1 -1
  26. package/lib/invoices/Documents/{documents.interfaces.d.ts → invoices.documents.interfaces.d.ts} +3 -1
  27. package/lib/invoices/Documents/invoices.documents.interfaces.js +3 -0
  28. package/lib/invoices/Documents/invoices.documents.interfaces.js.map +1 -0
  29. package/lib/invoices/Invoices/invoices.interfaces.d.ts +1 -1
  30. package/lib/invoices/PaymentConditions/DeleteMany/Request.d.ts +3 -0
  31. package/lib/invoices/PaymentConditions/DeleteMany/Request.js +3 -0
  32. package/lib/invoices/PaymentConditions/DeleteMany/Request.js.map +1 -0
  33. package/lib/invoices/PaymentConditions/UpdateSingle/Response.d.ts +2 -2
  34. package/lib/invoices/PaymentConditions/index.d.ts +1 -0
  35. package/lib/invoices/PaymentConditions/index.js +1 -0
  36. package/lib/invoices/PaymentConditions/index.js.map +1 -1
  37. package/lib/invoices/Sellers/CreateSingle/Request.d.ts +1 -1
  38. package/lib/invoices/Sellers/DeleteMany/Request.d.ts +3 -0
  39. package/lib/invoices/Sellers/DeleteMany/Request.js +3 -0
  40. package/lib/invoices/Sellers/DeleteMany/Request.js.map +1 -0
  41. package/lib/invoices/Sellers/UpdateMany/Request.d.ts +2 -2
  42. package/lib/invoices/Sellers/UpdateSingle/Request.d.ts +1 -1
  43. package/lib/invoices/Sellers/UpdateSingleStatus/Request.d.ts +3 -2
  44. package/lib/invoices/Sellers/index.d.ts +1 -0
  45. package/lib/invoices/Sellers/index.js +1 -0
  46. package/lib/invoices/Sellers/index.js.map +1 -1
  47. package/lib/invoices/Sellers/invoices.sellers.interface.d.ts +1 -1
  48. package/lib/invoices/Zones/CreateSingle/Request.d.ts +1 -1
  49. package/lib/invoices/Zones/DeleteMany/Request.d.ts +3 -0
  50. package/lib/invoices/Zones/DeleteMany/Request.js +3 -0
  51. package/lib/invoices/Zones/DeleteMany/Request.js.map +1 -0
  52. package/lib/invoices/Zones/UpdateManyStatuses/Request.d.ts +2 -2
  53. package/lib/invoices/Zones/UpdateSingle/Request.d.ts +1 -1
  54. package/lib/invoices/Zones/UpdateSingleStatus/Request.d.ts +3 -2
  55. package/lib/invoices/Zones/index.d.ts +1 -0
  56. package/lib/invoices/Zones/index.js +1 -0
  57. package/lib/invoices/Zones/index.js.map +1 -1
  58. package/lib/invoices/Zones/invoices.zones.interfaces.d.ts +1 -1
  59. package/lib/services/Services/UpdateMany/Request.d.ts +3 -3
  60. package/package.json +1 -1
  61. package/src/invoices/Documents/CreateMany/Request.ts +3 -0
  62. package/src/invoices/Documents/CreateMany/Response.ts +3 -0
  63. package/src/invoices/Documents/CreateSingle/Request.ts +3 -0
  64. package/src/invoices/Documents/CreateSingle/Response.ts +3 -0
  65. package/src/invoices/Documents/GetMany/Response.ts +2 -2
  66. package/src/invoices/Documents/GetSingle/Response.ts +2 -4
  67. package/src/invoices/Documents/GetSingleLayout/Response.ts +6 -8
  68. package/src/invoices/Documents/UpdateMany/Request.ts +7 -0
  69. package/src/invoices/Documents/UpdateMany/Response.ts +3 -0
  70. package/src/invoices/Documents/UpdateManyStatuses/Request.ts +2 -2
  71. package/src/invoices/Documents/UpdateSingle/Request.ts +3 -0
  72. package/src/invoices/Documents/UpdateSingleStatus/Request.ts +3 -3
  73. package/src/invoices/Documents/index.ts +8 -6
  74. package/src/invoices/Documents/{documents.interfaces.ts → invoices.documents.interfaces.ts} +6 -1
  75. package/src/invoices/Invoices/invoices.interfaces.ts +1 -1
  76. package/src/invoices/PaymentConditions/DeleteMany/Request.ts +3 -0
  77. package/src/invoices/PaymentConditions/UpdateSingle/Response.ts +2 -2
  78. package/src/invoices/PaymentConditions/index.ts +1 -0
  79. package/src/invoices/Sellers/CreateSingle/Request.ts +1 -1
  80. package/src/invoices/Sellers/DeleteMany/Request.ts +3 -0
  81. package/src/invoices/Sellers/UpdateMany/Request.ts +2 -2
  82. package/src/invoices/Sellers/UpdateSingle/Request.ts +1 -1
  83. package/src/invoices/Sellers/UpdateSingleStatus/Request.ts +3 -3
  84. package/src/invoices/Sellers/index.ts +1 -0
  85. package/src/invoices/Sellers/invoices.sellers.interface.ts +1 -1
  86. package/src/invoices/Zones/CreateSingle/Request.ts +1 -1
  87. package/src/invoices/Zones/DeleteMany/Request.ts +3 -0
  88. package/src/invoices/Zones/UpdateManyStatuses/Request.ts +2 -3
  89. package/src/invoices/Zones/UpdateSingle/Request.ts +1 -1
  90. package/src/invoices/Zones/UpdateSingleStatus/Request.ts +3 -3
  91. package/src/invoices/Zones/index.ts +1 -0
  92. package/src/invoices/Zones/invoices.zones.interfaces.ts +1 -1
  93. package/src/services/Services/UpdateMany/Request.ts +2 -2
  94. package/lib/invoices/Documents/UpsertMany/Request.d.ts +0 -4
  95. package/lib/invoices/Documents/UpsertMany/Request.js.map +0 -1
  96. package/lib/invoices/Documents/UpsertMany/Response.d.ts +0 -2
  97. package/lib/invoices/Documents/UpsertMany/Response.js.map +0 -1
  98. package/lib/invoices/Documents/UpsertSingle/Request.d.ts +0 -2
  99. package/lib/invoices/Documents/UpsertSingle/Request.js.map +0 -1
  100. package/lib/invoices/Documents/UpsertSingle/Response.js.map +0 -1
  101. package/lib/invoices/Documents/UpsertSingleLayout/Request.d.ts +0 -11
  102. package/lib/invoices/Documents/UpsertSingleLayout/Request.js.map +0 -1
  103. package/lib/invoices/Documents/UpsertSingleLayout/Response.d.ts +0 -2
  104. package/lib/invoices/Documents/UpsertSingleLayout/Response.js.map +0 -1
  105. package/lib/invoices/Documents/documents.interfaces.js +0 -3
  106. package/lib/invoices/Documents/documents.interfaces.js.map +0 -1
  107. package/src/invoices/Documents/UpsertMany/Request.ts +0 -5
  108. package/src/invoices/Documents/UpsertMany/Response.ts +0 -3
  109. package/src/invoices/Documents/UpsertSingle/Request.ts +0 -3
  110. package/src/invoices/Documents/UpsertSingleLayout/Request.ts +0 -16
  111. package/src/invoices/Documents/UpsertSingleLayout/Response.ts +0 -3
  112. /package/lib/invoices/Documents/{UpsertMany → CreateMany}/Request.js +0 -0
  113. /package/lib/invoices/Documents/{UpsertMany → CreateMany}/Response.js +0 -0
  114. /package/lib/invoices/Documents/{UpsertSingle → CreateSingle}/Request.js +0 -0
  115. /package/lib/invoices/Documents/{UpsertSingle → CreateSingle}/Response.js +0 -0
  116. /package/lib/invoices/Documents/{UpsertSingleLayout → UpdateMany}/Request.js +0 -0
  117. /package/lib/invoices/Documents/{UpsertSingleLayout → UpdateMany}/Response.js +0 -0
  118. /package/lib/invoices/Documents/{UpsertSingle → UpdateSingle}/Response.d.ts +0 -0
  119. /package/src/invoices/Documents/{UpsertSingle → UpdateSingle}/Response.ts +0 -0
@@ -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 @@
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 @@
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"}
@@ -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":""}
@@ -3,7 +3,7 @@ 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 { InvoicesDocumentsResponse } from '../Documents/invoices.documents.interfaces';
7
7
  import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/invoices.payment-conditions.interface';
8
8
  import { InvoicesSellersResponse } from '../Sellers/invoices.sellers.interface';
9
9
  import { InvoicesStatusesResponse } from '../Statuses/invoices.statuses.interfaces';
@@ -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,4 +1,4 @@
1
- import { ServicesRequest } from '../services.interface';
2
- export type ServicesUpdateManyRequest = Array<Partial<ServicesRequest & {
1
+ import { ServicesUpdateSingleRequest } from '../UpdateSingle/Request';
2
+ export type ServicesUpdateManyRequest = Array<ServicesUpdateSingleRequest & {
3
3
  id: string;
4
- }>>;
4
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.19",
3
+ "version": "0.2.20",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,3 @@
1
+ import { InvoicesDocumentsCreateSingleRequest } from '../CreateSingle/Request'
2
+
3
+ export type InvoicesDocumentsCreateManyRequest = Array<InvoicesDocumentsCreateSingleRequest>
@@ -0,0 +1,3 @@
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type InvoicesDocumentsCreateManyResponse = ManyResponse
@@ -0,0 +1,3 @@
1
+ import { InvoicesDocumentsRequest } from '../invoices.documents.interfaces'
2
+
3
+ export type InvoicesDocumentsCreateSingleRequest = InvoicesDocumentsRequest
@@ -0,0 +1,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type InvoicesDocumentsCreateSingleResponse = SingleResponse
@@ -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 interface InvoicesDocumentsGetSingleResponse {
4
- data: InvoicesDocumentsResponse
5
- }
3
+ export type InvoicesDocumentsGetSingleResponse = InvoicesDocumentsResponse
@@ -1,4 +1,4 @@
1
- export interface InvoicesDocumentsLayoutHelpers {
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 interface InvoicesDocumentsDetailsPositionsLayout {
14
- position_y: string
15
- height: string
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 interface InvoicesDocumentsLayoutSingleResponse {
22
+ export type InvoicesDocumentsLayoutSingleResponse = {
25
23
  configuration: string
26
24
  resolution: number[]
27
- header: InvoicesDocumentsHeaderPositionsLayout[]
25
+ header: InvoicesDocumentsLayoutHelpers[]
28
26
  details: InvoicesDocumentsDetailsPositionsLayout
29
27
  totals: Omit<InvoicesDocumentsLayoutHelpers, 'length'>[]
30
28
  fontSizeDetails: number
@@ -0,0 +1,7 @@
1
+ import { InvoicesDocumentsUpdateSingleRequest } from '../UpdateSingle/Request'
2
+
3
+ export type InvoicesDocumentsUpdateManyRequest = Array<
4
+ InvoicesDocumentsUpdateSingleRequest & {
5
+ id: string
6
+ }
7
+ >
@@ -0,0 +1,3 @@
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type InvoicesDocumentsUpdateManyResponse = ManyResponse
@@ -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,3 @@
1
+ import { InvoicesDocumentsRequest } from '../invoices.documents.interfaces'
2
+
3
+ export type InvoicesDocumentsUpdateSingleRequest = Partial<InvoicesDocumentsRequest>
@@ -1,3 +1,3 @@
1
- import { InvoicesDocumentsRequest } from '../documents.interfaces'
2
-
3
- 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'
@@ -12,6 +12,11 @@ export type InvoicesDocuments = {
12
12
  documentType: Omit<InvoicesDocumentTypes, 'includeInTaxes, showForNonTaxers'>
13
13
  }
14
14
 
15
- export type InvoicesDocumentsRequest = Omit<InvoicesDocuments, 'id'>
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,7 +6,7 @@ import {
6
6
  InvoicesCalculationsDetailsResponse,
7
7
  InvoicesCalculationsTotalsResponse,
8
8
  } from '../Calculation'
9
- import { InvoicesDocumentsResponse } from '../Documents/documents.interfaces'
9
+ import { InvoicesDocumentsResponse } from '../Documents/invoices.documents.interfaces'
10
10
  import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/invoices.payment-conditions.interface'
11
11
  import { InvoicesSellersResponse } from '../Sellers/invoices.sellers.interface'
12
12
  import { InvoicesStatusesResponse } from '../Statuses/invoices.statuses.interfaces'
@@ -0,0 +1,3 @@
1
+ export type InvoicesPaymentConditionsDeleteManyRequest = {
2
+ ids: Array<string>
3
+ }
@@ -1,3 +1,3 @@
1
- import { ManyResponse } from '../../../interfaces'
1
+ import { SingleResponse } from '../../../interfaces'
2
2
 
3
- export type InvoicesPaymentsConditionsUpdateSingleResponse = ManyResponse
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,3 +1,3 @@
1
1
  import { InvoicesSellersRequest } from '../invoices.sellers.interface'
2
2
 
3
- export type InvoicesSellersCreateSingleRequest = Omit<InvoicesSellersRequest, 'active'>
3
+ export type InvoicesSellersCreateSingleRequest = InvoicesSellersRequest
@@ -0,0 +1,3 @@
1
+ export type InvoicesSellersDeleteManyRequest = {
2
+ ids: Array<string>
3
+ }
@@ -1,7 +1,7 @@
1
- import { InvoicesSellersUpdateSingleStatusRequest } from '../UpdateSingleStatus/Request'
1
+ import { InvoicesSellersUpdateSingleRequest } from '../UpdateSingle/Request'
2
2
 
3
3
  export type InvoicesSellersUpdateManyRequest = Array<
4
- InvoicesSellersUpdateSingleStatusRequest & {
4
+ InvoicesSellersUpdateSingleRequest & {
5
5
  id: string
6
6
  }
7
7
  >
@@ -1,3 +1,3 @@
1
1
  import { InvoicesSellersRequest } from '../invoices.sellers.interface'
2
2
 
3
- export type InvoicesSellersUpdateSingleRequest = Omit<Partial<InvoicesSellersRequest>, 'active'>
3
+ export type InvoicesSellersUpdateSingleRequest = Partial<InvoicesSellersRequest>
@@ -1,3 +1,3 @@
1
- import { InvoicesSellersRequest } from '../invoices.sellers.interface'
2
-
3
- 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'
@@ -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
1
  import { InvoicesZonesRequest } from '../invoices.zones.interfaces'
2
2
 
3
- export type InvoicesZonesCreateSingleRequest = Pick<InvoicesZonesRequest, 'name'>
3
+ export type InvoicesZonesCreateSingleRequest = InvoicesZonesRequest
@@ -0,0 +1,3 @@
1
+ export type InvoicesZonesDeleteManyResquest = {
2
+ ids: Array<string>
3
+ }
@@ -1,5 +1,4 @@
1
- import { InvoicesZonesRequest } from '../invoices.zones.interfaces'
2
-
3
- export type InvoicesZonesUpdateManyStatusesRequest = Pick<InvoicesZonesRequest, 'active'> & {
1
+ export type InvoicesZonesUpdateManyStatusesRequest = {
4
2
  ids: Array<string>
3
+ active: boolean
5
4
  }
@@ -1,3 +1,3 @@
1
1
  import { InvoicesZonesRequest } from '../invoices.zones.interfaces'
2
2
 
3
- export type InvoicesZonesUpdateSingleRequest = Pick<Partial<InvoicesZonesRequest>, 'name'>
3
+ export type InvoicesZonesUpdateSingleRequest = InvoicesZonesRequest
@@ -1,3 +1,3 @@
1
- import { InvoicesZonesRequest } from '../invoices.zones.interfaces'
2
-
3
- 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'
@@ -4,5 +4,5 @@ export type InvoicesZones = {
4
4
  active: boolean
5
5
  }
6
6
 
7
- export type InvoicesZonesRequest = Omit<InvoicesZones, 'id'>
7
+ export type InvoicesZonesRequest = Omit<InvoicesZones, 'id' | 'active'>
8
8
  export type InvoicesZonesResponse = InvoicesZones
@@ -1,3 +1,3 @@
1
- import { ServicesRequest } from '../services.interface'
1
+ import { ServicesUpdateSingleRequest } from '../UpdateSingle/Request'
2
2
 
3
- export type ServicesUpdateManyRequest = Array<Partial<ServicesRequest & { id: string }>>
3
+ export type ServicesUpdateManyRequest = Array<ServicesUpdateSingleRequest & { id: string }>
@@ -1,4 +0,0 @@
1
- import { InvoicesDocumentsUpsertSingleRequest } from '../UpsertSingle/Request';
2
- export interface InvoicesDocumentsUpsertManyRequest {
3
- data: InvoicesDocumentsUpsertSingleRequest[];
4
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpsertMany/Request.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { ManyResponse } from '../../../interfaces';
2
- export type InvoicesDocumentsUpsertManyResponse = ManyResponse;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpsertMany/Response.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { InvoicesDocumentsRequest } from '../documents.interfaces';
2
- export type InvoicesDocumentsUpsertSingleRequest = Partial<InvoicesDocumentsRequest>;
@@ -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":""}
@@ -1,11 +0,0 @@
1
- import { InvoicesDocumentsDetailsPositionsLayout, InvoicesDocumentsHeaderPositionsLayout, InvoicesDocumentsLayoutHelpers } from '../GetSingleLayout/Response';
2
- export interface InvoicesDocumentsUpsertLayoutSingleRequest {
3
- configuration: string;
4
- resolution: number[];
5
- header: Partial<InvoicesDocumentsHeaderPositionsLayout>[];
6
- details: Partial<InvoicesDocumentsDetailsPositionsLayout>;
7
- totals: Omit<InvoicesDocumentsLayoutHelpers, 'length'>[];
8
- fontSizeDetails: number;
9
- fontSizeHeader: number;
10
- fontSizeTotals: number;
11
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpsertSingleLayout/Request.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { SingleResponse } from '../../../interfaces';
2
- export type InvoicesDocumentsUpsertLayoutSingleResponse = SingleResponse;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpsertSingleLayout/Response.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=documents.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.interfaces.js","sourceRoot":"","sources":["../../../src/invoices/Documents/documents.interfaces.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { InvoicesDocumentsUpsertSingleRequest } from '../UpsertSingle/Request'
2
-
3
- export interface InvoicesDocumentsUpsertManyRequest {
4
- data: InvoicesDocumentsUpsertSingleRequest[]
5
- }
@@ -1,3 +0,0 @@
1
- import { ManyResponse } from '../../../interfaces'
2
-
3
- export type InvoicesDocumentsUpsertManyResponse = ManyResponse
@@ -1,3 +0,0 @@
1
- import { InvoicesDocumentsRequest } from '../documents.interfaces'
2
-
3
- export type InvoicesDocumentsUpsertSingleRequest = Partial<InvoicesDocumentsRequest>
@@ -1,16 +0,0 @@
1
- import {
2
- InvoicesDocumentsDetailsPositionsLayout,
3
- InvoicesDocumentsHeaderPositionsLayout,
4
- InvoicesDocumentsLayoutHelpers,
5
- } from '../GetSingleLayout/Response'
6
-
7
- export interface InvoicesDocumentsUpsertLayoutSingleRequest {
8
- configuration: string
9
- resolution: number[]
10
- header: Partial<InvoicesDocumentsHeaderPositionsLayout>[]
11
- details: Partial<InvoicesDocumentsDetailsPositionsLayout>
12
- totals: Omit<InvoicesDocumentsLayoutHelpers, 'length'>[]
13
- fontSizeDetails: number
14
- fontSizeHeader: number
15
- fontSizeTotals: number
16
- }
@@ -1,3 +0,0 @@
1
- import { SingleResponse } from '../../../interfaces'
2
-
3
- export type InvoicesDocumentsUpsertLayoutSingleResponse = SingleResponse