@pimia/sdk 0.18.0 → 0.20.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
@@ -5083,7 +5083,7 @@ export interface paths {
5083
5083
  put?: never;
5084
5084
  /**
5085
5085
  * POST tasks/{task}/delegate — delega esta tarea CRM a su agente Pim
5086
- * @description **Reservada al panel de Pimia.** Exige `crm:write`, `delegation:write`, que el Authorization Server emite SOLO al client de primera parte: un client de integrador no puede pedir esos scopes —se le rechazan en el registro y no se le anuncian— y con cualquier otro token la llamada recibe `403`. Está en el contrato porque es el panel web de Pimia quien la consume, y sus tipos salen de aquí.
5086
+ * @description **Reservada al panel de Pimia.** Exige `work:write`, `delegation:write`, que el Authorization Server emite SOLO al client de primera parte: un client de integrador no puede pedir esos scopes —se le rechazan en el registro y no se le anuncian— y con cualquier otro token la llamada recibe `403`. Está en el contrato porque es el panel web de Pimia quien la consume, y sus tipos salen de aquí.
5087
5087
  *
5088
5088
  * Reusa el plano async `delegated_tasks` (el mismo que ya cierra el round-trip
5089
5089
  * delegar→agente→callback→sello): compone un context rico desde la tarea (título,
@@ -5290,9 +5290,15 @@ export interface paths {
5290
5290
  * (`/pimia/plan?checkout=success|cancelled`) y el asiento lo anota el
5291
5291
  * webhook `checkout.session.completed`. Solo el dueño de la instancia.
5292
5292
  *
5293
+ * Si el pagador tenía una suscripción cancelada a fin de periodo (bajó a
5294
+ * Free y se arrepintió), NO hay checkout: se reanuda esa suscripción, se
5295
+ * recrea el asiento y el plan cambia al instante. Entonces `resumed` es
5296
+ * `true`, `checkout_url` es `null` y `plan` dice a cuál: el panel no tiene
5297
+ * a dónde ir, solo refrescar.
5298
+ *
5293
5299
  * Errores, con su código en `error`: `white_label` (403), `no_payer` (409),
5294
5300
  * `free_plan` y `channel_plan` (422), `tenant_already_subscribed` (422),
5295
- * `stripe_price_missing` (503).
5301
+ * `stripe_resume_failed` (502), `stripe_price_missing` (503).
5296
5302
  */
5297
5303
  post: operations["tenantBilling.checkoutFromPanel"];
5298
5304
  delete?: never;
@@ -5506,6 +5512,14 @@ export interface paths {
5506
5512
  * ejecución: sin él, `meta`, `depends_on`, `dependents` e `installed_slugs`
5507
5513
  * se publicaban sin tipar. Es PHPDoc normal, no una dependencia del
5508
5514
  * generador.
5515
+ *
5516
+ * `listed` dice si el módulo se OFRECE en el escaparate. Los de
5517
+ * cumplimiento fiscal salen con `false`: su presencia la decide el país del
5518
+ * emisor y no es mercancía —«no se ofrece desactivar una obligación
5519
+ * legal»—. La tienda del núcleo ya lo respetaba; el contrato no lo
5520
+ * publicaba, así que el panel web enseñaba un botón de «Desactivar» sobre
5521
+ * `compliance-es` y otro de «Instalar» sobre `compliance-fr` en una empresa
5522
+ * española (épica #677).
5509
5523
  */
5510
5524
  get: operations["tenantModules.index"];
5511
5525
  put?: never;
@@ -9522,7 +9536,7 @@ export interface components {
9522
9536
  * ningún permiso es una operación legítima, y `required` la
9523
9537
  * prohibiría (un array vacío no pasa `required`).
9524
9538
  */
9525
- abilities: ("dashboard" | "view-customer" | "create-customer" | "edit-customer" | "delete-customer" | "view-estimate" | "create-estimate" | "edit-estimate" | "delete-estimate" | "send-estimate" | "view-invoice" | "create-invoice" | "edit-invoice" | "delete-invoice" | "send-invoice" | "view-recurring-invoice" | "create-recurring-invoice" | "edit-recurring-invoice" | "delete-recurring-invoice" | "view-payment" | "create-payment" | "edit-payment" | "delete-payment" | "send-payment" | "view-expense" | "create-expense" | "edit-expense" | "delete-expense" | "view-delivery-note" | "create-delivery-note" | "edit-delivery-note" | "delete-delivery-note" | "view-item" | "create-item" | "edit-item" | "delete-item" | "view-lead" | "create-lead" | "edit-lead" | "delete-lead" | "convert-lead" | "view-contact" | "create-contact" | "edit-contact" | "delete-contact" | "view-project" | "create-project" | "edit-project" | "delete-project" | "view-task" | "create-task" | "edit-task" | "delete-task" | "view-own-task" | "edit-own-task" | "view-time-entry" | "create-time-entry" | "edit-time-entry" | "delete-time-entry" | "view-own-time-entry" | "create-own-time-entry" | "edit-own-time-entry" | "delete-own-time-entry" | "view-tax-type" | "create-tax-type" | "edit-tax-type" | "delete-tax-type" | "view-custom-field" | "create-custom-field" | "edit-custom-field" | "delete-custom-field" | "view-role" | "create-role" | "edit-role" | "delete-role" | "view-financial-reports" | "view-all-notes" | "manage-all-notes" | "time_clock.punch" | "time_clock.view_own" | "time_clock.view_team" | "time_clock.correct" | "absence.request" | "absence.approve" | "report.download_legal" | "view-employee" | "create-employee" | "edit-employee" | "delete-employee" | "view-work-schedule" | "manage-work-schedule" | "view-work-calendar" | "manage-work-calendar" | "pos.operate" | "pos.supervise" | "pos.void" | "pos.discount_high" | "pos.cash_movement" | "pos.return" | "pos.admin" | "pos.report" | "view-appointment" | "create-appointment" | "edit-appointment" | "delete-appointment" | "view-contract" | "create-contract" | "edit-contract" | "delete-contract" | "view-warehouse" | "create-warehouse" | "edit-warehouse" | "delete-warehouse" | "view-stock-count" | "create-stock-count" | "edit-stock-count" | "delete-stock-count")[];
9539
+ abilities: ("dashboard" | "view-customer" | "create-customer" | "edit-customer" | "delete-customer" | "view-estimate" | "create-estimate" | "edit-estimate" | "delete-estimate" | "send-estimate" | "view-invoice" | "create-invoice" | "edit-invoice" | "delete-invoice" | "send-invoice" | "view-recurring-invoice" | "create-recurring-invoice" | "edit-recurring-invoice" | "delete-recurring-invoice" | "view-payment" | "create-payment" | "edit-payment" | "delete-payment" | "send-payment" | "view-expense" | "create-expense" | "edit-expense" | "delete-expense" | "view-supplier" | "create-supplier" | "edit-supplier" | "delete-supplier" | "view-received-invoice" | "create-received-invoice" | "edit-received-invoice" | "delete-received-invoice" | "view-bank-account" | "create-bank-account" | "edit-bank-account" | "delete-bank-account" | "view-bank-transaction" | "import-bank-transaction" | "reconcile-bank-transaction" | "view-sepa-remittance" | "create-sepa-remittance" | "delete-sepa-remittance" | "view-investment-asset" | "create-investment-asset" | "edit-investment-asset" | "delete-investment-asset" | "view-delivery-note" | "create-delivery-note" | "edit-delivery-note" | "delete-delivery-note" | "view-item" | "create-item" | "edit-item" | "delete-item" | "view-lead" | "create-lead" | "edit-lead" | "delete-lead" | "convert-lead" | "view-contact" | "create-contact" | "edit-contact" | "delete-contact" | "view-project" | "create-project" | "edit-project" | "delete-project" | "view-task" | "create-task" | "edit-task" | "delete-task" | "view-own-task" | "edit-own-task" | "view-time-entry" | "create-time-entry" | "edit-time-entry" | "delete-time-entry" | "view-own-time-entry" | "create-own-time-entry" | "edit-own-time-entry" | "delete-own-time-entry" | "view-tax-type" | "create-tax-type" | "edit-tax-type" | "delete-tax-type" | "view-custom-field" | "create-custom-field" | "edit-custom-field" | "delete-custom-field" | "view-role" | "create-role" | "edit-role" | "delete-role" | "view-financial-reports" | "view-all-notes" | "manage-all-notes" | "time_clock.punch" | "time_clock.view_own" | "time_clock.view_team" | "time_clock.correct" | "absence.request" | "absence.approve" | "report.download_legal" | "view-employee" | "create-employee" | "edit-employee" | "delete-employee" | "view-work-schedule" | "manage-work-schedule" | "view-work-calendar" | "manage-work-calendar" | "pos.operate" | "pos.supervise" | "pos.void" | "pos.discount_high" | "pos.cash_movement" | "pos.return" | "pos.admin" | "pos.report" | "view-appointment" | "create-appointment" | "edit-appointment" | "delete-appointment" | "view-contract" | "create-contract" | "edit-contract" | "delete-contract" | "view-warehouse" | "create-warehouse" | "edit-warehouse" | "delete-warehouse" | "view-stock-count" | "create-stock-count" | "edit-stock-count" | "delete-stock-count")[];
9526
9540
  };
9527
9541
  /**
9528
9542
  * RoleRequest
@@ -9547,7 +9561,7 @@ export interface components {
9547
9561
  name: string;
9548
9562
  abilities?: {
9549
9563
  /** @enum {string} */
9550
- ability: "dashboard" | "view-customer" | "create-customer" | "edit-customer" | "delete-customer" | "view-estimate" | "create-estimate" | "edit-estimate" | "delete-estimate" | "send-estimate" | "view-invoice" | "create-invoice" | "edit-invoice" | "delete-invoice" | "send-invoice" | "view-recurring-invoice" | "create-recurring-invoice" | "edit-recurring-invoice" | "delete-recurring-invoice" | "view-payment" | "create-payment" | "edit-payment" | "delete-payment" | "send-payment" | "view-expense" | "create-expense" | "edit-expense" | "delete-expense" | "view-delivery-note" | "create-delivery-note" | "edit-delivery-note" | "delete-delivery-note" | "view-item" | "create-item" | "edit-item" | "delete-item" | "view-lead" | "create-lead" | "edit-lead" | "delete-lead" | "convert-lead" | "view-contact" | "create-contact" | "edit-contact" | "delete-contact" | "view-project" | "create-project" | "edit-project" | "delete-project" | "view-task" | "create-task" | "edit-task" | "delete-task" | "view-own-task" | "edit-own-task" | "view-time-entry" | "create-time-entry" | "edit-time-entry" | "delete-time-entry" | "view-own-time-entry" | "create-own-time-entry" | "edit-own-time-entry" | "delete-own-time-entry" | "view-tax-type" | "create-tax-type" | "edit-tax-type" | "delete-tax-type" | "view-custom-field" | "create-custom-field" | "edit-custom-field" | "delete-custom-field" | "view-role" | "create-role" | "edit-role" | "delete-role" | "view-financial-reports" | "view-all-notes" | "manage-all-notes" | "time_clock.punch" | "time_clock.view_own" | "time_clock.view_team" | "time_clock.correct" | "absence.request" | "absence.approve" | "report.download_legal" | "view-employee" | "create-employee" | "edit-employee" | "delete-employee" | "view-work-schedule" | "manage-work-schedule" | "view-work-calendar" | "manage-work-calendar" | "pos.operate" | "pos.supervise" | "pos.void" | "pos.discount_high" | "pos.cash_movement" | "pos.return" | "pos.admin" | "pos.report" | "view-appointment" | "create-appointment" | "edit-appointment" | "delete-appointment" | "view-contract" | "create-contract" | "edit-contract" | "delete-contract" | "view-warehouse" | "create-warehouse" | "edit-warehouse" | "delete-warehouse" | "view-stock-count" | "create-stock-count" | "edit-stock-count" | "delete-stock-count";
9564
+ ability: "dashboard" | "view-customer" | "create-customer" | "edit-customer" | "delete-customer" | "view-estimate" | "create-estimate" | "edit-estimate" | "delete-estimate" | "send-estimate" | "view-invoice" | "create-invoice" | "edit-invoice" | "delete-invoice" | "send-invoice" | "view-recurring-invoice" | "create-recurring-invoice" | "edit-recurring-invoice" | "delete-recurring-invoice" | "view-payment" | "create-payment" | "edit-payment" | "delete-payment" | "send-payment" | "view-expense" | "create-expense" | "edit-expense" | "delete-expense" | "view-supplier" | "create-supplier" | "edit-supplier" | "delete-supplier" | "view-received-invoice" | "create-received-invoice" | "edit-received-invoice" | "delete-received-invoice" | "view-bank-account" | "create-bank-account" | "edit-bank-account" | "delete-bank-account" | "view-bank-transaction" | "import-bank-transaction" | "reconcile-bank-transaction" | "view-sepa-remittance" | "create-sepa-remittance" | "delete-sepa-remittance" | "view-investment-asset" | "create-investment-asset" | "edit-investment-asset" | "delete-investment-asset" | "view-delivery-note" | "create-delivery-note" | "edit-delivery-note" | "delete-delivery-note" | "view-item" | "create-item" | "edit-item" | "delete-item" | "view-lead" | "create-lead" | "edit-lead" | "delete-lead" | "convert-lead" | "view-contact" | "create-contact" | "edit-contact" | "delete-contact" | "view-project" | "create-project" | "edit-project" | "delete-project" | "view-task" | "create-task" | "edit-task" | "delete-task" | "view-own-task" | "edit-own-task" | "view-time-entry" | "create-time-entry" | "edit-time-entry" | "delete-time-entry" | "view-own-time-entry" | "create-own-time-entry" | "edit-own-time-entry" | "delete-own-time-entry" | "view-tax-type" | "create-tax-type" | "edit-tax-type" | "delete-tax-type" | "view-custom-field" | "create-custom-field" | "edit-custom-field" | "delete-custom-field" | "view-role" | "create-role" | "edit-role" | "delete-role" | "view-financial-reports" | "view-all-notes" | "manage-all-notes" | "time_clock.punch" | "time_clock.view_own" | "time_clock.view_team" | "time_clock.correct" | "absence.request" | "absence.approve" | "report.download_legal" | "view-employee" | "create-employee" | "edit-employee" | "delete-employee" | "view-work-schedule" | "manage-work-schedule" | "view-work-calendar" | "manage-work-calendar" | "pos.operate" | "pos.supervise" | "pos.void" | "pos.discount_high" | "pos.cash_movement" | "pos.return" | "pos.admin" | "pos.report" | "view-appointment" | "create-appointment" | "edit-appointment" | "delete-appointment" | "view-contract" | "create-contract" | "edit-contract" | "delete-contract" | "view-warehouse" | "create-warehouse" | "edit-warehouse" | "delete-warehouse" | "view-stock-count" | "create-stock-count" | "edit-stock-count" | "delete-stock-count";
9551
9565
  }[] | null;
9552
9566
  };
9553
9567
  /** RoleResource */
@@ -11221,6 +11235,7 @@ export interface operations {
11221
11235
  };
11222
11236
  };
