@openmeter/sdk 1.0.0-beta.23 → 1.0.0-beta.231

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.
Files changed (165) hide show
  1. package/README.md +234 -146
  2. package/dist/cjs/index.cjs +18 -0
  3. package/dist/cjs/index.cjs.map +1 -0
  4. package/dist/cjs/index.d.cts +1 -0
  5. package/dist/cjs/src/client/addons.cjs +105 -0
  6. package/dist/cjs/src/client/addons.cjs.map +1 -0
  7. package/dist/cjs/src/client/addons.d.cts +152 -0
  8. package/dist/cjs/src/client/apps.cjs +247 -0
  9. package/dist/cjs/src/client/apps.cjs.map +1 -0
  10. package/dist/cjs/src/client/apps.d.cts +327 -0
  11. package/dist/cjs/src/client/billing.cjs +375 -0
  12. package/dist/cjs/src/client/billing.cjs.map +1 -0
  13. package/dist/cjs/src/client/billing.d.cts +563 -0
  14. package/dist/cjs/src/client/common.cjs +47 -0
  15. package/dist/cjs/src/client/common.cjs.map +1 -0
  16. package/dist/cjs/src/client/common.d.cts +30 -0
  17. package/dist/cjs/src/client/customers.cjs +469 -0
  18. package/dist/cjs/src/client/customers.cjs.map +1 -0
  19. package/dist/cjs/src/client/customers.d.cts +620 -0
  20. package/dist/cjs/src/client/debug.cjs +27 -0
  21. package/dist/cjs/src/client/debug.cjs.map +1 -0
  22. package/dist/cjs/src/client/debug.d.cts +17 -0
  23. package/dist/cjs/src/client/entitlements.cjs +372 -0
  24. package/dist/cjs/src/client/entitlements.cjs.map +1 -0
  25. package/dist/cjs/src/client/entitlements.d.cts +670 -0
  26. package/dist/cjs/src/client/events.cjs +113 -0
  27. package/dist/cjs/src/client/events.cjs.map +1 -0
  28. package/dist/cjs/src/client/events.d.cts +48 -0
  29. package/dist/cjs/src/client/features.cjs +78 -0
  30. package/dist/cjs/src/client/features.cjs.map +1 -0
  31. package/dist/cjs/src/client/features.d.cts +90 -0
  32. package/dist/cjs/src/client/index.cjs +122 -0
  33. package/dist/cjs/src/client/index.cjs.map +1 -0
  34. package/dist/cjs/src/client/index.d.cts +54 -0
  35. package/dist/cjs/src/client/info.cjs +42 -0
  36. package/dist/cjs/src/client/info.cjs.map +1 -0
  37. package/dist/cjs/src/client/info.d.cts +34 -0
  38. package/dist/cjs/src/client/meters.cjs +160 -0
  39. package/dist/cjs/src/client/meters.cjs.map +1 -0
  40. package/dist/cjs/src/client/meters.d.cts +220 -0
  41. package/dist/cjs/src/client/notifications.cjs +269 -0
  42. package/dist/cjs/src/client/notifications.cjs.map +1 -0
  43. package/dist/cjs/src/client/notifications.d.cts +412 -0
  44. package/dist/cjs/src/client/plans.cjs +204 -0
  45. package/dist/cjs/src/client/plans.cjs.map +1 -0
  46. package/dist/cjs/src/client/plans.d.cts +252 -0
  47. package/dist/cjs/src/client/portal.cjs +55 -0
  48. package/dist/cjs/src/client/portal.cjs.map +1 -0
  49. package/dist/cjs/src/client/portal.d.cts +48 -0
  50. package/dist/cjs/src/client/schemas.cjs +3 -0
  51. package/dist/cjs/src/client/schemas.cjs.map +1 -0
  52. package/dist/cjs/src/client/schemas.d.cts +28002 -0
  53. package/dist/cjs/src/client/subjects.cjs +76 -0
  54. package/dist/cjs/src/client/subjects.cjs.map +1 -0
  55. package/dist/cjs/src/client/subjects.d.cts +79 -0
  56. package/dist/cjs/src/client/subscription-addons.cjs +70 -0
  57. package/dist/cjs/src/client/subscription-addons.cjs.map +1 -0
  58. package/dist/cjs/src/client/subscription-addons.d.cts +123 -0
  59. package/dist/cjs/src/client/subscriptions.cjs +132 -0
  60. package/dist/cjs/src/client/subscriptions.cjs.map +1 -0
  61. package/dist/cjs/src/client/subscriptions.d.cts +180 -0
  62. package/dist/cjs/src/client/utils.cjs +67 -0
  63. package/dist/cjs/src/client/utils.cjs.map +1 -0
  64. package/dist/cjs/src/client/utils.d.cts +12 -0
  65. package/dist/cjs/src/portal/index.cjs +89 -0
  66. package/dist/cjs/src/portal/index.cjs.map +1 -0
  67. package/dist/cjs/src/portal/index.d.cts +43 -0
  68. package/dist/cjs/src/react/context.cjs +35 -0
  69. package/dist/cjs/src/react/context.cjs.map +1 -0
  70. package/dist/cjs/src/react/context.d.cts +9 -0
  71. package/dist/cjs/src/zod/index.cjs +13679 -0
  72. package/dist/cjs/src/zod/index.cjs.map +1 -0
  73. package/dist/cjs/src/zod/index.d.cts +6360 -0
  74. package/dist/index.d.ts +1 -14
  75. package/dist/index.js +2 -15
  76. package/dist/index.js.map +1 -0
  77. package/dist/src/client/addons.d.ts +152 -0
  78. package/dist/src/client/addons.js +101 -0
  79. package/dist/src/client/addons.js.map +1 -0
  80. package/dist/src/client/apps.d.ts +327 -0
  81. package/dist/src/client/apps.js +240 -0
  82. package/dist/src/client/apps.js.map +1 -0
  83. package/dist/src/client/billing.d.ts +563 -0
  84. package/dist/src/client/billing.js +368 -0
  85. package/dist/src/client/billing.js.map +1 -0
  86. package/dist/src/client/common.d.ts +30 -0
  87. package/dist/src/client/common.js +42 -0
  88. package/dist/src/client/common.js.map +1 -0
  89. package/dist/src/client/customers.d.ts +620 -0
  90. package/dist/src/client/customers.js +461 -0
  91. package/dist/src/client/customers.js.map +1 -0
  92. package/dist/src/client/debug.d.ts +17 -0
  93. package/dist/src/client/debug.js +23 -0
  94. package/dist/src/client/debug.js.map +1 -0
  95. package/dist/src/client/entitlements.d.ts +670 -0
  96. package/dist/src/client/entitlements.js +365 -0
  97. package/dist/src/client/entitlements.js.map +1 -0
  98. package/dist/src/client/events.d.ts +48 -0
  99. package/dist/src/client/events.js +108 -0
  100. package/dist/src/client/events.js.map +1 -0
  101. package/dist/src/client/features.d.ts +90 -0
  102. package/dist/src/client/features.js +74 -0
  103. package/dist/src/client/features.js.map +1 -0
  104. package/dist/src/client/index.d.ts +54 -0
  105. package/dist/src/client/index.js +82 -0
  106. package/dist/src/client/index.js.map +1 -0
  107. package/dist/src/client/info.d.ts +34 -0
  108. package/dist/src/client/info.js +38 -0
  109. package/dist/src/client/info.js.map +1 -0
  110. package/dist/src/client/meters.d.ts +220 -0
  111. package/dist/src/client/meters.js +156 -0
  112. package/dist/src/client/meters.js.map +1 -0
  113. package/dist/src/client/notifications.d.ts +412 -0
  114. package/dist/src/client/notifications.js +262 -0
  115. package/dist/src/client/notifications.js.map +1 -0
  116. package/dist/src/client/plans.d.ts +252 -0
  117. package/dist/src/client/plans.js +199 -0
  118. package/dist/src/client/plans.js.map +1 -0
  119. package/dist/src/client/portal.d.ts +48 -0
  120. package/dist/src/client/portal.js +51 -0
  121. package/dist/src/client/portal.js.map +1 -0
  122. package/dist/src/client/schemas.d.ts +28002 -0
  123. package/dist/src/client/schemas.js +2 -0
  124. package/dist/src/client/schemas.js.map +1 -0
  125. package/dist/src/client/subjects.d.ts +79 -0
  126. package/dist/src/client/subjects.js +72 -0
  127. package/dist/src/client/subjects.js.map +1 -0
  128. package/dist/src/client/subscription-addons.d.ts +123 -0
  129. package/dist/src/client/subscription-addons.js +66 -0
  130. package/dist/src/client/subscription-addons.js.map +1 -0
  131. package/dist/src/client/subscriptions.d.ts +180 -0
  132. package/dist/src/client/subscriptions.js +128 -0
  133. package/dist/src/client/subscriptions.js.map +1 -0
  134. package/dist/src/client/utils.d.ts +12 -0
  135. package/dist/src/client/utils.js +61 -0
  136. package/dist/src/client/utils.js.map +1 -0
  137. package/dist/src/portal/index.d.ts +43 -0
  138. package/dist/src/portal/index.js +52 -0
  139. package/dist/src/portal/index.js.map +1 -0
  140. package/dist/src/react/context.d.ts +9 -0
  141. package/dist/src/react/context.js +16 -0
  142. package/dist/src/react/context.js.map +1 -0
  143. package/dist/src/zod/index.d.ts +6360 -0
  144. package/dist/src/zod/index.js +13615 -0
  145. package/dist/src/zod/index.js.map +1 -0
  146. package/dist/tsconfig.tsbuildinfo +1 -1
  147. package/package.json +82 -40
  148. package/dist/clients/client.d.ts +0 -40
  149. package/dist/clients/client.js +0 -104
  150. package/dist/clients/event.d.ts +0 -79
  151. package/dist/clients/event.js +0 -53
  152. package/dist/clients/meter.d.ts +0 -71
  153. package/dist/clients/meter.js +0 -64
  154. package/dist/clients/portal.d.ts +0 -23
  155. package/dist/clients/portal.js +0 -37
  156. package/dist/next.d.ts +0 -15
  157. package/dist/next.js +0 -46
  158. package/dist/schemas/openapi.d.ts +0 -460
  159. package/dist/schemas/openapi.js +0 -5
  160. package/dist/test/agent.d.ts +0 -2
  161. package/dist/test/agent.js +0 -178
  162. package/dist/test/mocks.d.ts +0 -12
  163. package/dist/test/mocks.js +0 -32
  164. package/index.ts +0 -22
  165. package/next.ts +0 -76
