@factpulse/sdk 4.0.0 → 4.0.1

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 (172) hide show
  1. package/.openapi-generator/FILES +30 -6
  2. package/.openapi-generator/VERSION +1 -1
  3. package/CHANGELOG.md +5 -9
  4. package/api/cdarcycle-de-vie-api.ts +186 -86
  5. package/api/client-management-api.ts +672 -0
  6. package/api/downloads-api.ts +0 -152
  7. package/api.ts +1 -0
  8. package/dist/api/cdarcycle-de-vie-api.d.ts +93 -50
  9. package/dist/api/cdarcycle-de-vie-api.js +174 -80
  10. package/dist/api/client-management-api.d.ts +309 -0
  11. package/dist/api/client-management-api.js +642 -0
  12. package/dist/api/downloads-api.d.ts +0 -68
  13. package/dist/api/downloads-api.js +0 -145
  14. package/dist/api.d.ts +1 -0
  15. package/dist/api.js +1 -0
  16. package/dist/esm/api/cdarcycle-de-vie-api.d.ts +93 -50
  17. package/dist/esm/api/cdarcycle-de-vie-api.js +174 -80
  18. package/dist/esm/api/client-management-api.d.ts +309 -0
  19. package/dist/esm/api/client-management-api.js +632 -0
  20. package/dist/esm/api/downloads-api.d.ts +0 -68
  21. package/dist/esm/api/downloads-api.js +0 -145
  22. package/dist/esm/api.d.ts +1 -0
  23. package/dist/esm/api.js +1 -0
  24. package/dist/esm/models/allowance-charge.d.ts +2 -2
  25. package/dist/esm/models/amount.d.ts +1 -1
  26. package/dist/esm/models/amount1.d.ts +1 -1
  27. package/dist/esm/models/amount2.d.ts +16 -0
  28. package/dist/esm/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.d.ts → client-activate-response.d.ts} +16 -5
  29. package/dist/esm/models/client-create-request.d.ts +22 -0
  30. package/dist/esm/models/client-create-request.js +14 -0
  31. package/dist/esm/models/client-detail.d.ts +48 -0
  32. package/dist/esm/models/client-detail.js +14 -0
  33. package/dist/esm/models/client-list-response.d.ts +33 -0
  34. package/dist/esm/models/client-list-response.js +14 -0
  35. package/dist/esm/models/client-summary.d.ts +48 -0
  36. package/dist/esm/models/client-summary.js +14 -0
  37. package/dist/esm/models/client-update-request.d.ts +19 -0
  38. package/dist/esm/models/client-update-request.js +14 -0
  39. package/dist/esm/models/encaissee-request.d.ts +39 -0
  40. package/dist/esm/models/encaissee-request.js +14 -0
  41. package/dist/esm/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts +22 -0
  42. package/dist/esm/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js +23 -0
  43. package/dist/esm/models/index.d.ts +14 -3
  44. package/dist/esm/models/index.js +14 -3
  45. package/dist/esm/models/invoice-input.d.ts +2 -2
  46. package/dist/esm/models/invoice-type-code.d.ts +65 -6
  47. package/dist/esm/models/invoice-type-code.js +65 -6
  48. package/dist/esm/models/payment-amount-by-rate.d.ts +2 -2
  49. package/dist/esm/models/pdpconfig-response.d.ts +34 -0
  50. package/dist/esm/models/pdpconfig-response.js +14 -0
  51. package/dist/esm/models/pdpconfig-update-request.d.ts +40 -0
  52. package/dist/esm/models/pdpconfig-update-request.js +14 -0
  53. package/dist/esm/models/refusee-request.d.ts +38 -0
  54. package/dist/esm/models/refusee-request.js +14 -0
  55. package/dist/esm/models/{body-submit-cdar-api-v1-cdar-submit-post.d.ts → secret-status.d.ts} +12 -5
  56. package/dist/esm/models/secret-status.js +14 -0
  57. package/dist/esm/models/simplified-cdarresponse.d.ts +36 -0
  58. package/dist/esm/models/simplified-cdarresponse.js +14 -0
  59. package/dist/esm/models/simplified-invoice-data.d.ts +2 -2
  60. package/dist/esm/models/submit-cdarrequest.d.ts +4 -0
  61. package/dist/esm/models/submit-cdarxmlrequest.d.ts +4 -0
  62. package/dist/esm/src/helpers/client.d.ts +3 -1
  63. package/dist/esm/src/helpers/client.js +28 -7
  64. package/dist/esm/src/helpers/exceptions.d.ts +3 -1
  65. package/dist/esm/src/helpers/exceptions.js +7 -1
  66. package/dist/models/allowance-charge.d.ts +2 -2
  67. package/dist/models/amount.d.ts +1 -1
  68. package/dist/models/amount1.d.ts +1 -1
  69. package/dist/models/amount2.d.ts +16 -0
  70. package/dist/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.d.ts → client-activate-response.d.ts} +16 -5
  71. package/dist/models/client-create-request.d.ts +22 -0
  72. package/dist/models/client-create-request.js +15 -0
  73. package/dist/models/client-detail.d.ts +48 -0
  74. package/dist/models/client-detail.js +15 -0
  75. package/dist/models/client-list-response.d.ts +33 -0
  76. package/dist/models/client-list-response.js +15 -0
  77. package/dist/models/client-summary.d.ts +48 -0
  78. package/dist/models/client-summary.js +15 -0
  79. package/dist/models/client-update-request.d.ts +19 -0
  80. package/dist/models/client-update-request.js +15 -0
  81. package/dist/models/encaissee-request.d.ts +39 -0
  82. package/dist/models/encaissee-request.js +15 -0
  83. package/dist/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts +22 -0
  84. package/dist/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js +26 -0
  85. package/dist/models/index.d.ts +14 -3
  86. package/dist/models/index.js +14 -3
  87. package/dist/models/invoice-input.d.ts +2 -2
  88. package/dist/models/invoice-type-code.d.ts +65 -6
  89. package/dist/models/invoice-type-code.js +65 -6
  90. package/dist/models/payment-amount-by-rate.d.ts +2 -2
  91. package/dist/models/pdpconfig-response.d.ts +34 -0
  92. package/dist/models/pdpconfig-response.js +15 -0
  93. package/dist/models/pdpconfig-update-request.d.ts +40 -0
  94. package/dist/models/pdpconfig-update-request.js +15 -0
  95. package/dist/models/refusee-request.d.ts +38 -0
  96. package/dist/models/refusee-request.js +15 -0
  97. package/dist/models/{body-submit-cdar-api-v1-cdar-submit-post.d.ts → secret-status.d.ts} +12 -5
  98. package/dist/models/secret-status.js +15 -0
  99. package/dist/models/simplified-cdarresponse.d.ts +36 -0
  100. package/dist/models/simplified-cdarresponse.js +15 -0
  101. package/dist/models/simplified-invoice-data.d.ts +2 -2
  102. package/dist/models/submit-cdarrequest.d.ts +4 -0
  103. package/dist/models/submit-cdarxmlrequest.d.ts +4 -0
  104. package/dist/src/helpers/client.d.ts +3 -1
  105. package/dist/src/helpers/client.js +61 -7
  106. package/dist/src/helpers/exceptions.d.ts +3 -1
  107. package/dist/src/helpers/exceptions.js +7 -1
  108. package/docs/AllowanceCharge.md +1 -1
  109. package/docs/Amount.md +1 -1
  110. package/docs/Amount1.md +1 -1
  111. package/docs/Amount2.md +19 -0
  112. package/docs/CDARCycleDeVieApi.md +126 -30
  113. package/docs/ClientActivateResponse.md +25 -0
  114. package/docs/ClientCreateRequest.md +25 -0
  115. package/docs/ClientDetail.md +41 -0
  116. package/docs/ClientListResponse.md +27 -0
  117. package/docs/ClientManagementApi.md +483 -0
  118. package/docs/ClientSummary.md +41 -0
  119. package/docs/ClientUpdateRequest.md +25 -0
  120. package/docs/DownloadsApi.md +0 -115
  121. package/docs/EncaisseeRequest.md +39 -0
  122. package/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +17 -0
  123. package/docs/InvoiceInput.md +1 -1
  124. package/docs/InvoiceTypeCode.md +28 -6
  125. package/docs/PDPConfigResponse.md +47 -0
  126. package/docs/PDPConfigUpdateRequest.md +31 -0
  127. package/docs/PaymentAmountByRate.md +1 -1
  128. package/docs/RefuseeRequest.md +39 -0
  129. package/docs/SecretStatus.md +23 -0
  130. package/docs/SimplifiedCDARResponse.md +29 -0
  131. package/docs/SimplifiedInvoiceData.md +1 -1
  132. package/docs/SubmitCDARRequest.md +8 -0
  133. package/docs/SubmitCDARXMLRequest.md +8 -0
  134. package/models/allowance-charge.ts +2 -2
  135. package/models/amount.ts +1 -1
  136. package/models/amount1.ts +1 -1
  137. package/models/amount2.ts +22 -0
  138. package/models/client-activate-response.ts +34 -0
  139. package/models/client-create-request.ts +28 -0
  140. package/models/client-detail.ts +54 -0
  141. package/models/{body-submit-cdar-api-v1-cdar-submit-post.ts → client-list-response.ts} +21 -7
  142. package/models/client-summary.ts +54 -0
  143. package/models/client-update-request.ts +25 -0
  144. package/models/encaissee-request.ts +47 -0
  145. package/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.ts → facture-electronique-rest-api-schemas-ereporting-invoice-type-code.ts} +16 -11
  146. package/models/index.ts +14 -3
  147. package/models/invoice-input.ts +2 -2
  148. package/models/invoice-type-code.ts +65 -6
  149. package/models/payment-amount-by-rate.ts +2 -2
  150. package/models/pdpconfig-response.ts +42 -0
  151. package/models/pdpconfig-update-request.ts +46 -0
  152. package/models/refusee-request.ts +44 -0
  153. package/models/secret-status.ts +30 -0
  154. package/models/simplified-cdarresponse.ts +42 -0
  155. package/models/simplified-invoice-data.ts +2 -2
  156. package/models/submit-cdarrequest.ts +4 -0
  157. package/models/submit-cdarxmlrequest.ts +4 -0
  158. package/package.json +1 -1
  159. package/src/helpers/client.ts +24 -6
  160. package/src/helpers/exceptions.ts +9 -1
  161. package/dist/esm/models/facture-electronique-models-invoice-type-code.d.ts +0 -81
  162. package/dist/esm/models/facture-electronique-models-invoice-type-code.js +0 -82
  163. package/dist/models/facture-electronique-models-invoice-type-code.d.ts +0 -81
  164. package/dist/models/facture-electronique-models-invoice-type-code.js +0 -85
  165. package/docs/BodySubmitCdarApiV1CdarSubmitPost.md +0 -22
  166. package/docs/BodySubmitCdarXmlApiV1CdarSubmitXmlPost.md +0 -22
  167. package/docs/FactureElectroniqueModelsInvoiceTypeCode.md +0 -39
  168. package/models/facture-electronique-models-invoice-type-code.ts +0 -91
  169. /package/dist/esm/models/{body-submit-cdar-api-v1-cdar-submit-post.js → amount2.js} +0 -0
  170. /package/dist/esm/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.js → client-activate-response.js} +0 -0
  171. /package/dist/models/{body-submit-cdar-api-v1-cdar-submit-post.js → amount2.js} +0 -0
  172. /package/dist/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.js → client-activate-response.js} +0 -0
