@pimia/sdk 0.7.0 → 0.9.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.
Files changed (3) hide show
  1. package/dist/api.d.ts +3428 -736
  2. package/dist/client.d.ts +69 -69
  3. package/package.json +1 -1
package/dist/client.d.ts CHANGED
@@ -199,45 +199,45 @@ 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;
211
211
  discount_val: number;
212
212
  sub_total: number;
213
213
  total: number;
214
- effective_total: string;
214
+ effective_total: number;
215
215
  tax: number;
216
- due_amount: string;
217
- effective_due_amount: string;
216
+ due_amount: number;
217
+ effective_due_amount: number;
218
218
  sent: string;
219
219
  viewed: string;
220
220
  sent_at: string;
221
221
  viewed_at: string;
222
222
  unique_hash: string | null;
223
223
  template_name: string | null;
224
- invoice_series_id: string;
224
+ invoice_series_id: number | null;
225
225
  customer_id: number | null;
226
226
  external_ref: string | null;
227
- payment_method_id: string;
228
- recurring_invoice_id: string;
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: string | null;
232
- base_sub_total: string | null;
233
- base_total: string | null;
231
+ base_discount_val: number;
232
+ base_sub_total: number;
233
+ base_total: number;
234
234
  creator_id: number | null;
235
- base_tax: string | null;
236
- base_due_amount: string | null;
237
- effective_base_total: string;
238
- effective_base_due_amount: string;
239
- credited_total: string;
240
- credited_base_total: string;
235
+ base_tax: number;
236
+ base_due_amount: number;
237
+ effective_base_total: number;
238
+ effective_base_due_amount: number | null;
239
+ credited_total: number;
240
+ credited_base_total: number;
241
241
  currency_id: number | null;
242
242
  formatted_created_at: string;
243
243
  invoice_pdf_url: 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,45 +286,45 @@ 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;
298
298
  discount_val: number;
299
299
  sub_total: number;
300
300
  total: number;
301
- effective_total: string;
301
+ effective_total: number;
302
302
  tax: number;
303
- due_amount: string;
304
- effective_due_amount: string;
303
+ due_amount: number;
304
+ effective_due_amount: number;
305
305
  sent: string;
306
306
  viewed: string;
307
307
  sent_at: string;
308
308
  viewed_at: string;
309
309
  unique_hash: string | null;
310
310
  template_name: string | null;
311
- invoice_series_id: string;
311
+ invoice_series_id: number | null;
312
312
  customer_id: number | null;
313
313
  external_ref: string | null;
314
- payment_method_id: string;
315
- recurring_invoice_id: string;
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: string | null;
319
- base_sub_total: string | null;
320
- base_total: string | null;
318
+ base_discount_val: number;
319
+ base_sub_total: number;
320
+ base_total: number;
321
321
  creator_id: number | null;
322
- base_tax: string | null;
323
- base_due_amount: string | null;
324
- effective_base_total: string;
325
- effective_base_due_amount: string;
326
- credited_total: string;
327
- credited_base_total: string;
322
+ base_tax: number;
323
+ base_due_amount: number;
324
+ effective_base_total: number;
325
+ effective_base_due_amount: number | null;
326
+ credited_total: number;
327
+ credited_base_total: number;
328
328
  currency_id: number | null;
329
329
  formatted_created_at: string;
330
330
  invoice_pdf_url: 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: string;
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: string;
407
- base_due_amount: string;
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,45 +479,45 @@ 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;
491
491
  discount_val: number;
492
492
  sub_total: number;
493
493
  total: number;
494
- effective_total: string;
494
+ effective_total: number;
495
495
  tax: number;
496
- due_amount: string;
497
- effective_due_amount: string;
496
+ due_amount: number;
497
+ effective_due_amount: number;
498
498
  sent: string;
499
499
  viewed: string;
500
500
  sent_at: string;
501
501
  viewed_at: string;
502
502
  unique_hash: string | null;
503
503
  template_name: string | null;
504
- invoice_series_id: string;
504
+ invoice_series_id: number | null;
505
505
  customer_id: number | null;
506
506
  external_ref: string | null;
507
- payment_method_id: string;
508
- recurring_invoice_id: string;
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: string | null;
512
- base_sub_total: string | null;
513
- base_total: string | null;
511
+ base_discount_val: number;
512
+ base_sub_total: number;
513
+ base_total: number;
514
514
  creator_id: number | null;
515
- base_tax: string | null;
516
- base_due_amount: string | null;
517
- effective_base_total: string;
518
- effective_base_due_amount: string;
519
- credited_total: string;
520
- credited_base_total: string;
515
+ base_tax: number;
516
+ base_due_amount: number;
517
+ effective_base_total: number;
518
+ effective_base_due_amount: number | null;
519
+ credited_total: number;
520
+ credited_base_total: number;
521
521
  currency_id: number | null;
522
522
  formatted_created_at: string;
523
523
  invoice_pdf_url: 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.7.0",
3
+ "version": "0.9.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)",