@openmeter/sdk 1.0.0-beta.213 → 1.0.0-beta.214
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/addons.cjs +105 -0
- package/dist/cjs/src/client/addons.d.cts +152 -0
- package/dist/cjs/src/client/addons.js.map +1 -0
- package/dist/cjs/src/client/billing.cjs +11 -3
- package/dist/cjs/src/client/billing.d.cts +32 -59
- package/dist/cjs/src/client/billing.js.map +1 -1
- package/dist/cjs/src/client/customers.cjs +17 -0
- package/dist/cjs/src/client/customers.d.cts +11 -0
- package/dist/cjs/src/client/customers.js.map +1 -1
- package/dist/cjs/src/client/events.cjs +19 -7
- package/dist/cjs/src/client/events.d.cts +15 -4
- package/dist/cjs/src/client/events.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/notifications.d.cts +214 -36
- package/dist/cjs/src/client/plans.cjs +127 -50
- package/dist/cjs/src/client/plans.d.cts +129 -24
- package/dist/cjs/src/client/plans.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +1950 -1351
- package/dist/cjs/src/client/subscription-addons.cjs +70 -0
- package/dist/cjs/src/client/subscription-addons.d.cts +123 -0
- package/dist/cjs/src/client/subscription-addons.js.map +1 -0
- package/dist/cjs/src/client/subscriptions.cjs +16 -0
- package/dist/cjs/src/client/subscriptions.d.cts +23 -0
- package/dist/cjs/src/client/subscriptions.js.map +1 -1
- package/dist/cjs/src/portal/index.cjs +35 -6
- package/dist/cjs/src/portal/index.js.map +1 -1
- package/dist/cjs/src/zod/index.cjs +1680 -1874
- package/dist/cjs/src/zod/index.d.cts +2173 -3772
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/tsconfig.4615b2f8.tsbuildinfo +1 -0
- package/dist/cjs/tsconfig.9c445eac.tsbuildinfo +1 -0
- package/dist/src/client/addons.d.ts +152 -0
- package/dist/src/client/addons.js +101 -0
- package/dist/src/client/addons.js.map +1 -0
- package/dist/src/client/billing.d.ts +32 -59
- package/dist/src/client/billing.js +11 -3
- package/dist/src/client/billing.js.map +1 -1
- package/dist/src/client/customers.d.ts +11 -0
- package/dist/src/client/customers.js +17 -0
- package/dist/src/client/customers.js.map +1 -1
- package/dist/src/client/events.d.ts +15 -4
- package/dist/src/client/events.js +19 -7
- package/dist/src/client/events.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/notifications.d.ts +214 -36
- package/dist/src/client/plans.d.ts +129 -24
- package/dist/src/client/plans.js +124 -48
- package/dist/src/client/plans.js.map +1 -1
- package/dist/src/client/schemas.d.ts +1950 -1351
- package/dist/src/client/subscription-addons.d.ts +123 -0
- package/dist/src/client/subscription-addons.js +66 -0
- package/dist/src/client/subscription-addons.js.map +1 -0
- package/dist/src/client/subscriptions.d.ts +23 -0
- package/dist/src/client/subscriptions.js +16 -0
- package/dist/src/client/subscriptions.js.map +1 -1
- package/dist/src/portal/index.js +1 -2
- package/dist/src/portal/index.js.map +1 -1
- package/dist/src/zod/index.d.ts +2173 -3772
- package/dist/src/zod/index.js +1659 -1853
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -17
- package/dist/cjs/tsconfig.2452f99b.tsbuildinfo +0 -1
- package/dist/cjs/tsconfig.4cad059c.tsbuildinfo +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionAddons = void 0;
|
|
4
|
+
const utils_js_1 = require("./utils.cjs");
|
|
5
|
+
class SubscriptionAddons {
|
|
6
|
+
client;
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Create a new subscription addon
|
|
12
|
+
* @param subscriptionId - The ID of the subscription
|
|
13
|
+
* @param addon - The subscription addon to create
|
|
14
|
+
* @param options - Optional request options
|
|
15
|
+
* @returns The created subscription addon
|
|
16
|
+
*/
|
|
17
|
+
async create(subscriptionId, addon, options) {
|
|
18
|
+
const resp = await this.client.POST('/api/v1/subscriptions/{subscriptionId}/addons', {
|
|
19
|
+
body: addon,
|
|
20
|
+
params: { path: { subscriptionId } },
|
|
21
|
+
...options,
|
|
22
|
+
});
|
|
23
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* List all addons of a subscription
|
|
27
|
+
* @param subscriptionId - The ID of the subscription
|
|
28
|
+
* @param options - Optional request options
|
|
29
|
+
* @returns A list of subscription addons
|
|
30
|
+
*/
|
|
31
|
+
async list(subscriptionId, options) {
|
|
32
|
+
const resp = await this.client.GET('/api/v1/subscriptions/{subscriptionId}/addons', {
|
|
33
|
+
params: { path: { subscriptionId } },
|
|
34
|
+
...options,
|
|
35
|
+
});
|
|
36
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get a subscription addon by id
|
|
40
|
+
* @param subscriptionId - The ID of the subscription
|
|
41
|
+
* @param subscriptionAddonId - The ID of the subscription addon
|
|
42
|
+
* @param options - Optional request options
|
|
43
|
+
* @returns The subscription addon
|
|
44
|
+
*/
|
|
45
|
+
async get(subscriptionId, subscriptionAddonId, options) {
|
|
46
|
+
const resp = await this.client.GET('/api/v1/subscriptions/{subscriptionId}/addons/{subscriptionAddonId}', {
|
|
47
|
+
params: { path: { subscriptionAddonId, subscriptionId } },
|
|
48
|
+
...options,
|
|
49
|
+
});
|
|
50
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Updates a subscription addon
|
|
54
|
+
* @param subscriptionId - The ID of the subscription
|
|
55
|
+
* @param subscriptionAddonId - The ID of the subscription addon to update
|
|
56
|
+
* @param addon - The subscription addon data to update
|
|
57
|
+
* @param options - Optional request options
|
|
58
|
+
* @returns The updated subscription addon
|
|
59
|
+
*/
|
|
60
|
+
async update(subscriptionId, subscriptionAddonId, addon, options) {
|
|
61
|
+
const resp = await this.client.PATCH('/api/v1/subscriptions/{subscriptionId}/addons/{subscriptionAddonId}', {
|
|
62
|
+
body: addon,
|
|
63
|
+
params: { path: { subscriptionAddonId, subscriptionId } },
|
|
64
|
+
...options,
|
|
65
|
+
});
|
|
66
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.SubscriptionAddons = SubscriptionAddons;
|
|
70
|
+
//# sourceMappingURL=subscription-addons.js.map
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import type { RequestOptions } from './common.cjs';
|
|
2
|
+
import type { operations, paths } from './schemas.cjs';
|
|
3
|
+
import type { Client } from 'openapi-fetch';
|
|
4
|
+
export declare class SubscriptionAddons {
|
|
5
|
+
private client;
|
|
6
|
+
constructor(client: Client<paths, `${string}/${string}`>);
|
|
7
|
+
/**
|
|
8
|
+
* Create a new subscription addon
|
|
9
|
+
* @param subscriptionId - The ID of the subscription
|
|
10
|
+
* @param addon - The subscription addon to create
|
|
11
|
+
* @param options - Optional request options
|
|
12
|
+
* @returns The created subscription addon
|
|
13
|
+
*/
|
|
14
|
+
create(subscriptionId: string, addon: operations['createSubscriptionAddon']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<{
|
|
15
|
+
readonly id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
|
|
19
|
+
readonly createdAt: Date;
|
|
20
|
+
readonly updatedAt: Date;
|
|
21
|
+
readonly deletedAt?: Date;
|
|
22
|
+
readonly activeFrom: Date;
|
|
23
|
+
readonly activeTo?: Date;
|
|
24
|
+
addon: {
|
|
25
|
+
id: string;
|
|
26
|
+
readonly key: string;
|
|
27
|
+
readonly version: number;
|
|
28
|
+
readonly instanceType: import("./schemas.cjs").components["schemas"]["AddonInstanceType"];
|
|
29
|
+
};
|
|
30
|
+
readonly quantityAt: Date;
|
|
31
|
+
quantity: number;
|
|
32
|
+
readonly timeline: import("./schemas.cjs").components["schemas"]["SubscriptionAddonTimelineSegment"][];
|
|
33
|
+
readonly subscriptionId: string;
|
|
34
|
+
readonly rateCards: import("./schemas.cjs").components["schemas"]["SubscriptionAddonRateCard"][];
|
|
35
|
+
}>;
|
|
36
|
+
/**
|
|
37
|
+
* List all addons of a subscription
|
|
38
|
+
* @param subscriptionId - The ID of the subscription
|
|
39
|
+
* @param options - Optional request options
|
|
40
|
+
* @returns A list of subscription addons
|
|
41
|
+
*/
|
|
42
|
+
list(subscriptionId: string, options?: RequestOptions): Promise<{
|
|
43
|
+
readonly id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
|
|
47
|
+
readonly createdAt: Date;
|
|
48
|
+
readonly updatedAt: Date;
|
|
49
|
+
readonly deletedAt?: Date;
|
|
50
|
+
readonly activeFrom: Date;
|
|
51
|
+
readonly activeTo?: Date;
|
|
52
|
+
addon: {
|
|
53
|
+
id: string;
|
|
54
|
+
readonly key: string;
|
|
55
|
+
readonly version: number;
|
|
56
|
+
readonly instanceType: import("./schemas.cjs").components["schemas"]["AddonInstanceType"];
|
|
57
|
+
};
|
|
58
|
+
readonly quantityAt: Date;
|
|
59
|
+
quantity: number;
|
|
60
|
+
readonly timeline: import("./schemas.cjs").components["schemas"]["SubscriptionAddonTimelineSegment"][];
|
|
61
|
+
readonly subscriptionId: string;
|
|
62
|
+
readonly rateCards: import("./schemas.cjs").components["schemas"]["SubscriptionAddonRateCard"][];
|
|
63
|
+
}[]>;
|
|
64
|
+
/**
|
|
65
|
+
* Get a subscription addon by id
|
|
66
|
+
* @param subscriptionId - The ID of the subscription
|
|
67
|
+
* @param subscriptionAddonId - The ID of the subscription addon
|
|
68
|
+
* @param options - Optional request options
|
|
69
|
+
* @returns The subscription addon
|
|
70
|
+
*/
|
|
71
|
+
get(subscriptionId: string, subscriptionAddonId: string, options?: RequestOptions): Promise<{
|
|
72
|
+
readonly id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
|
|
76
|
+
readonly createdAt: Date;
|
|
77
|
+
readonly updatedAt: Date;
|
|
78
|
+
readonly deletedAt?: Date;
|
|
79
|
+
readonly activeFrom: Date;
|
|
80
|
+
readonly activeTo?: Date;
|
|
81
|
+
addon: {
|
|
82
|
+
id: string;
|
|
83
|
+
readonly key: string;
|
|
84
|
+
readonly version: number;
|
|
85
|
+
readonly instanceType: import("./schemas.cjs").components["schemas"]["AddonInstanceType"];
|
|
86
|
+
};
|
|
87
|
+
readonly quantityAt: Date;
|
|
88
|
+
quantity: number;
|
|
89
|
+
readonly timeline: import("./schemas.cjs").components["schemas"]["SubscriptionAddonTimelineSegment"][];
|
|
90
|
+
readonly subscriptionId: string;
|
|
91
|
+
readonly rateCards: import("./schemas.cjs").components["schemas"]["SubscriptionAddonRateCard"][];
|
|
92
|
+
}>;
|
|
93
|
+
/**
|
|
94
|
+
* Updates a subscription addon
|
|
95
|
+
* @param subscriptionId - The ID of the subscription
|
|
96
|
+
* @param subscriptionAddonId - The ID of the subscription addon to update
|
|
97
|
+
* @param addon - The subscription addon data to update
|
|
98
|
+
* @param options - Optional request options
|
|
99
|
+
* @returns The updated subscription addon
|
|
100
|
+
*/
|
|
101
|
+
update(subscriptionId: string, subscriptionAddonId: string, addon: operations['updateSubscriptionAddon']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<{
|
|
102
|
+
readonly id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
description?: string;
|
|
105
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
|
|
106
|
+
readonly createdAt: Date;
|
|
107
|
+
readonly updatedAt: Date;
|
|
108
|
+
readonly deletedAt?: Date;
|
|
109
|
+
readonly activeFrom: Date;
|
|
110
|
+
readonly activeTo?: Date;
|
|
111
|
+
addon: {
|
|
112
|
+
id: string;
|
|
113
|
+
readonly key: string;
|
|
114
|
+
readonly version: number;
|
|
115
|
+
readonly instanceType: import("./schemas.cjs").components["schemas"]["AddonInstanceType"];
|
|
116
|
+
};
|
|
117
|
+
readonly quantityAt: Date;
|
|
118
|
+
quantity: number;
|
|
119
|
+
readonly timeline: import("./schemas.cjs").components["schemas"]["SubscriptionAddonTimelineSegment"][];
|
|
120
|
+
readonly subscriptionId: string;
|
|
121
|
+
readonly rateCards: import("./schemas.cjs").components["schemas"]["SubscriptionAddonRateCard"][];
|
|
122
|
+
}>;
|
|
123
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-addons.js","sourceRoot":"","sources":["../../../../src/client/subscription-addons.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAK9C,MAAa,kBAAkB;IACT;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CACjB,cAAsB,EACtB,KAA0F,EAC1F,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACjC,+CAA+C,EAC/C;YACE,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,cAAc,EAAE,EAAE;YACpC,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,IAAI,CAAC,cAAsB,EAAE,OAAwB;QAChE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,+CAA+C,EAC/C;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,cAAc,EAAE,EAAE;YACpC,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,cAAsB,EACtB,mBAA2B,EAC3B,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,qEAAqE,EACrE;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,mBAAmB,EAAE,cAAc,EAAE,EAAE;YACzD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,MAAM,CACjB,cAAsB,EACtB,mBAA2B,EAC3B,KAA0F,EAC1F,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAClC,qEAAqE,EACrE;YACE,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,mBAAmB,EAAE,cAAc,EAAE,EAAE;YACzD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AA7FD,gDA6FC"}
|
|
@@ -111,6 +111,22 @@ class Subscriptions {
|
|
|
111
111
|
});
|
|
112
112
|
return (0, utils_js_1.transformResponse)(resp);
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Delete subscription
|
|
116
|
+
* @description Deletes a subscription. Only scheduled subscriptions can be deleted.
|
|
117
|
+
* @param subscriptionId - The ID of the subscription to delete
|
|
118
|
+
* @param options - Optional request options
|
|
119
|
+
* @returns void or standard error response structure
|
|
120
|
+
*/
|
|
121
|
+
async delete(subscriptionId, options) {
|
|
122
|
+
const resp = await this.client.DELETE('/api/v1/subscriptions/{subscriptionId}', {
|
|
123
|
+
params: {
|
|
124
|
+
path: { subscriptionId },
|
|
125
|
+
},
|
|
126
|
+
...options,
|
|
127
|
+
});
|
|
128
|
+
return (0, utils_js_1.transformResponse)(resp);
|
|
129
|
+
}
|
|
114
130
|
}
|
|
115
131
|
exports.Subscriptions = Subscriptions;
|
|
116
132
|
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -28,6 +28,9 @@ export declare class Subscriptions {
|
|
|
28
28
|
customerId: string;
|
|
29
29
|
plan?: import("./schemas.cjs").components["schemas"]["PlanReference"];
|
|
30
30
|
currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
31
|
+
readonly billingCadence: string;
|
|
32
|
+
readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
|
|
33
|
+
readonly billingAnchor: Date;
|
|
31
34
|
}>;
|
|
32
35
|
/**
|
|
33
36
|
* Get a subscription
|
|
@@ -49,6 +52,9 @@ export declare class Subscriptions {
|
|
|
49
52
|
customerId: string;
|
|
50
53
|
plan?: import("./schemas.cjs").components["schemas"]["PlanReference"];
|
|
51
54
|
currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
55
|
+
readonly billingCadence: string;
|
|
56
|
+
readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
|
|
57
|
+
readonly billingAnchor: Date;
|
|
52
58
|
alignment?: import("./schemas.cjs").components["schemas"]["SubscriptionAlignment"];
|
|
53
59
|
phases: import("./schemas.cjs").components["schemas"]["SubscriptionPhaseExpanded"][];
|
|
54
60
|
}>;
|
|
@@ -74,6 +80,9 @@ export declare class Subscriptions {
|
|
|
74
80
|
customerId: string;
|
|
75
81
|
plan?: import("./schemas.cjs").components["schemas"]["PlanReference"];
|
|
76
82
|
currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
83
|
+
readonly billingCadence: string;
|
|
84
|
+
readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
|
|
85
|
+
readonly billingAnchor: Date;
|
|
77
86
|
}>;
|
|
78
87
|
/**
|
|
79
88
|
* Cancel a subscription
|
|
@@ -97,6 +106,9 @@ export declare class Subscriptions {
|
|
|
97
106
|
customerId: string;
|
|
98
107
|
plan?: import("./schemas.cjs").components["schemas"]["PlanReference"];
|
|
99
108
|
currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
109
|
+
readonly billingCadence: string;
|
|
110
|
+
readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
|
|
111
|
+
readonly billingAnchor: Date;
|
|
100
112
|
}>;
|
|
101
113
|
/**
|
|
102
114
|
* Change a subscription
|
|
@@ -143,5 +155,16 @@ export declare class Subscriptions {
|
|
|
143
155
|
customerId: string;
|
|
144
156
|
plan?: import("./schemas.cjs").components["schemas"]["PlanReference"];
|
|
145
157
|
currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
158
|
+
readonly billingCadence: string;
|
|
159
|
+
readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
|
|
160
|
+
readonly billingAnchor: Date;
|
|
146
161
|
}>;
|
|
162
|
+
/**
|
|
163
|
+
* Delete subscription
|
|
164
|
+
* @description Deletes a subscription. Only scheduled subscriptions can be deleted.
|
|
165
|
+
* @param subscriptionId - The ID of the subscription to delete
|
|
166
|
+
* @param options - Optional request options
|
|
167
|
+
* @returns void or standard error response structure
|
|
168
|
+
*/
|
|
169
|
+
delete(subscriptionId: operations['deleteSubscription']['parameters']['path']['subscriptionId'], options?: RequestOptions): Promise<undefined>;
|
|
147
170
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../../src/client/subscriptions.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAW9C;;GAEG;AACH,MAAa,aAAa;IACK;IAA7B,YAA6B,MAA4C;QAA5C,WA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IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,MAAM,CACjB,EAA4E,EAC5E,IAAwB,EACxB,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACjC,+CAA+C,EAC/C;YACE,IAAI;YACJ,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE;YACxC,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,OAAO,CAClB,EAA6E,EAC7E,IAAqF,EACrF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACjC,gDAAgD,EAChD;YACE,IAAI;YACJ,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE;YACxC,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,qBAAqB,CAChC,EAA+E,EAC/E,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACjC,+DAA+D,EAC/D;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE;YACxC,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../../src/client/subscriptions.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAW9C;;GAEG;AACH,MAAa,aAAa;IACK;IAA7B,YAA6B,MAA4C;QAA5C,WAAM,GAAN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c,EAAE;aACzB;YACD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AArLD,sCAqLC"}
|
|
@@ -1,11 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
5
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
36
|
exports.OpenMeter = void 0;
|
|
7
|
-
const openapi_fetch_1 =
|
|
8
|
-
const index_cjs_1 = require("openapi-fetch/dist/cjs/index.cjs");
|
|
37
|
+
const openapi_fetch_1 = __importStar(require("openapi-fetch"));
|
|
9
38
|
const utils_js_1 = require("../client/utils.cjs");
|
|
10
39
|
/**
|
|
11
40
|
* OpenMeter Portal Client
|
|
@@ -20,7 +49,7 @@ class OpenMeter {
|
|
|
20
49
|
...config.headers,
|
|
21
50
|
Authorization: `Bearer ${config.portalToken}`,
|
|
22
51
|
},
|
|
23
|
-
querySerializer: (q) => (0,
|
|
52
|
+
querySerializer: (q) => (0, openapi_fetch_1.createQuerySerializer)({
|
|
24
53
|
array: {
|
|
25
54
|
explode: true,
|
|
26
55
|
style: 'form',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/portal/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/portal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAmE;AACnE,iDAAmE;AAenE;;;GAGG;AACH,MAAa,SAAS;IACZ,MAAM,CAAsC;IAEpD,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,IAAA,uBAAY,EAAQ;YAChC,GAAG,MAAM;YACT,OAAO,EAAE;gBACP,GAAG,MAAM,CAAC,OAAO;gBACjB,aAAa,EAAE,UAAU,MAAM,CAAC,WAAW,EAAE;aAC9C;YACD,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACrB,IAAA,qCAAqB,EAAC;gBACpB,KAAK,EAAE;oBACL,OAAO,EAAE,IAAI;oBACb,KAAK,EAAE,MAAM;iBACd;gBACD,MAAM,EAAE;oBACN,OAAO,EAAE,IAAI;oBACb,KAAK,EAAE,YAAY;iBACpB;aACF,CAAC,CAAC,IAAA,sBAAW,EAAC,CAAC,CAAC,CAAC;SACrB,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,KAAK,CAChB,SAAiB,EACjB,KAaC,EACD,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,yCAAyC,EACzC;YACE,OAAO,EAAE;gBACP,MAAM,EAAE,kBAAkB;aAC3B;YACD,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,SAAS;iBACV;gBACD,KAAK;aACN;YACD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EACtB,IAAI,CACgF,CAAA;IACxF,CAAC;CACF;AAtED,8BAsEC"}
|