11223
11237
  };
11238
+ 403: components["responses"]["AuthorizationException"];
11224
11239
  };
11225
11240
  };
11226
11241
  "bank-accounts.store": {
@@ -11254,6 +11269,7 @@ export interface operations {
11254
11269
  };
11255
11270
  };
11256
11271
  };
11272
+ 403: components["responses"]["AuthorizationException"];
11257
11273
  422: components["responses"]["ValidationException"];
11258
11274
  };
11259
11275
  };
@@ -11278,6 +11294,7 @@ export interface operations {
11278
11294
  };
11279
11295
  };
11280
11296
  };
11297
+ 403: components["responses"]["AuthorizationException"];
11281
11298
  };
11282
11299
  };
11283
11300
  "bank-accounts.update": {
@@ -11313,6 +11330,7 @@ export interface operations {
11313
11330
  };
11314
11331
  };
11315
11332
  };
11333
+ 403: components["responses"]["AuthorizationException"];
11316
11334
  422: components["responses"]["ValidationException"];
11317
11335
  };
11318
11336
  };
@@ -11338,6 +11356,7 @@ export interface operations {
11338
11356
  };
11339
11357
  };
11340
11358
  };
11359
+ 403: components["responses"]["AuthorizationException"];
11341
11360
  };
11342
11361
  };
