@pontive/pontkit-core 1.42.0 → 1.44.0
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/README.md +1 -0
- package/catalog.json +1 -1
- package/dist/core/format.d.ts +30 -0
- package/dist/core/messages.d.ts +115 -0
- package/dist/custom-elements.json +4829 -300
- package/dist/index.mjs +6006 -3783
- package/dist/index.mjs.map +1 -1
- package/dist/kit/billing-portal/billing-portal.d.ts +192 -0
- package/dist/kit/billing-portal/rules.d.ts +36 -0
- package/dist/kit/checkout/billing-story-fakes.d.ts +78 -0
- package/dist/kit/checkout/checkout.d.ts +147 -0
- package/dist/kit/checkout/display.d.ts +30 -0
- package/dist/kit/checkout/errors.d.ts +28 -0
- package/dist/kit/checkout/packages.d.ts +13 -0
- package/dist/kit/checkout/payment.d.ts +158 -0
- package/dist/kit/checkout/stripe.d.ts +98 -0
- package/dist/kit/index.d.ts +2 -0
- package/dist/kit/provider/account-billing.d.ts +384 -0
- package/dist/kit/provider/account-client.d.ts +37 -3
- package/dist/kit/provider/provider.d.ts +1 -0
- package/dist/styles.css +837 -116
- package/dist/theme/types.d.ts +5 -1
- package/dist/theme/vocabulary.d.ts +7 -2
- package/dist/theme-golden.json +251 -59
- package/dist/theme.mjs +127 -110
- package/dist/theme.mjs.map +1 -1
- package/dist/tokens.json +400 -106
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AccountBillingApi } from './account-billing';
|
|
1
2
|
import { SessionChange } from './sdk';
|
|
2
3
|
/**
|
|
3
4
|
* # `AccountClient`: what the account widgets talk to (migration decision D9, tracker W-12)
|
|
@@ -235,8 +236,11 @@ export interface AccountMembersApi {
|
|
|
235
236
|
*/
|
|
236
237
|
requestedScopes?(): string[];
|
|
237
238
|
}
|
|
238
|
-
/**
|
|
239
|
-
|
|
239
|
+
/**
|
|
240
|
+
* The account widgets' client: the session part, plus the parts the settings, members and billing
|
|
241
|
+
* widgets need. The billing part is `account-billing.ts` (billing-svc docs/m17-design.md, Part 3).
|
|
242
|
+
*/
|
|
243
|
+
export interface AccountClient extends AccountSessionApi, Partial<AccountProfileApi>, Partial<AccountMembersApi>, Partial<AccountBillingApi> {
|
|
240
244
|
}
|
|
241
245
|
/**
|
|
242
246
|
* `pont:account-client`: the account widgets' client. Undefined until the provider has configured
|
|
@@ -313,7 +317,7 @@ export declare function managementBase(apiBaseUrl: string | undefined): string |
|
|
|
313
317
|
* (`getManagementToken`, cached and coalesced by the SDK; carry-over §5). What the legacy
|
|
314
318
|
* `src/service/http` did, as one object.
|
|
315
319
|
*/
|
|
316
|
-
export declare class SdkAccountClient implements AccountSessionApi, AccountProfileApi, AccountMembersApi {
|
|
320
|
+
export declare class SdkAccountClient implements AccountSessionApi, AccountProfileApi, AccountMembersApi, AccountBillingApi {
|
|
317
321
|
readonly sdk: AccountSdk;
|
|
318
322
|
readonly apiBaseUrl: string;
|
|
319
323
|
readonly appId: string | undefined;
|
|
@@ -321,6 +325,34 @@ export declare class SdkAccountClient implements AccountSessionApi, AccountProfi
|
|
|
321
325
|
readonly scope: string | string[] | undefined;
|
|
322
326
|
private readonly fetchImpl;
|
|
323
327
|
constructor(options: AccountClientOptions);
|
|
328
|
+
readonly listBillingAccounts: AccountBillingApi["listBillingAccounts"];
|
|
329
|
+
readonly listMyContracts: AccountBillingApi["listMyContracts"];
|
|
330
|
+
readonly previewMyContractChange: AccountBillingApi["previewMyContractChange"];
|
|
331
|
+
readonly changeMyContract: AccountBillingApi["changeMyContract"];
|
|
332
|
+
readonly cancelMyContract: AccountBillingApi["cancelMyContract"];
|
|
333
|
+
readonly revokeMyContractCancellation: AccountBillingApi["revokeMyContractCancellation"];
|
|
334
|
+
readonly createMyCheckoutSession: AccountBillingApi["createMyCheckoutSession"];
|
|
335
|
+
readonly getMyCheckoutSession: AccountBillingApi["getMyCheckoutSession"];
|
|
336
|
+
readonly previewMyCheckout: AccountBillingApi["previewMyCheckout"];
|
|
337
|
+
readonly confirmMyCheckout: AccountBillingApi["confirmMyCheckout"];
|
|
338
|
+
readonly listMyInvoices: AccountBillingApi["listMyInvoices"];
|
|
339
|
+
readonly getMyInvoice: AccountBillingApi["getMyInvoice"];
|
|
340
|
+
readonly getMyInvoicePdf: AccountBillingApi["getMyInvoicePdf"];
|
|
341
|
+
readonly getMyUpcomingInvoice: AccountBillingApi["getMyUpcomingInvoice"];
|
|
342
|
+
readonly listMyCreditNotes: AccountBillingApi["listMyCreditNotes"];
|
|
343
|
+
readonly payMyInvoice: AccountBillingApi["payMyInvoice"];
|
|
344
|
+
readonly listMyPaymentMethods: AccountBillingApi["listMyPaymentMethods"];
|
|
345
|
+
readonly createMyPaymentMethodSession: AccountBillingApi["createMyPaymentMethodSession"];
|
|
346
|
+
readonly setMyDefaultPaymentMethod: AccountBillingApi["setMyDefaultPaymentMethod"];
|
|
347
|
+
readonly removeMyPaymentMethod: AccountBillingApi["removeMyPaymentMethod"];
|
|
348
|
+
readonly listMyPayments: AccountBillingApi["listMyPayments"];
|
|
349
|
+
readonly listMyBalances: AccountBillingApi["listMyBalances"];
|
|
350
|
+
readonly listMyLedgerEntries: AccountBillingApi["listMyLedgerEntries"];
|
|
351
|
+
readonly getMyUsage: AccountBillingApi["getMyUsage"];
|
|
352
|
+
readonly listMyEntitlements: AccountBillingApi["listMyEntitlements"];
|
|
353
|
+
readonly checkMyEntitlement: AccountBillingApi["checkMyEntitlement"];
|
|
354
|
+
/** One billing route with a management token (the billing scopes are only on it). */
|
|
355
|
+
private billingRequest;
|
|
324
356
|
getUser(): SessionUser | null;
|
|
325
357
|
getOrganization(): SessionOrganization | null;
|
|
326
358
|
listMyOrganizations(): Promise<MyOrganization[]>;
|
|
@@ -351,5 +383,7 @@ export declare class SdkAccountClient implements AccountSessionApi, AccountProfi
|
|
|
351
383
|
*/
|
|
352
384
|
private request;
|
|
353
385
|
}
|
|
386
|
+
/** A fresh key for one create or mutate call (pontive-api-design-spec.md, Idempotency). */
|
|
387
|
+
export declare function idempotencyKey(): string;
|
|
354
388
|
/** The default account client over `sdk`. */
|
|
355
389
|
export declare function createAccountClient(options: AccountClientOptions): SdkAccountClient;
|
|
@@ -4,6 +4,7 @@ import { AccountClient } from './account-client';
|
|
|
4
4
|
import { AuthState } from './contexts';
|
|
5
5
|
import { AppSdkConfig, ProviderSdk } from './sdk';
|
|
6
6
|
export * from './account-client';
|
|
7
|
+
export * from './account-billing';
|
|
7
8
|
export * from './account-controller';
|
|
8
9
|
export * from './account-user';
|
|
9
10
|
export * from './contexts';
|