@stripe/extensibility-dev-tools 0.23.7 → 0.24.2
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/bin/build-custom-object-definitions.cjs +22 -13
- package/dist/bin/build-custom-object-definitions.js +22 -13
- package/dist/bin/create-upload-image.cjs +22 -13
- package/dist/bin/create-upload-image.js +22 -13
- package/dist/bin/dev-tools-rpc.cjs +8 -7
- package/dist/bin/dev-tools-rpc.js +8 -7
- package/dist/bin/gen-workspace.cjs +8 -7
- package/dist/bin/gen-workspace.js +8 -7
- package/dist/bin/template-info.cjs +8 -7
- package/dist/bin/template-info.js +8 -7
- package/dist/custom-objects/to-proto-json.d.ts +2 -1
- package/dist/custom-objects/to-proto-json.d.ts.map +1 -1
- package/dist/dependencies/index.d.ts +7 -7
- package/dist/index.cjs +8 -7
- package/dist/index.js +8 -7
- package/dist/manifest/manifest-v2.d.ts +8 -3
- package/dist/templates/diff-viewer/types.d.ts +2 -2
- package/dist/templates/extensions/base.d.ts +4 -2
- package/dist/templates/extensions/core.workflows.custom_action.d.ts.map +1 -1
- package/dist/templates/extensions/types.d.ts +9 -3
- package/dist/templates/file-writer.d.ts +2 -2
- package/dist/templates/index.cjs +8 -7
- package/dist/templates/index.js +8 -7
- package/dist/templates/root/index.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/workspace/index.cjs +8 -7
- package/dist/workspace/index.d.ts +34 -30
- package/dist/workspace/index.js +8 -7
- package/package.json +2 -2
- package/templates/extensions/billing.bill.discount_calculation/index.ts +1 -1
- package/templates/extensions/billing.customer_balance_application/index.ts +1 -1
- package/templates/extensions/billing.invoice_collection_setting/index.ts +1 -1
- package/templates/extensions/billing.prorations/index.ts +1 -1
- package/templates/extensions/billing.recurring_billing_item_handling/index.ts +1 -1
- package/templates/extensions/core.workflows.custom_action/index.ts +1 -1
- package/templates/extensions/extend.workflows.custom_action/index.ts +1 -1
- package/dist/api-surface.d.ts.map +0 -1
package/dist/templates/index.js
CHANGED
|
@@ -30,7 +30,7 @@ describe('MyDiscountCalculation', () => {
|
|
|
30
30
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
31
31
|
|
|
32
32
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
33
|
-
interface MyDiscountCalculationConfig
|
|
33
|
+
interface MyDiscountCalculationConfig {}
|
|
34
34
|
|
|
35
35
|
export default class MyDiscountCalculation implements Billing.Bill
|
|
36
36
|
.DiscountCalculation<MyDiscountCalculationConfig> {
|
|
@@ -72,7 +72,7 @@ describe('MyBalanceApp', () => {
|
|
|
72
72
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
73
73
|
|
|
74
74
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
75
|
-
interface MyBalanceAppConfig
|
|
75
|
+
interface MyBalanceAppConfig {}
|
|
76
76
|
|
|
77
77
|
export default class MyBalanceApp implements Billing.CustomerBalanceApplication<MyBalanceAppConfig> {
|
|
78
78
|
computeAppliedCustomerBalance(
|
|
@@ -113,7 +113,7 @@ describe('MyInvoiceCollectionSetting', () => {
|
|
|
113
113
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
114
114
|
|
|
115
115
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
116
|
-
interface MyInvoiceCollectionSettingConfig
|
|
116
|
+
interface MyInvoiceCollectionSettingConfig {}
|
|
117
117
|
|
|
118
118
|
export default class MyInvoiceCollectionSetting implements Billing.InvoiceCollectionSetting<MyInvoiceCollectionSettingConfig> {
|
|
119
119
|
collectionOverride(
|
|
@@ -152,7 +152,7 @@ describe('MyProrations', () => {
|
|
|
152
152
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
153
153
|
|
|
154
154
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
155
|
-
interface MyProrationsConfig
|
|
155
|
+
interface MyProrationsConfig {}
|
|
156
156
|
|
|
157
157
|
export default class MyProrations implements Billing.Prorations<MyProrationsConfig> {
|
|
158
158
|
prorateItems(
|
|
@@ -193,7 +193,7 @@ describe('MyRecurringBillingItemHandling', () => {
|
|
|
193
193
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
194
194
|
|
|
195
195
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
196
|
-
interface MyRecurringBillingItemHandlingConfig
|
|
196
|
+
interface MyRecurringBillingItemHandlingConfig {}
|
|
197
197
|
|
|
198
198
|
export default class MyRecurringBillingItemHandling implements Billing.RecurringBillingItemHandling<MyRecurringBillingItemHandlingConfig> {
|
|
199
199
|
beforeItemCreation(
|
|
@@ -443,7 +443,7 @@ describe('MyCustomAction', () => {
|
|
|
443
443
|
content: `import type { Core, Context } from '@stripe/extensibility-sdk';
|
|
444
444
|
|
|
445
445
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
446
|
-
interface MyCustomActionConfig
|
|
446
|
+
interface MyCustomActionConfig {}
|
|
447
447
|
|
|
448
448
|
export default class MyCustomAction implements Core.Workflows
|
|
449
449
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -506,7 +506,7 @@ describe('MyCustomAction', () => {
|
|
|
506
506
|
content: `import type { Extend, Context } from '@stripe/extensibility-sdk';
|
|
507
507
|
|
|
508
508
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
509
|
-
interface MyCustomActionConfig
|
|
509
|
+
interface MyCustomActionConfig {}
|
|
510
510
|
|
|
511
511
|
export default class MyCustomAction implements Extend.Workflows
|
|
512
512
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -1662,6 +1662,7 @@ function _createBaseOutput(params, context) {
|
|
|
1662
1662
|
// src/templates/extensions/core.workflows.custom_action.ts
|
|
1663
1663
|
var EXTENSION_INTERFACE_ID = "core.workflows.custom_action";
|
|
1664
1664
|
var customActionTemplate = {
|
|
1665
|
+
deprecated: true,
|
|
1665
1666
|
methods: {
|
|
1666
1667
|
execute: { implementation_types: ["script", "remote-function"] },
|
|
1667
1668
|
get_form_state: { implementation_types: ["script", "remote-function"] }
|
|
@@ -30,8 +30,8 @@ export interface _RootWorkspaceParams extends Record<string, unknown> {
|
|
|
30
30
|
export interface _RootWorkspaceOutput extends _TemplateOutput {
|
|
31
31
|
/** Dependencies to install after file generation. */
|
|
32
32
|
dependencies?: {
|
|
33
|
-
dev?: _DevNpmDependency[];
|
|
34
33
|
runtime?: _NpmDependency[];
|
|
34
|
+
dev?: _DevNpmDependency[];
|
|
35
35
|
};
|
|
36
36
|
/** Hooks to run after dependencies are installed. */
|
|
37
37
|
postGenerationHooks?: _PostGenerationHook[];
|