factuplan 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -134,8 +134,13 @@ interface InvoiceStatus {
|
|
|
134
134
|
authorizationDate?: string;
|
|
135
135
|
}
|
|
136
136
|
interface DownloadUrlResponse {
|
|
137
|
+
/** URL pre-firmada de S3 — expira en 5 minutos */
|
|
137
138
|
url: string;
|
|
138
|
-
|
|
139
|
+
/**
|
|
140
|
+
* URL permanente de visualización del comprobante en Factuplan.
|
|
141
|
+
* No expira. Formato: https://app.factuplan.com.ec/verify?clave={accessKey}
|
|
142
|
+
*/
|
|
143
|
+
previewUrl?: string;
|
|
139
144
|
}
|
|
140
145
|
interface SignAndAuthorizeInput {
|
|
141
146
|
/** Unsigned XML string */
|
|
@@ -205,7 +210,7 @@ interface WebhookReceiptData {
|
|
|
205
210
|
customerIdentification: string;
|
|
206
211
|
}
|
|
207
212
|
interface FactuplanOptions {
|
|
208
|
-
/** Base URL of the API (default: https://api.factuplan.com/
|
|
213
|
+
/** Base URL of the API (default: https://api-rest.factuplan.com.ec/v1) */
|
|
209
214
|
baseUrl?: string;
|
|
210
215
|
/** Request timeout in milliseconds (default: 30000) */
|
|
211
216
|
timeout?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -134,8 +134,13 @@ interface InvoiceStatus {
|
|
|
134
134
|
authorizationDate?: string;
|
|
135
135
|
}
|
|
136
136
|
interface DownloadUrlResponse {
|
|
137
|
+
/** URL pre-firmada de S3 — expira en 5 minutos */
|
|
137
138
|
url: string;
|
|
138
|
-
|
|
139
|
+
/**
|
|
140
|
+
* URL permanente de visualización del comprobante en Factuplan.
|
|
141
|
+
* No expira. Formato: https://app.factuplan.com.ec/verify?clave={accessKey}
|
|
142
|
+
*/
|
|
143
|
+
previewUrl?: string;
|
|
139
144
|
}
|
|
140
145
|
interface SignAndAuthorizeInput {
|
|
141
146
|
/** Unsigned XML string */
|
|
@@ -205,7 +210,7 @@ interface WebhookReceiptData {
|
|
|
205
210
|
customerIdentification: string;
|
|
206
211
|
}
|
|
207
212
|
interface FactuplanOptions {
|
|
208
|
-
/** Base URL of the API (default: https://api.factuplan.com/
|
|
213
|
+
/** Base URL of the API (default: https://api-rest.factuplan.com.ec/v1) */
|
|
209
214
|
baseUrl?: string;
|
|
210
215
|
/** Request timeout in milliseconds (default: 30000) */
|
|
211
216
|
timeout?: number;
|
package/dist/index.js
CHANGED
|
@@ -154,7 +154,7 @@ var WebhooksResource = class {
|
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
// src/client.ts
|
|
157
|
-
var DEFAULT_BASE_URL = "https://api-rest.factuplan.com.ec/
|
|
157
|
+
var DEFAULT_BASE_URL = "https://api-rest.factuplan.com.ec/v1";
|
|
158
158
|
var DEFAULT_TIMEOUT = 3e4;
|
|
159
159
|
var Factuplan = class {
|
|
160
160
|
constructor(apiKey, options) {
|
package/dist/index.mjs
CHANGED
|
@@ -125,7 +125,7 @@ var WebhooksResource = class {
|
|
|
125
125
|
};
|
|
126
126
|
|
|
127
127
|
// src/client.ts
|
|
128
|
-
var DEFAULT_BASE_URL = "https://api-rest.factuplan.com.ec/
|
|
128
|
+
var DEFAULT_BASE_URL = "https://api-rest.factuplan.com.ec/v1";
|
|
129
129
|
var DEFAULT_TIMEOUT = 3e4;
|
|
130
130
|
var Factuplan = class {
|
|
131
131
|
constructor(apiKey, options) {
|
package/package.json
CHANGED