11343
11362
  "bankImport.import": {
@@ -11381,6 +11400,7 @@ export interface operations {
11381
11400
  };
11382
11401
  };
11383
11402
  };
11403
+ 403: components["responses"]["AuthorizationException"];
11384
11404
  422: components["responses"]["ValidationException"];
11385
11405
  };
11386
11406
  };
@@ -11403,6 +11423,7 @@ export interface operations {
11403
11423
  };
11404
11424
  };
11405
11425
  };
11426
+ 403: components["responses"]["AuthorizationException"];
11406
11427
  };
11407
11428
  };
11408
11429
  "bankImport.presets": {
@@ -11424,6 +11445,7 @@ export interface operations {
11424
11445
  };
11425
11446
  };
11426
11447
  };
11448
+ 403: components["responses"]["AuthorizationException"];
11427
11449
  };
11428
11450
  };
11429
11451
  "general.bootstrap": {
@@ -15699,6 +15721,7 @@ export interface operations {
15699
15721
  };
15700
15722
  };
15701
15723
  };
15724
+ 403: components["responses"]["AuthorizationException"];
15702
15725
  422: components["responses"]["ValidationException"];
15703
15726
  };
15704
15727
  };
@@ -15750,6 +15773,7 @@ export interface operations {
15750
15773
  };
