openapi-sync 5.0.0 → 5.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.
- package/README.md +16 -1
- package/dist/index.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +397 -398
- package/dist/index.mjs +497 -498
- package/package.json +1 -1
- /package/dist/{interactive-init-4LMPMPGI.mjs → interactive-init-B7AFNUFL.mjs} +0 -0
package/README.md
CHANGED
|
@@ -157,8 +157,10 @@ import apiClient from "./api/petstore/client/client";
|
|
|
157
157
|
// Configure API client
|
|
158
158
|
apiClient.updateConfig({
|
|
159
159
|
baseURL: "https://api.example.com",
|
|
160
|
+
headers: {
|
|
161
|
+
Authorization: "Bearer your-auth-token",
|
|
162
|
+
},
|
|
160
163
|
});
|
|
161
|
-
apiClient.setAuthToken("your-auth-token");
|
|
162
164
|
|
|
163
165
|
function PetDetails({ petId }: { petId: string }) {
|
|
164
166
|
// Query hook for GET requests with structured params
|
|
@@ -345,4 +347,17 @@ Contributions welcome! Submit pull requests to our [GitHub repository](https://g
|
|
|
345
347
|
|
|
346
348
|
---
|
|
347
349
|
|
|
350
|
+
## Support / Donate
|
|
351
|
+
|
|
352
|
+
If you find OpenAPI Sync useful and would like to support its development, thank you — your support helps pay for hosting, CI, and ongoing maintenance.
|
|
353
|
+
|
|
354
|
+
You can support the project in any of the following ways:
|
|
355
|
+
|
|
356
|
+
- Sponsor the maintainer on GitHub: https://github.com/sponsors/akintomiwa-fisayo
|
|
357
|
+
- Back the project on Open Collective (placeholder): https://opencollective.com/fisayo-akintomiwa
|
|
358
|
+
- Become a patron on Patreon (placeholder): https://patreon.com/openapi_sync
|
|
359
|
+
- One-time donation via PayPal (placeholder): https://paypal.me/yourname
|
|
360
|
+
|
|
361
|
+
Thank you for considering supporting the project — every bit helps.
|
|
362
|
+
|
|
348
363
|
**[📘 Full Documentation](https://openapi-sync.com) | [GitHub](https://github.com/akintomiwa-fisayo/openapi-sync) | [npm](https://www.npmjs.com/package/openapi-sync)**
|
package/dist/index.d.mts
CHANGED
|
@@ -280,12 +280,23 @@ type IConfigClientGeneration = {
|
|
|
280
280
|
/** Enable mutation hooks for POST/PUT/PATCH/DELETE (default: true) */
|
|
281
281
|
mutations?: boolean;
|
|
282
282
|
/** Enable infinite query hooks for paginated endpoints (default: false) */
|
|
283
|
-
infiniteQueries?:
|
|
283
|
+
infiniteQueries?: {
|
|
284
|
+
disable?: boolean;
|
|
285
|
+
/** Include/exclude advanced filters for client generation */
|
|
286
|
+
include?: IConfigInclude;
|
|
287
|
+
exclude?: IConfigExclude;
|
|
288
|
+
};
|
|
284
289
|
};
|
|
285
290
|
/** Configuration for SWR hooks */
|
|
286
291
|
swr?: {
|
|
287
292
|
/** Enable SWR mutation hooks (default: true) */
|
|
288
293
|
mutations?: boolean;
|
|
294
|
+
infiniteQueries?: {
|
|
295
|
+
disable?: boolean;
|
|
296
|
+
/** Include/exclude advanced filters for client generation */
|
|
297
|
+
include?: IConfigInclude;
|
|
298
|
+
exclude?: IConfigExclude;
|
|
299
|
+
};
|
|
289
300
|
};
|
|
290
301
|
/** Configuration for RTK Query */
|
|
291
302
|
rtkQuery?: {
|
|
@@ -293,6 +304,12 @@ type IConfigClientGeneration = {
|
|
|
293
304
|
apiName?: string;
|
|
294
305
|
/** Base query type */
|
|
295
306
|
baseQuery?: "fetchBaseQuery" | "axiosBaseQuery";
|
|
307
|
+
infiniteQueries?: {
|
|
308
|
+
disable?: boolean;
|
|
309
|
+
/** Include/exclude advanced filters for client generation */
|
|
310
|
+
include?: IConfigInclude;
|
|
311
|
+
exclude?: IConfigExclude;
|
|
312
|
+
};
|
|
296
313
|
};
|
|
297
314
|
/** Include authentication/authorization setup */
|
|
298
315
|
auth?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -280,12 +280,23 @@ type IConfigClientGeneration = {
|
|
|
280
280
|
/** Enable mutation hooks for POST/PUT/PATCH/DELETE (default: true) */
|
|
281
281
|
mutations?: boolean;
|
|
282
282
|
/** Enable infinite query hooks for paginated endpoints (default: false) */
|
|
283
|
-
infiniteQueries?:
|
|
283
|
+
infiniteQueries?: {
|
|
284
|
+
disable?: boolean;
|
|
285
|
+
/** Include/exclude advanced filters for client generation */
|
|
286
|
+
include?: IConfigInclude;
|
|
287
|
+
exclude?: IConfigExclude;
|
|
288
|
+
};
|
|
284
289
|
};
|
|
285
290
|
/** Configuration for SWR hooks */
|
|
286
291
|
swr?: {
|
|
287
292
|
/** Enable SWR mutation hooks (default: true) */
|
|
288
293
|
mutations?: boolean;
|
|
294
|
+
infiniteQueries?: {
|
|
295
|
+
disable?: boolean;
|
|
296
|
+
/** Include/exclude advanced filters for client generation */
|
|
297
|
+
include?: IConfigInclude;
|
|
298
|
+
exclude?: IConfigExclude;
|
|
299
|
+
};
|
|
289
300
|
};
|
|
290
301
|
/** Configuration for RTK Query */
|
|
291
302
|
rtkQuery?: {
|
|
@@ -293,6 +304,12 @@ type IConfigClientGeneration = {
|
|
|
293
304
|
apiName?: string;
|
|
294
305
|
/** Base query type */
|
|
295
306
|
baseQuery?: "fetchBaseQuery" | "axiosBaseQuery";
|
|
307
|
+
infiniteQueries?: {
|
|
308
|
+
disable?: boolean;
|
|
309
|
+
/** Include/exclude advanced filters for client generation */
|
|
310
|
+
include?: IConfigInclude;
|
|
311
|
+
exclude?: IConfigExclude;
|
|
312
|
+
};
|
|
296
313
|
};
|
|
297
314
|
/** Include authentication/authorization setup */
|
|
298
315
|
auth?: {
|