@factpulse/sdk 3.0.25 → 3.0.26

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 (68) hide show
  1. package/.openapi-generator/FILES +4 -4
  2. package/CHANGELOG.md +3 -3
  3. package/README.md +19 -38
  4. package/dist/esm/models/chorus-pro-credentials.d.ts +19 -7
  5. package/dist/esm/models/chorus-pro-destination.d.ts +2 -2
  6. package/dist/esm/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts → facture-electronique-models-invoice-type-code.d.ts} +63 -18
  7. package/dist/esm/models/{facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js → facture-electronique-models-invoice-type-code.js} +66 -7
  8. package/dist/{models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts → esm/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts} +11 -9
  9. package/dist/esm/models/get-chorus-pro-id-request.d.ts +2 -2
  10. package/dist/esm/models/get-invoice-request.d.ts +2 -2
  11. package/dist/esm/models/get-structure-request.d.ts +2 -2
  12. package/dist/esm/models/index.d.ts +2 -2
  13. package/dist/esm/models/index.js +2 -2
  14. package/dist/esm/models/invoice-input.d.ts +2 -2
  15. package/dist/esm/models/invoice-type-code.d.ts +6 -65
  16. package/dist/esm/models/invoice-type-code.js +6 -65
  17. package/dist/esm/models/search-structure-request.d.ts +2 -2
  18. package/dist/esm/models/simplified-invoice-data.d.ts +2 -2
  19. package/dist/esm/models/submit-invoice-request.d.ts +2 -2
  20. package/dist/esm/src/helpers/client.js +1 -1
  21. package/dist/models/chorus-pro-credentials.d.ts +19 -7
  22. package/dist/models/chorus-pro-destination.d.ts +2 -2
  23. package/dist/{esm/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts → models/facture-electronique-models-invoice-type-code.d.ts} +67 -8
  24. package/dist/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts → facture-electronique-models-invoice-type-code.js} +67 -18
  25. package/dist/models/{facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts} +11 -13
  26. package/dist/models/get-chorus-pro-id-request.d.ts +2 -2
  27. package/dist/models/get-invoice-request.d.ts +2 -2
  28. package/dist/models/get-structure-request.d.ts +2 -2
  29. package/dist/models/index.d.ts +2 -2
  30. package/dist/models/index.js +2 -2
  31. package/dist/models/invoice-input.d.ts +2 -2
  32. package/dist/models/invoice-type-code.d.ts +6 -65
  33. package/dist/models/invoice-type-code.js +6 -65
  34. package/dist/models/search-structure-request.d.ts +2 -2
  35. package/dist/models/simplified-invoice-data.d.ts +2 -2
  36. package/dist/models/submit-invoice-request.d.ts +2 -2
  37. package/dist/src/helpers/client.js +1 -1
  38. package/docs/ChorusProCredentials.md +9 -9
  39. package/docs/ChorusProDestination.md +1 -1
  40. package/docs/FactureElectroniqueModelsInvoiceTypeCode.md +39 -0
  41. package/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +29 -0
  42. package/docs/GetChorusProIdRequest.md +1 -1
  43. package/docs/GetInvoiceRequest.md +1 -1
  44. package/docs/GetStructureRequest.md +1 -1
  45. package/docs/InvoiceInput.md +1 -1
  46. package/docs/InvoiceTypeCode.md +6 -28
  47. package/docs/SearchStructureRequest.md +1 -1
  48. package/docs/SimplifiedInvoiceData.md +1 -1
  49. package/docs/SubmitInvoiceRequest.md +1 -1
  50. package/models/chorus-pro-credentials.ts +19 -7
  51. package/models/chorus-pro-destination.ts +2 -2
  52. package/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.ts → facture-electronique-models-invoice-type-code.ts} +67 -18
  53. package/models/{facture-electronique-rest-api-schemas-ereporting-invoice-type-code.ts → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.ts} +11 -13
  54. package/models/get-chorus-pro-id-request.ts +2 -2
  55. package/models/get-invoice-request.ts +2 -2
  56. package/models/get-structure-request.ts +2 -2
  57. package/models/index.ts +2 -2
  58. package/models/invoice-input.ts +2 -2
  59. package/models/invoice-type-code.ts +6 -65
  60. package/models/search-structure-request.ts +2 -2
  61. package/models/simplified-invoice-data.ts +2 -2
  62. package/models/submit-invoice-request.ts +2 -2
  63. package/package.json +1 -1
  64. package/src/helpers/client.ts +1 -1
  65. package/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +0 -29
  66. package/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +0 -17
  67. /package/dist/esm/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js} +0 -0
  68. /package/dist/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js} +0 -0