15751
15774
  };
15752
15775
  };
15776
+ 403: components["responses"]["AuthorizationException"];
15753
15777
  };
15754
15778
  };
15755
15779
  "investment-assets.store": {
@@ -15785,6 +15809,7 @@ export interface operations {
15785
15809
  };
15786
15810
  };
15787
15811
  };
15812
+ 403: components["responses"]["AuthorizationException"];
15788
15813
  422: components["responses"]["ValidationException"];
15789
15814
  };
15790
15815
  };
@@ -15811,6 +15836,7 @@ export interface operations {
15811
15836
  };
15812
15837
  };
15813
15838
  };
15839
+ 403: components["responses"]["AuthorizationException"];
15814
15840
  404: components["responses"]["ModelNotFoundException"];
15815
15841
  };
15816
15842
  };
@@ -15850,6 +15876,7 @@ export interface operations {
15850
15876
  };
15851
15877
  };
15852
15878
  };
15879
+ 403: components["responses"]["AuthorizationException"];
15853
15880
  404: components["responses"]["ModelNotFoundException"];
15854
15881
  422: components["responses"]["ValidationException"];
15855
15882
  };
@@ -15876,6 +15903,7 @@ export interface operations {
15876
15903
  };
15877
15904
  };
15878
15905
  };
15906
+ 403: components["responses"]["AuthorizationException"];
15879
15907
  404: components["responses"]["ModelNotFoundException"];