@@ -0,0 +1,483 @@
1
+ # ClientManagementApi
2
+
3
+ All URIs are relative to *https://factpulse.fr*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**activateClientApiV1ClientsUidActiverPost**](#activateclientapiv1clientsuidactiverpost) | **POST** /api/v1/clients/{uid}/activer | Activate a client|
8
+ |[**createClientApiV1ClientsPost**](#createclientapiv1clientspost) | **POST** /api/v1/clients | Create a client|
9
+ |[**deactivateClientApiV1ClientsUidDesactiverPost**](#deactivateclientapiv1clientsuiddesactiverpost) | **POST** /api/v1/clients/{uid}/desactiver | Deactivate a client|
10
+ |[**getClientApiV1ClientsUidGet**](#getclientapiv1clientsuidget) | **GET** /api/v1/clients/{uid} | Get client details|
11
+ |[**getPdpConfigApiV1ClientsUidPdpConfigGet**](#getpdpconfigapiv1clientsuidpdpconfigget) | **GET** /api/v1/clients/{uid}/pdp-config | Get client PDP configuration|
12
+ |[**listClientsApiV1ClientsGet**](#listclientsapiv1clientsget) | **GET** /api/v1/clients | List clients|
13
+ |[**updateClientApiV1ClientsUidPatch**](#updateclientapiv1clientsuidpatch) | **PATCH** /api/v1/clients/{uid} | Update a client|
14
+ |[**updatePdpConfigApiV1ClientsUidPdpConfigPut**](#updatepdpconfigapiv1clientsuidpdpconfigput) | **PUT** /api/v1/clients/{uid}/pdp-config | Configure client PDP|
15
+
16
+ # **activateClientApiV1ClientsUidActiverPost**
17
+ > ClientActivateResponse activateClientApiV1ClientsUidActiverPost()
18
+
19
+ Activate a deactivated client. **Scope**: Client level (JWT with client_uid that must match {uid})
20
+
21
+ ### Example
22
+
23
+ ```typescript
24
+ import {
25
+ ClientManagementApi,
26
+ Configuration
27
+ } from '@factpulse/sdk';
28
+
29
+ const configuration = new Configuration();
30
+ const apiInstance = new ClientManagementApi(configuration);
31
+
32
+ let uid: string; // (default to undefined)
33
+
34
+ const { status, data } = await apiInstance.activateClientApiV1ClientsUidActiverPost(
35
+ uid
36
+ );
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ |Name | Type | Description | Notes|
42
+ |------------- | ------------- | ------------- | -------------|
43
+ | **uid** | [**string**] | | defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **ClientActivateResponse**
49
+
50
+ ### Authorization
51
+
52
+ [HTTPBearer](../README.md#HTTPBearer)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | Successful Response | - |
64
+ |**400** | Invalid request | - |
65
+ |**401** | Missing or invalid JWT token | - |
66
+ |**403** | Access denied | - |
67
+ |**404** | Client not found | - |
68
+ |**500** | Server error | - |
69
+ |**422** | Validation Error | - |
70
+
71
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
72
+
73
+ # **createClientApiV1ClientsPost**
74
+ > ClientDetail createClientApiV1ClientsPost(clientCreateRequest)
75
+
76
+ Create a new client for the account. **Scope**: Account level (JWT without client_uid) **Fields**: - `name`: Client name (required) - `description`: Optional description - `siret`: Optional SIRET (14 digits)
77
+
78
+ ### Example
79
+
80
+ ```typescript
81
+ import {
82
+ ClientManagementApi,
83
+ Configuration,
84
+ ClientCreateRequest
85
+ } from '@factpulse/sdk';
86
+
87
+ const configuration = new Configuration();
88
+ const apiInstance = new ClientManagementApi(configuration);
89
+
90
+ let clientCreateRequest: ClientCreateRequest; //
91
+
92
+ const { status, data } = await apiInstance.createClientApiV1ClientsPost(
93
+ clientCreateRequest
94
+ );
95
+ ```
96
+
97
+ ### Parameters
98
+
99
+ |Name | Type | Description | Notes|
100
+ |------------- | ------------- | ------------- | -------------|
101
+ | **clientCreateRequest** | **ClientCreateRequest**| | |
102
+
103
+
104
+ ### Return type
105
+
106
+ **ClientDetail**
107
+
108
+ ### Authorization
109
+
110
+ [HTTPBearer](../README.md#HTTPBearer)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: application/json
115
+ - **Accept**: application/json
116
+
117
+
118
+ ### HTTP response details
119
+ | Status code | Description | Response headers |
120
+ |-------------|-------------|------------------|
121
+ |**201** | Successful Response | - |
122
+ |**400** | Invalid request | - |
123
+ |**401** | Missing or invalid JWT token | - |
124
+ |**403** | Access denied | - |
125
+ |**404** | Client not found | - |
126
+ |**500** | Server error | - |
127
+ |**422** | Validation Error | - |
128
+
129
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
130
+
131
+ # **deactivateClientApiV1ClientsUidDesactiverPost**
132
+ > ClientActivateResponse deactivateClientApiV1ClientsUidDesactiverPost()
133
+
134
+ Deactivate an active client. **Scope**: Client level (JWT with client_uid that must match {uid}) **Note**: A deactivated client cannot be used for API calls (AFNOR, Chorus Pro, etc.).
135
+
136
+ ### Example
137
+
138
+ ```typescript
139
+ import {
140
+ ClientManagementApi,
141
+ Configuration
142
+ } from '@factpulse/sdk';
143
+
144
+ const configuration = new Configuration();
145
+ const apiInstance = new ClientManagementApi(configuration);
146
+
147
+ let uid: string; // (default to undefined)
148
+
149
+ const { status, data } = await apiInstance.deactivateClientApiV1ClientsUidDesactiverPost(
150
+ uid
151
+ );
152
+ ```
153
+
154
+ ### Parameters
155
+
156
+ |Name | Type | Description | Notes|
157
+ |------------- | ------------- | ------------- | -------------|
158
+ | **uid** | [**string**] | | defaults to undefined|
159
+
160
+
161
+ ### Return type
162
+
163
+ **ClientActivateResponse**
164
+
165
+ ### Authorization
166
+
167
+ [HTTPBearer](../README.md#HTTPBearer)
168
+
169
+ ### HTTP request headers
170
+
171
+ - **Content-Type**: Not defined
172
+ - **Accept**: application/json
173
+
174
+
175
+ ### HTTP response details
176
+ | Status code | Description | Response headers |
177
+ |-------------|-------------|------------------|
178
+ |**200** | Successful Response | - |
179
+ |**400** | Invalid request | - |
180
+ |**401** | Missing or invalid JWT token | - |
181
+ |**403** | Access denied | - |
182
+ |**404** | Client not found | - |
183
+ |**500** | Server error | - |
184
+ |**422** | Validation Error | - |
185
+
186
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
187
+
188
+ # **getClientApiV1ClientsUidGet**
189
+ > ClientDetail getClientApiV1ClientsUidGet()
190
+
191
+ Get details of a client. **Scope**: Client level (JWT with client_uid that must match {uid}) **Security**: If the JWT contains a client_uid, it must match the {uid} in the URL, otherwise a 403 error is returned.
192
+
193
+ ### Example
194
+
195
+ ```typescript
196
+ import {
197
+ ClientManagementApi,
198
+ Configuration
199
+ } from '@factpulse/sdk';
200
+
201
+ const configuration = new Configuration();
202
+ const apiInstance = new ClientManagementApi(configuration);
203
+
204
+ let uid: string; // (default to undefined)
205
+
206
+ const { status, data } = await apiInstance.getClientApiV1ClientsUidGet(
207
+ uid
208
+ );
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+ |Name | Type | Description | Notes|
214
+ |------------- | ------------- | ------------- | -------------|
215
+ | **uid** | [**string**] | | defaults to undefined|
216
+
217
+
218
+ ### Return type
219
+
220
+ **ClientDetail**
221
+
222
+ ### Authorization
223
+
224
+ [HTTPBearer](../README.md#HTTPBearer)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: application/json
230
+
231
+
232
+ ### HTTP response details
233
+ | Status code | Description | Response headers |
234
+ |-------------|-------------|------------------|
235
+ |**200** | Successful Response | - |
236
+ |**400** | Invalid request | - |
237
+ |**401** | Missing or invalid JWT token | - |
238
+ |**403** | Access denied | - |
239
+ |**404** | Client not found | - |
240
+ |**500** | Server error | - |
241
+ |**422** | Validation Error | - |
242
+
243
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
244
+
245
+ # **getPdpConfigApiV1ClientsUidPdpConfigGet**
246
+ > PDPConfigResponse getPdpConfigApiV1ClientsUidPdpConfigGet()
247
+
248
+ Get the PDP (PA/PDP) configuration for a client. **Scope**: Client level (JWT with client_uid that must match {uid}) **Security**: The client secret is never returned. Only a status (`secretStatus`) indicates whether a secret is configured. **Response**: - If configured: all config details (URLs, client_id, secret status) - If not configured: `isConfigured: false` with a message
249
+
250
+ ### Example
251
+
252
+ ```typescript
253
+ import {
254
+ ClientManagementApi,
255
+ Configuration
256
+ } from '@factpulse/sdk';
257
+
258
+ const configuration = new Configuration();
259
+ const apiInstance = new ClientManagementApi(configuration);
260
+
261
+ let uid: string; // (default to undefined)
262
+
263
+ const { status, data } = await apiInstance.getPdpConfigApiV1ClientsUidPdpConfigGet(
264
+ uid
265
+ );
266
+ ```
267
+
268
+ ### Parameters
269
+
270
+ |Name | Type | Description | Notes|
271
+ |------------- | ------------- | ------------- | -------------|
272
+ | **uid** | [**string**] | | defaults to undefined|
273
+
274
+
275
+ ### Return type
276
+
277
+ **PDPConfigResponse**
278
+
279
+ ### Authorization
280
+
281
+ [HTTPBearer](../README.md#HTTPBearer)
282
+
283
+ ### HTTP request headers
284
+
285
+ - **Content-Type**: Not defined
286
+ - **Accept**: application/json
287
+
288
+
289
+ ### HTTP response details
290
+ | Status code | Description | Response headers |
291
+ |-------------|-------------|------------------|
292
+ |**200** | Successful Response | - |
293
+ |**400** | Invalid request | - |
294
+ |**401** | Missing or invalid JWT token | - |
295
+ |**403** | Access denied | - |
296
+ |**404** | Client not found | - |
297
+ |**500** | Server error | - |
298
+ |**422** | Validation Error | - |
299
+
300
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
301
+
302
+ # **listClientsApiV1ClientsGet**
303
+ > ClientListResponse listClientsApiV1ClientsGet()
304
+
305
+ Paginated list of clients for the account. **Scope**: Account level (JWT without client_uid) **Pagination**: - `page`: Page number (default: 1) - `pageSize`: Page size (default: 20, max: 100)
306
+
307
+ ### Example
308
+
309
+ ```typescript
310
+ import {
311
+ ClientManagementApi,
312
+ Configuration
313
+ } from '@factpulse/sdk';
314
+
315
+ const configuration = new Configuration();
316
+ const apiInstance = new ClientManagementApi(configuration);
317
+
318
+ let page: number; //Page number (optional) (default to 1)
319
+ let pageSize: number; //Page size (optional) (default to 20)
320
+
321
+ const { status, data } = await apiInstance.listClientsApiV1ClientsGet(
322
+ page,
323
+ pageSize
324
+ );
325
+ ```
326
+
327
+ ### Parameters
328
+
329
+ |Name | Type | Description | Notes|
330
+ |------------- | ------------- | ------------- | -------------|
331
+ | **page** | [**number**] | Page number | (optional) defaults to 1|
332
+ | **pageSize** | [**number**] | Page size | (optional) defaults to 20|
333
+
334
+
335
+ ### Return type
336
+
337
+ **ClientListResponse**
338
+
339
+ ### Authorization
340
+
341
+ [HTTPBearer](../README.md#HTTPBearer)
342
+
343
+ ### HTTP request headers
344
+
345
+ - **Content-Type**: Not defined
346
+ - **Accept**: application/json
347
+
348
+
349
+ ### HTTP response details
350
+ | Status code | Description | Response headers |
351
+ |-------------|-------------|------------------|
352
+ |**200** | Successful Response | - |
353
+ |**400** | Invalid request | - |
354
+ |**401** | Missing or invalid JWT token | - |
355
+ |**403** | Access denied | - |
356
+ |**404** | Client not found | - |
357
+ |**500** | Server error | - |
358
+ |**422** | Validation Error | - |
359
+
360
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
361
+
362
+ # **updateClientApiV1ClientsUidPatch**
363
+ > ClientDetail updateClientApiV1ClientsUidPatch(clientUpdateRequest)
364
+
365
+ Update client information (partial update). **Scope**: Client level (JWT with client_uid that must match {uid}) **Updatable fields**: - `name`: Client name - `description`: Description - `siret`: SIRET (14 digits) Only provided fields are updated.
366
+
367
+ ### Example
368
+
369
+ ```typescript
370
+ import {
371
+ ClientManagementApi,
372
+ Configuration,
373
+ ClientUpdateRequest
374
+ } from '@factpulse/sdk';
375
+
376
+ const configuration = new Configuration();
377
+ const apiInstance = new ClientManagementApi(configuration);
378
+
379
+ let uid: string; // (default to undefined)
380
+ let clientUpdateRequest: ClientUpdateRequest; //
381
+
382
+ const { status, data } = await apiInstance.updateClientApiV1ClientsUidPatch(
383
+ uid,
384
+ clientUpdateRequest
385
+ );
386
+ ```
387
+
388
+ ### Parameters
389
+
390
+ |Name | Type | Description | Notes|
391
+ |------------- | ------------- | ------------- | -------------|
392
+ | **clientUpdateRequest** | **ClientUpdateRequest**| | |
393
+ | **uid** | [**string**] | | defaults to undefined|
394
+
395
+
396
+ ### Return type
397
+
398
+ **ClientDetail**
399
+
400
+ ### Authorization
401
+
402
+ [HTTPBearer](../README.md#HTTPBearer)
403
+
404
+ ### HTTP request headers
405
+
406
+ - **Content-Type**: application/json
407
+ - **Accept**: application/json
408
+
409
+
410
+ ### HTTP response details
411
+ | Status code | Description | Response headers |
412
+ |-------------|-------------|------------------|
413
+ |**200** | Successful Response | - |
414
+ |**400** | Invalid request | - |
415
+ |**401** | Missing or invalid JWT token | - |
416
+ |**403** | Access denied | - |
417
+ |**404** | Client not found | - |
418
+ |**500** | Server error | - |
419
+ |**422** | Validation Error | - |
420
+
421
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
422
+
423
+ # **updatePdpConfigApiV1ClientsUidPdpConfigPut**
424
+ > PDPConfigResponse updatePdpConfigApiV1ClientsUidPdpConfigPut(pDPConfigUpdateRequest)
425
+
426
+ Configure or update the PDP (PA/PDP) configuration for a client. **Scope**: Client level (JWT with client_uid that must match {uid}) **Required fields**: - `flowServiceUrl`: PDP Flow Service URL - `tokenUrl`: PDP OAuth token URL - `oauthClientId`: OAuth Client ID - `clientSecret`: OAuth Client Secret (sent but NEVER returned) **Optional fields**: - `isActive`: Enable/disable the config (default: true) - `modeSandbox`: Sandbox mode (default: false) **Security**: The `clientSecret` is stored encrypted on Django side and is never returned in API responses.
427
+
428
+ ### Example
429
+
430
+ ```typescript
431
+ import {
432
+ ClientManagementApi,
433
+ Configuration,
434
+ PDPConfigUpdateRequest
435
+ } from '@factpulse/sdk';
436
+
437
+ const configuration = new Configuration();
438
+ const apiInstance = new ClientManagementApi(configuration);
439
+
440
+ let uid: string; // (default to undefined)
441
+ let pDPConfigUpdateRequest: PDPConfigUpdateRequest; //
442
+
443
+ const { status, data } = await apiInstance.updatePdpConfigApiV1ClientsUidPdpConfigPut(
444
+ uid,
445
+ pDPConfigUpdateRequest
446
+ );
447
+ ```
448
+
449
+ ### Parameters
450
+
451
+ |Name | Type | Description | Notes|
452
+ |------------- | ------------- | ------------- | -------------|
453
+ | **pDPConfigUpdateRequest** | **PDPConfigUpdateRequest**| | |
454
+ | **uid** | [**string**] | | defaults to undefined|
455
+
456
+
457
+ ### Return type
458
+
459
+ **PDPConfigResponse**
460
+
461
+ ### Authorization
462
+
463
+ [HTTPBearer](../README.md#HTTPBearer)
464
+
465
+ ### HTTP request headers
466
+
467
+ - **Content-Type**: application/json
468
+ - **Accept**: application/json
469
+
470
+
471
+ ### HTTP response details
472
+ | Status code | Description | Response headers |
473
+ |-------------|-------------|------------------|
474
+ |**200** | Successful Response | - |
475
+ |**400** | Invalid request | - |
476
+ |**401** | Missing or invalid JWT token | - |
477
+ |**403** | Access denied | - |
478
+ |**404** | Client not found | - |
479
+ |**500** | Server error | - |
480
+ |**422** | Validation Error | - |
481
+
482
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
483
+
@@ -0,0 +1,41 @@
1
+ # ClientSummary
2
+
3
+ Client list view.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **uid** | **string** | Unique client identifier | [default to undefined]
10
+ **name** | **string** | Client name | [default to undefined]
11
+ **siret** | **string** | | [optional] [default to undefined]
12
+ **description** | **string** | | [optional] [default to undefined]
13
+ **isActive** | **boolean** | Whether the client is active | [default to undefined]
14
+ **hasConfigPdp** | **boolean** | Whether PDP config exists | [default to undefined]
15
+ **pdpIsActive** | **boolean** | | [optional] [default to undefined]
16
+ **pdpIsMock** | **boolean** | | [optional] [default to undefined]
17
+ **hasConfigChorus** | **boolean** | Whether Chorus Pro config exists | [default to undefined]
18
+ **createdAt** | **string** | Creation date | [default to undefined]
19
+ **updatedAt** | **string** | Last update date | [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { ClientSummary } from '@factpulse/sdk';
25
+
26
+ const instance: ClientSummary = {
27
+ uid,
28
+ name,
29
+ siret,
30
+ description,
31
+ isActive,
32
+ hasConfigPdp,
33
+ pdpIsActive,
34
+ pdpIsMock,
35
+ hasConfigChorus,
36
+ createdAt,
37
+ updatedAt,
38
+ };
39
+ ```
40
+
41
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,25 @@
1
+ # ClientUpdateRequest
2
+
3
+ Partial client update request.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **description** | **string** | | [optional] [default to undefined]
11
+ **siret** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ClientUpdateRequest } from '@factpulse/sdk';
17
+
18
+ const instance: ClientUpdateRequest = {
19
+ name,
20
+ description,
21
+ siret,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -5,9 +5,7 @@ All URIs are relative to *https://factpulse.fr*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**checkFileApiV1DownloadDownloadIdHead**](#checkfileapiv1downloaddownloadidhead) | **HEAD** /api/v1/download/{download_id} | Check if a file exists|
8
- |[**checkFileApiV1DownloadDownloadIdHead_0**](#checkfileapiv1downloaddownloadidhead_0) | **HEAD** /api/v1/download/{download_id} | Check if a file exists|
9
8
  |[**downloadFileApiV1DownloadDownloadIdGet**](#downloadfileapiv1downloaddownloadidget) | **GET** /api/v1/download/{download_id} | Download a temporary file|
10
- |[**downloadFileApiV1DownloadDownloadIdGet_0**](#downloadfileapiv1downloaddownloadidget_0) | **GET** /api/v1/download/{download_id} | Download a temporary file|
11
9
 
12
10
  # **checkFileApiV1DownloadDownloadIdHead**
13
11
  > any checkFileApiV1DownloadDownloadIdHead()
@@ -39,61 +37,6 @@ const { status, data } = await apiInstance.checkFileApiV1DownloadDownloadIdHead(
39
37
  | **downloadId** | [**string**] | | defaults to undefined|
40
38
 
41
39
 
42
- ### Return type
43
-
44
- **any**
45
-
46
- ### Authorization
47
-
48
- [HTTPBearer](../README.md#HTTPBearer)
49
-
50
- ### HTTP request headers
51
-
52
- - **Content-Type**: Not defined
53
- - **Accept**: application/json
54
-
55
-
56
- ### HTTP response details
57
- | Status code | Description | Response headers |
58
- |-------------|-------------|------------------|
59
- |**200** | File exists | - |
60
- |**401** | Authentication required | - |
61
- |**403** | Access denied | - |
62
- |**404** | File not found or expired | - |
63
- |**422** | Validation Error | - |
64
-
65
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
66
-
67
- # **checkFileApiV1DownloadDownloadIdHead_0**
68
- > any checkFileApiV1DownloadDownloadIdHead_0()
69
-
70
- Check if a temporary file exists and get its metadata without downloading. Useful for: - Verifying a download URL is still valid - Getting file size before downloading - Checking expiration time **Security**: Requires authentication, only file owner can check.
71
-
72
- ### Example
73
-
74
- ```typescript
75
- import {
76
- DownloadsApi,
77
- Configuration
78
- } from '@factpulse/sdk';
79
-
80
- const configuration = new Configuration();
81
- const apiInstance = new DownloadsApi(configuration);
82
-
83
- let downloadId: string; // (default to undefined)
84
-
85
- const { status, data } = await apiInstance.checkFileApiV1DownloadDownloadIdHead_0(
86
- downloadId
87
- );
88
- ```
89
-
90
- ### Parameters
91
-
92
- |Name | Type | Description | Notes|
93
- |------------- | ------------- | ------------- | -------------|
94
- | **downloadId** | [**string**] | | defaults to undefined|
95
-
96
-
97
40
  ### Return type
98
41
 
99
42
  **any**
@@ -177,61 +120,3 @@ const { status, data } = await apiInstance.downloadFileApiV1DownloadDownloadIdGe
177
120
 
178
121
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
179
122
 
180
- # **downloadFileApiV1DownloadDownloadIdGet_0**
181
- > any downloadFileApiV1DownloadDownloadIdGet_0()
182
-
183
- Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
184
-
185
- ### Example
186
-
187
- ```typescript
188
- import {
189
- DownloadsApi,
190
- Configuration
191
- } from '@factpulse/sdk';
192
-
193
- const configuration = new Configuration();
194
- const apiInstance = new DownloadsApi(configuration);
195
-
196
- let downloadId: string; // (default to undefined)
197
- let deleteAfter: boolean; //If true, delete the file after download (one-time download) (optional) (default to false)
198
-
199
- const { status, data } = await apiInstance.downloadFileApiV1DownloadDownloadIdGet_0(
200
- downloadId,
201
- deleteAfter
202
- );
203
- ```
204
-
205
- ### Parameters
206
-
207
- |Name | Type | Description | Notes|
208
- |------------- | ------------- | ------------- | -------------|
209
- | **downloadId** | [**string**] | | defaults to undefined|
210
- | **deleteAfter** | [**boolean**] | If true, delete the file after download (one-time download) | (optional) defaults to false|
211
-
212
-
213
- ### Return type
214
-
215
- **any**
216
-
217
- ### Authorization
218
-
219
- [HTTPBearer](../README.md#HTTPBearer)
220
-
221
- ### HTTP request headers
222
-
223
- - **Content-Type**: Not defined
224
- - **Accept**: application/json, application/pdf, application/xml, application/octet-stream
225
-
226
-
227
- ### HTTP response details
228
- | Status code | Description | Response headers |
229
- |-------------|-------------|------------------|
230
- |**200** | File content | - |
231
- |**401** | Authentication required | - |
232
- |**403** | Access denied - file belongs to another user | - |
233
- |**404** | File not found or expired | - |
234
- |**422** | Validation Error | - |
235
-
236
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
237
-