@@ -15,7 +15,7 @@
15
15
 
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
- import type { FactureElectroniqueRestApiSchemasChorusProChorusProCredentials } from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
18
+ import type { ChorusProCredentials } from './chorus-pro-credentials';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
21
  import type { SubmitGrossAmount } from './submit-gross-amount';
@@ -30,7 +30,7 @@ import type { SubmitVatAmount } from './submit-vat-amount';
30
30
  * Submit an invoice to Chorus Pro.
31
31
  */
32
32
  export interface SubmitInvoiceRequest {
33
- 'credentials'?: FactureElectroniqueRestApiSchemasChorusProChorusProCredentials | null;
33
+ 'credentials'?: ChorusProCredentials | null;
34
34
  /**
35
35
  * Invoice number
36
36
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factpulse/sdk",
3
- "version": "3.0.25",
3
+ "version": "3.0.26",
4
4
  "description": "OpenAPI client for @factpulse/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -341,7 +341,7 @@ export class FactPulseClient {
341
341
  const response = await this.httpClient.post(`${this.config.apiUrl}/api/v1/processing/generate-invoice`, form, {
342
342
  headers: { ...form.getHeaders(), Authorization: `Bearer ${this.accessToken}` }, timeout: 60000,
343
343
  });
344
- taskId = response.data.task_id; break;
344
+ taskId = response.data.taskId; break;
345
345
  } catch (error) {
346
346
  const axiosError = error as AxiosError<{ detail?: unknown; errorMessage?: string }>;
347
347
  if (axiosError.response?.status === 401 && attempt < this.config.maxRetries) { this.resetAuth(); continue; }
@@ -1,29 +0,0 @@
1
- # FactureElectroniqueRestApiSchemasChorusProChorusProCredentials
2
-
3
- Chorus Pro credentials for Zero-Trust mode. **Zero-Trust Mode**: Credentials are passed in each request and are NEVER stored. **Security**: - Credentials are never persisted in the database - They are used only for the duration of the request - Secure transmission via HTTPS **Use cases**: - High-security environments (banks, administrations) - Strict GDPR compliance - Tests with temporary credentials - Users who don\'t want to store their credentials
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **pisteClientId** | **string** | PISTE Client ID (government API portal) | [default to undefined]
10
- **pisteClientSecret** | **string** | PISTE Client Secret | [default to undefined]
11
- **chorusProLogin** | **string** | Chorus Pro login | [default to undefined]
12
- **chorusProPassword** | **string** | Chorus Pro password | [default to undefined]
13
- **sandbox** | **boolean** | Use sandbox environment (true) or production (false) | [optional] [default to true]
14
-
15
- ## Example
16
-
17
- ```typescript
18
- import { FactureElectroniqueRestApiSchemasChorusProChorusProCredentials } from '@factpulse/sdk';
19
-
20
- const instance: FactureElectroniqueRestApiSchemasChorusProChorusProCredentials = {
21
- pisteClientId,
22
- pisteClientSecret,
23
- chorusProLogin,
24
- chorusProPassword,
25
- sandbox,
26
- };
27
- ```
28
-
29
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,17 +0,0 @@
1
- # FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode
2
-
3
- Invoice type codes (UNTDID 1001).
4
-
5
- ## Enum
6
-
7
- * `_380` (value: `'380'`)
8
-
9
- * `_381` (value: `'381'`)
10
-
11
- * `_384` (value: `'384'`)
12
-
13
- * `_389` (value: `'389'`)
14
-
15
- * `_386` (value: `'386'`)
16
-
17
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)