15880
15908
  };
15881
15909
  };
@@ -18885,6 +18913,7 @@ export interface operations {
18885
18913
  };
18886
18914
  };
18887
18915
  };
18916
+ 403: components["responses"]["AuthorizationException"];
18888
18917
  422: components["responses"]["ValidationException"];
18889
18918
  };
18890
18919
  };
@@ -18908,6 +18937,7 @@ export interface operations {
18908
18937
  "application/octet-stream": Blob;
18909
18938
  };
18910
18939
  };
18940
+ 403: components["responses"]["AuthorizationException"];
18911
18941
  404: components["responses"]["ModelNotFoundException"];
18912
18942
  };
18913
18943
  };
@@ -18944,6 +18974,7 @@ export interface operations {
18944
18974
  };
18945
18975
  };
18946
18976
  };
18977
+ 403: components["responses"]["AuthorizationException"];
18947
18978
  404: components["responses"]["ModelNotFoundException"];
18948
18979
  422: components["responses"]["ValidationException"];
18949
18980
  };
@@ -18971,6 +19002,7 @@ export interface operations {
18971
19002
  };
18972
19003
  };
18973
19004
  };
19005
+ 403: components["responses"]["AuthorizationException"];
18974
19006
  404: components["responses"]["ModelNotFoundException"];
