@pimia/sdk 0.7.0 → 0.8.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/api.d.ts +3242 -683
- package/dist/client.d.ts +51 -51
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -199,12 +199,12 @@ export declare class PimiaClient {
|
|
|
199
199
|
invoice_date: string;
|
|
200
200
|
due_date: string | null;
|
|
201
201
|
invoice_number: string | null;
|
|
202
|
-
reference_number: string;
|
|
202
|
+
reference_number: string | null;
|
|
203
203
|
status: string;
|
|
204
204
|
paid_status: string;
|
|
205
|
-
tax_per_item: string;
|
|
205
|
+
tax_per_item: string | null;
|
|
206
206
|
tax_included: string;
|
|
207
|
-
discount_per_item: string;
|
|
207
|
+
discount_per_item: string | null;
|
|
208
208
|
notes: string | null;
|
|
209
209
|
discount_type: string | null;
|
|
210
210
|
discount: number;
|
|
@@ -213,7 +213,7 @@ export declare class PimiaClient {
|
|
|
213
213
|
total: number;
|
|
214
214
|
effective_total: string;
|
|
215
215
|
tax: number;
|
|
216
|
-
due_amount:
|
|
216
|
+
due_amount: number;
|
|
217
217
|
effective_due_amount: string;
|
|
218
218
|
sent: string;
|
|
219
219
|
viewed: string;
|
|
@@ -221,19 +221,19 @@ export declare class PimiaClient {
|
|
|
221
221
|
viewed_at: string;
|
|
222
222
|
unique_hash: string | null;
|
|
223
223
|
template_name: string | null;
|
|
224
|
-
invoice_series_id:
|
|
224
|
+
invoice_series_id: number | null;
|
|
225
225
|
customer_id: number | null;
|
|
226
226
|
external_ref: string | null;
|
|
227
|
-
payment_method_id:
|
|
228
|
-
recurring_invoice_id:
|
|
227
|
+
payment_method_id: number | null;
|
|
228
|
+
recurring_invoice_id: number | null;
|
|
229
229
|
sequence_number: number | null;
|
|
230
230
|
exchange_rate: number | null;
|
|
231
|
-
base_discount_val:
|
|
232
|
-
base_sub_total:
|
|
233
|
-
base_total:
|
|
231
|
+
base_discount_val: number;
|
|
232
|
+
base_sub_total: number;
|
|
233
|
+
base_total: number;
|
|
234
234
|
creator_id: number | null;
|
|
235
|
-
base_tax:
|
|
236
|
-
base_due_amount:
|
|
235
|
+
base_tax: number;
|
|
236
|
+
base_due_amount: number;
|
|
237
237
|
effective_base_total: string;
|
|
238
238
|
effective_base_due_amount: string;
|
|
239
239
|
credited_total: string;
|
|
@@ -258,7 +258,7 @@ export declare class PimiaClient {
|
|
|
258
258
|
rectified_invoice?: {
|
|
259
259
|
id: number;
|
|
260
260
|
invoice_number: string | null;
|
|
261
|
-
tax_per_item: string;
|
|
261
|
+
tax_per_item: string | null;
|
|
262
262
|
tax_included: string;
|
|
263
263
|
sub_total: number;
|
|
264
264
|
discount_val: number;
|
|
@@ -272,8 +272,8 @@ export declare class PimiaClient {
|
|
|
272
272
|
payments?: components["schemas"]["PaymentResource"][];
|
|
273
273
|
email_logs?: components["schemas"]["EmailLogResource"][];
|
|
274
274
|
customer?: components["schemas"]["CustomerResource"] | null;
|
|
275
|
-
invoice_series?: components["schemas"]["InvoiceSeriesResource"];
|
|
276
|
-
payment_method?: components["schemas"]["PaymentMethodResource"];
|
|
275
|
+
invoice_series?: components["schemas"]["InvoiceSeriesResource"] | null;
|
|
276
|
+
payment_method?: components["schemas"]["PaymentMethodResource"] | null;
|
|
277
277
|
creator?: components["schemas"]["UserResource"] | null;
|
|
278
278
|
taxes: components["schemas"]["TaxResource"][];
|
|
279
279
|
fields?: components["schemas"]["CustomFieldValueResource"][];
|
|
@@ -286,12 +286,12 @@ export declare class PimiaClient {
|
|
|
286
286
|
invoice_date: string;
|
|
287
287
|
due_date: string | null;
|
|
288
288
|
invoice_number: string | null;
|
|
289
|
-
reference_number: string;
|
|
289
|
+
reference_number: string | null;
|
|
290
290
|
status: string;
|
|
291
291
|
paid_status: string;
|
|
292
|
-
tax_per_item: string;
|
|
292
|
+
tax_per_item: string | null;
|
|
293
293
|
tax_included: string;
|
|
294
|
-
discount_per_item: string;
|
|
294
|
+
discount_per_item: string | null;
|
|
295
295
|
notes: string | null;
|
|
296
296
|
discount_type: string | null;
|
|
297
297
|
discount: number;
|
|
@@ -300,7 +300,7 @@ export declare class PimiaClient {
|
|
|
300
300
|
total: number;
|
|
301
301
|
effective_total: string;
|
|
302
302
|
tax: number;
|
|
303
|
-
due_amount:
|
|
303
|
+
due_amount: number;
|
|
304
304
|
effective_due_amount: string;
|
|
305
305
|
sent: string;
|
|
306
306
|
viewed: string;
|
|
@@ -308,19 +308,19 @@ export declare class PimiaClient {
|
|
|
308
308
|
viewed_at: string;
|
|
309
309
|
unique_hash: string | null;
|
|
310
310
|
template_name: string | null;
|
|
311
|
-
invoice_series_id:
|
|
311
|
+
invoice_series_id: number | null;
|
|
312
312
|
customer_id: number | null;
|
|
313
313
|
external_ref: string | null;
|
|
314
|
-
payment_method_id:
|
|
315
|
-
recurring_invoice_id:
|
|
314
|
+
payment_method_id: number | null;
|
|
315
|
+
recurring_invoice_id: number | null;
|
|
316
316
|
sequence_number: number | null;
|
|
317
317
|
exchange_rate: number | null;
|
|
318
|
-
base_discount_val:
|
|
319
|
-
base_sub_total:
|
|
320
|
-
base_total:
|
|
318
|
+
base_discount_val: number;
|
|
319
|
+
base_sub_total: number;
|
|
320
|
+
base_total: number;
|
|
321
321
|
creator_id: number | null;
|
|
322
|
-
base_tax:
|
|
323
|
-
base_due_amount:
|
|
322
|
+
base_tax: number;
|
|
323
|
+
base_due_amount: number;
|
|
324
324
|
effective_base_total: string;
|
|
325
325
|
effective_base_due_amount: string;
|
|
326
326
|
credited_total: string;
|
|
@@ -345,7 +345,7 @@ export declare class PimiaClient {
|
|
|
345
345
|
rectified_invoice?: {
|
|
346
346
|
id: number;
|
|
347
347
|
invoice_number: string | null;
|
|
348
|
-
tax_per_item: string;
|
|
348
|
+
tax_per_item: string | null;
|
|
349
349
|
tax_included: string;
|
|
350
350
|
sub_total: number;
|
|
351
351
|
discount_val: number;
|
|
@@ -359,8 +359,8 @@ export declare class PimiaClient {
|
|
|
359
359
|
payments?: components["schemas"]["PaymentResource"][];
|
|
360
360
|
email_logs?: components["schemas"]["EmailLogResource"][];
|
|
361
361
|
customer?: components["schemas"]["CustomerResource"] | null;
|
|
362
|
-
invoice_series?: components["schemas"]["InvoiceSeriesResource"];
|
|
363
|
-
payment_method?: components["schemas"]["PaymentMethodResource"];
|
|
362
|
+
invoice_series?: components["schemas"]["InvoiceSeriesResource"] | null;
|
|
363
|
+
payment_method?: components["schemas"]["PaymentMethodResource"] | null;
|
|
364
364
|
creator?: components["schemas"]["UserResource"] | null;
|
|
365
365
|
taxes: components["schemas"]["TaxResource"][];
|
|
366
366
|
fields?: components["schemas"]["CustomFieldValueResource"][];
|
|
@@ -397,17 +397,17 @@ export declare class PimiaClient {
|
|
|
397
397
|
enable_portal: boolean;
|
|
398
398
|
password_added: boolean;
|
|
399
399
|
currency_id: number | null;
|
|
400
|
-
payment_method_id:
|
|
400
|
+
payment_method_id: number | null;
|
|
401
401
|
company_id: number | null;
|
|
402
402
|
created_at: string | null;
|
|
403
403
|
formatted_created_at: string;
|
|
404
404
|
updated_at: string | null;
|
|
405
405
|
avatar: string;
|
|
406
|
-
due_amount:
|
|
407
|
-
base_due_amount:
|
|
406
|
+
due_amount: number | null;
|
|
407
|
+
base_due_amount: number | null;
|
|
408
408
|
prefix: string | null;
|
|
409
|
-
tax_id: string;
|
|
410
|
-
notes: string;
|
|
409
|
+
tax_id: string | null;
|
|
410
|
+
notes: string | null;
|
|
411
411
|
external_ref: string | null;
|
|
412
412
|
iban: string | null;
|
|
413
413
|
bic: string | null;
|
|
@@ -418,7 +418,7 @@ export declare class PimiaClient {
|
|
|
418
418
|
fields?: components["schemas"]["CustomFieldValueResource"][];
|
|
419
419
|
company?: components["schemas"]["CompanyResource"] | null;
|
|
420
420
|
currency?: components["schemas"]["CurrencyResource"] | null;
|
|
421
|
-
payment_method?: components["schemas"]["PaymentMethodResource"];
|
|
421
|
+
payment_method?: components["schemas"]["PaymentMethodResource"] | null;
|
|
422
422
|
}>>;
|
|
423
423
|
};
|
|
424
424
|
get estimates(): {
|
|
@@ -479,12 +479,12 @@ export declare class PimiaClient {
|
|
|
479
479
|
invoice_date: string;
|
|
480
480
|
due_date: string | null;
|
|
481
481
|
invoice_number: string | null;
|
|
482
|
-
reference_number: string;
|
|
482
|
+
reference_number: string | null;
|
|
483
483
|
status: string;
|
|
484
484
|
paid_status: string;
|
|
485
|
-
tax_per_item: string;
|
|
485
|
+
tax_per_item: string | null;
|
|
486
486
|
tax_included: string;
|
|
487
|
-
discount_per_item: string;
|
|
487
|
+
discount_per_item: string | null;
|
|
488
488
|
notes: string | null;
|
|
489
489
|
discount_type: string | null;
|
|
490
490
|
discount: number;
|
|
@@ -493,7 +493,7 @@ export declare class PimiaClient {
|
|
|
493
493
|
total: number;
|
|
494
494
|
effective_total: string;
|
|
495
495
|
tax: number;
|
|
496
|
-
due_amount:
|
|
496
|
+
due_amount: number;
|
|
497
497
|
effective_due_amount: string;
|
|
498
498
|
sent: string;
|
|
499
499
|
viewed: string;
|
|
@@ -501,19 +501,19 @@ export declare class PimiaClient {
|
|
|
501
501
|
viewed_at: string;
|
|
502
502
|
unique_hash: string | null;
|
|
503
503
|
template_name: string | null;
|
|
504
|
-
invoice_series_id:
|
|
504
|
+
invoice_series_id: number | null;
|
|
505
505
|
customer_id: number | null;
|
|
506
506
|
external_ref: string | null;
|
|
507
|
-
payment_method_id:
|
|
508
|
-
recurring_invoice_id:
|
|
507
|
+
payment_method_id: number | null;
|
|
508
|
+
recurring_invoice_id: number | null;
|
|
509
509
|
sequence_number: number | null;
|
|
510
510
|
exchange_rate: number | null;
|
|
511
|
-
base_discount_val:
|
|
512
|
-
base_sub_total:
|
|
513
|
-
base_total:
|
|
511
|
+
base_discount_val: number;
|
|
512
|
+
base_sub_total: number;
|
|
513
|
+
base_total: number;
|
|
514
514
|
creator_id: number | null;
|
|
515
|
-
base_tax:
|
|
516
|
-
base_due_amount:
|
|
515
|
+
base_tax: number;
|
|
516
|
+
base_due_amount: number;
|
|
517
517
|
effective_base_total: string;
|
|
518
518
|
effective_base_due_amount: string;
|
|
519
519
|
credited_total: string;
|
|
@@ -538,7 +538,7 @@ export declare class PimiaClient {
|
|
|
538
538
|
rectified_invoice?: {
|
|
539
539
|
id: number;
|
|
540
540
|
invoice_number: string | null;
|
|
541
|
-
tax_per_item: string;
|
|
541
|
+
tax_per_item: string | null;
|
|
542
542
|
tax_included: string;
|
|
543
543
|
sub_total: number;
|
|
544
544
|
discount_val: number;
|
|
@@ -552,8 +552,8 @@ export declare class PimiaClient {
|
|
|
552
552
|
payments?: components["schemas"]["PaymentResource"][];
|
|
553
553
|
email_logs?: components["schemas"]["EmailLogResource"][];
|
|
554
554
|
customer?: components["schemas"]["CustomerResource"] | null;
|
|
555
|
-
invoice_series?: components["schemas"]["InvoiceSeriesResource"];
|
|
556
|
-
payment_method?: components["schemas"]["PaymentMethodResource"];
|
|
555
|
+
invoice_series?: components["schemas"]["InvoiceSeriesResource"] | null;
|
|
556
|
+
payment_method?: components["schemas"]["PaymentMethodResource"] | null;
|
|
557
557
|
creator?: components["schemas"]["UserResource"] | null;
|
|
558
558
|
taxes: components["schemas"]["TaxResource"][];
|
|
559
559
|
fields?: components["schemas"]["CustomFieldValueResource"][];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pimia/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Cliente TypeScript de la API de Pimia para apps de partner: OAuth con PKCE, rotación de refresh persistida, reintentos de rate limit y tipos generados del OpenAPI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Pimia (https://pimia.es)",
|