@openmeter/sdk 1.0.0-beta.211 → 1.0.0-beta.212
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/cjs/src/client/apps.cjs +74 -1
- package/dist/cjs/src/client/apps.d.cts +43 -2
- package/dist/cjs/src/client/apps.js.map +1 -1
- package/dist/cjs/src/client/billing.cjs +47 -3
- package/dist/cjs/src/client/billing.d.cts +54 -3
- package/dist/cjs/src/client/billing.js.map +1 -1
- package/dist/cjs/src/client/customers.d.cts +5 -0
- package/dist/cjs/src/client/debug.cjs +27 -0
- package/dist/cjs/src/client/debug.d.cts +17 -0
- package/dist/cjs/src/client/debug.js.map +1 -0
- package/dist/cjs/src/client/entitlements.cjs +38 -1
- package/dist/cjs/src/client/entitlements.d.cts +85 -1
- package/dist/cjs/src/client/entitlements.js.map +1 -1
- package/dist/cjs/src/client/index.cjs +6 -0
- package/dist/cjs/src/client/index.d.cts +4 -0
- package/dist/cjs/src/client/index.js.map +1 -1
- package/dist/cjs/src/client/info.cjs +42 -0
- package/dist/cjs/src/client/info.d.cts +34 -0
- package/dist/cjs/src/client/info.js.map +1 -0
- package/dist/cjs/src/client/schemas.d.cts +649 -35
- package/dist/cjs/tsconfig.065c79dd.tsbuildinfo +1 -0
- package/dist/cjs/tsconfig.9b7a0781.tsbuildinfo +1 -0
- package/dist/src/client/apps.d.ts +43 -2
- package/dist/src/client/apps.js +72 -0
- package/dist/src/client/apps.js.map +1 -1
- package/dist/src/client/billing.d.ts +54 -3
- package/dist/src/client/billing.js +47 -3
- package/dist/src/client/billing.js.map +1 -1
- package/dist/src/client/customers.d.ts +5 -0
- package/dist/src/client/debug.d.ts +17 -0
- package/dist/src/client/debug.js +23 -0
- package/dist/src/client/debug.js.map +1 -0
- package/dist/src/client/entitlements.d.ts +85 -1
- package/dist/src/client/entitlements.js +38 -1
- package/dist/src/client/entitlements.js.map +1 -1
- package/dist/src/client/index.d.ts +4 -0
- package/dist/src/client/index.js +6 -0
- package/dist/src/client/index.js.map +1 -1
- package/dist/src/client/info.d.ts +34 -0
- package/dist/src/client/info.js +38 -0
- package/dist/src/client/info.js.map +1 -0
- package/dist/src/client/schemas.d.ts +649 -35
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/dist/cjs/tsconfig.341d9ef4.tsbuildinfo +0 -1
- package/dist/cjs/tsconfig.523d9ac8.tsbuildinfo +0 -1
|
@@ -2,9 +2,11 @@ import { type Client, type ClientOptions } from 'openapi-fetch';
|
|
|
2
2
|
import { Apps } from './apps.cjs';
|
|
3
3
|
import { Billing } from './billing.cjs';
|
|
4
4
|
import { Customers } from './customers.cjs';
|
|
5
|
+
import { Debug } from './debug.cjs';
|
|
5
6
|
import { Entitlements } from './entitlements.cjs';
|
|
6
7
|
import { Events } from './events.cjs';
|
|
7
8
|
import { Features } from './features.cjs';
|
|
9
|
+
import { Info } from './info.cjs';
|
|
8
10
|
import { Meters } from './meters.cjs';
|
|
9
11
|
import { Notifications } from './notifications.cjs';
|
|
10
12
|
import { Plans } from './plans.cjs';
|
|
@@ -32,9 +34,11 @@ export declare class OpenMeter {
|
|
|
32
34
|
apps: Apps;
|
|
33
35
|
billing: Billing;
|
|
34
36
|
customers: Customers;
|
|
37
|
+
debug: Debug;
|
|
35
38
|
entitlements: Entitlements;
|
|
36
39
|
events: Events;
|
|
37
40
|
features: Features;
|
|
41
|
+
info: Info;
|
|
38
42
|
meters: Meters;
|
|
39
43
|
notifications: Notifications;
|
|
40
44
|
plans: Plans;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAIsB;AACtB,uCAAgC;AAChC,6CAAsC;AACtC,iDAA0C;AAC1C,uDAAgD;AAChD,2CAAoC;AACpC,+CAAwC;AACxC,2CAAoC;AACpC,yDAAkD;AACl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,GAAG,IAAI,gCAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACrD,CAAC;CACF;AArDD,8BAqDC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Info = void 0;
|
|
4
|
+
const utils_js_1 = require("./utils.cjs");
|
|
5
|
+
/**
|
|
6
|
+
* Info utilities for OpenMeter
|
|
7
|
+
*/
|
|
8
|
+
class Info {
|
|
9
|
+
client;
|
|
10
|
+
constructor(client) {
|
|
11
|
+
this.client = client;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* List supported currencies
|
|
15
|
+
* @description List all supported currencies.
|
|
16
|
+
* @param options - The request options
|
|
17
|
+
* @returns The supported currencies
|
|
18
|
+
*/
|
|
19
|
+
async listCurrencies(options) {
|
|
20
|
+
const resp = await this.client.GET('/api/v1/info/currencies', {
|
|
21
|
+
...options,
|
|
22
|
+
});
|
|
23
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get progress
|
|
27
|
+
* @param id - The ID of the progress to get
|
|
28
|
+
* @param options - The request options
|
|
29
|
+
* @returns The progress
|
|
30
|
+
*/
|
|
31
|
+
async getProgress(id, options) {
|
|
32
|
+
const resp = await this.client.GET('/api/v1/info/progress/{id}', {
|
|
33
|
+
params: {
|
|
34
|
+
path: { id },
|
|
35
|
+
},
|
|
36
|
+
...options,
|
|
37
|
+
});
|
|
38
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.Info = Info;
|
|
42
|
+
//# sourceMappingURL=info.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { RequestOptions } from './common.cjs';
|
|
2
|
+
import type { operations, paths } from './schemas.cjs';
|
|
3
|
+
import type { Client } from 'openapi-fetch';
|
|
4
|
+
/**
|
|
5
|
+
* Info utilities for OpenMeter
|
|
6
|
+
*/
|
|
7
|
+
export declare class Info {
|
|
8
|
+
private client;
|
|
9
|
+
constructor(client: Client<paths, `${string}/${string}`>);
|
|
10
|
+
/**
|
|
11
|
+
* List supported currencies
|
|
12
|
+
* @description List all supported currencies.
|
|
13
|
+
* @param options - The request options
|
|
14
|
+
* @returns The supported currencies
|
|
15
|
+
*/
|
|
16
|
+
listCurrencies(options?: RequestOptions): Promise<{
|
|
17
|
+
code: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
18
|
+
name: string;
|
|
19
|
+
symbol: string;
|
|
20
|
+
subunits: number;
|
|
21
|
+
}[]>;
|
|
22
|
+
/**
|
|
23
|
+
* Get progress
|
|
24
|
+
* @param id - The ID of the progress to get
|
|
25
|
+
* @param options - The request options
|
|
26
|
+
* @returns The progress
|
|
27
|
+
*/
|
|
28
|
+
getProgress(id: operations['getProgress']['parameters']['path']['id'], options?: RequestOptions): Promise<{
|
|
29
|
+
success: number;
|
|
30
|
+
failed: number;
|
|
31
|
+
total: number;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
}>;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../../src/client/info.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAK9C;;GAEG;AACH,MAAa,IAAI;IACK;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,cAAc,CAAC,OAAwB;QAClD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,yBAAyB,EAAE;YAC5D,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,WAAW,CACtB,EAAyD,EACzD,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,4BAA4B,EAAE;YAC/D,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,EAAE,EAAE;aACb;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AApCD,oBAoCC"}
|