18975
19007
  };
18976
19008
  };
@@ -18999,6 +19031,7 @@ export interface operations {
18999
19031
  };
19000
19032
  };
19001
19033
  };
19034
+ 403: components["responses"]["AuthorizationException"];
19002
19035
  };
19003
19036
  };
19004
19037
  "received-invoices.store": {
@@ -19025,6 +19058,7 @@ export interface operations {
19025
19058
  };
19026
19059
  };
19027
19060
  };
19061
+ 403: components["responses"]["AuthorizationException"];
19028
19062
  422: components["responses"]["ValidationException"];
19029
19063
  };
19030
19064
  };
@@ -19051,6 +19085,7 @@ export interface operations {
19051
19085
  };
19052
19086
  };
19053
19087
  };
19088
+ 403: components["responses"]["AuthorizationException"];
19054
19089
  404: components["responses"]["ModelNotFoundException"];
19055
19090
  };
19056
19091
  };
@@ -19081,6 +19116,7 @@ export interface operations {
19081
19116
  };
19082
19117
  };
19083
19118
  };
19119
+ 403: components["responses"]["AuthorizationException"];
19084
19120
  404: components["responses"]["ModelNotFoundException"];
19085
19121
  422: components["responses"]["ValidationException"];
19086
19122
  };
@@ -19112,6 +19148,7 @@ export interface operations {
19112
19148
  };
19113
19149
  };
19114
19150
  };
19151
+ 403: components["responses"]["AuthorizationException"];
19115
19152
  };
19116
19153
  };
19117
19154
  "receivedInvoices.markGoodsReceived": {
@@ -19142,6 +19179,7 @@ export interface operations {
19142
19179
  };
19143
19180
  };
19144
19181
  };
19182
+ 403: components["responses"]["AuthorizationException"];
19145
19183
  422: components["responses"]["ValidationException"];
19146
19184
  };
19147
19185
  };
@@ -19192,6 +19230,7 @@ export interface operations {
19192
19230
  };
19193
19231
  };
19194
19232
  };
19233
+ 403: components["responses"]["AuthorizationException"];
19195
19234
  422: components["responses"]["ValidationException"];
19196
19235
  };
19197
19236
  };
@@ -19224,6 +19263,7 @@ export interface operations {
19224
19263
  };
19225
19264
  };
19226
19265
  };
19266
+ 403: components["responses"]["AuthorizationException"];
19227
19267
  422: components["responses"]["ValidationException"];
19228
19268
  };
19229
19269
  };
@@ -19269,6 +19309,7 @@ export interface operations {
19269
19309
  };
19270
19310
  };
19271
19311
  };
19312
+ 403: components["responses"]["AuthorizationException"];
19272
19313
  422: components["responses"]["ValidationException"];
19273
19314
  };
19274
19315
  };
@@ -19303,6 +19344,7 @@ export interface operations {
19303
19344
  };
19304
19345
  };
19305
19346
  };
19347
+ 403: components["responses"]["AuthorizationException"];
19306
19348
  };
19307
19349
  };
19308
19350
  "reconciliation.match": {
@@ -19335,6 +19377,7 @@ export interface operations {
19335
19377
  };
19336
19378
  };
19337
19379
  };
