@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,123 @@
|
|
|
1
|
+
import type { RequestOptions } from './common.js';
|
|
2
|
+
import type { operations, paths } from './schemas.js';
|
|
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.js").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.js").components["schemas"]["AddonInstanceType"];
|
|
29
|
+
};
|
|
30
|
+
readonly quantityAt: Date;
|
|
31
|
+
quantity: number;
|
|
32
|
+
readonly timeline: import("./schemas.js").components["schemas"]["SubscriptionAddonTimelineSegment"][];
|
|
33
|
+
readonly subscriptionId: string;
|
|
34
|
+
readonly rateCards: import("./schemas.js").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.js").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.js").components["schemas"]["AddonInstanceType"];
|
|
57
|
+
};
|
|
58
|
+
readonly quantityAt: Date;
|
|
59
|
+
quantity: number;
|
|
60
|
+
readonly timeline: import("./schemas.js").components["schemas"]["SubscriptionAddonTimelineSegment"][];
|
|
61
|
+
readonly subscriptionId: string;
|
|
62
|
+
readonly rateCards: import("./schemas.js").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.js").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.js").components["schemas"]["AddonInstanceType"];
|
|
86
|
+
};
|
|
87
|
+
readonly quantityAt: Date;
|
|
88
|
+
quantity: number;
|
|
89
|
+
readonly timeline: import("./schemas.js").components["schemas"]["SubscriptionAddonTimelineSegment"][];
|
|
90
|
+
readonly subscriptionId: string;
|
|
91
|
+
readonly rateCards: import("./schemas.js").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.js").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.js").components["schemas"]["AddonInstanceType"];
|
|
116
|
+
};
|
|
117
|
+
readonly quantityAt: Date;
|
|
118
|
+
quantity: number;
|
|
119
|
+
readonly timeline: import("./schemas.js").components["schemas"]["SubscriptionAddonTimelineSegment"][];
|
|
120
|
+
readonly subscriptionId: string;
|
|
121
|
+
readonly rateCards: import("./schemas.js").components["schemas"]["SubscriptionAddonRateCard"][];
|
|
122
|
+
}>;
|
|
123
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { transformResponse } from './utils.js';
|
|
2
|
+
export class SubscriptionAddons {
|
|
3
|
+
client;
|
|
4
|
+
constructor(client) {
|
|
5
|
+
this.client = client;
|
|
6
|
+
}
|
|
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
|
+
async create(subscriptionId, addon, options) {
|
|
15
|
+
const resp = await this.client.POST('/api/v1/subscriptions/{subscriptionId}/addons', {
|
|
16
|
+
body: addon,
|
|
17
|
+
params: { path: { subscriptionId } },
|
|
18
|
+
...options,
|
|
19
|
+
});
|
|
20
|
+
return transformResponse(resp);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List all addons of a subscription
|
|
24
|
+
* @param subscriptionId - The ID of the subscription
|
|
25
|
+
* @param options - Optional request options
|
|
26
|
+
* @returns A list of subscription addons
|
|
27
|
+
*/
|
|
28
|
+
async list(subscriptionId, options) {
|
|
29
|
+
const resp = await this.client.GET('/api/v1/subscriptions/{subscriptionId}/addons', {
|
|
30
|
+
params: { path: { subscriptionId } },
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
33
|
+
return transformResponse(resp);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get a subscription addon by id
|
|
37
|
+
* @param subscriptionId - The ID of the subscription
|
|
38
|
+
* @param subscriptionAddonId - The ID of the subscription addon
|
|
39
|
+
* @param options - Optional request options
|
|
40
|
+
* @returns The subscription addon
|
|
41
|
+
*/
|
|
42
|
+
async get(subscriptionId, subscriptionAddonId, options) {
|
|
43
|
+
const resp = await this.client.GET('/api/v1/subscriptions/{subscriptionId}/addons/{subscriptionAddonId}', {
|
|
44
|
+
params: { path: { subscriptionAddonId, subscriptionId } },
|
|
45
|
+
...options,
|
|
46
|
+
});
|
|
47
|
+
return transformResponse(resp);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Updates a subscription addon
|
|
51
|
+
* @param subscriptionId - The ID of the subscription
|
|
52
|
+
* @param subscriptionAddonId - The ID of the subscription addon to update
|
|
53
|
+
* @param addon - The subscription addon data to update
|
|
54
|
+
* @param options - Optional request options
|
|
55
|
+
* @returns The updated subscription addon
|
|
56
|
+
*/
|
|
57
|
+
async update(subscriptionId, subscriptionAddonId, addon, options) {
|
|
58
|
+
const resp = await this.client.PATCH('/api/v1/subscriptions/{subscriptionId}/addons/{subscriptionAddonId}', {
|
|
59
|
+
body: addon,
|
|
60
|
+
params: { path: { subscriptionAddonId, subscriptionId } },
|
|
61
|
+
...options,
|
|
62
|
+
});
|
|
63
|
+
return transformResponse(resp);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=subscription-addons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-addons.js","sourceRoot":"","sources":["../../../src/client/subscription-addons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAK9C,MAAM,OAAO,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,iBAAiB,CAAC,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,iBAAiB,CAAC,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,iBAAiB,CAAC,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,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF"}
|
|
@@ -28,6 +28,9 @@ export declare class Subscriptions {
|
|
|
28
28
|
customerId: string;
|
|
29
29
|
plan?: import("./schemas.js").components["schemas"]["PlanReference"];
|
|
30
30
|
currency: import("./schemas.js").components["schemas"]["CurrencyCode"];
|
|
31
|
+
readonly billingCadence: string;
|
|
32
|
+
readonly proRatingConfig?: import("./schemas.js").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.js").components["schemas"]["PlanReference"];
|
|
51
54
|
currency: import("./schemas.js").components["schemas"]["CurrencyCode"];
|
|
55
|
+
readonly billingCadence: string;
|
|
56
|
+
readonly proRatingConfig?: import("./schemas.js").components["schemas"]["ProRatingConfig"];
|
|
57
|
+
readonly billingAnchor: Date;
|
|
52
58
|
alignment?: import("./schemas.js").components["schemas"]["SubscriptionAlignment"];
|
|
53
59
|
phases: import("./schemas.js").components["schemas"]["SubscriptionPhaseExpanded"][];
|
|
54
60
|
}>;
|
|
@@ -74,6 +80,9 @@ export declare class Subscriptions {
|
|
|
74
80
|
customerId: string;
|
|
75
81
|
plan?: import("./schemas.js").components["schemas"]["PlanReference"];
|
|
76
82
|
currency: import("./schemas.js").components["schemas"]["CurrencyCode"];
|
|
83
|
+
readonly billingCadence: string;
|
|
84
|
+
readonly proRatingConfig?: import("./schemas.js").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.js").components["schemas"]["PlanReference"];
|
|
99
108
|
currency: import("./schemas.js").components["schemas"]["CurrencyCode"];
|
|
109
|
+
readonly billingCadence: string;
|
|
110
|
+
readonly proRatingConfig?: import("./schemas.js").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.js").components["schemas"]["PlanReference"];
|
|
145
157
|
currency: import("./schemas.js").components["schemas"]["CurrencyCode"];
|
|
158
|
+
readonly billingCadence: string;
|
|
159
|
+
readonly proRatingConfig?: import("./schemas.js").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
|
}
|
|
@@ -108,5 +108,21 @@ export class Subscriptions {
|
|
|
108
108
|
});
|
|
109
109
|
return transformResponse(resp);
|
|
110
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Delete subscription
|
|
113
|
+
* @description Deletes a subscription. Only scheduled subscriptions can be deleted.
|
|
114
|
+
* @param subscriptionId - The ID of the subscription to delete
|
|
115
|
+
* @param options - Optional request options
|
|
116
|
+
* @returns void or standard error response structure
|
|
117
|
+
*/
|
|
118
|
+
async delete(subscriptionId, options) {
|
|
119
|
+
const resp = await this.client.DELETE('/api/v1/subscriptions/{subscriptionId}', {
|
|
120
|
+
params: {
|
|
121
|
+
path: { subscriptionId },
|
|
122
|
+
},
|
|
123
|
+
...options,
|
|
124
|
+
});
|
|
125
|
+
return transformResponse(resp);
|
|
126
|
+
}
|
|
111
127
|
}
|
|
112
128
|
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/client/subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAW9C;;GAEG;AACH,MAAM,OAAO,aAAa;IACK;IAA7B,YAA6B,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAE7E;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACpE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;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ACF,CAAA;QAED,OAAO,iBAAiB,CAAC,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,iBAAiB,CAAC,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,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/client/subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAW9C;;GAEG;AACH,MAAM,OAAO,aAAa;IACK;IAA7B,YAA6B,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAE7E;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACpE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,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AED,OAAO,iBAAiB,CAAC,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,iBAAiB,CAAC,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,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CACjB,cAAwF,EACxF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CACnC,wCAAwC,EACxC;YACE,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,cAAc,EAAE;aACzB;YACD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF"}
|
package/dist/src/portal/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import createClient from 'openapi-fetch';
|
|
2
|
-
import { createQuerySerializer } from 'openapi-fetch/dist/cjs/index.cjs';
|
|
1
|
+
import createClient, { createQuerySerializer } from 'openapi-fetch';
|
|
3
2
|
import { encodeDates, transformResponse } from '../client/utils.js';
|
|
4
3
|
/**
|
|
5
4
|
* OpenMeter Portal Client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/portal/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/portal/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACnE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAenE;;;GAGG;AACH,MAAM,OAAO,SAAS;IACZ,MAAM,CAAsC;IAEpD,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,YAAY,CAAQ;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,qBAAqB,CAAC;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,WAAW,CAAC,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,iBAAiB,CACtB,IAAI,CACgF,CAAA;IACxF,CAAC;CACF"}
|