@openmeter/sdk 1.0.0-beta.210 → 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 +44 -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 +8 -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 +991 -207
- package/dist/cjs/tsconfig.065c79dd.tsbuildinfo +1 -0
- package/dist/cjs/tsconfig.9b7a0781.tsbuildinfo +1 -0
- package/dist/src/client/apps.d.ts +44 -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 +8 -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 +991 -207
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/dist/cjs/tsconfig.1232d5e5.tsbuildinfo +0 -1
- package/dist/cjs/tsconfig.90ca0b5f.tsbuildinfo +0 -1
|
@@ -41,9 +41,11 @@ const openapi_fetch_1 = __importStar(require("openapi-fetch"));
|
|
|
41
41
|
const apps_js_1 = require("./apps.cjs");
|
|
42
42
|
const billing_js_1 = require("./billing.cjs");
|
|
43
43
|
const customers_js_1 = require("./customers.cjs");
|
|
44
|
+
const debug_js_1 = require("./debug.cjs");
|
|
44
45
|
const entitlements_js_1 = require("./entitlements.cjs");
|
|
45
46
|
const events_js_1 = require("./events.cjs");
|
|
46
47
|
const features_js_1 = require("./features.cjs");
|
|
48
|
+
const info_js_1 = require("./info.cjs");
|
|
47
49
|
const meters_js_1 = require("./meters.cjs");
|
|
48
50
|
const notifications_js_1 = require("./notifications.cjs");
|
|
49
51
|
const plans_js_1 = require("./plans.cjs");
|
|
@@ -62,9 +64,11 @@ class OpenMeter {
|
|
|
62
64
|
apps;
|
|
63
65
|
billing;
|
|
64
66
|
customers;
|
|
67
|
+
debug;
|
|
65
68
|
entitlements;
|
|
66
69
|
events;
|
|
67
70
|
features;
|
|
71
|
+
info;
|
|
68
72
|
meters;
|
|
69
73
|
notifications;
|
|
70
74
|
plans;
|
|
@@ -93,9 +97,11 @@ class OpenMeter {
|
|
|
93
97
|
this.apps = new apps_js_1.Apps(this.client);
|
|
94
98
|
this.billing = new billing_js_1.Billing(this.client);
|
|
95
99
|
this.customers = new customers_js_1.Customers(this.client);
|
|
100
|
+
this.debug = new debug_js_1.Debug(this.client);
|
|
96
101
|
this.entitlements = new entitlements_js_1.Entitlements(this.client);
|
|
97
102
|
this.events = new events_js_1.Events(this.client);
|
|
98
103
|
this.features = new features_js_1.Features(this.client);
|
|
104
|
+
this.info = new info_js_1.Info(this.client);
|
|
99
105
|
this.meters = new meters_js_1.Meters(this.client);
|
|
100
106
|
this.notifications = new notifications_js_1.Notifications(this.client);
|
|
101
107
|
this.plans = new plans_js_1.Plans(this.client);
|
|
@@ -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;AAClD,yCAAkC;AAClC,2CAAoC;AACpC,+CAAwC;AACxC,yDAAkD;AAClD,yCAAwC;AAGxC,+CAA4B;AAC5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
|
|
@@ -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"}
|