@@ -0,0 +1,180 @@
1
+ import type { Client } from 'openapi-fetch';
2
+ import type { RequestOptions } from './common.cjs';
3
+ import type { operations, paths, SubscriptionChange, SubscriptionCreate, SubscriptionEdit } from './schemas.cjs';
4
+ /**
5
+ * Subscriptions
6
+ */
7
+ export declare class Subscriptions {
8
+ private readonly client;
9
+ constructor(client: Client<paths, `${string}/${string}`>);
10
+ /**
11
+ * Create a subscription
12
+ * @param body - The subscription to create
13
+ * @param signal - An optional abort signal
14
+ * @returns The created subscription
15
+ */
16
+ create(body: SubscriptionCreate, options?: RequestOptions): Promise<{
17
+ readonly id: string;
18
+ name: string;
19
+ description?: string;
20
+ metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
21
+ readonly createdAt: Date;
22
+ readonly updatedAt: Date;
23
+ readonly deletedAt?: Date;
24
+ activeFrom: Date;
25
+ activeTo?: Date;
26
+ readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
27
+ alignment?: import("./schemas.cjs").components["schemas"]["Alignment"];
28
+ readonly status: import("./schemas.cjs").components["schemas"]["SubscriptionStatus"];
29
+ customerId: string;
30
+ plan?: import("./schemas.cjs").components["schemas"]["PlanReference"];
31
+ currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
32
+ readonly billingCadence: string;
33
+ readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
34
+ readonly billingAnchor: Date;
35
+ readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
36
+ } | undefined>;
37
+ /**
38
+ * Get a subscription
39
+ * @param id - The subscription ID
40
+ * @param signal - An optional abort signal
41
+ * @returns The subscription
42
+ */
43
+ get(id: operations['getSubscription']['parameters']['path']['subscriptionId'], options?: RequestOptions): Promise<{
44
+ readonly id: string;
45
+ name: string;
46
+ description?: string;
47
+ metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
48
+ readonly createdAt: Date;
49
+ readonly updatedAt: Date;
50
+ readonly deletedAt?: Date;
51
+ activeFrom: Date;
52
+ activeTo?: Date;
53
+ readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
54
+ readonly status: import("./schemas.cjs").components["schemas"]["SubscriptionStatus"];
55
+ customerId: string;
56
+ plan?: import("./schemas.cjs").components["schemas"]["PlanReference"];
57
+ currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
58
+ readonly billingCadence: string;
59
+ readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
60
+ readonly billingAnchor: Date;
61
+ readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
62
+ alignment?: import("./schemas.cjs").components["schemas"]["SubscriptionAlignment"];
63
+ phases: import("./schemas.cjs").components["schemas"]["SubscriptionPhaseExpanded"][];
64
+ } | undefined>;
65
+ /**
66
+ * Edit a subscription
67
+ * @param id - The subscription ID
68
+ * @param body - The subscription to edit
69
+ * @param signal - An optional abort signal
70
+ * @returns The edited subscription
71
+ */
72
+ edit(id: operations['editSubscription']['parameters']['path']['subscriptionId'], body: SubscriptionEdit, options?: RequestOptions): Promise<{
73
+ readonly id: string;
74
+ name: string;
75
+ description?: string;
76
+ metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
77
+ readonly createdAt: Date;
78
+ readonly updatedAt: Date;
79
+ readonly deletedAt?: Date;
80
+ activeFrom: Date;
81
+ activeTo?: Date;
82
+ readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
83
+ alignment?: import("./schemas.cjs").components["schemas"]["Alignment"];
84
+ readonly status: import("./schemas.cjs").components["schemas"]["SubscriptionStatus"];
85
+ customerId: string;
86
+ plan?: import("./schemas.cjs").components["schemas"]["PlanReference"];
87
+ currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
88
+ readonly billingCadence: string;
89
+ readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
90
+ readonly billingAnchor: Date;
91
+ readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
92
+ } | undefined>;
93
+ /**
94
+ * Cancel a subscription
95
+ * @param id - The subscription ID
96
+ * @param body - The subscription to cancel
97
+ * @param signal - An optional abort signal
98
+ * @returns The canceled subscription
99
+ */
100
+ cancel(id: operations['cancelSubscription']['parameters']['path']['subscriptionId'], body: operations['cancelSubscription']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<{
101
+ readonly id: string;
102
+ name: string;
103
+ description?: string;
104
+ metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
105
+ readonly createdAt: Date;
106
+ readonly updatedAt: Date;
107
+ readonly deletedAt?: Date;
108
+ activeFrom: Date;
109
+ activeTo?: Date;
110
+ readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
111
+ alignment?: import("./schemas.cjs").components["schemas"]["Alignment"];
112
+ readonly status: import("./schemas.cjs").components["schemas"]["SubscriptionStatus"];
113
+ customerId: string;
114
+ plan?: import("./schemas.cjs").components["schemas"]["PlanReference"];
115
+ currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
116
+ readonly billingCadence: string;
117
+ readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
118
+ readonly billingAnchor: Date;
119
+ readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
120
+ } | undefined>;
121
+ /**
122
+ * Change a subscription
123
+ * @description Closes a running subscription and starts a new one according to the specification. Can be used for upgrades, downgrades, and plan changes.
124
+ * @param id - The subscription ID
125
+ * @param body - The subscription to change
126
+ * @param signal - An optional abort signal
127
+ * @returns The changed subscription
128
+ */
129
+ change(id: operations['changeSubscription']['parameters']['path']['subscriptionId'], body: SubscriptionChange, options?: RequestOptions): Promise<{
130
+ current: import("./schemas.cjs").components["schemas"]["Subscription"];
131
+ next: import("./schemas.cjs").components["schemas"]["SubscriptionExpanded"];
132
+ } | undefined>;
133
+ /**
134
+ * Migrate a subscription
135
+ * @description Migrates the subscripiton to the provided version of the current plan.
136
+ * @param id - The subscription ID
137
+ * @param body - The subscription to migrate
138
+ * @param signal - An optional abort signal
139
+ * @returns The migrated subscription
140
+ */
141
+ migrate(id: operations['migrateSubscription']['parameters']['path']['subscriptionId'], body: operations['migrateSubscription']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<{
142
+ current: import("./schemas.cjs").components["schemas"]["Subscription"];
143
+ next: import("./schemas.cjs").components["schemas"]["SubscriptionExpanded"];
144
+ } | undefined>;
145
+ /**
146
+ * Unschedule a cancelation
147
+ * @param id - The subscription ID
148
+ * @param signal - An optional abort signal
149
+ * @returns The unscheduled subscription
150
+ */
151
+ unscheduleCancelation(id: operations['unscheduleCancelation']['parameters']['path']['subscriptionId'], options?: RequestOptions): Promise<{
152
+ readonly id: string;
153
+ name: string;
154
+ description?: string;
155
+ metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
156
+ readonly createdAt: Date;
157
+ readonly updatedAt: Date;
158
+ readonly deletedAt?: Date;
159
+ activeFrom: Date;
160
+ activeTo?: Date;
161
+ readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
162
+ alignment?: import("./schemas.cjs").components["schemas"]["Alignment"];
163
+ readonly status: import("./schemas.cjs").components["schemas"]["SubscriptionStatus"];
164
+ customerId: string;
165
+ plan?: import("./schemas.cjs").components["schemas"]["PlanReference"];
166
+ currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
167
+ readonly billingCadence: string;
168
+ readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
169
+ readonly billingAnchor: Date;
170
+ readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
171
+ } | undefined>;
172
+ /**
173
+ * Delete subscription
174
+ * @description Deletes a subscription. Only scheduled subscriptions can be deleted.
175
+ * @param subscriptionId - The ID of the subscription to delete
176
+ * @param options - Optional request options
177
+ * @returns void or standard error response structure
178
+ */
179
+ delete(subscriptionId: operations['deleteSubscription']['parameters']['path']['subscriptionId'], options?: RequestOptions): Promise<undefined>;
180
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transformResponse = transformResponse;
4
+ exports.isIsoDateString = isIsoDateString;
5
+ exports.decodeDates = decodeDates;
6
+ exports.encodeDates = encodeDates;
7
+ const common_js_1 = require("./common.cjs");
8
+ /**
9
+ * Transform a response from the API
10
+ * @param resp - The response to transform
11
+ * @throws HTTPError if the response is an error
12
+ * @returns The transformed response
13
+ */
14
+ function transformResponse(resp) {
15
+ // Handle errors
16
+ if (resp.error || resp.response.status >= 400) {
17
+ throw common_js_1.HTTPError.fromResponse(resp);
18
+ }
19
+ // Decode dates
20
+ resp.data = decodeDates(resp.data);
21
+ return resp.data;
22
+ }
23
+ const ISODateFormat = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d*)?(?:[-+]\d{2}:?\d{2}|Z)?$/;
24
+ function isIsoDateString(value) {
25
+ return typeof value === 'string' && ISODateFormat.test(value);
26
+ }
27
+ function decodeDates(data) {
28
+ // if it's a date string, return a date
29
+ if (isIsoDateString(data)) {
30
+ return new Date(data);
31
+ }
32
+ // if it's not an object or array, return it
33
+ if (data === null || data === undefined || typeof data !== 'object') {
34
+ return data;
35
+ }
36
+ // if it's an array, decode each element
37
+ if (Array.isArray(data)) {
38
+ return data.map((val) => decodeDates(val));
39
+ }
40
+ // if it's an object, decode each key
41
+ for (const [key, val] of Object.entries(data)) {
42
+ // @ts-expect-error we know this will give back the same type
43
+ data[key] = decodeDates(val);
44
+ }
45
+ return data;
46
+ }
47
+ function encodeDates(data) {
48
+ // if it's a date, return a date string
49
+ if (data instanceof Date) {
50
+ return data.toISOString();
51
+ }
52
+ // if it's not an object or array, return it
53
+ if (data === null || data === undefined || typeof data !== 'object') {
54
+ return data;
55
+ }
56
+ // if it's an array, encode each element
57
+ if (Array.isArray(data)) {
58
+ return data.map((val) => encodeDates(val));
59
+ }
60
+ // if it's an object, encode each key
61
+ for (const [key, val] of Object.entries(data)) {
62
+ // @ts-expect-error we know this will give back the same type
63
+ data[key] = encodeDates(val);
64
+ }
65
+ return data;
66
+ }
67
+ //# sourceMappingURL=utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.cjs","names":[],"sources":["../../../../src/client/utils.ts"],"sourcesContent":[null],"mappings":[[],[],[[0,0,14,0],[1,0,14,0],[2,0,14,0],[3,0,14,0],[4,0,14,0],[5,0,14,0],[6,0,14,0],[7,0,14,0],[8,0,14,0],[9,0,14,0],[10,0,14,0],[11,0,14,0],[12,0,14,0],[13,0,14,0],[14,0,14,0],[15,0,14,0],[16,0,14,0],[17,0,14,0],[18,0,14,0],[19,0,14,0],[20,0,14,0],[21,0,14,0],[22,0,14,0],[23,0,14,0],[24,0,14,0],[25,0,14,0],[26,0,14,0],[27,0,14,0],[28,0,14,0],[29,0,14,0],[30,0,14,0],[31,0,14,0],[32,0,14,0],[33,0,14,0],[34,0,14,0],[35,0,14,0],[36,0,14,0],[37,0,14,0],[38,0,14,0],[39,0,14,0],[40,0,14,0],[41,0,14,0],[42,0,14,0],[43,0,14,0],[44,0,14,0],[45,0,14,0]],[[0,0,37,0],[1,0,37,0],[2,0,37,0],[3,0,37,0],[4,0,37,0],[5,0,37,0],[6,0,37,0],[7,0,37,0],[8,0,37,0],[9,0,37,0],[10,0,37,0],[11,0,37,0],[12,0,37,0],[13,0,37,0],[14,0,37,0],[15,0,37,0],[16,0,37,0],[17,0,37,0],[18,0,37,0],[19,0,37,0],[20,0,37,0],[21,0,37,0],[22,0,37,0],[23,0,37,0],[24,0,37,0],[25,0,37,0],[26,0,37,0],[27,0,37,0],[28,0,37,0],[29,0,37,0],[30,0,37,0],[31,0,37,0],[32,0,37,0],[33,0,37,0],[34,0,37,0],[35,0,37,0],[36,0,37,0],[37,0,37,0],[38,0,37,0],[39,0,37,0],[40,0,37,0],[41,0,37,0]],[[0,0,41,0],[1,0,41,0],[2,0,41,0],[3,0,41,0],[4,0,41,0],[5,0,41,0],[6,0,41,0],[7,0,41,0],[8,0,41,0],[9,0,41,0],[10,0,41,0],[11,0,41,0],[12,0,41,0],[13,0,41,0],[14,0,41,0],[15,0,41,0],[16,0,41,0],[17,0,41,0],[18,0,41,0],[19,0,41,0],[20,0,41,0],[21,0,41,0],[22,0,41,0],[23,0,41,0],[24,0,41,0],[25,0,41,0],[26,0,41,0],[27,0,41,0],[28,0,41,0],[29,0,41,0],[30,0,41,0],[31,0,41,0],[32,0,41,0],[33,0,41,0]],[[0,0,66,0],[1,0,66,0],[2,0,66,0],[3,0,66,0],[4,0,66,0],[5,0,66,0],[6,0,66,0],[7,0,66,0],[8,0,66,0],[9,0,66,0],[10,0,66,0],[11,0,66,0],[12,0,66,0],[13,0,66,0],[14,0,66,0],[15,0,66,0],[16,0,66,0],[17,0,66,0],[18,0,66,0],[19,0,66,0],[20,0,66,0],[21,0,66,0],[22,0,66,0],[23,0,66,0],[24,0,66,0],[25,0,66,0],[26,0,66,0],[27,0,66,0],[28,0,66,0],[29,0,66,0],[30,0,66,0],[31,0,66,0],[32,0,66,0],[33,0,66,0]],[[0,0,6,0],[1,0,6,0],[2,0,6,0],[3,0,6,0],[4,0,6,0],[5,0,6,0],[6,0,6,0],[7,0,6,0],[8,0,6,0],[9,0,6,0],[10,0,6,0],[11,0,6,0],[12,0,6,0],[13,0,6,0],[14,0,6,0],[15,0,6,0],[16,0,6,0],[17,0,6,0],[18,0,6,0],[19,0,6,0],[20,0,6,0],[21,0,6,0],[22,0,6,0],[23,0,6,0],[24,0,6,0],[25,0,6,0],[26,0,6,0],[27,0,6,0],[28,0,6,0],[29,0,6,0],[41,0,6,0],[42,0,6,0],[43,0,6,0]],[[0,0,8,0],[1,0,8,0],[2,0,8,0]],[],[],[],[],[],[[0,0,14,0],[1,0,14,0],[2,0,14,0],[3,0,14,0],[4,0,14,0],[5,0,14,0],[6,0,14,0],[7,0,14,0],[8,0,14,0],[9,0,14,16],[10,0,14,16],[11,0,14,16],[12,0,14,16],[13,0,14,16],[14,0,14,16],[15,0,14,16],[16,0,14,16],[17,0,14,16],[18,0,14,16],[19,0,14,16],[20,0,14,16],[21,0,14,16],[22,0,14,16],[23,0,14,16],[24,0,14,16],[25,0,14,16],[26,0,14,33],[27,0,19,2],[28,0,19,2],[29,0,19,2],[30,0,19,2],[31,0,19,40],[32,0,19,40],[33,0,19,40]],[[4,0,24,2],[5,0,24,2],[6,0,24,2],[7,0,24,2],[8,0,24,2],[9,0,24,2],[10,0,24,2],[11,0,24,2],[12,0,24,2],[13,0,24,2],[14,0,24,2],[15,0,24,2],[16,0,24,2],[17,0,24,2],[18,0,24,2],[19,0,24,2]],[[4,0,25,2],[5,0,25,2],[6,0,25,2],[7,0,25,2],[8,0,25,6],[9,0,25,6],[10,0,25,6],[11,0,25,6],[12,0,25,10],[13,0,25,11],[14,0,25,11],[15,0,25,11],[16,0,25,11],[17,0,25,11],[18,0,25,16],[19,0,25,16],[20,0,25,16],[21,0,25,16],[22,0,25,20],[23,0,25,20],[24,0,25,20],[25,0,25,20],[26,0,25,24],[27,0,25,25],[28,0,25,25],[29,0,25,25],[30,0,25,25],[31,0,25,25],[32,0,25,25],[33,0,25,25],[34,0,25,25],[35,0,25,33],[36,0,25,34],[37,0,25,34],[38,0,25,34],[39,0,25,34],[40,0,25,34],[41,0,25,34],[42,0,25,40],[43,0,25,40],[44,0,25,40],[45,0,25,40],[46,0,25,44],[47,0,25,44],[48,0,25,44],[49,0,25,47],[50,0,25,47],[51,0,25,49]],[[8,0,26,4],[9,0,26,4],[10,0,26,4],[11,0,26,4],[12,0,26,4],[13,0,26,4],[14,0,26,10],[15,0,26,10],[16,0,26,10],[17,0,26,10],[18,0,26,10],[19,0,26,10],[20,0,26,10],[21,0,26,10],[22,0,26,10],[23,0,26,10],[24,0,26,10],[25,0,26,10],[26,0,26,10],[27,0,26,10],[28,0,26,10],[29,0,26,10],[30,0,26,10],[31,0,26,10],[32,0,26,10],[33,0,26,10],[34,0,26,10],[35,0,26,19],[36,0,26,20],[37,0,26,20],[38,0,26,20],[39,0,26,20],[40,0,26,20],[41,0,26,20],[42,0,26,20],[43,0,26,20],[44,0,26,20],[45,0,26,20],[46,0,26,20],[47,0,26,20],[48,0,26,32],[49,0,26,33],[50,0,26,33],[51,0,26,33],[52,0,26,33],[53,0,26,37],[54,0,26,38]],[[4,0,27,2]],[[4,0,29,2],[5,0,29,2],[6,0,29,2],[7,0,29,2],[8,0,29,2],[9,0,29,2],[10,0,29,2],[11,0,29,2],[12,0,29,2],[13,0,29,2],[14,0,29,2],[15,0,29,2],[16,0,29,2],[17,0,29,2],[18,0,29,2]],[[4,0,30,2],[5,0,30,2],[6,0,30,2],[7,0,30,2],[8,0,30,6],[9,0,30,7],[10,0,30,7],[11,0,30,7],[12,0,30,7],[13,0,30,11],[14,0,30,11],[15,0,30,11],[16,0,30,14],[17,0,30,14],[18,0,30,14],[19,0,30,14],[20,0,30,14],[21,0,30,14],[22,0,30,14],[23,0,30,14],[24,0,30,14],[25,0,30,14],[26,0,30,14],[27,0,30,25],[28,0,30,26],[29,0,30,26],[30,0,30,26],[31,0,30,26],[32,0,30,30],[33,0,30,31],[34,0,30,31],[35,0,30,31],[36,0,30,31],[37,0,30,35],[38,0,30,36]],[[4,0,31,2],[5,0,31,2],[6,0,31,2],[7,0,31,2],[8,0,31,2],[9,0,31,2],[10,0,31,2],[11,0,31,9],[12,0,31,9],[13,0,31,9],[14,0,31,9],[15,0,31,13],[16,0,31,14],[17,0,31,14],[18,0,31,14],[19,0,31,14],[20,0,31,18]],[[0,0,32,0]],[[0,0,34,0],[1,0,34,0],[2,0,34,0],[3,0,34,0],[4,0,34,0],[5,0,34,0],[6,0,34,6],[7,0,34,6],[8,0,34,6],[9,0,34,6],[10,0,34,6],[11,0,34,6],[12,0,34,6],[13,0,34,6],[14,0,34,6],[15,0,34,6],[16,0,34,6],[17,0,34,6],[18,0,34,6],[19,0,34,19],[20,0,34,19],[21,0,34,19],[22,0,35,2],[23,0,35,2],[24,0,35,2],[25,0,35,2],[26,0,35,2],[27,0,35,2],[28,0,35,2],[29,0,35,2],[30,0,35,2],[31,0,35,2],[32,0,35,2],[33,0,35,2],[34,0,35,2],[35,0,35,2],[36,0,35,2],[37,0,35,2],[38,0,35,2],[39,0,35,2],[40,0,35,2],[41,0,35,2],[42,0,35,2],[43,0,35,2],[44,0,35,2],[45,0,35,2],[46,0,35,2],[47,0,35,2],[48,0,35,2],[49,0,35,2],[50,0,35,2],[51,0,35,2],[52,0,35,2],[53,0,35,2],[54,0,35,2],[55,0,35,2],[56,0,35,2],[57,0,35,2],[58,0,35,2],[59,0,35,2],[60,0,35,2],[61,0,35,2],[62,0,35,2],[63,0,35,2],[64,0,35,2],[65,0,35,2],[66,0,35,2],[67,0,35,2],[68,0,35,2],[69,0,35,2],[70,0,35,2],[71,0,35,2],[72,0,35,2],[73,0,35,2],[74,0,35,2],[75,0,35,2],[76,0,35,2],[77,0,35,2],[78,0,35,2],[79,0,35,2],[80,0,35,2],[81,0,35,2],[82,0,35,2],[83,0,35,2],[84,0,35,2],[85,0,35,2],[86,0,35,2],[87,0,35,2],[88,0,35,2],[89,0,35,2],[90,0,35,2],[91,0,35,2],[92,0,35,2],[93,0,35,2],[94,0,35,74]],[[0,0,37,0],[1,0,37,0],[2,0,37,0],[3,0,37,0],[4,0,37,0],[5,0,37,0],[6,0,37,0],[7,0,37,0],[8,0,37,0],[9,0,37,16],[10,0,37,16],[11,0,37,16],[12,0,37,16],[13,0,37,16],[14,0,37,16],[15,0,37,16],[16,0,37,16],[17,0,37,16],[18,0,37,16],[19,0,37,16],[20,0,37,16],[21,0,37,16],[22,0,37,16],[23,0,37,16],[24,0,37,31],[25,0,37,32],[26,0,37,32],[27,0,37,32],[28,0,37,32],[29,0,37,32],[30,0,37,46],[31,0,37,46],[32,0,37,46]],[[4,0,38,2],[5,0,38,2],[6,0,38,2],[7,0,38,2],[8,0,38,2],[9,0,38,2],[10,0,38,2],[11,0,38,9],[12,0,38,9],[13,0,38,9],[14,0,38,9],[15,0,38,9],[16,0,38,9],[17,0,38,9],[18,0,38,16],[19,0,38,16],[20,0,38,16],[21,0,38,16],[22,0,38,16],[23,0,38,21],[24,0,38,21],[25,0,38,21],[26,0,38,21],[27,0,38,21],[28,0,38,26],[29,0,38,26],[30,0,38,26],[31,0,38,26],[32,0,38,26],[33,0,38,26],[34,0,38,26],[35,0,38,26],[36,0,38,34],[37,0,38,34],[38,0,38,34],[39,0,38,34],[40,0,38,38],[41,0,38,38],[42,0,38,38],[43,0,38,38],[44,0,38,38],[45,0,38,38],[46,0,38,38],[47,0,38,38],[48,0,38,38],[49,0,38,38],[50,0,38,38],[51,0,38,38],[52,0,38,38],[53,0,38,51],[54,0,38,52],[55,0,38,52],[56,0,38,52],[57,0,38,52],[58,0,38,56],[59,0,38,57],[60,0,38,57],[61,0,38,57],[62,0,38,57],[63,0,38,57],[64,0,38,62],[65,0,38,63]],[[0,0,39,0]],[[0,0,41,0],[1,0,41,0],[2,0,41,0],[3,0,41,0],[4,0,41,0],[5,0,41,0],[6,0,41,0],[7,0,41,0],[8,0,41,0],[9,0,41,16],[10,0,41,16],[11,0,41,16],[12,0,41,16],[13,0,41,16],[14,0,41,16],[15,0,41,16],[16,0,41,16],[17,0,41,16],[18,0,41,16],[19,0,41,16],[20,0,41,27],[21,0,41,31],[22,0,41,31],[23,0,41,31],[24,0,41,31],[25,0,41,38],[26,0,41,38],[27,0,41,38]],[[4,0,42,2],[5,0,42,2],[6,0,42,2],[7,0,42,2],[8,0,42,2],[9,0,42,2],[10,0,42,2],[11,0,42,2],[12,0,42,2],[13,0,42,2],[14,0,42,2],[15,0,42,2],[16,0,42,2],[17,0,42,2],[18,0,42,2],[19,0,42,2],[20,0,42,2],[21,0,42,2],[22,0,42,2],[23,0,42,2],[24,0,42,2],[25,0,42,2],[26,0,42,2],[27,0,42,2],[28,0,42,2],[29,0,42,2],[30,0,42,2],[31,0,42,2],[32,0,42,2],[33,0,42,2],[34,0,42,2],[35,0,42,2],[36,0,42,2],[37,0,42,2],[38,0,42,2],[39,0,42,2],[40,0,42,2],[41,0,42,2],[42,0,42,2]],[[4,0,43,2],[5,0,43,2],[6,0,43,2],[7,0,43,2],[8,0,43,6],[9,0,43,6],[10,0,43,6],[11,0,43,6],[12,0,43,6],[13,0,43,6],[14,0,43,6],[15,0,43,6],[16,0,43,6],[17,0,43,6],[18,0,43,6],[19,0,43,6],[20,0,43,6],[21,0,43,6],[22,0,43,6],[23,0,43,21],[24,0,43,22],[25,0,43,22],[26,0,43,22],[27,0,43,22],[28,0,43,26],[29,0,43,27],[30,0,43,27],[31,0,43,29]],[[8,0,44,4],[9,0,44,4],[10,0,44,4],[11,0,44,4],[12,0,44,4],[13,0,44,4],[14,0,44,4],[15,0,44,11],[16,0,44,11],[17,0,44,11],[18,0,44,11],[19,0,44,15],[20,0,44,15],[21,0,44,15],[22,0,44,15],[23,0,44,19],[24,0,44,20],[25,0,44,20],[26,0,44,20],[27,0,44,20],[28,0,44,24],[29,0,44,30]],[[4,0,45,2]],[[4,0,47,2],[5,0,47,2],[6,0,47,2],[7,0,47,2],[8,0,47,2],[9,0,47,2],[10,0,47,2],[11,0,47,2],[12,0,47,2],[13,0,47,2],[14,0,47,2],[15,0,47,2],[16,0,47,2],[17,0,47,2],[18,0,47,2],[19,0,47,2],[20,0,47,2],[21,0,47,2],[22,0,47,2],[23,0,47,2],[24,0,47,2],[25,0,47,2],[26,0,47,2],[27,0,47,2],[28,0,47,2],[29,0,47,2],[30,0,47,2],[31,0,47,2],[32,0,47,2],[33,0,47,2],[34,0,47,2],[35,0,47,2],[36,0,47,2],[37,0,47,2],[38,0,47,2],[39,0,47,2],[40,0,47,2],[41,0,47,2],[42,0,47,2],[43,0,47,2],[44,0,47,2],[45,0,47,2],[46,0,47,2],[47,0,47,2]],[[4,0,48,2],[5,0,48,2],[6,0,48,2],[7,0,48,2],[8,0,48,6],[9,0,48,6],[10,0,48,6],[11,0,48,6],[12,0,48,10],[13,0,48,10],[14,0,48,10],[15,0,48,10],[16,0,48,10],[17,0,48,15],[18,0,48,15],[19,0,48,15],[20,0,48,15],[21,0,48,19],[22,0,48,19],[23,0,48,19],[24,0,48,19],[25,0,48,23],[26,0,48,23],[27,0,48,23],[28,0,48,23],[29,0,48,27],[30,0,48,27],[31,0,48,27],[32,0,48,27],[33,0,48,27],[34,0,48,32],[35,0,48,32],[36,0,48,32],[37,0,48,32],[38,0,48,32],[39,0,48,32],[40,0,48,32],[41,0,48,32],[42,0,48,32],[43,0,48,41],[44,0,48,41],[45,0,48,41],[46,0,48,41],[47,0,48,45],[48,0,48,45],[49,0,48,45],[50,0,48,45],[51,0,48,45],[52,0,48,45],[53,0,48,45],[54,0,48,52],[55,0,48,52],[56,0,48,52],[57,0,48,52],[58,0,48,56],[59,0,48,56],[60,0,48,56],[61,0,48,56],[62,0,48,56],[63,0,48,61],[64,0,48,61],[65,0,48,61],[66,0,48,61],[67,0,48,61],[68,0,48,61],[69,0,48,61],[70,0,48,61],[71,0,48,69],[72,0,48,69],[73,0,48,71]],[[8,0,49,4],[9,0,49,4],[10,0,49,4],[11,0,49,4],[12,0,49,4],[13,0,49,4],[14,0,49,4],[15,0,49,11],[16,0,49,11],[17,0,49,11],[18,0,49,11],[19,0,49,15]],[[4,0,50,2]],[[4,0,52,2],[5,0,52,2],[6,0,52,2],[7,0,52,2],[8,0,52,2],[9,0,52,2],[10,0,52,2],[11,0,52,2],[12,0,52,2],[13,0,52,2],[14,0,52,2],[15,0,52,2],[16,0,52,2],[17,0,52,2],[18,0,52,2],[19,0,52,2],[20,0,52,2],[21,0,52,2],[22,0,52,2],[23,0,52,2],[24,0,52,2],[25,0,52,2],[26,0,52,2],[27,0,52,2],[28,0,52,2],[29,0,52,2],[30,0,52,2],[31,0,52,2],[32,0,52,2],[33,0,52,2],[34,0,52,2],[35,0,52,2],[36,0,52,2],[37,0,52,2],[38,0,52,2],[39,0,52,2],[40,0,52,2],[41,0,52,2],[42,0,52,2],[43,0,52,2]],[[4,0,53,2],[5,0,53,2],[6,0,53,2],[7,0,53,2],[8,0,53,6],[9,0,53,6],[10,0,53,6],[11,0,53,6],[12,0,53,6],[13,0,53,11],[14,0,53,12],[15,0,53,12],[16,0,53,12],[17,0,53,12],[18,0,53,12],[19,0,53,12],[20,0,53,12],[21,0,53,19],[22,0,53,20],[23,0,53,20],[24,0,53,20],[25,0,53,20],[26,0,53,24],[27,0,53,25],[28,0,53,25],[29,0,53,27]],[[8,0,54,4],[9,0,54,4],[10,0,54,4],[11,0,54,4],[12,0,54,4],[13,0,54,4],[14,0,54,4],[15,0,54,11],[16,0,54,11],[17,0,54,11],[18,0,54,11],[19,0,54,15],[20,0,54,16],[21,0,54,16],[22,0,54,16],[23,0,54,19],[24,0,54,20],[25,0,54,21],[26,0,54,21],[27,0,54,21],[28,0,54,24],[29,0,54,24],[30,0,54,26],[31,0,54,26],[32,0,54,28],[33,0,54,29],[34,0,54,29],[35,0,54,29],[36,0,54,29],[37,0,54,29],[38,0,54,29],[39,0,54,29],[40,0,54,29],[41,0,54,29],[42,0,54,29],[43,0,54,29],[44,0,54,40],[45,0,54,41],[46,0,54,41],[47,0,54,41],[48,0,54,44],[49,0,54,45],[50,0,54,51]],[[4,0,55,2]],[[4,0,57,2],[5,0,57,2],[6,0,57,2],[7,0,57,2],[8,0,57,2],[9,0,57,2],[10,0,57,2],[11,0,57,2],[12,0,57,2],[13,0,57,2],[14,0,57,2],[15,0,57,2],[16,0,57,2],[17,0,57,2],[18,0,57,2],[19,0,57,2],[20,0,57,2],[21,0,57,2],[22,0,57,2],[23,0,57,2],[24,0,57,2],[25,0,57,2],[26,0,57,2],[27,0,57,2],[28,0,57,2],[29,0,57,2],[30,0,57,2],[31,0,57,2],[32,0,57,2],[33,0,57,2],[34,0,57,2],[35,0,57,2],[36,0,57,2],[37,0,57,2],[38,0,57,2],[39,0,57,2],[40,0,57,2]],[[4,0,58,2],[5,0,58,2],[6,0,58,2],[7,0,58,2],[8,0,58,2],[9,0,58,7],[10,0,58,7],[11,0,58,7],[12,0,58,7],[13,0,58,7],[14,0,58,7],[15,0,58,13],[16,0,58,14],[17,0,58,14],[18,0,58,14],[19,0,58,17],[20,0,58,17],[21,0,58,19],[22,0,58,19],[23,0,58,19],[24,0,58,22],[25,0,58,23],[26,0,58,23],[27,0,58,23],[28,0,58,23],[29,0,58,27],[30,0,58,27],[31,0,58,27],[32,0,58,27],[33,0,58,27],[34,0,58,27],[35,0,58,33],[36,0,58,34],[37,0,58,34],[38,0,58,34],[39,0,58,34],[40,0,58,34],[41,0,58,34],[42,0,58,34],[43,0,58,41],[44,0,58,42],[45,0,58,42],[46,0,58,42],[47,0,58,42],[48,0,58,46],[49,0,58,47],[50,0,58,47],[51,0,58,49]],[[8,0,59,4],[9,0,59,4],[10,0,59,4],[11,0,59,4],[12,0,59,4],[13,0,59,4],[14,0,59,4],[15,0,59,4],[16,0,59,4],[17,0,59,4],[18,0,59,4],[19,0,59,4],[20,0,59,4],[21,0,59,4],[22,0,59,4],[23,0,59,4],[24,0,59,4],[25,0,59,4],[26,0,59,4],[27,0,59,4],[28,0,59,4],[29,0,59,4],[30,0,59,4],[31,0,59,4],[32,0,59,4],[33,0,59,4],[34,0,59,4],[35,0,59,4],[36,0,59,4],[37,0,59,4],[38,0,59,4],[39,0,59,4],[40,0,59,4],[41,0,59,4],[42,0,59,4],[43,0,59,4],[44,0,59,4],[45,0,59,4],[46,0,59,4],[47,0,59,4],[48,0,59,4],[49,0,59,4],[50,0,59,4],[51,0,59,4],[52,0,59,4],[53,0,59,4],[54,0,59,4],[55,0,59,4],[56,0,59,4],[57,0,59,4],[58,0,59,4],[59,0,59,4],[60,0,59,4],[61,0,59,4],[62,0,59,4],[63,0,59,4],[64,0,59,4],[65,0,59,4],[66,0,59,4],[67,0,59,4],[68,0,59,4]],[[8,0,60,4],[9,0,60,4],[10,0,60,4],[11,0,60,4],[12,0,60,8],[13,0,60,9],[14,0,60,9],[15,0,60,9],[16,0,60,12],[17,0,60,13],[18,0,60,13],[19,0,60,13],[20,0,60,16],[21,0,60,16],[22,0,60,16],[23,0,60,16],[24,0,60,16],[25,0,60,16],[26,0,60,16],[27,0,60,16],[28,0,60,16],[29,0,60,16],[30,0,60,16],[31,0,60,27],[32,0,60,28],[33,0,60,28],[34,0,60,28],[35,0,60,31],[36,0,60,32]],[[4,0,61,2]],[[4,0,63,2],[5,0,63,2],[6,0,63,2],[7,0,63,2],[8,0,63,2],[9,0,63,2],[10,0,63,2],[11,0,63,9],[12,0,63,9],[13,0,63,9],[14,0,63,9],[15,0,63,18]],[[0,0,64,0]],[[0,0,66,0],[1,0,66,0],[2,0,66,0],[3,0,66,0],[4,0,66,0],[5,0,66,0],[6,0,66,0],[7,0,66,0],[8,0,66,0],[9,0,66,16],[10,0,66,16],[11,0,66,16],[12,0,66,16],[13,0,66,16],[14,0,66,16],[15,0,66,16],[16,0,66,16],[17,0,66,16],[18,0,66,16],[19,0,66,16],[20,0,66,27],[21,0,66,31],[22,0,66,31],[23,0,66,31],[24,0,66,31],[25,0,66,38],[26,0,66,38],[27,0,66,38]],[[4,0,67,2],[5,0,67,2],[6,0,67,2],[7,0,67,2],[8,0,67,2],[9,0,67,2],[10,0,67,2],[11,0,67,2],[12,0,67,2],[13,0,67,2],[14,0,67,2],[15,0,67,2],[16,0,67,2],[17,0,67,2],[18,0,67,2],[19,0,67,2],[20,0,67,2],[21,0,67,2],[22,0,67,2],[23,0,67,2],[24,0,67,2],[25,0,67,2],[26,0,67,2],[27,0,67,2],[28,0,67,2],[29,0,67,2],[30,0,67,2],[31,0,67,2],[32,0,67,2],[33,0,67,2],[34,0,67,2],[35,0,67,2],[36,0,67,2],[37,0,67,2],[38,0,67,2],[39,0,67,2],[40,0,67,2],[41,0,67,2],[42,0,67,2]],[[4,0,68,2],[5,0,68,2],[6,0,68,2],[7,0,68,2],[8,0,68,6],[9,0,68,6],[10,0,68,6],[11,0,68,6],[12,0,68,10],[13,0,68,10],[14,0,68,10],[15,0,68,10],[16,0,68,10],[17,0,68,10],[18,0,68,10],[19,0,68,10],[20,0,68,10],[21,0,68,10],[22,0,68,10],[23,0,68,10],[24,0,68,22],[25,0,68,22],[26,0,68,22],[27,0,68,22],[28,0,68,26],[29,0,68,26],[30,0,68,28]],[[8,0,69,4],[9,0,69,4],[10,0,69,4],[11,0,69,4],[12,0,69,4],[13,0,69,4],[14,0,69,4],[15,0,69,11],[16,0,69,11],[17,0,69,11],[18,0,69,11],[19,0,69,15],[20,0,69,16],[21,0,69,16],[22,0,69,16],[23,0,69,16],[24,0,69,16],[25,0,69,16],[26,0,69,16],[27,0,69,16],[28,0,69,16],[29,0,69,16],[30,0,69,16],[31,0,69,27],[32,0,69,27],[33,0,69,34]],[[4,0,70,2]],[[4,0,72,2],[5,0,72,2],[6,0,72,2],[7,0,72,2],[8,0,72,2],[9,0,72,2],[10,0,72,2],[11,0,72,2],[12,0,72,2],[13,0,72,2],[14,0,72,2],[15,0,72,2],[16,0,72,2],[17,0,72,2],[18,0,72,2],[19,0,72,2],[20,0,72,2],[21,0,72,2],[22,0,72,2],[23,0,72,2],[24,0,72,2],[25,0,72,2],[26,0,72,2],[27,0,72,2],[28,0,72,2],[29,0,72,2],[30,0,72,2],[31,0,72,2],[32,0,72,2],[33,0,72,2],[34,0,72,2],[35,0,72,2],[36,0,72,2],[37,0,72,2],[38,0,72,2],[39,0,72,2],[40,0,72,2],[41,0,72,2],[42,0,72,2],[43,0,72,2],[44,0,72,2],[45,0,72,2],[46,0,72,2],[47,0,72,2]],[[4,0,73,2],[5,0,73,2],[6,0,73,2],[7,0,73,2],[8,0,73,6],[9,0,73,6],[10,0,73,6],[11,0,73,6],[12,0,73,10],[13,0,73,10],[14,0,73,10],[15,0,73,10],[16,0,73,10],[17,0,73,15],[18,0,73,15],[19,0,73,15],[20,0,73,15],[21,0,73,19],[22,0,73,19],[23,0,73,19],[24,0,73,19],[25,0,73,23],[26,0,73,23],[27,0,73,23],[28,0,73,23],[29,0,73,27],[30,0,73,27],[31,0,73,27],[32,0,73,27],[33,0,73,27],[34,0,73,32],[35,0,73,32],[36,0,73,32],[37,0,73,32],[38,0,73,32],[39,0,73,32],[40,0,73,32],[41,0,73,32],[42,0,73,32],[43,0,73,41],[44,0,73,41],[45,0,73,41],[46,0,73,41],[47,0,73,45],[48,0,73,45],[49,0,73,45],[50,0,73,45],[51,0,73,45],[52,0,73,45],[53,0,73,45],[54,0,73,52],[55,0,73,52],[56,0,73,52],[57,0,73,52],[58,0,73,56],[59,0,73,56],[60,0,73,56],[61,0,73,56],[62,0,73,56],[63,0,73,61],[64,0,73,61],[65,0,73,61],[66,0,73,61],[67,0,73,61],[68,0,73,61],[69,0,73,61],[70,0,73,61],[71,0,73,69],[72,0,73,69],[73,0,73,71]],[[8,0,74,4],[9,0,74,4],[10,0,74,4],[11,0,74,4],[12,0,74,4],[13,0,74,4],[14,0,74,4],[15,0,74,11],[16,0,74,11],[17,0,74,11],[18,0,74,11],[19,0,74,15]],[[4,0,75,2]],[[4,0,77,2],[5,0,77,2],[6,0,77,2],[7,0,77,2],[8,0,77,2],[9,0,77,2],[10,0,77,2],[11,0,77,2],[12,0,77,2],[13,0,77,2],[14,0,77,2],[15,0,77,2],[16,0,77,2],[17,0,77,2],[18,0,77,2],[19,0,77,2],[20,0,77,2],[21,0,77,2],[22,0,77,2],[23,0,77,2],[24,0,77,2],[25,0,77,2],[26,0,77,2],[27,0,77,2],[28,0,77,2],[29,0,77,2],[30,0,77,2],[31,0,77,2],[32,0,77,2],[33,0,77,2],[34,0,77,2],[35,0,77,2],[36,0,77,2],[37,0,77,2],[38,0,77,2],[39,0,77,2],[40,0,77,2],[41,0,77,2],[42,0,77,2],[43,0,77,2]],[[4,0,78,2],[5,0,78,2],[6,0,78,2],[7,0,78,2],[8,0,78,6],[9,0,78,6],[10,0,78,6],[11,0,78,6],[12,0,78,6],[13,0,78,11],[14,0,78,12],[15,0,78,12],[16,0,78,12],[17,0,78,12],[18,0,78,12],[19,0,78,12],[20,0,78,12],[21,0,78,19],[22,0,78,20],[23,0,78,20],[24,0,78,20],[25,0,78,20],[26,0,78,24],[27,0,78,25],[28,0,78,25],[29,0,78,27]],[[8,0,79,4],[9,0,79,4],[10,0,79,4],[11,0,79,4],[12,0,79,4],[13,0,79,4],[14,0,79,4],[15,0,79,11],[16,0,79,11],[17,0,79,11],[18,0,79,11],[19,0,79,15],[20,0,79,16],[21,0,79,16],[22,0,79,16],[23,0,79,19],[24,0,79,20],[25,0,79,21],[26,0,79,21],[27,0,79,21],[28,0,79,24],[29,0,79,24],[30,0,79,26],[31,0,79,26],[32,0,79,28],[33,0,79,29],[34,0,79,29],[35,0,79,29],[36,0,79,29],[37,0,79,29],[38,0,79,29],[39,0,79,29],[40,0,79,29],[41,0,79,29],[42,0,79,29],[43,0,79,29],[44,0,79,40],[45,0,79,41],[46,0,79,41],[47,0,79,41],[48,0,79,44],[49,0,79,45],[50,0,79,51]],[[4,0,80,2]],[[4,0,82,2],[5,0,82,2],[6,0,82,2],[7,0,82,2],[8,0,82,2],[9,0,82,2],[10,0,82,2],[11,0,82,2],[12,0,82,2],[13,0,82,2],[14,0,82,2],[15,0,82,2],[16,0,82,2],[17,0,82,2],[18,0,82,2],[19,0,82,2],[20,0,82,2],[21,0,82,2],[22,0,82,2],[23,0,82,2],[24,0,82,2],[25,0,82,2],[26,0,82,2],[27,0,82,2],[28,0,82,2],[29,0,82,2],[30,0,82,2],[31,0,82,2],[32,0,82,2],[33,0,82,2],[34,0,82,2],[35,0,82,2],[36,0,82,2],[37,0,82,2],[38,0,82,2],[39,0,82,2],[40,0,82,2]],[[4,0,83,2],[5,0,83,2],[6,0,83,2],[7,0,83,2],[8,0,83,2],[9,0,83,7],[10,0,83,7],[11,0,83,7],[12,0,83,7],[13,0,83,7],[14,0,83,7],[15,0,83,13],[16,0,83,14],[17,0,83,14],[18,0,83,14],[19,0,83,17],[20,0,83,17],[21,0,83,19],[22,0,83,19],[23,0,83,19],[24,0,83,22],[25,0,83,23],[26,0,83,23],[27,0,83,23],[28,0,83,23],[29,0,83,27],[30,0,83,27],[31,0,83,27],[32,0,83,27],[33,0,83,27],[34,0,83,27],[35,0,83,33],[36,0,83,34],[37,0,83,34],[38,0,83,34],[39,0,83,34],[40,0,83,34],[41,0,83,34],[42,0,83,34],[43,0,83,41],[44,0,83,42],[45,0,83,42],[46,0,83,42],[47,0,83,42],[48,0,83,46],[49,0,83,47],[50,0,83,47],[51,0,83,49]],[[8,0,84,4],[9,0,84,4],[10,0,84,4],[11,0,84,4],[12,0,84,4],[13,0,84,4],[14,0,84,4],[15,0,84,4],[16,0,84,4],[17,0,84,4],[18,0,84,4],[19,0,84,4],[20,0,84,4],[21,0,84,4],[22,0,84,4],[23,0,84,4],[24,0,84,4],[25,0,84,4],[26,0,84,4],[27,0,84,4],[28,0,84,4],[29,0,84,4],[30,0,84,4],[31,0,84,4],[32,0,84,4],[33,0,84,4],[34,0,84,4],[35,0,84,4],[36,0,84,4],[37,0,84,4],[38,0,84,4],[39,0,84,4],[40,0,84,4],[41,0,84,4],[42,0,84,4],[43,0,84,4],[44,0,84,4],[45,0,84,4],[46,0,84,4],[47,0,84,4],[48,0,84,4],[49,0,84,4],[50,0,84,4],[51,0,84,4],[52,0,84,4],[53,0,84,4],[54,0,84,4],[55,0,84,4],[56,0,84,4],[57,0,84,4],[58,0,84,4],[59,0,84,4],[60,0,84,4],[61,0,84,4],[62,0,84,4],[63,0,84,4],[64,0,84,4],[65,0,84,4],[66,0,84,4],[67,0,84,4],[68,0,84,4]],[[8,0,85,4],[9,0,85,4],[10,0,85,4],[11,0,85,4],[12,0,85,8],[13,0,85,9],[14,0,85,9],[15,0,85,9],[16,0,85,12],[17,0,85,13],[18,0,85,13],[19,0,85,13],[20,0,85,16],[21,0,85,16],[22,0,85,16],[23,0,85,16],[24,0,85,16],[25,0,85,16],[26,0,85,16],[27,0,85,16],[28,0,85,16],[29,0,85,16],[30,0,85,16],[31,0,85,27],[32,0,85,28],[33,0,85,28],[34,0,85,28],[35,0,85,31],[36,0,85,32]],[[4,0,86,2]],[[4,0,88,2],[5,0,88,2],[6,0,88,2],[7,0,88,2],[8,0,88,2],[9,0,88,2],[10,0,88,2],[11,0,88,9],[12,0,88,9],[13,0,88,9],[14,0,88,9],[15,0,88,18]],[[0,0,89,0]]],"ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ import type { FetchResponse, ParseAsResponse } from 'openapi-fetch';
2
+ import type { MediaType, ResponseObjectMap, SuccessResponse } from 'openapi-typescript-helpers';
3
+ /**
4
+ * Transform a response from the API
5
+ * @param resp - The response to transform
6
+ * @throws HTTPError if the response is an error
7
+ * @returns The transformed response
8
+ */
9
+ export declare function transformResponse<T extends Record<string | number, unknown>, Options, Media extends MediaType>(resp: FetchResponse<T, Options, Media>): ParseAsResponse<SuccessResponse<ResponseObjectMap<T>, Media>, Options> | undefined | never;
10
+ export declare function isIsoDateString(value: unknown): value is string;
11
+ export declare function decodeDates<T>(data: T): T;
12
+ export declare function encodeDates<T>(data: T): T;
@@ -0,0 +1,89 @@
1
+ "use strict";
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
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.OpenMeter = void 0;
37
+ const openapi_fetch_1 = __importStar(require("openapi-fetch"));
38
+ const utils_js_1 = require("../client/utils.cjs");
39
+ /**
40
+ * OpenMeter Portal Client
41
+ * Access to the customer portal.
42
+ */
43
+ class OpenMeter {
44
+ client;
45
+ constructor(config) {
46
+ this.client = (0, openapi_fetch_1.default)({
47
+ ...config,
48
+ headers: {
49
+ ...config.headers,
50
+ Authorization: `Bearer ${config.portalToken}`,
51
+ },
52
+ querySerializer: (q) => (0, openapi_fetch_1.createQuerySerializer)({
53
+ array: {
54
+ explode: true,
55
+ style: 'form',
56
+ },
57
+ object: {
58
+ explode: true,
59
+ style: 'deepObject',
60
+ },
61
+ })((0, utils_js_1.encodeDates)(q)),
62
+ });
63
+ }
64
+ /**
65
+ * Query usage data for a meter by slug for customer portal.
66
+ * This endpoint is publicly exposable to consumers.
67
+ * @param meterSlug - The slug of the meter
68
+ * @param query - The query parameters
69
+ * @param signal - An optional abort signal
70
+ * @returns The meter data
71
+ */
72
+ async query(meterSlug, query, options) {
73
+ const resp = await this.client.GET('/api/v1/portal/meters/{meterSlug}/query', {
74
+ headers: {
75
+ Accept: 'application/json',
76
+ },
77
+ params: {
78
+ path: {
79
+ meterSlug,
80
+ },
81
+ query,
82
+ },
83
+ ...options,
84
+ });
85
+ return (0, utils_js_1.transformResponse)(resp);
86
+ }
87
+ }
88
+ exports.OpenMeter = OpenMeter;
89
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../../../src/portal/index.ts"],"sourcesContent":[null],"mappings":[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[[0,0,1,0],[1,0,1,0],[2,0,1,0],[3,0,1,0],[4,0,1,0],[5,0,1,0],[6,0,1,0],[7,0,1,0],[8,0,1,0],[9,0,1,0],[10,0,1,0],[11,0,1,0],[12,0,1,0],[13,0,1,0],[14,0,1,0],[15,0,1,0],[16,0,1,0],[17,0,1,0],[18,0,1,0],[19,0,1,0],[20,0,1,0],[21,0,1,0],[22,0,1,0],[23,0,1,0],[24,0,1,0],[25,0,1,0],[26,0,1,0],[27,0,1,0],[28,0,1,0],[29,0,1,0],[30,0,1,0],[31,0,1,0],[32,0,1,0],[33,0,1,0],[34,0,1,0],[35,0,1,0],[36,0,1,0],[37,0,1,0],[38,0,1,0],[39,0,1,0],[40,0,1,0],[41,0,1,0],[42,0,1,0],[43,0,1,0],[44,0,1,0],[45,0,1,0],[46,0,1,0],[47,0,1,0],[48,0,1,0],[49,0,1,0],[50,0,1,0],[51,0,1,0],[52,0,1,0],[53,0,1,0],[54,0,1,0],[55,0,1,0],[56,0,1,0],[57,0,1,0],[58,0,1,0],[59,0,1,0],[60,0,1,0],[61,0,1,0],[62,0,1,0]],[[0,0,4,0],[1,0,4,0],[2,0,4,0],[3,0,4,0],[4,0,4,0],[5,0,4,0],[6,0,4,0],[7,0,4,0],[8,0,4,0],[9,0,4,0],[10,0,4,0],[11,0,4,0],[12,0,4,0],[13,0,4,0],[14,0,4,0],[15,0,4,0],[16,0,4,0],[17,0,4,0],[18,0,4,0],[19,0,4,0],[20,0,4,0],[21,0,4,0],[22,0,4,0],[23,0,4,0],[24,0,4,0],[25,0,4,0],[26,0,4,0],[27,0,4,0],[28,0,4,0],[47,0,4,0],[48,0,4,0],[49,0,4,0]],[[0,0,16,0],[1,0,16,0],[2,0,16,0]],[],[],[],[[0,0,20,0],[1,0,20,0],[2,0,20,0],[3,0,20,0],[4,0,20,0],[5,0,20,0],[6,0,20,13],[7,0,20,13],[8,0,20,13],[9,0,20,13],[10,0,20,13],[11,0,20,13],[12,0,20,13],[13,0,20,13],[14,0,20,13],[15,0,20,22],[16,0,20,22]],[[4,0,21,10],[5,0,21,10],[6,0,21,10],[7,0,21,10],[8,0,21,10],[9,0,21,10],[10,0,21,16]],[[4,0,23,2],[5,0,23,2],[6,0,23,2],[7,0,23,2],[8,0,23,2],[9,0,23,2],[10,0,23,2],[11,0,23,2],[12,0,23,2],[13,0,23,2],[14,0,23,2],[15,0,23,2],[16,0,23,14],[17,0,23,14],[18,0,23,14],[19,0,23,14],[20,0,23,14],[21,0,23,14],[22,0,23,28],[23,0,23,28],[24,0,23,28]],[[8,0,24,4],[9,0,24,4],[10,0,24,4],[11,0,24,4],[12,0,24,8],[13,0,24,9],[14,0,24,9],[15,0,24,9],[16,0,24,9],[17,0,24,9],[18,0,24,9],[19,0,24,15],[20,0,24,15],[21,0,24,15],[22,0,24,18],[23,0,24,18],[24,0,24,18],[25,0,24,18],[26,0,24,18],[27,0,24,18],[28,0,24,18],[29,0,24,18],[30,0,24,18],[31,0,24,18],[32,0,24,18],[33,0,24,18],[34,0,24,18],[35,0,24,18],[36,0,24,18],[37,0,24,18],[38,0,24,18],[39,0,24,18],[40,0,24,18],[41,0,24,18],[42,0,24,18],[43,0,24,18],[44,0,24,18],[45,0,24,18],[46,0,24,18],[47,0,24,18],[48,0,24,18],[49,0,24,30],[50,0,24,30],[51,0,24,38]],[[12,0,25,6],[13,0,25,6],[14,0,25,6],[15,0,25,9],[16,0,25,9],[17,0,25,9],[18,0,25,9],[19,0,25,9],[20,0,25,9],[21,0,25,15]],[[12,0,26,6],[13,0,26,6],[14,0,26,6],[15,0,26,6],[16,0,26,6],[17,0,26,6],[18,0,26,6],[19,0,26,13],[20,0,26,13],[21,0,26,15]],[[16,0,27,8],[17,0,27,8],[18,0,27,8],[19,0,27,11],[20,0,27,11],[21,0,27,11],[22,0,27,11],[23,0,27,11],[24,0,27,11],[25,0,27,17],[26,0,27,18],[27,0,27,18],[28,0,27,18],[29,0,27,18],[30,0,27,18],[31,0,27,18],[32,0,27,18],[33,0,27,25]],[[16,0,28,8],[17,0,28,8],[18,0,28,8],[19,0,28,8],[20,0,28,8],[21,0,28,8],[22,0,28,8],[23,0,28,8],[24,0,28,8],[25,0,28,8],[26,0,28,8],[27,0,28,8],[28,0,28,8],[29,0,28,21],[30,0,28,21],[31,0,28,23],[32,0,28,23],[33,0,28,23],[34,0,28,23],[35,0,28,23],[36,0,28,23],[37,0,28,23],[38,0,28,23],[39,0,28,23],[40,0,28,23],[41,0,28,33],[42,0,28,33],[43,0,28,33],[44,0,28,33],[45,0,28,33],[46,0,28,33],[47,0,28,39],[48,0,28,40],[49,0,28,40],[50,0,28,40],[51,0,28,40],[52,0,28,40],[53,0,28,40],[54,0,28,40],[55,0,28,40],[56,0,28,40],[57,0,28,40],[58,0,28,40],[59,0,28,51],[60,0,28,51],[61,0,28,53]],[[13,0,29,7]],[[12,0,30,6],[13,0,30,6],[14,0,30,6],[15,0,30,6],[16,0,30,6],[17,0,30,6],[18,0,30,6],[19,0,30,6],[20,0,30,6],[21,0,30,6],[22,0,30,6],[23,0,30,6],[24,0,30,6],[25,0,30,6],[26,0,30,6],[27,0,30,21],[28,0,30,21],[29,0,30,23],[30,0,30,24],[31,0,30,25],[32,0,30,25],[33,0,30,27],[34,0,30,27],[35,0,30,29],[36,0,31,8],[37,0,31,8],[38,0,31,8],[39,0,31,8],[40,0,31,8],[41,0,31,8],[42,0,31,8],[43,0,31,8],[44,0,31,8],[45,0,31,8],[46,0,31,8],[47,0,31,8],[48,0,31,8],[49,0,31,8],[50,0,31,8],[51,0,31,8],[52,0,31,8],[53,0,31,8],[54,0,31,8],[55,0,31,8],[56,0,31,8],[57,0,31,8],[58,0,31,8],[59,0,31,8],[60,0,31,8],[61,0,31,8],[62,0,31,8],[63,0,31,8],[64,0,31,8],[65,0,31,8],[66,0,31,8],[67,0,31,8],[68,0,31,8],[69,0,31,8],[70,0,31,8],[71,0,31,8],[72,0,31,8],[73,0,31,8],[74,0,31,8],[75,0,31,8],[76,0,31,8],[77,0,31,29],[78,0,31,29],[79,0,31,30]],[[16,0,32,10],[17,0,32,10],[18,0,32,10],[19,0,32,10],[20,0,32,10],[21,0,32,15],[22,0,32,15],[23,0,32,17]],[[20,0,33,12],[21,0,33,12],[22,0,33,12],[23,0,33,12],[24,0,33,12],[25,0,33,12],[26,0,33,12],[27,0,33,19],[28,0,33,19],[29,0,33,21],[30,0,33,21],[31,0,33,21],[32,0,33,21],[33,0,33,25]],[[20,0,34,12],[21,0,34,12],[22,0,34,12],[23,0,34,12],[24,0,34,12],[25,0,34,17],[26,0,34,17],[27,0,34,19],[28,0,34,19],[29,0,34,19],[30,0,34,19],[31,0,34,19],[32,0,34,19],[33,0,34,25]],[[17,0,35,11]],[[16,0,36,10],[17,0,36,10],[18,0,36,10],[19,0,36,10],[20,0,36,10],[21,0,36,10],[22,0,36,16],[23,0,36,16],[24,0,36,18]],[[20,0,37,12],[21,0,37,12],[22,0,37,12],[23,0,37,12],[24,0,37,12],[25,0,37,12],[26,0,37,12],[27,0,37,19],[28,0,37,19],[29,0,37,21],[30,0,37,21],[31,0,37,21],[32,0,37,21],[33,0,37,25]],[[20,0,38,12],[21,0,38,12],[22,0,38,12],[23,0,38,12],[24,0,38,12],[25,0,38,17],[26,0,38,17],[27,0,38,19],[28,0,38,19],[29,0,38,19],[30,0,38,19],[31,0,38,19],[32,0,38,19],[33,0,38,19],[34,0,38,19],[35,0,38,19],[36,0,38,19],[37,0,38,19],[38,0,38,19],[39,0,38,31]],[[17,0,39,11]],[[13,0,40,9],[14,0,40,10],[15,0,40,11],[16,0,40,11],[17,0,40,11],[18,0,40,11],[19,0,40,11],[20,0,40,11],[21,0,40,11],[22,0,40,11],[23,0,40,11],[24,0,40,11],[25,0,40,11],[26,0,40,11],[27,0,40,11],[28,0,40,11],[29,0,40,11],[30,0,40,11],[31,0,40,11],[32,0,40,11],[33,0,40,11],[34,0,40,11],[35,0,40,11],[36,0,40,11],[37,0,40,11],[38,0,40,11],[39,0,40,11],[40,0,40,11],[41,0,40,22],[42,0,40,22],[43,0,40,23],[44,0,40,24],[45,0,40,25],[46,0,40,26]],[[9,0,41,5],[10,0,41,6]],[[4,0,42,2]],[[4,0,44,2],[5,0,44,2],[6,0,44,2]],[],[],[],[],[],[],[],[[4,0,52,9],[5,0,52,9],[6,0,52,9],[7,0,52,9],[8,0,52,9],[9,0,52,14],[10,0,52,15],[11,0,52,15],[12,0,52,15],[13,0,52,15],[14,0,52,15],[15,0,52,20],[16,0,53,4],[17,0,53,4],[18,0,53,4],[19,0,53,4],[20,0,53,4],[21,0,53,4],[22,0,53,4],[23,0,53,4],[24,0,53,4],[25,0,53,21],[26,0,53,21],[27,0,54,4],[28,0,54,4],[29,0,54,4],[30,0,54,4],[31,0,54,4],[32,0,67,5],[33,0,67,5],[34,0,68,4],[35,0,68,4],[36,0,68,4],[37,0,68,4],[38,0,68,4],[39,0,68,4],[40,0,68,4],[41,0,68,28],[42,0,68,28],[43,0,68,28]],[[8,0,70,4],[9,0,70,4],[10,0,70,4],[11,0,70,4],[12,0,70,4],[13,0,70,4],[14,0,70,10],[15,0,70,10],[16,0,70,10],[17,0,70,10],[18,0,70,14],[19,0,70,14],[20,0,70,14],[21,0,70,17],[22,0,70,17],[23,0,70,17],[24,0,70,17],[25,0,70,17],[26,0,70,17],[27,0,70,23],[28,0,70,23],[29,0,70,23],[30,0,70,23],[31,0,70,27],[32,0,70,28],[33,0,70,28],[34,0,70,28],[35,0,70,28],[36,0,70,28],[37,0,70,28],[38,0,70,34],[39,0,70,35],[40,0,70,35],[41,0,70,35],[42,0,70,38],[43,0,71,6],[44,0,71,6],[45,0,71,6],[46,0,71,6],[47,0,71,6],[48,0,71,6],[49,0,71,6],[50,0,71,6],[51,0,71,6],[52,0,71,6],[53,0,71,6],[54,0,71,6],[55,0,71,6],[56,0,71,6],[57,0,71,6],[58,0,71,6],[59,0,71,6],[60,0,71,6],[61,0,71,6],[62,0,71,6],[63,0,71,6],[64,0,71,6],[65,0,71,6],[66,0,71,6],[67,0,71,6],[68,0,71,6],[69,0,71,6],[70,0,71,6],[71,0,71,6],[72,0,71,6],[73,0,71,6],[74,0,71,6],[75,0,71,6],[76,0,71,6],[77,0,71,6],[78,0,71,6],[79,0,71,6],[80,0,71,6],[81,0,71,6],[82,0,71,6],[83,0,71,6],[84,0,71,47],[85,0,71,47],[86,0,72,6]],[[12,0,73,8],[13,0,73,8],[14,0,73,8],[15,0,73,8],[16,0,73,8],[17,0,73,8],[18,0,73,8],[19,0,73,15],[20,0,73,15],[21,0,73,17]],[[16,0,74,10],[17,0,74,10],[18,0,74,10],[19,0,74,10],[20,0,74,10],[21,0,74,10],[22,0,74,16],[23,0,74,16],[24,0,74,18],[25,0,74,18],[26,0,74,18],[27,0,74,18],[28,0,74,18],[29,0,74,18],[30,0,74,18],[31,0,74,18],[32,0,74,18],[33,0,74,18],[34,0,74,18],[35,0,74,18],[36,0,74,18],[37,0,74,18],[38,0,74,18],[39,0,74,18],[40,0,74,18],[41,0,74,18],[42,0,74,36]],[[13,0,75,9]],[[12,0,76,8],[13,0,76,8],[14,0,76,8],[15,0,76,8],[16,0,76,8],[17,0,76,8],[18,0,76,14],[19,0,76,14],[20,0,76,16]],[[16,0,77,10],[17,0,77,10],[18,0,77,10],[19,0,77,10],[20,0,77,14],[21,0,77,14],[22,0,77,16]],[[20,0,78,12],[21,0,78,12],[22,0,78,12],[23,0,78,12],[24,0,78,12],[25,0,78,12],[26,0,78,12],[27,0,78,12],[28,0,78,12],[29,0,78,21]],[[17,0,79,11]],[[16,0,80,10],[17,0,80,10],[18,0,80,10],[19,0,80,10],[20,0,80,10],[21,0,80,15]],[[13,0,81,9]],[[12,0,82,8],[13,0,82,8],[14,0,82,8],[15,0,82,11],[16,0,82,11],[17,0,82,11],[18,0,82,11],[19,0,82,11],[20,0,82,11],[21,0,82,11],[22,0,82,18]],[[9,0,83,7],[10,0,84,5]],[[8,0,86,4],[9,0,86,4],[10,0,86,4],[11,0,86,4],[12,0,86,4],[13,0,86,4],[14,0,86,4],[15,0,86,11],[16,0,86,11],[17,0,86,11],[18,0,86,11],[19,0,86,11],[20,0,86,11],[21,0,86,11],[22,0,86,11],[23,0,86,11],[24,0,86,11],[25,0,86,11],[26,0,86,11],[27,0,86,11],[28,0,86,11],[29,0,86,11],[30,0,86,11],[31,0,86,11],[32,0,86,11],[33,0,86,11],[34,0,86,11],[35,0,86,11],[36,0,86,11],[37,0,86,11],[38,0,86,11],[39,0,86,11],[40,0,86,11],[41,0,86,11],[42,0,86,11],[43,0,86,11],[44,0,86,11],[45,0,86,11],[46,0,86,11],[47,0,86,28],[48,0,86,28],[49,0,87,6],[50,0,87,6],[51,0,87,6],[52,0,87,6],[53,0,87,10],[54,0,88,90]],[[4,0,89,2]],[],[[0,0,20,0],[1,0,20,0],[2,0,20,0],[3,0,20,0],[4,0,20,0],[5,0,20,0],[6,0,20,0],[7,0,20,0],[8,0,20,0],[9,0,20,0],[10,0,20,0],[11,0,20,0],[12,0,20,0],[13,0,20,0],[14,0,20,0],[15,0,20,0],[16,0,20,0],[17,0,20,0],[18,0,20,0],[19,0,20,0],[20,0,20,0],[21,0,20,0],[22,0,20,0],[23,0,20,0],[24,0,20,0],[25,0,20,0],[26,0,20,0],[27,0,20,0],[28,0,20,0],[29,0,20,0]]],"ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ import type { ClientOptions } from 'openapi-fetch';
2
+ import type { RequestOptions } from '../client/common.cjs';
3
+ /**
4
+ * Portal Config
5
+ */
6
+ export type Config = Pick<ClientOptions, 'baseUrl' | 'headers' | 'fetch' | 'Request' | 'requestInitExt'> & {
7
+ portalToken: string;
8
+ };
9
+ /**
10
+ * OpenMeter Portal Client
11
+ * Access to the customer portal.
12
+ */
13
+ export declare class OpenMeter {
14
+ private client;
15
+ constructor(config: Config);
16
+ /**
17
+ * Query usage data for a meter by slug for customer portal.
18
+ * This endpoint is publicly exposable to consumers.
19
+ * @param meterSlug - The slug of the meter
20
+ * @param query - The query parameters
21
+ * @param signal - An optional abort signal
22
+ * @returns The meter data
23
+ */
24
+ query(meterSlug: string, query?: {
25
+ /** @description Start date-time in RFC 3339 format. Inclusive. */
26
+ from?: string | Date;
27
+ /** @description End date-time in RFC 3339 format. Inclusive. */
28
+ to?: string | Date;
29
+ /** @description If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group. */
30
+ windowSize?: 'MINUTE' | 'HOUR' | 'DAY';
31
+ /** @description The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones). If not specified, the UTC timezone will be used. */
32
+ windowTimeZone?: string;
33
+ /** @description Simple filter for group bys with exact match. */
34
+ filterGroupBy?: Record<string, string>;
35
+ /** @description If not specified a single aggregate will be returned for each subject and time window. `subject` is a reserved group by value. */
36
+ groupBy?: string[];
37
+ }, options?: RequestOptions): Promise<{
38
+ from?: Date;
39
+ to?: Date;
40
+ windowSize?: import("../client/schemas.cjs").components["schemas"]["WindowSize"];
41
+ data: import("../client/schemas.cjs").components["schemas"]["MeterQueryRow"][];
42
+ }>;
43
+ }
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ "use strict";
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.OpenMeterContext = void 0;
19
+ exports.OpenMeterProvider = OpenMeterProvider;
20
+ exports.useOpenMeter = useOpenMeter;
21
+ const jsx_runtime_1 = require("react/jsx-runtime");
22
+ const react_1 = require("react");
23
+ __exportStar(require("../portal/index.cjs"), exports);
24
+ exports.OpenMeterContext = (0, react_1.createContext)(null);
25
+ function OpenMeterProvider({ children, value }) {
26
+ return ((0, jsx_runtime_1.jsx)(exports.OpenMeterContext.Provider, { value: value, children: children }));
27
+ }
28
+ function useOpenMeter() {
29
+ const context = (0, react_1.useContext)(exports.OpenMeterContext);
30
+ if (typeof context === 'undefined') {
31
+ throw new Error('useOpenMeter must be used within a OpenMeterProvider');
32
+ }
33
+ return context;
34
+ }
35
+ //# sourceMappingURL=context.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.cjs","names":[],"sources":["../../../../src/react/context.tsx"],"sourcesContent":[null],"mappings":[[[0,0,0,0],[1,0,0,0],[2,0,0,0],[3,0,0,0],[4,0,0,0],[5,0,0,0],[6,0,0,0],[7,0,0,0],[8,0,0,0],[9,0,0,0],[10,0,0,0],[11,0,0,0],[12,0,0,12]],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[[0,0,14,0],[1,0,14,0],[2,0,14,0],[3,0,14,0],[4,0,14,0],[5,0,14,0],[6,0,14,0],[7,0,14,0],[8,0,14,0],[9,0,14,0],[10,0,14,0],[11,0,14,0],[12,0,14,0],[13,0,14,0],[14,0,14,0],[15,0,14,0],[16,0,14,0],[17,0,14,0],[18,0,14,0],[19,0,14,0],[20,0,14,0],[21,0,14,0],[22,0,14,0],[23,0,14,0],[24,0,14,0],[25,0,14,0],[26,0,14,0],[27,0,14,0],[28,0,14,0],[29,0,14,0],[30,0,14,0],[31,0,14,0],[32,0,14,0],[33,0,14,0],[34,0,14,0],[35,0,14,0],[36,0,14,0],[37,0,14,0],[38,0,14,0],[39,0,14,0],[40,0,14,0],[41,0,14,0],[42,0,14,0],[43,0,14,0],[44,0,14,0],[45,0,14,0]],[[0,0,22,0],[1,0,22,0],[2,0,22,0],[3,0,22,0],[4,0,22,0],[5,0,22,0],[6,0,22,0],[7,0,22,0],[8,0,22,0],[9,0,22,0],[10,0,22,0],[11,0,22,0],[12,0,22,0],[13,0,22,0],[14,0,22,0],[15,0,22,0],[16,0,22,0],[17,0,22,0],[18,0,22,0],[19,0,22,0],[20,0,22,0],[21,0,22,0],[22,0,22,0],[23,0,22,0],[24,0,22,0],[25,0,22,0],[26,0,22,0],[27,0,22,0],[28,0,22,0],[29,0,22,0],[30,0,22,0],[31,0,22,0],[32,0,22,0],[33,0,22,0],[34,0,22,0],[35,0,22,0]],[],[[0,0,2,0],[1,0,2,0],[2,0,2,0],[3,0,2,0],[4,0,2,0],[5,0,2,0],[6,0,2,0],[7,0,2,0],[8,0,2,0],[9,0,2,0],[10,0,2,0],[11,0,2,0],[12,0,2,0],[13,0,2,0],[14,0,2,0],[15,0,2,0],[16,0,2,0],[17,0,2,0],[18,0,2,0],[19,0,2,0],[20,0,2,0],[21,0,2,0],[22,0,2,0],[23,0,2,0],[24,0,2,0],[25,0,2,0],[26,0,2,0],[27,0,2,0],[28,0,2,0],[29,0,2,0],[30,0,2,0],[31,0,2,0],[32,0,2,0]],[[0,0,5,0],[1,0,5,0],[2,0,5,0],[3,0,5,0],[4,0,5,0],[5,0,5,0],[6,0,5,0],[7,0,5,0],[8,0,5,0],[9,0,5,0],[10,0,5,0],[11,0,5,0],[12,0,5,0],[13,0,5,0],[14,0,5,0],[15,0,5,0],[16,0,5,0],[17,0,5,0],[18,0,5,0],[19,0,5,0],[20,0,5,0],[21,0,5,0],[22,0,5,0],[41,0,5,0],[42,0,5,0],[43,0,5,0],[44,0,5,0],[45,0,5,0],[46,0,5,0],[47,0,5,0],[48,0,5,0],[49,0,5,0],[50,0,5,0],[51,0,5,0],[52,0,5,0],[53,0,5,0]],[[0,0,7,13],[1,0,7,13],[2,0,7,13],[3,0,7,13],[4,0,7,13],[5,0,7,13],[6,0,7,13],[7,0,7,13],[8,0,7,13],[9,0,7,13],[10,0,7,13],[11,0,7,13],[12,0,7,13],[13,0,7,13],[14,0,7,13],[15,0,7,13],[16,0,7,13],[17,0,7,13],[18,0,7,13],[19,0,7,13],[20,0,7,13],[21,0,7,13],[22,0,7,13],[23,0,7,13],[24,0,7,29],[25,0,7,29],[26,0,7,29],[27,0,7,32],[28,0,7,32],[29,0,7,32],[30,0,7,32],[31,0,7,32],[32,0,7,32],[33,0,7,32],[34,0,7,32],[35,0,7,32],[36,0,7,32],[37,0,7,32],[38,0,7,32],[39,0,7,32],[40,0,7,32],[41,0,7,32],[42,0,7,32],[43,0,7,32],[44,0,7,32],[45,0,7,32],[46,0,7,32],[47,0,7,32],[48,0,7,32],[49,0,7,32],[50,0,7,32],[51,0,7,32],[52,0,7,45],[53,0,7,45],[54,0,7,64],[55,0,7,64],[56,0,7,64],[57,0,7,64],[58,0,7,68],[59,0,7,69]],[[0,0,14,0],[1,0,14,0],[2,0,14,0],[3,0,14,0],[4,0,14,0],[5,0,14,0],[6,0,14,0],[7,0,14,0],[8,0,14,0],[9,0,14,16],[10,0,14,16],[11,0,14,16],[12,0,14,16],[13,0,14,16],[14,0,14,16],[15,0,14,16],[16,0,14,16],[17,0,14,16],[18,0,14,16],[19,0,14,16],[20,0,14,16],[21,0,14,16],[22,0,14,16],[23,0,14,16],[24,0,14,16],[25,0,14,16],[26,0,14,33],[27,0,14,34],[28,0,14,34],[29,0,14,36],[30,0,14,36],[31,0,14,36],[32,0,14,36],[33,0,14,36],[34,0,14,36],[35,0,14,36],[36,0,14,36],[37,0,14,44],[38,0,14,44],[39,0,14,46],[40,0,14,46],[41,0,14,46],[42,0,14,46],[43,0,14,46],[44,0,14,51],[45,0,14,51],[46,0,14,77],[47,0,14,77],[48,0,14,77]],[[4,0,15,2],[5,0,15,2],[6,0,15,2],[7,0,15,2],[8,0,15,2],[9,0,15,2],[10,0,15,2],[11,0,15,9],[12,0,16,4],[13,0,16,4],[14,0,16,4],[15,0,16,4],[16,0,16,4],[17,0,16,4],[18,0,16,4],[19,0,16,4],[20,0,16,4],[21,0,16,4],[22,0,16,4],[23,0,16,4],[24,0,16,4],[25,0,16,4],[26,0,16,4],[27,0,16,4],[28,0,16,4],[29,0,16,4],[30,0,16,4],[31,0,16,4],[32,0,16,4],[33,0,16,4],[34,0,16,4],[35,0,16,5],[36,0,16,5],[37,0,16,5],[38,0,16,5],[39,0,16,5],[40,0,16,5],[41,0,16,5],[42,0,16,5],[43,0,16,5],[44,0,16,5],[45,0,16,5],[46,0,16,5],[47,0,16,5],[48,0,16,5],[49,0,16,5],[50,0,16,5],[51,0,16,5],[52,0,16,5],[53,0,16,5],[54,0,16,5],[55,0,16,5],[56,0,16,5],[57,0,16,5],[58,0,16,5],[59,0,16,21],[60,0,16,22],[61,0,16,22],[62,0,16,22],[63,0,16,22],[64,0,16,22],[65,0,16,22],[66,0,16,22],[67,0,16,22],[68,0,16,30],[69,0,16,30],[70,0,16,30],[71,0,16,30],[72,0,16,31],[73,0,16,31],[74,0,16,31],[75,0,16,31],[76,0,16,31],[77,0,16,36],[78,0,16,36],[79,0,16,38],[80,0,16,38],[81,0,16,38],[82,0,16,38],[83,0,16,38],[84,0,16,43],[85,0,16,43],[86,0,16,43],[87,0,16,43],[88,0,16,43],[89,0,16,43],[90,0,16,43],[91,0,16,43],[92,0,16,43],[93,0,16,43],[94,0,16,43],[95,0,16,43],[96,0,17,7],[97,0,17,7],[98,0,17,7],[99,0,17,7],[100,0,17,7],[101,0,17,7],[102,0,17,7],[103,0,17,7],[104,0,17,15],[105,0,17,15],[106,0,17,15],[107,0,18,32],[108,0,19,3]],[[0,0,20,0]],[[0,0,22,0],[1,0,22,0],[2,0,22,0],[3,0,22,0],[4,0,22,0],[5,0,22,0],[6,0,22,0],[7,0,22,0],[8,0,22,0],[9,0,22,16],[10,0,22,16],[11,0,22,16],[12,0,22,16],[13,0,22,16],[14,0,22,16],[15,0,22,16],[16,0,22,16],[17,0,22,16],[18,0,22,16],[19,0,22,16],[20,0,22,16],[21,0,22,28],[22,0,22,28],[23,0,22,28],[24,0,22,28]],[[4,0,23,2],[5,0,23,2],[6,0,23,2],[7,0,23,2],[8,0,23,2],[9,0,23,2],[10,0,23,8],[11,0,23,8],[12,0,23,8],[13,0,23,8],[14,0,23,8],[15,0,23,8],[16,0,23,8],[17,0,23,15],[18,0,23,15],[19,0,23,15],[20,0,23,18],[21,0,23,18],[22,0,23,18],[23,0,23,18],[24,0,23,18],[25,0,23,18],[26,0,23,18],[27,0,23,18],[28,0,23,18],[29,0,23,18],[30,0,23,18],[31,0,23,18],[32,0,23,18],[33,0,23,18],[34,0,23,18],[35,0,23,18],[36,0,23,18],[37,0,23,18],[38,0,23,18],[39,0,23,18],[40,0,23,18],[41,0,23,18],[42,0,23,28],[43,0,23,28],[44,0,23,29],[45,0,23,29],[46,0,23,29],[47,0,23,29],[48,0,23,29],[49,0,23,29],[50,0,23,29],[51,0,23,29],[52,0,23,29],[53,0,23,29],[54,0,23,29],[55,0,23,29],[56,0,23,29],[57,0,23,29],[58,0,23,29],[59,0,23,29],[60,0,23,29],[61,0,23,29],[62,0,23,29],[63,0,23,29],[64,0,23,29],[65,0,23,29],[66,0,23,29],[67,0,23,29],[68,0,23,45],[69,0,23,46]],[[4,0,24,2],[5,0,24,2],[6,0,24,2],[7,0,24,2],[8,0,24,6],[9,0,24,6],[10,0,24,6],[11,0,24,6],[12,0,24,6],[13,0,24,6],[14,0,24,6],[15,0,24,13],[16,0,24,13],[17,0,24,13],[18,0,24,13],[19,0,24,13],[20,0,24,13],[21,0,24,13],[22,0,24,20],[23,0,24,20],[24,0,24,20],[25,0,24,20],[26,0,24,20],[27,0,24,25],[28,0,24,25],[29,0,24,25],[30,0,24,25],[31,0,24,25],[32,0,24,25],[33,0,24,25],[34,0,24,25],[35,0,24,25],[36,0,24,25],[37,0,24,25],[38,0,24,36],[39,0,24,36],[40,0,24,38]],[[8,0,25,4],[9,0,25,4],[10,0,25,4],[11,0,25,4],[12,0,25,4],[13,0,25,4],[14,0,25,10],[15,0,25,10],[16,0,25,10],[17,0,25,10],[18,0,25,14],[19,0,25,14],[20,0,25,14],[21,0,25,14],[22,0,25,14],[23,0,25,19],[24,0,25,20],[25,0,25,20],[26,0,25,20],[27,0,25,20],[28,0,25,20],[29,0,25,20],[30,0,25,20],[31,0,25,20],[32,0,25,20],[33,0,25,20],[34,0,25,20],[35,0,25,20],[36,0,25,20],[37,0,25,20],[38,0,25,20],[39,0,25,20],[40,0,25,20],[41,0,25,20],[42,0,25,20],[43,0,25,20],[44,0,25,20],[45,0,25,20],[46,0,25,20],[47,0,25,20],[48,0,25,20],[49,0,25,20],[50,0,25,20],[51,0,25,20],[52,0,25,20],[53,0,25,20],[54,0,25,20],[55,0,25,20],[56,0,25,20],[57,0,25,20],[58,0,25,20],[59,0,25,20],[60,0,25,20],[61,0,25,20],[62,0,25,20],[63,0,25,20],[64,0,25,20],[65,0,25,20],[66,0,25,20],[67,0,25,20],[68,0,25,20],[69,0,25,20],[70,0,25,20],[71,0,25,20],[72,0,25,20],[73,0,25,20],[74,0,25,20],[75,0,25,20],[76,0,25,20],[77,0,25,20],[78,0,25,74],[79,0,25,75]],[[4,0,26,2]],[[4,0,28,2],[5,0,28,2],[6,0,28,2],[7,0,28,2],[8,0,28,2],[9,0,28,2],[10,0,28,2],[11,0,28,9],[12,0,28,9],[13,0,28,9],[14,0,28,9],[15,0,28,9],[16,0,28,9],[17,0,28,9],[18,0,28,16]],[[0,0,29,0]]],"ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ import type { OpenMeter } from '../portal/index.cjs';
2
+ export * from '../portal/index.cjs';
3
+ export declare const OpenMeterContext: import("react").Context<OpenMeter | null>;
4
+ export type OpenMeterProviderProps = {
5
+ children?: React.ReactNode;
6
+ value: OpenMeter | null;
7
+ };
8
+ export declare function OpenMeterProvider({ children, value }: OpenMeterProviderProps): import("react").JSX.Element;
9
+ export declare function useOpenMeter(): OpenMeter | null;