@pimia/sdk 0.8.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.
package/dist/api.d.ts CHANGED
@@ -375,7 +375,13 @@ export interface paths {
375
375
  path?: never;
376
376
  cookie?: never;
377
377
  };
378
- /** Get available CSV presets */
378
+ /**
379
+ * Los formatos de CSV que el importador reconoce, por nombre
380
+ * @description Son las claves de `CsvBankParser::PRESETS` —cadenas— y es lo que se manda
381
+ * en `preset` al importar un extracto. El `@response` está porque
382
+ * `array_keys()` devuelve un `array` sin más, y el contrato publicaba
383
+ * `data: unknown[]`: un cliente generado no veía siquiera que eran textos.
384
+ */
379
385
  get: operations["bankImport.presets"];
380
386
  put?: never;
381
387
  post?: never;
@@ -1286,6 +1292,36 @@ export interface paths {
1286
1292
  patch?: never;
1287
1293
  trace?: never;
1288
1294
  };
1295
+ "/expenses/{expense}/receipt": {
1296
+ parameters: {
1297
+ query?: never;
1298
+ header?: never;
1299
+ path?: never;
1300
+ cookie?: never;
1301
+ };
1302
+ get?: never;
1303
+ put?: never;
1304
+ /**
1305
+ * Sube o reemplaza el justificante de un gasto
1306
+ * @description Es la mitad que faltaba: hasta aquí, adjuntar un papel a un gasto que ya
1307
+ * existe **no se podía hacer desde ningún cliente del contrato**. El `PUT`
1308
+ * lo publicaba como multiparte y no puede cumplirlo (ver `update()`), y el
1309
+ * otro camino —`POST /expenses/{expense}/upload/receipts`— pide base64 y
1310
+ * solo acepta `gif`, `jpg` y `png`, así que rechaza el PDF que el propio
1311
+ * alta sí admite (#498).
1312
+ *
1313
+ * Misma forma que `receivedInvoices.uploadDocument`, que es el precedente
1314
+ * de la casa para esto: `POST`, multiparte, se limpia la colección antes de
1315
+ * añadir —así no se acumulan huérfanos en cada resubida— y se devuelve el
1316
+ * recurso.
1317
+ */
1318
+ post: operations["expenses.uploadReceipt"];
1319
+ delete?: never;
1320
+ options?: never;
1321
+ head?: never;
1322
+ patch?: never;
1323
+ trace?: never;
1324
+ };
1289
1325
  "/expenses/delete": {
1290
1326
  parameters: {
1291
1327
  query?: never;
@@ -3167,7 +3203,23 @@ export interface paths {
3167
3203
  path?: never;
3168
3204
  cookie?: never;
3169
3205
  };
3170
- /** List bank transactions with filters */
3206
+ /**
3207
+ * Movimientos bancarios, filtrados y paginados
3208
+ * @description Los cinco filtros y el tamaño de página se VALIDAN, y por eso están en el
3209
+ * contrato: el generador no ve un `$request->bank_account_id` —acceso
3210
+ * dinámico— y hasta el 2026-08-25 esta operación publicaba `parameters: []`
3211
+ * mientras el controlador leía seis. Un integrador leyendo el spec no podía
3212
+ * saber que se puede filtrar.
3213
+ *
3214
+ * ⚠️ Filtrar por un `status` o un `type` que no existe ya no devuelve la
3215
+ * lista entera sin filtrar: da 422. Es el mismo criterio que el resto de la
3216
+ * API y lo que evita el «pedí los pendientes y me los dio todos».
3217
+ *
3218
+ * La respuesta es el paginador de Laravel PELADO (`data`, `current_page`,
3219
+ * `total`…), no el sobre `{data, meta}` del resto de la casa. Cada fila
3220
+ * lleva además `bank_account` y `reconciliations[]`, que el listado carga
3221
+ * siempre.
3222
+ */
3171
3223
  get: operations["reconciliation.transactions"];
3172
3224
  put?: never;
3173
3225
  post?: never;
@@ -3184,7 +3236,20 @@ export interface paths {
3184
3236
  path?: never;
3185
3237
  cookie?: never;
3186
3238
  };
3187
- /** Get summary statistics */
3239
+ /**
3240
+ * Recuento de movimientos por estado, y los dos totales
3241
+ * @description Los cuatro recuentos salen de un `count()` y son ENTEROS. Se declaran a
3242
+ * mano porque Scramble tipa bien `Builder::count()` pero no sabe resolver
3243
+ * `(clone $query)->pending()`: el scope local devuelve `mixed` y degradaba
3244
+ * los cuatro a `string`, mientras `total` —que no pasa por un scope— salía
3245
+ * `integer` en la misma respuesta. Cuatro cadenas y un número para el mismo
3246
+ * tipo de dato.
3247
+ *
3248
+ * ⚠️ `total_credits` y `total_debits` SÍ son cadenas, y a propósito: son
3249
+ * `SUM(amount)` sobre una columna `decimal(15,2)` que PostgreSQL entrega
3250
+ * como texto, y van en EUROS con decimales como el resto de la banca —no en
3251
+ * céntimos como el resto de la API.
3252
+ */
3188
3253
  get: operations["reconciliation.summary"];
3189
3254
  put?: never;
3190
3255
  post?: never;
@@ -5087,11 +5152,19 @@ export interface components {
5087
5152
  value_date: string | null;
5088
5153
  /** @description EUROS con decimales (`2322.11` = 2.322,11 €), a diferencia del resto de la API, que cuenta el dinero en céntimos enteros. La banca es la excepción porque es lo que trae un extracto bancario: redondearlo a céntimos enteros perdería los decimales del apunte. La conciliación convierte al comparar con facturas y gastos. */
5089
5154
  amount: string;
5090
- type: string;
5155
+ /**
5156
+ * @description Signo del apunte tal y como lo trae el extracto: `credit` entra dinero, `debit` sale. El importe va siempre en positivo, así que el signo es esto.
5157
+ * @enum {string}
5158
+ */
5159
+ type: "credit" | "debit";
5091
5160
  concept: string | null;
5092
5161
  reference: string | null;
5093
5162
  raw_data: string | null;
5094
- status: string;
5163
+ /**
5164
+ * @description Punto del ciclo de conciliación en el que está el apunte: `pending` recién importado y sin cruzar, `matched` propuesto contra un documento (por `POST /banking/transactions/{id}/match` o por el automático), `reconciled` confirmado, `ignored` apartado a mano porque no corresponde a ninguno.
5165
+ * @enum {string}
5166
+ */
5167
+ status: "pending" | "matched" | "reconciled" | "ignored";
5095
5168
  import_batch: string | null;
5096
5169
  /** Format: date-time */
5097
5170
  created_at: string | null;
@@ -5099,6 +5172,10 @@ export interface components {
5099
5172
  updated_at: string | null;
5100
5173
  /** Format: date-time */
5101
5174
  deleted_at: string | null;
5175
+ /** @description La cuenta del apunte, con `id` y `name` y nada más. Llega en el listado (`GET /banking/transactions`), que la carga siempre; en las respuestas de una operación sobre un apunte suelto no tiene por qué estar. */
5176
+ bank_account?: Record<string, never> | null;
5177
+ /** @description Los cruces del apunte con documentos del ERP, cada uno con su `reconcilable` (la factura, el gasto o la recibida). Como `bank_account`: la trae el listado, que la carga siempre. */
5178
+ reconciliations?: Record<string, never>[] | null;
5102
5179
  };
5103
5180
  /** BulkExchangeRateRequest */
5104
5181
  BulkExchangeRateRequest: {
@@ -6253,9 +6330,9 @@ export interface components {
6253
6330
  residual_value: number;
6254
6331
  useful_life_years: number;
6255
6332
  depreciation_method: string;
6256
- annual_depreciation: string;
6257
- accumulated_depreciation: string;
6258
- net_book_value: string;
6333
+ annual_depreciation: number;
6334
+ accumulated_depreciation: number;
6335
+ net_book_value: number;
6259
6336
  depreciation_schedule: string;
6260
6337
  company_id: number;
6261
6338
  /** Format: date-time */
@@ -6386,9 +6463,7 @@ export interface components {
6386
6463
  * respuestas de escritura, con `[]` cuando la línea no cobra
6387
6464
  * ninguno; en el índice no viaja.
6388
6465
  */
6389
- time_entry_ids?: {
6390
- [key: string]: unknown;
6391
- };
6466
+ time_entry_ids?: number[];
6392
6467
  taxes?: components["schemas"]["TaxResource"][];
6393
6468
  fields?: components["schemas"]["CustomFieldValueResource"][];
6394
6469
  };
@@ -6410,10 +6485,10 @@ export interface components {
6410
6485
  discount_val: number;
6411
6486
  sub_total: number;
6412
6487
  total: number;
6413
- effective_total: string;
6488
+ effective_total: number;
6414
6489
  tax: number;
6415
6490
  due_amount: number;
6416
- effective_due_amount: string;
6491
+ effective_due_amount: number;
6417
6492
  sent: string;
6418
6493
  viewed: string;
6419
6494
  /**
@@ -6443,10 +6518,11 @@ export interface components {
6443
6518
  creator_id: number | null;
6444
6519
  base_tax: number;
6445
6520
  base_due_amount: number;
6446
- effective_base_total: string;
6447
- effective_base_due_amount: string;
6448
- credited_total: string;
6449
- credited_base_total: string;
6521
+ effective_base_total: number;
6522
+ /** @description NULL cuando la factura no tiene `base_due_amount` calculado, y entonces es un hueco, no un cero: una factura que no ha calculado su deuda en moneda base no es una factura que no deba nada. */
6523
+ effective_base_due_amount: number | null;
6524
+ credited_total: number;
6525
+ credited_base_total: number;
6450
6526
  currency_id: number | null;
6451
6527
  formatted_created_at: string;
6452
6528
  invoice_pdf_url: string;
@@ -6572,8 +6648,8 @@ export interface components {
6572
6648
  * que esto no cueste ni una consulta, y que el scope sea
6573
6649
  * obligatorio en cualquier índice que sirva este recurso.
6574
6650
  */
6575
- effective_total: string;
6576
- effective_due_amount: string;
6651
+ effective_total: number;
6652
+ effective_due_amount: number;
6577
6653
  effective_paid_status: string;
6578
6654
  effective_overdue: string;
6579
6655
  currency_id: number | null;
@@ -7562,7 +7638,7 @@ export interface components {
7562
7638
  discount_per_item: string | null;
7563
7639
  notes: string | null;
7564
7640
  discount_type: string | null;
7565
- discount: string | null;
7641
+ discount: number | null;
7566
7642
  discount_val: number | null;
7567
7643
  sub_total: number | null;
7568
7644
  total: number | null;
@@ -8435,7 +8511,7 @@ export interface operations {
8435
8511
  "absence.teamCalendar": {
8436
8512
  parameters: {
8437
8513
  query?: {
8438
- month?: string;
8514
+ month?: string | null;
8439
8515
  };
8440
8516
  header?: never;
8441
8517
  path?: never;
@@ -8461,6 +8537,7 @@ export interface operations {
8461
8537
  };
8462
8538
  };
8463
8539
  403: components["responses"]["AuthorizationException"];
8540
+ 422: components["responses"]["ValidationException"];
8464
8541
  };
8465
8542
  };
8466
8543
  "absence.approve": {
@@ -8602,7 +8679,7 @@ export interface operations {
8602
8679
  };
8603
8680
  responses: {
8604
8681
  /** @description `AbsenceResource` */
8605
- 200: {
8682
+ 201: {
8606
8683
  headers: {
8607
8684
  [name: string]: unknown;
8608
8685
  };
@@ -9266,7 +9343,7 @@ export interface operations {
9266
9343
  };
9267
9344
  content: {
9268
9345
  "application/json": {
9269
- data: unknown[];
9346
+ data: string[];
9270
9347
  };
9271
9348
  };
9272
9349
  };
@@ -9451,7 +9528,7 @@ export interface operations {
9451
9528
  requestBody?: never;
9452
9529
  responses: {
9453
9530
  /** @description `EstimateResource` */
9454
- 200: {
9531
+ 201: {
9455
9532
  headers: {
9456
9533
  [name: string]: unknown;
9457
9534
  };
@@ -9478,7 +9555,7 @@ export interface operations {
9478
9555
  requestBody?: never;
9479
9556
  responses: {
9480
9557
  /** @description `InvoiceResource` */
9481
- 200: {
9558
+ 201: {
9482
9559
  headers: {
9483
9560
  [name: string]: unknown;
9484
9561
  };
@@ -9728,7 +9805,7 @@ export interface operations {
9728
9805
  };
9729
9806
  responses: {
9730
9807
  /** @description `ContactResource` */
9731
- 200: {
9808
+ 201: {
9732
9809
  headers: {
9733
9810
  [name: string]: unknown;
9734
9811
  };
@@ -9966,7 +10043,7 @@ export interface operations {
9966
10043
  };
9967
10044
  responses: {
9968
10045
  /** @description `CustomFieldResource` */
9969
- 200: {
10046
+ 201: {
9970
10047
  headers: {
9971
10048
  [name: string]: unknown;
9972
10049
  };
@@ -10601,7 +10678,7 @@ export interface operations {
10601
10678
  };
10602
10679
  responses: {
10603
10680
  /** @description `DeliveryNoteResource` */
10604
- 200: {
10681
+ 201: {
10605
10682
  headers: {
10606
10683
  [name: string]: unknown;
10607
10684
  };
@@ -10753,7 +10830,7 @@ export interface operations {
10753
10830
  };
10754
10831
  responses: {
10755
10832
  /** @description `EmployeeProfileResource` */
10756
- 200: {
10833
+ 201: {
10757
10834
  headers: {
10758
10835
  [name: string]: unknown;
10759
10836
  };
@@ -10912,7 +10989,7 @@ export interface operations {
10912
10989
  };
10913
10990
  responses: {
10914
10991
  /** @description `EstimateSeriesResource` */
10915
- 200: {
10992
+ 201: {
10916
10993
  headers: {
10917
10994
  [name: string]: unknown;
10918
10995
  };
@@ -11119,7 +11196,7 @@ export interface operations {
11119
11196
  };
11120
11197
  responses: {
11121
11198
  /** @description `EstimateResource` */
11122
- 200: {
11199
+ 201: {
11123
11200
  headers: {
11124
11201
  [name: string]: unknown;
11125
11202
  };
@@ -11229,7 +11306,7 @@ export interface operations {
11229
11306
  };
11230
11307
  responses: {
11231
11308
  /** @description `ExpenseCategoryResource` */
11232
- 200: {
11309
+ 201: {
11233
11310
  headers: {
11234
11311
  [name: string]: unknown;
11235
11312
  };
@@ -11328,6 +11405,44 @@ export interface operations {
11328
11405
  404: components["responses"]["ModelNotFoundException"];
11329
11406
  };
11330
11407
  };
11408
+ "expenses.uploadReceipt": {
11409
+ parameters: {
11410
+ query?: never;
11411
+ header?: never;
11412
+ path: {
11413
+ /** @description The expense ID */
11414
+ expense: number;
11415
+ };
11416
+ cookie?: never;
11417
+ };
11418
+ requestBody: {
11419
+ content: {
11420
+ "multipart/form-data": {
11421
+ /**
11422
+ * Format: binary
11423
+ * @description Maximum file size: 20000 kilobytes.
11424
+ */
11425
+ receipt: Blob;
11426
+ };
11427
+ };
11428
+ };
11429
+ responses: {
11430
+ /** @description `ExpenseResource` */
11431
+ 200: {
11432
+ headers: {
11433
+ [name: string]: unknown;
11434
+ };
11435
+ content: {
11436
+ "application/json": {
11437
+ data: components["schemas"]["ExpenseResource"];
11438
+ };
11439
+ };
11440
+ };
11441
+ 403: components["responses"]["AuthorizationException"];
11442
+ 404: components["responses"]["ModelNotFoundException"];
11443
+ 422: components["responses"]["ValidationException"];
11444
+ };
11445
+ };
11331
11446
  "expenses.delete": {
11332
11447
  parameters: {
11333
11448
  query?: never;
@@ -11395,7 +11510,7 @@ export interface operations {
11395
11510
  };
11396
11511
  responses: {
11397
11512
  /** @description `ExpenseResource` */
11398
- 200: {
11513
+ 201: {
11399
11514
  headers: {
11400
11515
  [name: string]: unknown;
11401
11516
  };
@@ -11950,7 +12065,7 @@ export interface operations {
11950
12065
  };
11951
12066
  responses: {
11952
12067
  /** @description `IncidenceResource` */
11953
- 200: {
12068
+ 201: {
11954
12069
  headers: {
11955
12070
  [name: string]: unknown;
11956
12071
  };
@@ -12132,7 +12247,7 @@ export interface operations {
12132
12247
  };
12133
12248
  responses: {
12134
12249
  /** @description `InvestmentAssetResource` */
12135
- 200: {
12250
+ 201: {
12136
12251
  headers: {
12137
12252
  [name: string]: unknown;
12138
12253
  };
@@ -12339,7 +12454,7 @@ export interface operations {
12339
12454
  };
12340
12455
  responses: {
12341
12456
  /** @description `InvoiceSeriesResource` */
12342
- 200: {
12457
+ 201: {
12343
12458
  headers: {
12344
12459
  [name: string]: unknown;
12345
12460
  };
@@ -12470,7 +12585,7 @@ export interface operations {
12470
12585
  };
12471
12586
  responses: {
12472
12587
  /** @description `InvoiceTemplateResource` */
12473
- 200: {
12588
+ 201: {
12474
12589
  headers: {
12475
12590
  [name: string]: unknown;
12476
12591
  };
@@ -12639,7 +12754,7 @@ export interface operations {
12639
12754
  };
12640
12755
  responses: {
12641
12756
  /** @description `InvoiceTemplateResource` */
12642
- 200: {
12757
+ 201: {
12643
12758
  headers: {
12644
12759
  [name: string]: unknown;
12645
12760
  };
@@ -13690,7 +13805,7 @@ export interface operations {
13690
13805
  };
13691
13806
  responses: {
13692
13807
  /** @description `LeadResource` */
13693
- 200: {
13808
+ 201: {
13694
13809
  headers: {
13695
13810
  [name: string]: unknown;
13696
13811
  };
@@ -14194,7 +14309,7 @@ export interface operations {
14194
14309
  };
14195
14310
  responses: {
14196
14311
  /** @description `NoteResource` */
14197
- 200: {
14312
+ 201: {
14198
14313
  headers: {
14199
14314
  [name: string]: unknown;
14200
14315
  };
@@ -14585,7 +14700,7 @@ export interface operations {
14585
14700
  };
14586
14701
  responses: {
14587
14702
  /** @description `PaymentMethodResource` */
14588
- 200: {
14703
+ 201: {
14589
14704
  headers: {
14590
14705
  [name: string]: unknown;
14591
14706
  };
@@ -15064,7 +15179,7 @@ export interface operations {
15064
15179
  };
15065
15180
  responses: {
15066
15181
  /** @description `ProjectResource` */
15067
- 200: {
15182
+ 201: {
15068
15183
  headers: {
15069
15184
  [name: string]: unknown;
15070
15185
  };
@@ -15417,7 +15532,14 @@ export interface operations {
15417
15532
  };
15418
15533
  "reconciliation.transactions": {
15419
15534
  parameters: {
15420
- query?: never;
15535
+ query?: {
15536
+ bank_account_id?: number | null;
15537
+ status?: "pending" | "matched" | "reconciled" | "ignored" | null;
15538
+ type?: "credit" | "debit" | null;
15539
+ from_date?: string | null;
15540
+ to_date?: string | null;
15541
+ per_page?: number | null;
15542
+ };
15421
15543
  header?: never;
15422
15544
  path?: never;
15423
15545
  cookie?: never;
@@ -15455,11 +15577,14 @@ export interface operations {
15455
15577
  };
15456
15578
  };
15457
15579
  };
15580
+ 422: components["responses"]["ValidationException"];
15458
15581
  };
15459
15582
  };
15460
15583
  "reconciliation.summary": {
15461
15584
  parameters: {
15462
- query?: never;
15585
+ query?: {
15586
+ bank_account_id?: number | null;
15587
+ };
15463
15588
  header?: never;
15464
15589
  path?: never;
15465
15590
  cookie?: never;
@@ -15474,16 +15599,17 @@ export interface operations {
15474
15599
  "application/json": {
15475
15600
  data: {
15476
15601
  total: number;
15477
- pending: string;
15478
- matched: string;
15479
- reconciled: string;
15480
- ignored: string;
15602
+ pending: number;
15603
+ matched: number;
15604
+ reconciled: number;
15605
+ ignored: number;
15481
15606
  total_credits: string;
15482
15607
  total_debits: string;
15483
15608
  };
15484
15609
  };
15485
15610
  };
15486
15611
  };
15612
+ 422: components["responses"]["ValidationException"];
15487
15613
  };
15488
15614
  };
15489
15615
  "reconciliation.autoMatch": {
@@ -15493,7 +15619,13 @@ export interface operations {
15493
15619
  path?: never;
15494
15620
  cookie?: never;
15495
15621
  };
15496
- requestBody?: never;
15622
+ requestBody?: {
15623
+ content: {
15624
+ "application/json": {
15625
+ bank_account_id?: number | null;
15626
+ };
15627
+ };
15628
+ };
15497
15629
  responses: {
15498
15630
  200: {
15499
15631
  headers: {
@@ -15522,6 +15654,7 @@ export interface operations {
15522
15654
  };
15523
15655
  };
15524
15656
  };
15657
+ 422: components["responses"]["ValidationException"];
15525
15658
  };
15526
15659
  };
15527
15660
  "reconciliation.suggestions": {
@@ -15729,7 +15862,7 @@ export interface operations {
15729
15862
  };
15730
15863
  responses: {
15731
15864
  /** @description `RecurringInvoiceResource` */
15732
- 200: {
15865
+ 201: {
15733
15866
  headers: {
15734
15867
  [name: string]: unknown;
15735
15868
  };
@@ -15990,7 +16123,7 @@ export interface operations {
15990
16123
  };
15991
16124
  responses: {
15992
16125
  /** @description `RoleResource` */
15993
- 200: {
16126
+ 201: {
15994
16127
  headers: {
15995
16128
  [name: string]: unknown;
15996
16129
  };
@@ -17293,7 +17426,7 @@ export interface operations {
17293
17426
  };
17294
17427
  responses: {
17295
17428
  /** @description `TaskResource` */
17296
- 200: {
17429
+ 201: {
17297
17430
  headers: {
17298
17431
  [name: string]: unknown;
17299
17432
  };
@@ -17451,7 +17584,7 @@ export interface operations {
17451
17584
  };
17452
17585
  responses: {
17453
17586
  /** @description `TaxTypeResource` */
17454
- 200: {
17587
+ 201: {
17455
17588
  headers: {
17456
17589
  [name: string]: unknown;
17457
17590
  };
@@ -17952,7 +18085,7 @@ export interface operations {
17952
18085
  };
17953
18086
  responses: {
17954
18087
  /** @description `TimeClockCorrectionResource` */
17955
- 200: {
18088
+ 201: {
17956
18089
  headers: {
17957
18090
  [name: string]: unknown;
17958
18091
  };
@@ -18091,7 +18224,7 @@ export interface operations {
18091
18224
  };
18092
18225
  responses: {
18093
18226
  /** @description `TimeEntryResource` */
18094
- 200: {
18227
+ 201: {
18095
18228
  headers: {
18096
18229
  [name: string]: unknown;
18097
18230
  };
@@ -20888,7 +21021,7 @@ export interface operations {
20888
21021
  };
20889
21022
  responses: {
20890
21023
  /** @description `UnitResource` */
20891
- 200: {
21024
+ 201: {
20892
21025
  headers: {
20893
21026
  [name: string]: unknown;
20894
21027
  };
@@ -21096,7 +21229,7 @@ export interface operations {
21096
21229
  };
21097
21230
  responses: {
21098
21231
  /** @description `UserResource` */
21099
- 200: {
21232
+ 201: {
21100
21233
  headers: {
21101
21234
  [name: string]: unknown;
21102
21235
  };
@@ -21650,7 +21783,7 @@ export interface operations {
21650
21783
  };
21651
21784
  responses: {
21652
21785
  /** @description `HolidayResource` */
21653
- 200: {
21786
+ 201: {
21654
21787
  headers: {
21655
21788
  [name: string]: unknown;
21656
21789
  };
@@ -21730,7 +21863,7 @@ export interface operations {
21730
21863
  };
21731
21864
  responses: {
21732
21865
  /** @description `WorkCalendarResource` */
21733
- 200: {
21866
+ 201: {
21734
21867
  headers: {
21735
21868
  [name: string]: unknown;
21736
21869
  };
@@ -21868,7 +22001,7 @@ export interface operations {
21868
22001
  };
21869
22002
  responses: {
21870
22003
  /** @description `WorkScheduleResource` */
21871
- 200: {
22004
+ 201: {
21872
22005
  headers: {
21873
22006
  [name: string]: unknown;
21874
22007
  };
package/dist/client.d.ts CHANGED
@@ -211,10 +211,10 @@ export declare class PimiaClient {
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
216
  due_amount: number;
217
- effective_due_amount: string;
217
+ effective_due_amount: number;
218
218
  sent: string;
219
219
  viewed: string;
220
220
  sent_at: string;
@@ -234,10 +234,10 @@ export declare class PimiaClient {
234
234
  creator_id: number | null;
235
235
  base_tax: number;
236
236
  base_due_amount: number;
237
- effective_base_total: string;
238
- effective_base_due_amount: string;
239
- credited_total: string;
240
- credited_base_total: string;
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;
@@ -298,10 +298,10 @@ export declare class PimiaClient {
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
303
  due_amount: number;
304
- effective_due_amount: string;
304
+ effective_due_amount: number;
305
305
  sent: string;
306
306
  viewed: string;
307
307
  sent_at: string;
@@ -321,10 +321,10 @@ export declare class PimiaClient {
321
321
  creator_id: number | null;
322
322
  base_tax: number;
323
323
  base_due_amount: number;
324
- effective_base_total: string;
325
- effective_base_due_amount: string;
326
- credited_total: string;
327
- credited_base_total: string;
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;
@@ -491,10 +491,10 @@ export declare class PimiaClient {
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
496
  due_amount: number;
497
- effective_due_amount: string;
497
+ effective_due_amount: number;
498
498
  sent: string;
499
499
  viewed: string;
500
500
  sent_at: string;
@@ -514,10 +514,10 @@ export declare class PimiaClient {
514
514
  creator_id: number | null;
515
515
  base_tax: number;
516
516
  base_due_amount: number;
517
- effective_base_total: string;
518
- effective_base_due_amount: string;
519
- credited_total: string;
520
- credited_base_total: string;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pimia/sdk",
3
- "version": "0.8.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)",