19380
+ 403: components["responses"]["AuthorizationException"];
19338
19381
  422: components["responses"]["ValidationException"];
19339
19382
  };
19340
19383
  };
@@ -19360,6 +19403,7 @@ export interface operations {
19360
19403
  };
19361
19404
  };
19362
19405
  };
19406
+ 403: components["responses"]["AuthorizationException"];
19363
19407
  };
19364
19408
  };
19365
19409
  "reconciliation.ignore": {
@@ -19384,6 +19428,7 @@ export interface operations {
19384
19428
  };
19385
19429
  };
19386
19430
  };
19431
+ 403: components["responses"]["AuthorizationException"];
19387
19432
  };
19388
19433
  };
19389
19434
  "reconciliation.reconcile": {
@@ -19408,6 +19453,7 @@ export interface operations {
19408
19453
  };
19409
19454
  };
19410
19455
  };
19456
+ 403: components["responses"]["AuthorizationException"];
19411
19457
  };
19412
19458
  };
19413
19459
  "recurringInvoice.delete": {
@@ -20169,6 +20215,7 @@ export interface operations {
20169
20215
  "application/xml": Blob;
20170
20216
  };
20171
20217
  };
20218
+ 403: components["responses"]["AuthorizationException"];
20172
20219
  404: {
20173
20220
  headers: {
20174
20221
  [name: string]: unknown;
@@ -20201,6 +20248,7 @@ export interface operations {
20201
20248
  };
20202
20249
  };
20203
20250
  };
20251
+ 403: components["responses"]["AuthorizationException"];
20204
20252
  };
20205
20253
  };
20206
20254
  "sepa-remittances.index": {
@@ -20222,6 +20270,7 @@ export interface operations {
20222
20270
  };
20223
20271
  };
20224
20272
  };
20273
+ 403: components["responses"]["AuthorizationException"];
20225
20274
  };
20226
20275
  };
20227
20276
  "sepa-remittances.store": {
@@ -20255,6 +20304,7 @@ export interface operations {
20255
20304
  };
20256
20305
  };
20257
20306
  };
20307
+ 403: components["responses"]["AuthorizationException"];
20258
20308
  422: components["responses"]["ValidationException"];
20259
20309
  500: {
20260
20310
  headers: {
@@ -20291,6 +20341,7 @@ export interface operations {
20291
20341
  };
20292
20342
  };
20293
20343
  };
20344
+ 403: components["responses"]["AuthorizationException"];
20294
20345
  };
20295
20346
  };
20296
20347
  "sepa-remittances.destroy": {
@@ -20314,6 +20365,7 @@ export interface operations {
20314
20365
  };
20315
20366
  };
20316
20367
  };
20368
+ 403: components["responses"]["AuthorizationException"];
20317
20369
  };
20318
20370
  };
20319
20371
  "invoice.sharedLink": {
@@ -21176,6 +21228,7 @@ export interface operations {
21176
21228
  };
21177
21229
  };
21178
21230
  };
21231
+ 403: components["responses"]["AuthorizationException"];
21179
21232
  404: components["responses"]["ModelNotFoundException"];
21180
21233
  };
21181
21234
  };
@@ -21202,6 +21255,7 @@ export interface operations {
21202
21255
  };
21203
21256
  };
21204
21257
  };
21258
+ 403: components["responses"]["AuthorizationException"];
21205
21259
  422: components["responses"]["ValidationException"];
21206
21260
  };
21207
21261
  };
@@ -21228,6 +21282,7 @@ export interface operations {
21228
21282
  };
21229
21283
  };
21230
21284
  };
21285
+ 403: components["responses"]["AuthorizationException"];
21231
21286
  };
21232
21287
  };
21233
21288
  "suppliers.store": {
@@ -21254,6 +21309,7 @@ export interface operations {
21254
21309
  };
21255
21310
  };
21256
21311
  };
21312
+ 403: components["responses"]["AuthorizationException"];
21257
21313
  422: components["responses"]["ValidationException"];
21258
21314
  };
21259
21315
  };
