@cycleplatform/api-client-typescript 0.2.2 → 0.2.4
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/.prettierrc +4 -0
- package/package.json +1 -1
- package/src/generated/types.ts +6 -14
- package/src/index.ts +2 -2
package/.prettierrc
ADDED
package/package.json
CHANGED
package/src/generated/types.ts
CHANGED
|
@@ -1867,11 +1867,8 @@ export interface components {
|
|
|
1867
1867
|
start: components["schemas"]["DateTime"];
|
|
1868
1868
|
/** @description A timestamp describing the end of a billing term. */
|
|
1869
1869
|
end: components["schemas"]["DateTime"];
|
|
1870
|
-
/**
|
|
1871
|
-
|
|
1872
|
-
* @enum {string|null}
|
|
1873
|
-
*/
|
|
1874
|
-
renew: "once" | "monthly" | "yearly";
|
|
1870
|
+
/** @description The term renewal period. */
|
|
1871
|
+
renew: ("once" | "monthly" | "yearly") | null;
|
|
1875
1872
|
};
|
|
1876
1873
|
/**
|
|
1877
1874
|
* HubBillingProfile
|
|
@@ -3002,10 +2999,8 @@ export interface components {
|
|
|
3002
2999
|
* `request`: Asks the client to send a TLS certificate, but does not require nor validate it.
|
|
3003
3000
|
* `require`: Requires a certificate be sent for the request to be valid, but does not validate the certificate.
|
|
3004
3001
|
* `require-verify`: Requires both that the client send a certificate, and that the certificate is valid. This is required when using https.
|
|
3005
|
-
*
|
|
3006
|
-
* @enum {string|null}
|
|
3007
3002
|
*/
|
|
3008
|
-
client_auth?: "none" | "request" | "require" | "require-verify";
|
|
3003
|
+
client_auth?: ("none" | "request" | "require" | "require-verify") | null;
|
|
3009
3004
|
}) | null;
|
|
3010
3005
|
/** @description Defines how the length of various sorts of timeouts when communicating with the destination. */
|
|
3011
3006
|
timeouts: {
|
|
@@ -5649,11 +5644,8 @@ export interface components {
|
|
|
5649
5644
|
annotations?: {
|
|
5650
5645
|
[key: string]: unknown;
|
|
5651
5646
|
} | null;
|
|
5652
|
-
/**
|
|
5653
|
-
|
|
5654
|
-
* @enum {string|null}
|
|
5655
|
-
*/
|
|
5656
|
-
role?: "orchestrator";
|
|
5647
|
+
/** @description The role of a given container if it has one. */
|
|
5648
|
+
role?: "orchestrator" | null;
|
|
5657
5649
|
/** @description A boolean where true signifies the container is stateful. */
|
|
5658
5650
|
stateful: boolean;
|
|
5659
5651
|
/** @description A boolean where true signifies the container is marked as deprecated. */
|
|
@@ -11204,7 +11196,7 @@ export interface operations {
|
|
|
11204
11196
|
201: {
|
|
11205
11197
|
content: {
|
|
11206
11198
|
"application/json": {
|
|
11207
|
-
data
|
|
11199
|
+
data: components["schemas"]["Container"];
|
|
11208
11200
|
};
|
|
11209
11201
|
};
|
|
11210
11202
|
};
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import createClient, { type Middleware } from "openapi-fetch";
|
|
2
|
-
import type { paths, components } from "./generated/types";
|
|
2
|
+
import type { paths, components, operations } from "./generated/types";
|
|
3
3
|
|
|
4
|
-
export { paths, components };
|
|
4
|
+
export { paths, components, operations };
|
|
5
5
|
|
|
6
6
|
export function getClient({
|
|
7
7
|
apiKey,
|