@openbox/shared-types 0.6.2 → 0.6.4

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.
@@ -0,0 +1,15 @@
1
+ import { PartnersV1DocumentStatus, PartnersV1HaciendaResponse } from '../../shared.types';
2
+ /**
3
+ * Response type for GetSingle operation on Partners V1 Invoices.
4
+ * This type is intentionally separate from CreateSingle response to allow
5
+ * independent evolution of API contracts. Even though they currently share
6
+ * the same structure, keeping them separate provides flexibility for future
7
+ * changes (e.g., additional fields for GetSingle that CreateSingle doesn't return).
8
+ */
9
+ export type PartnersV1InvoicesGetSingleResponse = {
10
+ id: string;
11
+ pdfURL: string;
12
+ jsonURL: string;
13
+ status: PartnersV1DocumentStatus;
14
+ haciendaResponse: PartnersV1HaciendaResponse;
15
+ };
@@ -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/partners/V1/invoices/GetSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { PartnersV1DocumentStatus, PartnersV1HaciendaResponse } from '../../shared.types';
2
+ /**
3
+ * Response type for VoidSingle operation on Partners V1 Invoices.
4
+ * This type handles invoice annulment/cancellation/void operations for partner integrations.
5
+ *
6
+ * This type is intentionally separate from the core invoices VoidSingle response to maintain
7
+ * API contract separation and allow for future partner-specific customizations without affecting
8
+ * core modules. This includes potential differences in validation, Hacienda response handling,
9
+ * status tracking, or additional metadata specific to partner flows.
10
+ */
11
+ export type PartnersV1InvoicesVoidSingleResponse = {
12
+ id: string;
13
+ message: string;
14
+ status: PartnersV1DocumentStatus;
15
+ haciendaResponse: PartnersV1HaciendaResponse;
16
+ };
@@ -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/partners/V1/invoices/VoidSingle/Response.ts"],"names":[],"mappings":""}
@@ -1,2 +1,4 @@
1
1
  export * from './CreateSingle/Request';
2
2
  export * from './CreateSingle/Response';
3
+ export * from './GetSingle/Response';
4
+ export * from './VoidSingle/Response';
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateSingle/Request"), exports);
18
18
  __exportStar(require("./CreateSingle/Response"), exports);
19
+ __exportStar(require("./GetSingle/Response"), exports);
20
+ __exportStar(require("./VoidSingle/Response"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/partners/V1/invoices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/partners/V1/invoices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.6.02",
3
+ "version": "0.6.04",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",