@lukoweb/apitogo-plugin-dev-portal-billing 0.1.87 → 0.1.89

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/index.d.mts CHANGED
@@ -1,11 +1,40 @@
1
1
  import * as react_jsx_runtime0 from "react/jsx-runtime";
2
- import * as _lukoweb_apitogo_plugins0 from "@lukoweb/apitogo/plugins";
2
+ import * as _lukoweb_apitogo0 from "@lukoweb/apitogo";
3
3
  import * as _tanstack_react_query0 from "@tanstack/react-query";
4
4
 
5
5
  //#region src/pages/AccountPlansPage.d.ts
6
6
  declare const AccountPlansPage: () => react_jsx_runtime0.JSX.Element;
7
7
  //#endregion
8
+ //#region src/pages/OverviewDashboardPage.d.ts
9
+ declare const OverviewDashboardPage: () => react_jsx_runtime0.JSX.Element;
10
+ //#endregion
8
11
  //#region src/types.d.ts
12
+ type DevPortalPricingCompareRow = {
13
+ label: string;
14
+ values: string[];
15
+ };
16
+ type DevPortalPricingFaq = {
17
+ question: string;
18
+ answer: string;
19
+ };
20
+ type DevPortalBillingConfig = {
21
+ pricing?: {
22
+ title?: string;
23
+ subtitle?: string;
24
+ compareRows?: DevPortalPricingCompareRow[];
25
+ faqs?: DevPortalPricingFaq[];
26
+ }; /** Local preview plan catalog (from `apitogo.config.json` `plans`). */
27
+ previewPlans?: Array<{
28
+ sku: string;
29
+ displayName: string;
30
+ priceAmount?: number;
31
+ priceCurrency?: string;
32
+ billingPeriod?: string;
33
+ limitsJson?: string | null;
34
+ includedActionKeys?: string[];
35
+ features?: string[];
36
+ }>;
37
+ };
9
38
  type DevPortalApiKey = {
10
39
  id: string;
11
40
  name: string;
@@ -28,21 +57,6 @@ type DevPortalApiKeyListResponse = {
28
57
  header: string;
29
58
  gatewayBaseUrl: string | null;
30
59
  };
31
- type DevPortalBillingConfig = {
32
- pricing?: {
33
- title?: string;
34
- subtitle?: string;
35
- }; /** Local preview plan catalog (from `apitogo.config.json` `plans`). */
36
- previewPlans?: Array<{
37
- sku: string;
38
- displayName: string;
39
- priceAmount?: number;
40
- priceCurrency?: string;
41
- billingPeriod?: string;
42
- limitsJson?: string | null;
43
- includedActionKeys?: string[];
44
- }>;
45
- };
46
60
  //#endregion
47
61
  //#region src/components/ApiKeysPanel.d.ts
48
62
  /**
@@ -64,9 +78,10 @@ declare const PRICING_PATH = "/pricing";
64
78
  declare const CHECKOUT_PATH = "/checkout";
65
79
  declare const SUBSCRIPTIONS_PATH = "/account/subscriptions";
66
80
  declare const CREDENTIALS_PATH = "/account/credentials";
81
+ declare const USAGE_PATH = "/account/usage";
67
82
  //#endregion
68
83
  //#region src/DevPortalBillingPlugin.d.ts
69
- declare const devPortalBillingPlugin: (options?: DevPortalBillingConfig | undefined) => _lukoweb_apitogo_plugins0.ApitogoPlugin;
84
+ declare const devPortalBillingPlugin: (options?: DevPortalBillingConfig | undefined) => _lukoweb_apitogo0.ApitogoPlugin;
70
85
  //#endregion
71
86
  //#region src/hooks/useApiKeys.d.ts
72
87
  /** Thrown when the developer has hit their plan's per-developer key cap. */
@@ -186,4 +201,4 @@ declare function useCreateApiKey(): _tanstack_react_query0.UseMutationResult<Dev
186
201
  }, unknown>;
187
202
  declare function useRevokeApiKey(): _tanstack_react_query0.UseMutationResult<void, Error, string, unknown>;
188
203
  //#endregion
189
- export { API_KEY_CAP_REACHED, AccountPlansPage, ApiKeysPanel, CHECKOUT_PATH, CREDENTIALS_PATH, PRICING_PATH, SUBSCRIPTIONS_PATH, devPortalBillingPlugin, useApiKeys, useCreateApiKey, useRevokeApiKey };
204
+ export { API_KEY_CAP_REACHED, AccountPlansPage, ApiKeysPanel, CHECKOUT_PATH, CREDENTIALS_PATH, OverviewDashboardPage, PRICING_PATH, SUBSCRIPTIONS_PATH, USAGE_PATH, devPortalBillingPlugin, useApiKeys, useCreateApiKey, useRevokeApiKey };