@@ -21280,6 +21336,7 @@ export interface operations {
21280
21336
  };
21281
21337
  };
21282
21338
  };
21339
+ 403: components["responses"]["AuthorizationException"];
21283
21340
  404: components["responses"]["ModelNotFoundException"];
21284
21341
  };
21285
21342
  };
@@ -21310,6 +21367,7 @@ export interface operations {
21310
21367
  };
21311
21368
  };
21312
21369
  };
21370
+ 403: components["responses"]["AuthorizationException"];
21313
21371
  404: components["responses"]["ModelNotFoundException"];
21314
21372
  422: components["responses"]["ValidationException"];
21315
21373
  };
@@ -21958,7 +22016,9 @@ export interface operations {
21958
22016
  content: {
21959
22017
  "application/json": {
21960
22018
  data: {
21961
- checkout_url: string;
22019
+ checkout_url: string | null;
22020
+ resumed: boolean;
22021
+ plan: string | null;
21962
22022
  };
21963
22023
  };
21964
22024
  };
@@ -22357,6 +22417,7 @@ export interface operations {
22357
22417
  name: string;
22358
22418
  description: string | null;
22359
22419
  core: boolean;
22420
+ listed: boolean;
22360
22421
  depends_on: string[];
22361
22422
  abilities_namespace: string | null;
22362
22423
  status: string;
package/dist/index.d.ts CHANGED
@@ -38,8 +38,20 @@ export declare const SCOPES: {
38
38
  readonly itemsWrite: "items:write";
39
39
  readonly bankingRead: "banking:read";
40
40
  readonly bankingWrite: "banking:write";
41
+ /**
42
+ * Leer las OPORTUNIDADES: leads, su embudo y su actividad comercial.
43
+ *
44
+ * ⚠️ Desde la 0.20.0 ya NO alcanza proyectos, tareas ni partes de horas: eso
45
+ * es `work:read` (núcleo galeote/factSaas#677). Un grant vivo que solo pidió
46
+ * `crm:*` tiene que reconectar para recuperarlos.
47
+ */
41
48
  readonly crmRead: "crm:read";
49
+ /** Crear y modificar leads, moverlos de etapa y convertirlos en cliente. */
42
50
  readonly crmWrite: "crm:write";
51
+ /** Leer el trabajo: obras y proyectos, tareas y partes de horas. */
52
+ readonly workRead: "work:read";
53
+ /** Crear y modificar obras y proyectos, tareas y partes de horas. */
54
+ readonly workWrite: "work:write";
43
55
  readonly agendaRead: "agenda:read";
44
56
  readonly agendaWrite: "agenda:write";
45
57
  readonly reportsRead: "reports:read";
package/dist/index.js CHANGED
@@ -34,8 +34,20 @@ export const SCOPES = {
34
34
  itemsWrite: 'items:write',
35
35
  bankingRead: 'banking:read',
36
36
  bankingWrite: 'banking:write',
37
+ /**
38
+ * Leer las OPORTUNIDADES: leads, su embudo y su actividad comercial.
39
+ *
40
+ * ⚠️ Desde la 0.20.0 ya NO alcanza proyectos, tareas ni partes de horas: eso
41
+ * es `work:read` (núcleo galeote/factSaas#677). Un grant vivo que solo pidió
42
+ * `crm:*` tiene que reconectar para recuperarlos.
43
+ */
37
44
  crmRead: 'crm:read',
45
+ /** Crear y modificar leads, moverlos de etapa y convertirlos en cliente. */
38
46
  crmWrite: 'crm:write',
47
+ /** Leer el trabajo: obras y proyectos, tareas y partes de horas. */
48
+ workRead: 'work:read',
49
+ /** Crear y modificar obras y proyectos, tareas y partes de horas. */
50
+ workWrite: 'work:write',
39
51
  agendaRead: 'agenda:read',
40
52
  agendaWrite: 'agenda:write',
41
53
  reportsRead: 'reports:read',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pimia/sdk",
3
- "version": "0.18.0",
3
+ "version": "0.20.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)",