@klingis/sdk 0.4.0 → 0.5.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/generated/billing-portal/billing-portal.d.ts +8 -7
- package/dist/generated/billing-portal/billing-portal.d.ts.map +1 -1
- package/dist/generated/billing-portal/billing-portal.js +6 -0
- package/dist/generated/billing-portal/billing-portal.js.map +1 -1
- package/dist/generated/checkout-sessions/checkout-sessions.d.ts +10 -9
- package/dist/generated/checkout-sessions/checkout-sessions.d.ts.map +1 -1
- package/dist/generated/checkout-sessions/checkout-sessions.js +10 -1
- package/dist/generated/checkout-sessions/checkout-sessions.js.map +1 -1
- package/dist/generated/claims/claims.d.ts +12 -11
- package/dist/generated/claims/claims.d.ts.map +1 -1
- package/dist/generated/claims/claims.js +13 -1
- package/dist/generated/claims/claims.js.map +1 -1
- package/dist/generated/coupons/coupons.d.ts +14 -13
- package/dist/generated/coupons/coupons.d.ts.map +1 -1
- package/dist/generated/coupons/coupons.js +16 -1
- package/dist/generated/coupons/coupons.js.map +1 -1
- package/dist/generated/customers/customers.d.ts +14 -13
- package/dist/generated/customers/customers.d.ts.map +1 -1
- package/dist/generated/customers/customers.js +16 -1
- package/dist/generated/customers/customers.js.map +1 -1
- package/dist/generated/default/default.d.ts +9 -1
- package/dist/generated/default/default.d.ts.map +1 -1
- package/dist/generated/default/default.js +1 -1
- package/dist/generated/default/default.js.map +1 -1
- package/dist/generated/delivery/delivery.d.ts +34 -33
- package/dist/generated/delivery/delivery.d.ts.map +1 -1
- package/dist/generated/delivery/delivery.js +40 -0
- package/dist/generated/delivery/delivery.js.map +1 -1
- package/dist/generated/device-auth/device-auth.d.ts +10 -9
- package/dist/generated/device-auth/device-auth.d.ts.map +1 -1
- package/dist/generated/device-auth/device-auth.js +9 -1
- package/dist/generated/device-auth/device-auth.js.map +1 -1
- package/dist/generated/events/events.d.ts +7 -6
- package/dist/generated/events/events.d.ts.map +1 -1
- package/dist/generated/events/events.js +5 -1
- package/dist/generated/events/events.js.map +1 -1
- package/dist/generated/health/health.d.ts +10 -9
- package/dist/generated/health/health.d.ts.map +1 -1
- package/dist/generated/health/health.js +9 -0
- package/dist/generated/health/health.js.map +1 -1
- package/dist/generated/index.d.ts +25 -23
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +25 -26
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/klingAPI.schemas.d.ts +5231 -20441
- package/dist/generated/klingAPI.schemas.d.ts.map +1 -1
- package/dist/generated/merchant/merchant.d.ts +24 -23
- package/dist/generated/merchant/merchant.d.ts.map +1 -1
- package/dist/generated/merchant/merchant.js +26 -0
- package/dist/generated/merchant/merchant.js.map +1 -1
- package/dist/generated/meta/meta.d.ts +6 -5
- package/dist/generated/meta/meta.d.ts.map +1 -1
- package/dist/generated/meta/meta.js +3 -0
- package/dist/generated/meta/meta.js.map +1 -1
- package/dist/generated/notification-channels/notification-channels.d.ts +18 -17
- package/dist/generated/notification-channels/notification-channels.d.ts.map +1 -1
- package/dist/generated/notification-channels/notification-channels.js +23 -2
- package/dist/generated/notification-channels/notification-channels.js.map +1 -1
- package/dist/generated/open-payment-pages/open-payment-pages.d.ts +25 -24
- package/dist/generated/open-payment-pages/open-payment-pages.d.ts.map +1 -1
- package/dist/generated/open-payment-pages/open-payment-pages.js +29 -1
- package/dist/generated/open-payment-pages/open-payment-pages.js.map +1 -1
- package/dist/generated/payment-intents/payment-intents.d.ts +21 -20
- package/dist/generated/payment-intents/payment-intents.d.ts.map +1 -1
- package/dist/generated/payment-intents/payment-intents.js +26 -1
- package/dist/generated/payment-intents/payment-intents.js.map +1 -1
- package/dist/generated/payment-links/payment-links.d.ts +18 -17
- package/dist/generated/payment-links/payment-links.d.ts.map +1 -1
- package/dist/generated/payment-links/payment-links.js +22 -1
- package/dist/generated/payment-links/payment-links.js.map +1 -1
- package/dist/generated/payment-methods/payment-methods.d.ts +12 -11
- package/dist/generated/payment-methods/payment-methods.d.ts.map +1 -1
- package/dist/generated/payment-methods/payment-methods.js +12 -0
- package/dist/generated/payment-methods/payment-methods.js.map +1 -1
- package/dist/generated/pos/pos.d.ts +46 -45
- package/dist/generated/pos/pos.d.ts.map +1 -1
- package/dist/generated/pos/pos.js +60 -3
- package/dist/generated/pos/pos.js.map +1 -1
- package/dist/generated/pos-devices/pos-devices.d.ts +13 -12
- package/dist/generated/pos-devices/pos-devices.d.ts.map +1 -1
- package/dist/generated/pos-devices/pos-devices.js +13 -0
- package/dist/generated/pos-devices/pos-devices.js.map +1 -1
- package/dist/generated/products/products.d.ts +23 -22
- package/dist/generated/products/products.d.ts.map +1 -1
- package/dist/generated/products/products.js +29 -2
- package/dist/generated/products/products.js.map +1 -1
- package/dist/generated/promotion-codes/promotion-codes.d.ts +14 -13
- package/dist/generated/promotion-codes/promotion-codes.d.ts.map +1 -1
- package/dist/generated/promotion-codes/promotion-codes.js +16 -1
- package/dist/generated/promotion-codes/promotion-codes.js.map +1 -1
- package/dist/generated/reports/reports.d.ts +18 -17
- package/dist/generated/reports/reports.d.ts.map +1 -1
- package/dist/generated/reports/reports.js +26 -5
- package/dist/generated/reports/reports.js.map +1 -1
- package/dist/generated/subscriptions/subscriptions.d.ts +18 -17
- package/dist/generated/subscriptions/subscriptions.d.ts.map +1 -1
- package/dist/generated/subscriptions/subscriptions.js +22 -1
- package/dist/generated/subscriptions/subscriptions.js.map +1 -1
- package/dist/generated/terminal/terminal.d.ts +28 -27
- package/dist/generated/terminal/terminal.d.ts.map +1 -1
- package/dist/generated/terminal/terminal.js +33 -1
- package/dist/generated/terminal/terminal.js.map +1 -1
- package/dist/generated/testing/testing.d.ts +6 -5
- package/dist/generated/testing/testing.d.ts.map +1 -1
- package/dist/generated/testing/testing.js +3 -0
- package/dist/generated/testing/testing.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval
|
|
2
|
+
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Kling API
|
|
5
5
|
* Payments and subscriptions platform for Iceland.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { GetV1DeviceTokenParams, PostV1DeviceAuthorize200One, PostV1DeviceAuthorize200Three, PostV1DeviceAuthorize200Two, PostV1DeviceAuthorizeBodyOne, PostV1DeviceAuthorizeBodyThree, PostV1DeviceAuthorizeBodyTwo } from '../klingAPI.schemas';
|
|
9
|
-
|
|
10
|
-
* Initiates a device auth flow for CLI or AI agent. Returns a user code to display and a device code for polling.
|
|
11
|
-
* @summary Start device authorization flow
|
|
12
|
-
*/
|
|
9
|
+
import { customFetch } from '../../mutator';
|
|
13
10
|
export type postV1DeviceAuthorizeResponse200ApplicationJson = {
|
|
14
11
|
data: PostV1DeviceAuthorize200One;
|
|
15
12
|
status: 200;
|
|
@@ -27,11 +24,11 @@ export type postV1DeviceAuthorizeResponseSuccess = (postV1DeviceAuthorizeRespons
|
|
|
27
24
|
};
|
|
28
25
|
export type postV1DeviceAuthorizeResponse = (postV1DeviceAuthorizeResponseSuccess);
|
|
29
26
|
export declare const getPostV1DeviceAuthorizeUrl: () => string;
|
|
30
|
-
export declare const postV1DeviceAuthorize: (postV1DeviceAuthorizeBody: PostV1DeviceAuthorizeBodyOne | PostV1DeviceAuthorizeBodyTwo | PostV1DeviceAuthorizeBodyThree, options?: RequestInit) => Promise<postV1DeviceAuthorizeResponse>;
|
|
31
27
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @summary
|
|
28
|
+
* Initiates a device auth flow for CLI or AI agent. Returns a user code to display and a device code for polling.
|
|
29
|
+
* @summary Start device authorization flow
|
|
34
30
|
*/
|
|
31
|
+
export declare const postV1DeviceAuthorize: (postV1DeviceAuthorizeBody: PostV1DeviceAuthorizeBodyOne | PostV1DeviceAuthorizeBodyTwo | PostV1DeviceAuthorizeBodyThree, options?: Parameters<typeof customFetch>[1]) => Promise<postV1DeviceAuthorizeResponse>;
|
|
35
32
|
export type getV1DeviceTokenResponse200 = {
|
|
36
33
|
data: void;
|
|
37
34
|
status: 200;
|
|
@@ -41,5 +38,9 @@ export type getV1DeviceTokenResponseSuccess = (getV1DeviceTokenResponse200) & {
|
|
|
41
38
|
};
|
|
42
39
|
export type getV1DeviceTokenResponse = (getV1DeviceTokenResponseSuccess);
|
|
43
40
|
export declare const getGetV1DeviceTokenUrl: (params: GetV1DeviceTokenParams) => string;
|
|
44
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Poll this endpoint to check if the user has authorized the device. Returns the API key once authorized.
|
|
43
|
+
* @summary Poll for device authorization result
|
|
44
|
+
*/
|
|
45
|
+
export declare const getV1DeviceToken: (params: GetV1DeviceTokenParams, options?: Parameters<typeof customFetch>[1]) => Promise<getV1DeviceTokenResponse>;
|
|
45
46
|
//# sourceMappingURL=device-auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-auth.d.ts","sourceRoot":"","sources":["../../../src/generated/device-auth/device-auth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAC7B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"device-auth.d.ts","sourceRoot":"","sources":["../../../src/generated/device-auth/device-auth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAC7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,MAAM,+CAA+C,GAAG;IAC5D,IAAI,EAAE,2BAA2B,CAAA;IACjC,MAAM,EAAE,GAAG,CAAA;C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host:3001/v1/device/authorize`;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Initiates a device auth flow for CLI or AI agent. Returns a user code to display and a device code for polling.
|
|
8
|
+
* @summary Start device authorization flow
|
|
9
|
+
*/
|
|
6
10
|
export const postV1DeviceAuthorize = async (postV1DeviceAuthorizeBody, options) => {
|
|
7
11
|
return customFetch(getPostV1DeviceAuthorizeUrl(), {
|
|
8
12
|
...options,
|
|
@@ -15,12 +19,16 @@ export const getGetV1DeviceTokenUrl = (params) => {
|
|
|
15
19
|
const normalizedParams = new URLSearchParams();
|
|
16
20
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
17
21
|
if (value !== undefined) {
|
|
18
|
-
normalizedParams.append(key, value === null ? 'null' : value
|
|
22
|
+
normalizedParams.append(key, value === null ? 'null' : String(value));
|
|
19
23
|
}
|
|
20
24
|
});
|
|
21
25
|
const stringifiedParams = normalizedParams.toString();
|
|
22
26
|
return stringifiedParams.length > 0 ? `http://localhost:3001/v1/device/token?${stringifiedParams}` : `http://localhost:3001/v1/device/token`;
|
|
23
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* Poll this endpoint to check if the user has authorized the device. Returns the API key once authorized.
|
|
30
|
+
* @summary Poll for device authorization result
|
|
31
|
+
*/
|
|
24
32
|
export const getV1DeviceToken = async (params, options) => {
|
|
25
33
|
return customFetch(getGetV1DeviceTokenUrl(params), {
|
|
26
34
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-auth.js","sourceRoot":"","sources":["../../../src/generated/device-auth/device-auth.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"device-auth.js","sourceRoot":"","sources":["../../../src/generated/device-auth/device-auth.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAoB5C,CAAC;AAID,MAAM,CAAC,MAAM,2BAA2B,GA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A"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval
|
|
2
|
+
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Kling API
|
|
5
5
|
* Payments and subscriptions platform for Iceland.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { GetV1EventsParams } from '../klingAPI.schemas';
|
|
9
|
-
|
|
10
|
-
* List events from the event ledger. Use the 'after' parameter to poll for new events since a given timestamp.
|
|
11
|
-
* @summary List recent events
|
|
12
|
-
*/
|
|
9
|
+
import { customFetch } from '../../mutator';
|
|
13
10
|
export type getV1EventsResponse200 = {
|
|
14
11
|
data: void;
|
|
15
12
|
status: 200;
|
|
@@ -19,5 +16,9 @@ export type getV1EventsResponseSuccess = (getV1EventsResponse200) & {
|
|
|
19
16
|
};
|
|
20
17
|
export type getV1EventsResponse = (getV1EventsResponseSuccess);
|
|
21
18
|
export declare const getGetV1EventsUrl: (params: GetV1EventsParams) => string;
|
|
22
|
-
|
|
19
|
+
/**
|
|
20
|
+
* List events from the event ledger. Use the 'after' parameter to poll for new events since a given timestamp.
|
|
21
|
+
* @summary List recent events
|
|
22
|
+
*/
|
|
23
|
+
export declare const getV1Events: (params: GetV1EventsParams, options?: Parameters<typeof customFetch>[1]) => Promise<getV1EventsResponse>;
|
|
23
24
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/generated/events/events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/generated/events/events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,CAAC,sBAAsB,CAAC,GAAG;IAClE,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG,CAAC,0BAA0B,CAAC,CAAA;AAE9D,eAAO,MAAM,iBAAiB,GAAI,QAAQ,iBAAiB,WAa1D,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAU,QAAQ,iBAAiB,EAAE,UAAU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,mBAAmB,CASnI,CAAA"}
|
|
@@ -4,12 +4,16 @@ export const getGetV1EventsUrl = (params) => {
|
|
|
4
4
|
const normalizedParams = new URLSearchParams();
|
|
5
5
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
6
6
|
if (value !== undefined) {
|
|
7
|
-
normalizedParams.append(key, value === null ? 'null' : value
|
|
7
|
+
normalizedParams.append(key, value === null ? 'null' : String(value));
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
10
|
const stringifiedParams = normalizedParams.toString();
|
|
11
11
|
return stringifiedParams.length > 0 ? `http://localhost:3001/v1/events?${stringifiedParams}` : `http://localhost:3001/v1/events`;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* List events from the event ledger. Use the 'after' parameter to poll for new events since a given timestamp.
|
|
15
|
+
* @summary List recent events
|
|
16
|
+
*/
|
|
13
17
|
export const getV1Events = async (params, options) => {
|
|
14
18
|
return customFetch(getGetV1EventsUrl(params), {
|
|
15
19
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/generated/events/events.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/generated/events/events.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAU5C,CAAC;AAID,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAAyB,EAAG,EAAE;IAC9D,MAAM,gBAAgB,GAAG,IAAI,eAAe,EAAE,CAAC;IAE/C,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAEpD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,gBAAgB,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;QACvE,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,QAAQ,EAAE,CAAC;IAEtD,OAAO,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,mCAAmC,iBAAiB,EAAE,CAAC,CAAC,CAAC,iCAAiC,CAAA;AAClI,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,MAAyB,EAAE,OAA2C,EAAgC,EAAE;IAExI,OAAO,WAAW,CAAsB,iBAAiB,CAAC,MAAM,CAAC,EACjE;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval
|
|
2
|
+
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Kling API
|
|
5
5
|
* Payments and subscriptions platform for Iceland.
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { GetHealth200One, GetHealth200Three, GetHealth200Two, GetReady200One, GetReady200Three, GetReady200Two, GetReady503One, GetReady503Three, GetReady503Two } from '../klingAPI.schemas';
|
|
9
|
-
|
|
10
|
-
* @summary Liveness check
|
|
11
|
-
*/
|
|
9
|
+
import { customFetch } from '../../mutator';
|
|
12
10
|
export type getHealthResponse200ApplicationJson = {
|
|
13
11
|
data: GetHealth200One;
|
|
14
12
|
status: 200;
|
|
@@ -26,10 +24,10 @@ export type getHealthResponseSuccess = (getHealthResponse200ApplicationJson | ge
|
|
|
26
24
|
};
|
|
27
25
|
export type getHealthResponse = (getHealthResponseSuccess);
|
|
28
26
|
export declare const getGetHealthUrl: () => string;
|
|
29
|
-
export declare const getHealth: (options?: RequestInit) => Promise<getHealthResponse>;
|
|
30
27
|
/**
|
|
31
|
-
* @summary
|
|
28
|
+
* @summary Liveness check
|
|
32
29
|
*/
|
|
30
|
+
export declare const getHealth: (options?: Parameters<typeof customFetch>[1]) => Promise<getHealthResponse>;
|
|
33
31
|
export type getReadyResponse200ApplicationJson = {
|
|
34
32
|
data: GetReady200One;
|
|
35
33
|
status: 200;
|
|
@@ -62,10 +60,10 @@ export type getReadyResponseError = (getReadyResponse503ApplicationJson | getRea
|
|
|
62
60
|
};
|
|
63
61
|
export type getReadyResponse = (getReadyResponseSuccess | getReadyResponseError);
|
|
64
62
|
export declare const getGetReadyUrl: () => string;
|
|
65
|
-
export declare const getReady: (options?: RequestInit) => Promise<getReadyResponse>;
|
|
66
63
|
/**
|
|
67
|
-
* @summary
|
|
64
|
+
* @summary Readiness check (includes DB probe)
|
|
68
65
|
*/
|
|
66
|
+
export declare const getReady: (options?: Parameters<typeof customFetch>[1]) => Promise<getReadyResponse>;
|
|
69
67
|
export type getMetricsResponse200 = {
|
|
70
68
|
data: void;
|
|
71
69
|
status: 200;
|
|
@@ -75,5 +73,8 @@ export type getMetricsResponseSuccess = (getMetricsResponse200) & {
|
|
|
75
73
|
};
|
|
76
74
|
export type getMetricsResponse = (getMetricsResponseSuccess);
|
|
77
75
|
export declare const getGetMetricsUrl: () => string;
|
|
78
|
-
|
|
76
|
+
/**
|
|
77
|
+
* @summary Prometheus metrics
|
|
78
|
+
*/
|
|
79
|
+
export declare const getMetrics: (options?: Parameters<typeof customFetch>[1]) => Promise<getMetricsResponse>;
|
|
79
80
|
//# sourceMappingURL=health.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../../src/generated/health/health.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,cAAc,EACf,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../../src/generated/health/health.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,eAAe,CAAA;IACrB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,EAAE,eAAe,CAAA;IACrB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,iBAAiB,CAAA;IACvB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,mCAAmC,GAAG,qCAAqC,GAAG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GAAG,qBAAqB,CAAC,CAAA;AAEhF,eAAO,MAAM,cAAc,cAM1B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAW,UAAU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,gBAAgB,CASnG,CAAA;AAGH,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,CAAC,qBAAqB,CAAC,GAAG;IAChE,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,kBAAkB,GAAG,CAAC,yBAAyB,CAAC,CAAA;AAE5D,eAAO,MAAM,gBAAgB,cAM5B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,GAAW,UAAU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,kBAAkB,CASvG,CAAA"}
|
|
@@ -3,6 +3,9 @@ import { customFetch } from '../../mutator';
|
|
|
3
3
|
export const getGetHealthUrl = () => {
|
|
4
4
|
return `http://localhost:3001/health`;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* @summary Liveness check
|
|
8
|
+
*/
|
|
6
9
|
export const getHealth = async (options) => {
|
|
7
10
|
return customFetch(getGetHealthUrl(), {
|
|
8
11
|
...options,
|
|
@@ -12,6 +15,9 @@ export const getHealth = async (options) => {
|
|
|
12
15
|
export const getGetReadyUrl = () => {
|
|
13
16
|
return `http://localhost:3001/ready`;
|
|
14
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* @summary Readiness check (includes DB probe)
|
|
20
|
+
*/
|
|
15
21
|
export const getReady = async (options) => {
|
|
16
22
|
return customFetch(getGetReadyUrl(), {
|
|
17
23
|
...options,
|
|
@@ -22,6 +28,9 @@ export const getReady = async (options) => {
|
|
|
22
28
|
export const getGetMetricsUrl = () => {
|
|
23
29
|
return `http://localhost:3001/metrics`;
|
|
24
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* @summary Prometheus metrics
|
|
33
|
+
*/
|
|
25
34
|
export const getMetrics = async (options) => {
|
|
26
35
|
return customFetch(getGetMetricsUrl(), {
|
|
27
36
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.js","sourceRoot":"","sources":["../../../src/generated/health/health.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"health.js","sourceRoot":"","sources":["../../../src/generated/health/health.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAoB5C,CAAC;AAID,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAKlC,OAAO,8BAA8B,CAAA;AACvC,CAAC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAG,OAA2C,EAA8B,EAAE;IAE1G,OAAO,WAAW,CAAoB,eAAe,EAAE,EACvD;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA;AA0CH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAKjC,OAAO,6BAA6B,CAAA;AACtC,CAAC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAAG,OAA2C,EAA6B,EAAE;IAExG,OAAO,WAAW,CAAmB,cAAc,EAAE,EACrD;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA;AAWH,CAAC;AAID,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAKnC,OAAO,+BAA+B,CAAA;AACxC,CAAC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAG,OAA2C,EAA+B,EAAE;IAE5G,OAAO,WAAW,CAAqB,gBAAgB,EAAE,EACzD;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
1
|
+
export * from './billing-portal/billing-portal';
|
|
2
|
+
export * from './checkout-sessions/checkout-sessions';
|
|
3
|
+
export * from './claims/claims';
|
|
4
|
+
export * from './coupons/coupons';
|
|
5
|
+
export * from './customers/customers';
|
|
6
|
+
export * from './default/default';
|
|
7
|
+
export * from './delivery/delivery';
|
|
8
|
+
export * from './device-auth/device-auth';
|
|
9
|
+
export * from './events/events';
|
|
10
|
+
export * from './health/health';
|
|
11
|
+
export * from './merchant/merchant';
|
|
12
|
+
export * from './meta/meta';
|
|
13
|
+
export * from './notification-channels/notification-channels';
|
|
14
|
+
export * from './open-payment-pages/open-payment-pages';
|
|
15
|
+
export * from './payment-intents/payment-intents';
|
|
16
|
+
export * from './payment-links/payment-links';
|
|
17
|
+
export * from './payment-methods/payment-methods';
|
|
18
|
+
export * from './pos/pos';
|
|
19
|
+
export * from './pos-devices/pos-devices';
|
|
20
|
+
export * from './products/products';
|
|
21
|
+
export * from './promotion-codes/promotion-codes';
|
|
22
|
+
export * from './reports/reports';
|
|
23
|
+
export * from './subscriptions/subscriptions';
|
|
24
|
+
export * from './terminal/terminal';
|
|
25
|
+
export * from './testing/testing';
|
|
24
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
package/dist/generated/index.js
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from "./testing/testing.js";
|
|
1
|
+
export * from './billing-portal/billing-portal';
|
|
2
|
+
export * from './checkout-sessions/checkout-sessions';
|
|
3
|
+
export * from './claims/claims';
|
|
4
|
+
export * from './coupons/coupons';
|
|
5
|
+
export * from './customers/customers';
|
|
6
|
+
export * from './default/default';
|
|
7
|
+
export * from './delivery/delivery';
|
|
8
|
+
export * from './device-auth/device-auth';
|
|
9
|
+
export * from './events/events';
|
|
10
|
+
export * from './health/health';
|
|
11
|
+
export * from './merchant/merchant';
|
|
12
|
+
export * from './meta/meta';
|
|
13
|
+
export * from './notification-channels/notification-channels';
|
|
14
|
+
export * from './open-payment-pages/open-payment-pages';
|
|
15
|
+
export * from './payment-intents/payment-intents';
|
|
16
|
+
export * from './payment-links/payment-links';
|
|
17
|
+
export * from './payment-methods/payment-methods';
|
|
18
|
+
export * from './pos/pos';
|
|
19
|
+
export * from './pos-devices/pos-devices';
|
|
20
|
+
export * from './products/products';
|
|
21
|
+
export * from './promotion-codes/promotion-codes';
|
|
22
|
+
export * from './reports/reports';
|
|
23
|
+
export * from './subscriptions/subscriptions';
|
|
24
|
+
export * from './terminal/terminal';
|
|
25
|
+
export * from './testing/testing';
|
|
27
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|