@stripe/extensibility-dev-tools 0.23.5 → 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/README.md +28 -0
- package/dist/bin/build-custom-object-definitions.cjs +42 -36
- package/dist/bin/build-custom-object-definitions.js +42 -36
- package/dist/bin/create-upload-image.cjs +42 -36
- package/dist/bin/create-upload-image.js +42 -36
- package/dist/bin/dev-tools-rpc.cjs +42 -31
- package/dist/bin/dev-tools-rpc.js +42 -31
- package/dist/bin/gen-workspace.cjs +42 -31
- package/dist/bin/gen-workspace.js +42 -31
- package/dist/bin/template-info.cjs +28 -30
- package/dist/bin/template-info.js +28 -30
- 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/index.cjs +42 -31
- package/dist/index.js +42 -31
- package/dist/templates/extensions/base.d.ts +1 -1
- package/dist/templates/extensions/base.d.ts.map +1 -1
- package/dist/templates/extensions/core.workflows.custom_action.d.ts.map +1 -1
- package/dist/templates/index.cjs +42 -31
- package/dist/templates/index.js +42 -31
- package/dist/templates/root/index.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/workspace/index.cjs +42 -31
- package/dist/workspace/index.js +42 -31
- package/package.json +4 -4
- package/templates/extensions/billing.bill.discount_calculation/index.ts +2 -3
- package/templates/extensions/billing.customer_balance_application/index.test.ts +5 -5
- package/templates/extensions/billing.customer_balance_application/index.ts +4 -4
- package/templates/extensions/billing.invoice_collection_setting/index.ts +2 -2
- package/templates/extensions/billing.prorations/index.ts +2 -2
- package/templates/extensions/billing.recurring_billing_item_handling/index.ts +2 -2
- package/templates/extensions/core.workflows.custom_action/index.ts +2 -3
- package/templates/extensions/extend.workflows.custom_action/index.ts +2 -3
- package/templates/root/custom-objects/{package.json → package.json.mustache} +4 -4
- package/dist/extensibility-dev-tools-alpha.d.ts +0 -199
- package/dist/extensibility-dev-tools-beta.d.ts +0 -199
- package/dist/extensibility-dev-tools-dependencies-alpha.d.ts +0 -51
- package/dist/extensibility-dev-tools-dependencies-beta.d.ts +0 -51
- package/dist/extensibility-dev-tools-dependencies-internal.d.ts +0 -372
- package/dist/extensibility-dev-tools-dependencies-public.d.ts +0 -51
- package/dist/extensibility-dev-tools-internal.d.ts +0 -1722
- package/dist/extensibility-dev-tools-jsonschema-tools-alpha.d.ts +0 -57
- package/dist/extensibility-dev-tools-jsonschema-tools-beta.d.ts +0 -57
- package/dist/extensibility-dev-tools-jsonschema-tools-internal.d.ts +0 -123
- package/dist/extensibility-dev-tools-jsonschema-tools-public.d.ts +0 -57
- package/dist/extensibility-dev-tools-manifest-alpha.d.ts +0 -31
- package/dist/extensibility-dev-tools-manifest-beta.d.ts +0 -31
- package/dist/extensibility-dev-tools-manifest-internal.d.ts +0 -461
- package/dist/extensibility-dev-tools-manifest-public.d.ts +0 -31
- package/dist/extensibility-dev-tools-public.d.ts +0 -199
- package/dist/extensibility-dev-tools-schemas-alpha.d.ts +0 -9
- package/dist/extensibility-dev-tools-schemas-beta.d.ts +0 -9
- package/dist/extensibility-dev-tools-schemas-internal.d.ts +0 -41
- package/dist/extensibility-dev-tools-schemas-public.d.ts +0 -9
- package/dist/extensibility-dev-tools-templates-alpha.d.ts +0 -67
- package/dist/extensibility-dev-tools-templates-beta.d.ts +0 -67
- package/dist/extensibility-dev-tools-templates-internal.d.ts +0 -554
- package/dist/extensibility-dev-tools-templates-public.d.ts +0 -67
- package/dist/extensibility-dev-tools-workspace-alpha.d.ts +0 -51
- package/dist/extensibility-dev-tools-workspace-beta.d.ts +0 -51
- package/dist/extensibility-dev-tools-workspace-internal.d.ts +0 -410
- package/dist/extensibility-dev-tools-workspace-public.d.ts +0 -51
package/dist/templates/index.cjs
CHANGED
|
@@ -75,11 +75,10 @@ describe('MyDiscountCalculation', () => {
|
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
path: "extensions/billing.bill.discount_calculation/index.ts",
|
|
78
|
-
content: `import type { Billing } from '@stripe/extensibility-sdk
|
|
79
|
-
import type { Context } from '@stripe/extensibility-sdk/extensions';
|
|
78
|
+
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
80
79
|
|
|
81
80
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
82
|
-
interface MyDiscountCalculationConfig
|
|
81
|
+
interface MyDiscountCalculationConfig {}
|
|
83
82
|
|
|
84
83
|
export default class MyDiscountCalculation implements Billing.Bill
|
|
85
84
|
.DiscountCalculation<MyDiscountCalculationConfig> {
|
|
@@ -101,32 +100,32 @@ export default class MyDiscountCalculation implements Billing.Bill
|
|
|
101
100
|
path: "extensions/billing.customer_balance_application/index.test.ts",
|
|
102
101
|
content: `import { beforeEach, describe, it, expect } from 'vitest';
|
|
103
102
|
|
|
104
|
-
import
|
|
103
|
+
import MyBalanceApp from './index.js';
|
|
105
104
|
|
|
106
|
-
describe('
|
|
107
|
-
let instance:
|
|
105
|
+
describe('MyBalanceApp', () => {
|
|
106
|
+
let instance: MyBalanceApp;
|
|
108
107
|
|
|
109
108
|
beforeEach(() => {
|
|
110
|
-
instance = new
|
|
109
|
+
instance = new MyBalanceApp();
|
|
111
110
|
});
|
|
112
111
|
|
|
113
112
|
it('should be constructable', () => {
|
|
114
|
-
expect(instance).toBeInstanceOf(
|
|
113
|
+
expect(instance).toBeInstanceOf(MyBalanceApp);
|
|
115
114
|
});
|
|
116
115
|
});
|
|
117
116
|
`
|
|
118
117
|
},
|
|
119
118
|
{
|
|
120
119
|
path: "extensions/billing.customer_balance_application/index.ts",
|
|
121
|
-
content: `import type { Billing, Context } from '@stripe/extensibility-sdk
|
|
120
|
+
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
122
121
|
|
|
123
122
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
124
|
-
interface
|
|
123
|
+
interface MyBalanceAppConfig {}
|
|
125
124
|
|
|
126
|
-
export default class
|
|
125
|
+
export default class MyBalanceApp implements Billing.CustomerBalanceApplication<MyBalanceAppConfig> {
|
|
127
126
|
computeAppliedCustomerBalance(
|
|
128
127
|
request: Billing.CustomerBalanceApplication.CustomerBalanceApplicationInput,
|
|
129
|
-
_config:
|
|
128
|
+
_config: MyBalanceAppConfig,
|
|
130
129
|
_context: Context
|
|
131
130
|
) {
|
|
132
131
|
// TODO: implement your customer balance logic here
|
|
@@ -159,10 +158,10 @@ describe('MyInvoiceCollectionSetting', () => {
|
|
|
159
158
|
},
|
|
160
159
|
{
|
|
161
160
|
path: "extensions/billing.invoice_collection_setting/index.ts",
|
|
162
|
-
content: `import type { Billing, Context } from '@stripe/extensibility-sdk
|
|
161
|
+
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
163
162
|
|
|
164
163
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
165
|
-
interface MyInvoiceCollectionSettingConfig
|
|
164
|
+
interface MyInvoiceCollectionSettingConfig {}
|
|
166
165
|
|
|
167
166
|
export default class MyInvoiceCollectionSetting implements Billing.InvoiceCollectionSetting<MyInvoiceCollectionSettingConfig> {
|
|
168
167
|
collectionOverride(
|
|
@@ -198,10 +197,10 @@ describe('MyProrations', () => {
|
|
|
198
197
|
},
|
|
199
198
|
{
|
|
200
199
|
path: "extensions/billing.prorations/index.ts",
|
|
201
|
-
content: `import type { Billing, Context } from '@stripe/extensibility-sdk
|
|
200
|
+
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
202
201
|
|
|
203
202
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
204
|
-
interface MyProrationsConfig
|
|
203
|
+
interface MyProrationsConfig {}
|
|
205
204
|
|
|
206
205
|
export default class MyProrations implements Billing.Prorations<MyProrationsConfig> {
|
|
207
206
|
prorateItems(
|
|
@@ -239,10 +238,10 @@ describe('MyRecurringBillingItemHandling', () => {
|
|
|
239
238
|
},
|
|
240
239
|
{
|
|
241
240
|
path: "extensions/billing.recurring_billing_item_handling/index.ts",
|
|
242
|
-
content: `import type { Billing, Context } from '@stripe/extensibility-sdk
|
|
241
|
+
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
243
242
|
|
|
244
243
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
245
|
-
interface MyRecurringBillingItemHandlingConfig
|
|
244
|
+
interface MyRecurringBillingItemHandlingConfig {}
|
|
246
245
|
|
|
247
246
|
export default class MyRecurringBillingItemHandling implements Billing.RecurringBillingItemHandling<MyRecurringBillingItemHandlingConfig> {
|
|
248
247
|
beforeItemCreation(
|
|
@@ -489,11 +488,10 @@ describe('MyCustomAction', () => {
|
|
|
489
488
|
},
|
|
490
489
|
{
|
|
491
490
|
path: "extensions/core.workflows.custom_action/index.ts",
|
|
492
|
-
content: `import type { Core } from '@stripe/extensibility-sdk
|
|
493
|
-
import type { Context } from '@stripe/extensibility-sdk/extensions';
|
|
491
|
+
content: `import type { Core, Context } from '@stripe/extensibility-sdk';
|
|
494
492
|
|
|
495
493
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
496
|
-
interface MyCustomActionConfig
|
|
494
|
+
interface MyCustomActionConfig {}
|
|
497
495
|
|
|
498
496
|
export default class MyCustomAction implements Core.Workflows
|
|
499
497
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -553,11 +551,10 @@ describe('MyCustomAction', () => {
|
|
|
553
551
|
},
|
|
554
552
|
{
|
|
555
553
|
path: "extensions/extend.workflows.custom_action/index.ts",
|
|
556
|
-
content: `import type { Extend } from '@stripe/extensibility-sdk
|
|
557
|
-
import type { Context } from '@stripe/extensibility-sdk/extensions';
|
|
554
|
+
content: `import type { Extend, Context } from '@stripe/extensibility-sdk';
|
|
558
555
|
|
|
559
556
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
560
|
-
interface MyCustomActionConfig
|
|
557
|
+
interface MyCustomActionConfig {}
|
|
561
558
|
|
|
562
559
|
export default class MyCustomAction implements Extend.Workflows
|
|
563
560
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -644,7 +641,7 @@ generated
|
|
|
644
641
|
`
|
|
645
642
|
},
|
|
646
643
|
{
|
|
647
|
-
path: "root/custom-objects/package.json",
|
|
644
|
+
path: "root/custom-objects/package.json.mustache",
|
|
648
645
|
content: `{
|
|
649
646
|
"name": "custom-objects",
|
|
650
647
|
"type": "module",
|
|
@@ -657,12 +654,12 @@ generated
|
|
|
657
654
|
"test": "vitest run"
|
|
658
655
|
},
|
|
659
656
|
"dependencies": {
|
|
660
|
-
"@stripe/extensibility-custom-objects": "
|
|
661
|
-
"@stripe/extensibility-sdk": "
|
|
657
|
+
"@stripe/extensibility-custom-objects": "{{ customObjectsVersion }}",
|
|
658
|
+
"@stripe/extensibility-sdk": "{{ sdkVersion }}"
|
|
662
659
|
},
|
|
663
660
|
"devDependencies": {
|
|
664
|
-
"@stripe/extensibility-custom-objects-tools": "
|
|
665
|
-
"@stripe/extensibility-test-helpers": "
|
|
661
|
+
"@stripe/extensibility-custom-objects-tools": "{{ customObjectsToolsVersion }}",
|
|
662
|
+
"@stripe/extensibility-test-helpers": "{{ testHelpersVersion }}"
|
|
666
663
|
}
|
|
667
664
|
}
|
|
668
665
|
`
|
|
@@ -1647,7 +1644,7 @@ function _devNpmDep(name, version) {
|
|
|
1647
1644
|
var import_extensibility_tool_utils7 = require("@stripe/extensibility-tool-utils");
|
|
1648
1645
|
var SDK_PACKAGE_NAME = "@stripe/extensibility-sdk";
|
|
1649
1646
|
var LANGUAGE_SERVER_PACKAGE_NAME = "@stripe/extensibility-language-server";
|
|
1650
|
-
var LANGUAGE_SERVER_PACKAGE_VERSION =
|
|
1647
|
+
var LANGUAGE_SERVER_PACKAGE_VERSION = `^${(0, import_extensibility_tool_utils7._workspaceVersion)(LANGUAGE_SERVER_PACKAGE_NAME)}`;
|
|
1651
1648
|
function _createExtensionEslintConfigFile(params, context) {
|
|
1652
1649
|
const { id, extensionInterfaceId } = params;
|
|
1653
1650
|
const { fs: fs2 } = context;
|
|
@@ -1709,6 +1706,7 @@ function _createBaseOutput(params, context) {
|
|
|
1709
1706
|
// src/templates/extensions/core.workflows.custom_action.ts
|
|
1710
1707
|
var EXTENSION_INTERFACE_ID = "core.workflows.custom_action";
|
|
1711
1708
|
var customActionTemplate = {
|
|
1709
|
+
deprecated: true,
|
|
1712
1710
|
methods: {
|
|
1713
1711
|
execute: { implementation_types: ["script", "remote-function"] },
|
|
1714
1712
|
get_form_state: { implementation_types: ["script", "remote-function"] }
|
|
@@ -2167,7 +2165,20 @@ var _rootWorkspaceTemplate = {
|
|
|
2167
2165
|
},
|
|
2168
2166
|
{
|
|
2169
2167
|
path: "custom-objects/package.json",
|
|
2170
|
-
content: fs2.
|
|
2168
|
+
content: fs2.mustache(
|
|
2169
|
+
{
|
|
2170
|
+
customObjectsVersion: (0, import_extensibility_tool_utils8._workspaceVersion)(
|
|
2171
|
+
"@stripe/extensibility-custom-objects"
|
|
2172
|
+
),
|
|
2173
|
+
sdkVersion: (0, import_extensibility_tool_utils8._workspaceVersion)("@stripe/extensibility-sdk"),
|
|
2174
|
+
customObjectsToolsVersion: (0, import_extensibility_tool_utils8._workspaceVersion)(
|
|
2175
|
+
"@stripe/extensibility-custom-objects-tools"
|
|
2176
|
+
),
|
|
2177
|
+
testHelpersVersion: (0, import_extensibility_tool_utils8._workspaceVersion)("@stripe/extensibility-test-helpers")
|
|
2178
|
+
},
|
|
2179
|
+
"custom-objects",
|
|
2180
|
+
"package.json.mustache"
|
|
2181
|
+
),
|
|
2171
2182
|
precious: true
|
|
2172
2183
|
},
|
|
2173
2184
|
{
|
package/dist/templates/index.js
CHANGED
|
@@ -27,11 +27,10 @@ describe('MyDiscountCalculation', () => {
|
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
path: "extensions/billing.bill.discount_calculation/index.ts",
|
|
30
|
-
content: `import type { Billing } from '@stripe/extensibility-sdk
|
|
31
|
-
import type { Context } from '@stripe/extensibility-sdk/extensions';
|
|
30
|
+
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
32
31
|
|
|
33
32
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
34
|
-
interface MyDiscountCalculationConfig
|
|
33
|
+
interface MyDiscountCalculationConfig {}
|
|
35
34
|
|
|
36
35
|
export default class MyDiscountCalculation implements Billing.Bill
|
|
37
36
|
.DiscountCalculation<MyDiscountCalculationConfig> {
|
|
@@ -53,32 +52,32 @@ export default class MyDiscountCalculation implements Billing.Bill
|
|
|
53
52
|
path: "extensions/billing.customer_balance_application/index.test.ts",
|
|
54
53
|
content: `import { beforeEach, describe, it, expect } from 'vitest';
|
|
55
54
|
|
|
56
|
-
import
|
|
55
|
+
import MyBalanceApp from './index.js';
|
|
57
56
|
|
|
58
|
-
describe('
|
|
59
|
-
let instance:
|
|
57
|
+
describe('MyBalanceApp', () => {
|
|
58
|
+
let instance: MyBalanceApp;
|
|
60
59
|
|
|
61
60
|
beforeEach(() => {
|
|
62
|
-
instance = new
|
|
61
|
+
instance = new MyBalanceApp();
|
|
63
62
|
});
|
|
64
63
|
|
|
65
64
|
it('should be constructable', () => {
|
|
66
|
-
expect(instance).toBeInstanceOf(
|
|
65
|
+
expect(instance).toBeInstanceOf(MyBalanceApp);
|
|
67
66
|
});
|
|
68
67
|
});
|
|
69
68
|
`
|
|
70
69
|
},
|
|
71
70
|
{
|
|
72
71
|
path: "extensions/billing.customer_balance_application/index.ts",
|
|
73
|
-
content: `import type { Billing, Context } from '@stripe/extensibility-sdk
|
|
72
|
+
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
74
73
|
|
|
75
74
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
76
|
-
interface
|
|
75
|
+
interface MyBalanceAppConfig {}
|
|
77
76
|
|
|
78
|
-
export default class
|
|
77
|
+
export default class MyBalanceApp implements Billing.CustomerBalanceApplication<MyBalanceAppConfig> {
|
|
79
78
|
computeAppliedCustomerBalance(
|
|
80
79
|
request: Billing.CustomerBalanceApplication.CustomerBalanceApplicationInput,
|
|
81
|
-
_config:
|
|
80
|
+
_config: MyBalanceAppConfig,
|
|
82
81
|
_context: Context
|
|
83
82
|
) {
|
|
84
83
|
// TODO: implement your customer balance logic here
|
|
@@ -111,10 +110,10 @@ describe('MyInvoiceCollectionSetting', () => {
|
|
|
111
110
|
},
|
|
112
111
|
{
|
|
113
112
|
path: "extensions/billing.invoice_collection_setting/index.ts",
|
|
114
|
-
content: `import type { Billing, Context } from '@stripe/extensibility-sdk
|
|
113
|
+
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
115
114
|
|
|
116
115
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
117
|
-
interface MyInvoiceCollectionSettingConfig
|
|
116
|
+
interface MyInvoiceCollectionSettingConfig {}
|
|
118
117
|
|
|
119
118
|
export default class MyInvoiceCollectionSetting implements Billing.InvoiceCollectionSetting<MyInvoiceCollectionSettingConfig> {
|
|
120
119
|
collectionOverride(
|
|
@@ -150,10 +149,10 @@ describe('MyProrations', () => {
|
|
|
150
149
|
},
|
|
151
150
|
{
|
|
152
151
|
path: "extensions/billing.prorations/index.ts",
|
|
153
|
-
content: `import type { Billing, Context } from '@stripe/extensibility-sdk
|
|
152
|
+
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
154
153
|
|
|
155
154
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
156
|
-
interface MyProrationsConfig
|
|
155
|
+
interface MyProrationsConfig {}
|
|
157
156
|
|
|
158
157
|
export default class MyProrations implements Billing.Prorations<MyProrationsConfig> {
|
|
159
158
|
prorateItems(
|
|
@@ -191,10 +190,10 @@ describe('MyRecurringBillingItemHandling', () => {
|
|
|
191
190
|
},
|
|
192
191
|
{
|
|
193
192
|
path: "extensions/billing.recurring_billing_item_handling/index.ts",
|
|
194
|
-
content: `import type { Billing, Context } from '@stripe/extensibility-sdk
|
|
193
|
+
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
195
194
|
|
|
196
195
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
197
|
-
interface MyRecurringBillingItemHandlingConfig
|
|
196
|
+
interface MyRecurringBillingItemHandlingConfig {}
|
|
198
197
|
|
|
199
198
|
export default class MyRecurringBillingItemHandling implements Billing.RecurringBillingItemHandling<MyRecurringBillingItemHandlingConfig> {
|
|
200
199
|
beforeItemCreation(
|
|
@@ -441,11 +440,10 @@ describe('MyCustomAction', () => {
|
|
|
441
440
|
},
|
|
442
441
|
{
|
|
443
442
|
path: "extensions/core.workflows.custom_action/index.ts",
|
|
444
|
-
content: `import type { Core } from '@stripe/extensibility-sdk
|
|
445
|
-
import type { Context } from '@stripe/extensibility-sdk/extensions';
|
|
443
|
+
content: `import type { Core, Context } from '@stripe/extensibility-sdk';
|
|
446
444
|
|
|
447
445
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
448
|
-
interface MyCustomActionConfig
|
|
446
|
+
interface MyCustomActionConfig {}
|
|
449
447
|
|
|
450
448
|
export default class MyCustomAction implements Core.Workflows
|
|
451
449
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -505,11 +503,10 @@ describe('MyCustomAction', () => {
|
|
|
505
503
|
},
|
|
506
504
|
{
|
|
507
505
|
path: "extensions/extend.workflows.custom_action/index.ts",
|
|
508
|
-
content: `import type { Extend } from '@stripe/extensibility-sdk
|
|
509
|
-
import type { Context } from '@stripe/extensibility-sdk/extensions';
|
|
506
|
+
content: `import type { Extend, Context } from '@stripe/extensibility-sdk';
|
|
510
507
|
|
|
511
508
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
512
|
-
interface MyCustomActionConfig
|
|
509
|
+
interface MyCustomActionConfig {}
|
|
513
510
|
|
|
514
511
|
export default class MyCustomAction implements Extend.Workflows
|
|
515
512
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -596,7 +593,7 @@ generated
|
|
|
596
593
|
`
|
|
597
594
|
},
|
|
598
595
|
{
|
|
599
|
-
path: "root/custom-objects/package.json",
|
|
596
|
+
path: "root/custom-objects/package.json.mustache",
|
|
600
597
|
content: `{
|
|
601
598
|
"name": "custom-objects",
|
|
602
599
|
"type": "module",
|
|
@@ -609,12 +606,12 @@ generated
|
|
|
609
606
|
"test": "vitest run"
|
|
610
607
|
},
|
|
611
608
|
"dependencies": {
|
|
612
|
-
"@stripe/extensibility-custom-objects": "
|
|
613
|
-
"@stripe/extensibility-sdk": "
|
|
609
|
+
"@stripe/extensibility-custom-objects": "{{ customObjectsVersion }}",
|
|
610
|
+
"@stripe/extensibility-sdk": "{{ sdkVersion }}"
|
|
614
611
|
},
|
|
615
612
|
"devDependencies": {
|
|
616
|
-
"@stripe/extensibility-custom-objects-tools": "
|
|
617
|
-
"@stripe/extensibility-test-helpers": "
|
|
613
|
+
"@stripe/extensibility-custom-objects-tools": "{{ customObjectsToolsVersion }}",
|
|
614
|
+
"@stripe/extensibility-test-helpers": "{{ testHelpersVersion }}"
|
|
618
615
|
}
|
|
619
616
|
}
|
|
620
617
|
`
|
|
@@ -1603,7 +1600,7 @@ function _devNpmDep(name, version) {
|
|
|
1603
1600
|
import { _workspaceVersion } from "@stripe/extensibility-tool-utils";
|
|
1604
1601
|
var SDK_PACKAGE_NAME = "@stripe/extensibility-sdk";
|
|
1605
1602
|
var LANGUAGE_SERVER_PACKAGE_NAME = "@stripe/extensibility-language-server";
|
|
1606
|
-
var LANGUAGE_SERVER_PACKAGE_VERSION =
|
|
1603
|
+
var LANGUAGE_SERVER_PACKAGE_VERSION = `^${_workspaceVersion(LANGUAGE_SERVER_PACKAGE_NAME)}`;
|
|
1607
1604
|
function _createExtensionEslintConfigFile(params, context) {
|
|
1608
1605
|
const { id, extensionInterfaceId } = params;
|
|
1609
1606
|
const { fs: fs2 } = context;
|
|
@@ -1665,6 +1662,7 @@ function _createBaseOutput(params, context) {
|
|
|
1665
1662
|
// src/templates/extensions/core.workflows.custom_action.ts
|
|
1666
1663
|
var EXTENSION_INTERFACE_ID = "core.workflows.custom_action";
|
|
1667
1664
|
var customActionTemplate = {
|
|
1665
|
+
deprecated: true,
|
|
1668
1666
|
methods: {
|
|
1669
1667
|
execute: { implementation_types: ["script", "remote-function"] },
|
|
1670
1668
|
get_form_state: { implementation_types: ["script", "remote-function"] }
|
|
@@ -2123,7 +2121,20 @@ var _rootWorkspaceTemplate = {
|
|
|
2123
2121
|
},
|
|
2124
2122
|
{
|
|
2125
2123
|
path: "custom-objects/package.json",
|
|
2126
|
-
content: fs2.
|
|
2124
|
+
content: fs2.mustache(
|
|
2125
|
+
{
|
|
2126
|
+
customObjectsVersion: _workspaceVersion2(
|
|
2127
|
+
"@stripe/extensibility-custom-objects"
|
|
2128
|
+
),
|
|
2129
|
+
sdkVersion: _workspaceVersion2("@stripe/extensibility-sdk"),
|
|
2130
|
+
customObjectsToolsVersion: _workspaceVersion2(
|
|
2131
|
+
"@stripe/extensibility-custom-objects-tools"
|
|
2132
|
+
),
|
|
2133
|
+
testHelpersVersion: _workspaceVersion2("@stripe/extensibility-test-helpers")
|
|
2134
|
+
},
|
|
2135
|
+
"custom-objects",
|
|
2136
|
+
"package.json.mustache"
|
|
2137
|
+
),
|
|
2127
2138
|
precious: true
|
|
2128
2139
|
},
|
|
2129
2140
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/root/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAoB,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAIhF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAMhE,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,wCACd,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAA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