@stripe/extensibility-sdk 0.24.1 → 0.26.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 +328 -0
- package/dist/config-values/generate.cjs +1 -1
- package/dist/config-values/generate.d.ts +2 -0
- package/dist/config-values/generate.d.ts.map +1 -1
- package/dist/config-values/generate.js +1 -1
- package/dist/extensibility-sdk-alpha.d.ts +141 -98
- package/dist/extensibility-sdk-beta.d.ts +141 -98
- package/dist/extensibility-sdk-extensions-alpha.d.ts +155 -25
- package/dist/extensibility-sdk-extensions-beta.d.ts +155 -25
- package/dist/extensibility-sdk-extensions-internal.d.ts +160 -26
- package/dist/extensibility-sdk-extensions-public.d.ts +155 -25
- package/dist/extensibility-sdk-internal-alpha.d.ts +5 -0
- package/dist/extensibility-sdk-internal-beta.d.ts +5 -0
- package/dist/extensibility-sdk-internal-internal.d.ts +5 -0
- package/dist/extensibility-sdk-internal-public.d.ts +5 -0
- package/dist/extensibility-sdk-internal.d.ts +144 -82
- package/dist/extensibility-sdk-public.d.ts +141 -98
- package/dist/extensibility-sdk-stdlib-alpha.d.ts +146 -98
- package/dist/extensibility-sdk-stdlib-beta.d.ts +146 -98
- package/dist/extensibility-sdk-stdlib-internal.d.ts +149 -82
- package/dist/extensibility-sdk-stdlib-public.d.ts +146 -98
- package/dist/extensions/billing/bill/discount_calculation.d.ts +5 -3
- package/dist/extensions/billing/customer_balance_application.d.ts +3 -1
- package/dist/extensions/billing/invoice_collection_setting.d.ts +15 -11
- package/dist/extensions/billing/prorations.d.ts +30 -21
- package/dist/extensions/billing/recurring_billing_item_handling.d.ts +41 -23
- package/dist/extensions/billing/types.d.ts +4 -4
- package/dist/extensions/core/workflows/custom_action.d.ts +6 -2
- package/dist/extensions/extend/workflows/custom_action.d.ts +6 -2
- package/dist/index.cjs +398 -163
- package/dist/index.js +395 -158
- package/dist/internal.d.ts +4 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/stdlib/brand.d.ts +16 -10
- package/dist/stdlib/brand.d.ts.map +1 -1
- package/dist/stdlib/decimal.d.ts +50 -22
- package/dist/stdlib/decimal.d.ts.map +1 -1
- package/dist/stdlib/index.cjs +398 -163
- package/dist/stdlib/index.d.ts +11 -5
- package/dist/stdlib/index.d.ts.map +1 -1
- package/dist/stdlib/index.js +395 -158
- package/dist/stdlib/refs.d.ts +12 -20
- package/dist/stdlib/refs.d.ts.map +1 -1
- package/dist/stdlib/scalars.d.ts +51 -36
- package/dist/stdlib/scalars.d.ts.map +1 -1
- package/dist/stdlib/to-const.d.ts +35 -0
- package/dist/stdlib/to-const.d.ts.map +1 -0
- package/dist/stdlib/transforms.d.ts +1 -1
- package/dist/stdlib/type-utils.d.ts +3 -1
- package/dist/stdlib/types.d.ts +11 -11
- package/dist/stdlib/types.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/dist/api-surface.d.ts.map +0 -1
|
@@ -18,15 +18,15 @@ export interface TimeRange {
|
|
|
18
18
|
}
|
|
19
19
|
/** @public */
|
|
20
20
|
export type AnyTimeRange = {
|
|
21
|
-
at: Date;
|
|
22
21
|
value: 'oneTime';
|
|
22
|
+
at: Date;
|
|
23
23
|
} | {
|
|
24
|
-
endDate: Date;
|
|
25
|
-
startDate: Date;
|
|
26
24
|
value: 'timeRange';
|
|
25
|
+
startDate: Date;
|
|
26
|
+
endDate: Date;
|
|
27
27
|
} | {
|
|
28
|
-
otherValue: string;
|
|
29
28
|
value: 'other';
|
|
29
|
+
otherValue: string;
|
|
30
30
|
};
|
|
31
31
|
/** @internal */
|
|
32
32
|
export type { Currency, MonetaryAmount } from '../../stdlib/generated.js';
|
|
@@ -69,7 +69,9 @@ export declare namespace CustomAction {
|
|
|
69
69
|
*/
|
|
70
70
|
function prepareResultExecute(result: ExecuteCustomActionResponse): ExecuteCustomActionResponse;
|
|
71
71
|
/** @internal */
|
|
72
|
-
function $platformWrapExecute(configTransformer?: (wireConfig: unknown, appCtx: _ConfigApplicationContext) => unknown): (cls: new () => {
|
|
72
|
+
function $platformWrapExecute(configTransformer?: (wireConfig: unknown, appCtx: _ConfigApplicationContext) => unknown): (cls: new () => {
|
|
73
|
+
execute(...a: unknown[]): unknown;
|
|
74
|
+
}, wireArgs: unknown, wireConfig: unknown, ctx: unknown) => unknown;
|
|
73
75
|
/**
|
|
74
76
|
* @public
|
|
75
77
|
* @deprecated Platform dispatch handles wire/SDK conversion.
|
|
@@ -81,7 +83,9 @@ export declare namespace CustomAction {
|
|
|
81
83
|
*/
|
|
82
84
|
function prepareResultGetFormState(result: GetFormStateResponse): GetFormStateResponse;
|
|
83
85
|
/** @internal */
|
|
84
|
-
function $platformWrapGetFormState(configTransformer?: (wireConfig: unknown, appCtx: _ConfigApplicationContext) => unknown): (cls: new () => {
|
|
86
|
+
function $platformWrapGetFormState(configTransformer?: (wireConfig: unknown, appCtx: _ConfigApplicationContext) => unknown): (cls: new () => {
|
|
87
|
+
getFormState(...a: unknown[]): unknown;
|
|
88
|
+
}, wireArgs: unknown, wireConfig: unknown, ctx: unknown) => unknown;
|
|
85
89
|
/**
|
|
86
90
|
* Executes the custom action at workflow runtime. Called when a workflow triggers this action, with the configured input values.
|
|
87
91
|
* @public
|
|
@@ -69,7 +69,9 @@ export declare namespace CustomAction {
|
|
|
69
69
|
*/
|
|
70
70
|
function prepareResultExecute(result: ExecuteCustomActionResponse): ExecuteCustomActionResponse;
|
|
71
71
|
/** @internal */
|
|
72
|
-
function $platformWrapExecute(configTransformer?: (wireConfig: unknown, appCtx: _ConfigApplicationContext) => unknown): (cls: new () => {
|
|
72
|
+
function $platformWrapExecute(configTransformer?: (wireConfig: unknown, appCtx: _ConfigApplicationContext) => unknown): (cls: new () => {
|
|
73
|
+
execute(...a: unknown[]): unknown;
|
|
74
|
+
}, wireArgs: unknown, wireConfig: unknown, ctx: unknown) => unknown;
|
|
73
75
|
/**
|
|
74
76
|
* @public
|
|
75
77
|
* @deprecated Platform dispatch handles wire/SDK conversion.
|
|
@@ -81,7 +83,9 @@ export declare namespace CustomAction {
|
|
|
81
83
|
*/
|
|
82
84
|
function prepareResultGetFormState(result: GetFormStateResponse): GetFormStateResponse;
|
|
83
85
|
/** @internal */
|
|
84
|
-
function $platformWrapGetFormState(configTransformer?: (wireConfig: unknown, appCtx: _ConfigApplicationContext) => unknown): (cls: new () => {
|
|
86
|
+
function $platformWrapGetFormState(configTransformer?: (wireConfig: unknown, appCtx: _ConfigApplicationContext) => unknown): (cls: new () => {
|
|
87
|
+
getFormState(...a: unknown[]): unknown;
|
|
88
|
+
}, wireArgs: unknown, wireConfig: unknown, ctx: unknown) => unknown;
|
|
85
89
|
/**
|
|
86
90
|
* Executes the custom action at workflow runtime. Called when a workflow triggers this action, with the configured input values.
|
|
87
91
|
* @public
|