@stripe/extensibility-dev-tools 0.24.3 → 1.0.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.
Files changed (62) hide show
  1. package/dist/bin/build-custom-object-definitions.cjs +169 -34
  2. package/dist/bin/build-custom-object-definitions.js +160 -25
  3. package/dist/bin/create-upload-image.cjs +168 -33
  4. package/dist/bin/create-upload-image.js +160 -25
  5. package/dist/bin/dev-tools-rpc.cjs +203 -59
  6. package/dist/bin/dev-tools-rpc.js +178 -34
  7. package/dist/bin/gen-workspace.cjs +191 -47
  8. package/dist/bin/gen-workspace.js +178 -34
  9. package/dist/bin/template-info.cjs +165 -30
  10. package/dist/bin/template-info.js +160 -25
  11. package/dist/custom-objects/generated/proto/custom_objects/pub/api/app_api/object_definitions_app_service.pb.d.ts +32 -0
  12. package/dist/custom-objects/generated/proto/custom_objects/pub/api/app_api/object_definitions_app_service.pb.d.ts.map +1 -1
  13. package/dist/custom-objects/generated/proto/google/protobuf/descriptor.pb.d.ts +2 -2
  14. package/dist/custom-objects/generated/proto/google/protobuf/wrappers.pb.d.ts +168 -0
  15. package/dist/custom-objects/generated/proto/google/protobuf/wrappers.pb.d.ts.map +1 -0
  16. package/dist/custom-objects/generated/proto/proto/extensions.pb.d.ts +4 -4
  17. package/dist/custom-objects/generated/proto/proto/extensions.pb.d.ts.map +1 -1
  18. package/dist/custom-objects/generated/proto/vendor/proto/model/common/common_model.pb.d.ts +1553 -0
  19. package/dist/custom-objects/generated/proto/vendor/proto/model/common/common_model.pb.d.ts.map +1 -0
  20. package/dist/custom-objects/generated/proto/vendor/proto/model/common/kronos_model.pb.d.ts +1372 -0
  21. package/dist/custom-objects/generated/proto/vendor/proto/model/common/kronos_model.pb.d.ts.map +1 -0
  22. package/dist/custom-objects/generated/proto/vendor/publicapi/api_group_enum.pb.d.ts +2 -0
  23. package/dist/custom-objects/generated/proto/vendor/publicapi/api_group_enum.pb.d.ts.map +1 -1
  24. package/dist/custom-objects/generated/proto/vendor/publicapi/extension_interface.pb.d.ts +2 -0
  25. package/dist/custom-objects/generated/proto/vendor/publicapi/extension_interface.pb.d.ts.map +1 -1
  26. package/dist/custom-objects/generated/proto/vendor/publicapi/feature_enum.pb.d.ts +14 -2
  27. package/dist/custom-objects/generated/proto/vendor/publicapi/feature_enum.pb.d.ts.map +1 -1
  28. package/dist/custom-objects/generated/proto/vendor/publicapi/http_error_status.pb.d.ts +6 -0
  29. package/dist/custom-objects/generated/proto/vendor/publicapi/http_error_status.pb.d.ts.map +1 -1
  30. package/dist/custom-objects/generated/proto/vendor/publicapi/rollout_configs.pb.d.ts +74 -0
  31. package/dist/custom-objects/generated/proto/vendor/publicapi/rollout_configs.pb.d.ts.map +1 -1
  32. package/dist/custom-objects/generated/proto/vendor/publicapi/v2ext.pb.d.ts +10 -3
  33. package/dist/custom-objects/generated/proto/vendor/publicapi/v2ext.pb.d.ts.map +1 -1
  34. package/dist/custom-objects/generated/proto/vendor/vext/privacy_unified_annotations.pb.d.ts +1 -0
  35. package/dist/custom-objects/generated/proto/vendor/vext/privacy_unified_annotations.pb.d.ts.map +1 -1
  36. package/dist/index.cjs +196 -52
  37. package/dist/index.js +178 -34
  38. package/dist/templates/extensions/billing.invoice_collection_options.d.ts +6 -0
  39. package/dist/templates/extensions/billing.invoice_collection_options.d.ts.map +1 -0
  40. package/dist/templates/index.cjs +178 -34
  41. package/dist/templates/index.js +176 -32
  42. package/dist/templates/root/index.d.ts.map +1 -1
  43. package/dist/tsconfig.build.tsbuildinfo +1 -1
  44. package/dist/workspace/index.cjs +187 -43
  45. package/dist/workspace/index.d.ts.map +1 -1
  46. package/dist/workspace/index.js +178 -34
  47. package/dist/workspace-versions.d.ts +26 -0
  48. package/dist/workspace-versions.d.ts.map +1 -0
  49. package/package.json +4 -4
  50. package/templates/extensions/billing.invoice_collection_options/index.test.ts +15 -0
  51. package/templates/extensions/billing.invoice_collection_options/index.ts +16 -0
  52. package/templates/root/custom-objects/eslint.config.mts +89 -0
  53. package/templates/root/custom-objects/package.json.mustache +2 -0
  54. package/templates/root/custom-objects/tsconfig.json +1 -0
  55. package/templates/root/custom-objects/vitest.config.mts +7 -0
  56. package/templates/root/package.json.mustache +1 -1
  57. package/templates/root/pnpm-workspace.yaml +4 -0
  58. package/templates/root/tools/test.mts +4 -2
  59. package/dist/templates/extensions/billing.invoice_collection_setting.d.ts +0 -6
  60. package/dist/templates/extensions/billing.invoice_collection_setting.d.ts.map +0 -1
  61. package/templates/extensions/billing.invoice_collection_setting/index.test.ts +0 -15
  62. package/templates/extensions/billing.invoice_collection_setting/index.ts +0 -16
@@ -593,7 +593,7 @@ var _DependencyManager = class {
593
593
 
594
594
  // src/workspace/index.ts
595
595
  var import_internal = require("@stripe/extensibility-custom-objects-tools/internal");
596
- var import_extensibility_tool_utils11 = require("@stripe/extensibility-tool-utils");
596
+ var import_extensibility_tool_utils9 = require("@stripe/extensibility-tool-utils");
597
597
 
598
598
  // src/manifest/stripe-app-manifest.ts
599
599
  var import_extensibility_tool_utils3 = require("@stripe/extensibility-tool-utils");
@@ -1254,35 +1254,35 @@ export default class MyBalanceApp implements Billing.CustomerBalanceApplication<
1254
1254
  `
1255
1255
  },
1256
1256
  {
1257
- path: "extensions/billing.invoice_collection_setting/index.test.ts",
1257
+ path: "extensions/billing.invoice_collection_options/index.test.ts",
1258
1258
  content: `import { beforeEach, describe, it, expect } from 'vitest';
1259
1259
 
1260
- import MyInvoiceCollectionSetting from './index.js';
1260
+ import MyInvoiceCollectionOptions from './index.js';
1261
1261
 
1262
- describe('MyInvoiceCollectionSetting', () => {
1263
- let instance: MyInvoiceCollectionSetting;
1262
+ describe('MyInvoiceCollectionOptions', () => {
1263
+ let instance: MyInvoiceCollectionOptions;
1264
1264
 
1265
1265
  beforeEach(() => {
1266
- instance = new MyInvoiceCollectionSetting();
1266
+ instance = new MyInvoiceCollectionOptions();
1267
1267
  });
1268
1268
 
1269
1269
  it('should be constructable', () => {
1270
- expect(instance).toBeInstanceOf(MyInvoiceCollectionSetting);
1270
+ expect(instance).toBeInstanceOf(MyInvoiceCollectionOptions);
1271
1271
  });
1272
1272
  });
1273
1273
  `
1274
1274
  },
1275
1275
  {
1276
- path: "extensions/billing.invoice_collection_setting/index.ts",
1276
+ path: "extensions/billing.invoice_collection_options/index.ts",
1277
1277
  content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
1278
1278
 
1279
1279
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1280
- interface MyInvoiceCollectionSettingConfig {}
1280
+ interface MyInvoiceCollectionOptionsConfig {}
1281
1281
 
1282
- export default class MyInvoiceCollectionSetting implements Billing.InvoiceCollectionSetting<MyInvoiceCollectionSettingConfig> {
1283
- collectionOverride(
1284
- _request: Billing.InvoiceCollectionSetting.InvoiceCollectionRequest,
1285
- _config: MyInvoiceCollectionSettingConfig,
1282
+ export default class MyInvoiceCollectionOptions implements Billing.InvoiceCollectionOptions<MyInvoiceCollectionOptionsConfig> {
1283
+ overrideOptions(
1284
+ _request: Billing.InvoiceCollectionOptions.InvoiceCollectionOptionsInput,
1285
+ _config: MyInvoiceCollectionOptionsConfig,
1286
1286
  _context: Context
1287
1287
  ) {
1288
1288
  // TODO: implement your collection setting logic here
@@ -1754,6 +1754,99 @@ install-deps.log
1754
1754
 
1755
1755
  # generated schemas
1756
1756
  generated
1757
+ `
1758
+ },
1759
+ {
1760
+ path: "root/custom-objects/eslint.config.mts",
1761
+ content: `import eslint from '@eslint/js';
1762
+ import { defineConfig } from 'eslint/config';
1763
+ import tseslint from 'typescript-eslint';
1764
+ import eslintConfigPrettier from 'eslint-config-prettier/flat';
1765
+
1766
+ import globals from 'globals';
1767
+
1768
+ import stripeAppsConfig from '@stripe/extensibility-eslint-plugin';
1769
+ import customObjectsConfig from '@stripe/extensibility-eslint-plugin/custom-objects';
1770
+
1771
+ export default defineConfig([
1772
+ eslint.configs.recommended,
1773
+ ...tseslint.configs.recommended,
1774
+ ...stripeAppsConfig,
1775
+ ...customObjectsConfig,
1776
+
1777
+ // Global ignores
1778
+ {
1779
+ ignores: ['dist', 'generated', 'node_modules'],
1780
+ },
1781
+
1782
+ // TypeScript source files (with type-checking)
1783
+ {
1784
+ name: 'sources',
1785
+ files: ['src/**/*.ts'],
1786
+ ignores: ['**/*.test.ts', '**/__tests__/**'],
1787
+ languageOptions: {
1788
+ globals: {
1789
+ ...globals.node,
1790
+ },
1791
+ parserOptions: {
1792
+ projectService: true,
1793
+ tsconfigRootDir: import.meta.dirname,
1794
+ },
1795
+ },
1796
+ },
1797
+
1798
+ // Test files
1799
+ {
1800
+ name: 'tests',
1801
+ files: ['src/**/*.test.ts', 'src/**/__tests__/**/*.ts'],
1802
+ languageOptions: {
1803
+ globals: {
1804
+ ...globals.node,
1805
+ },
1806
+ parserOptions: {
1807
+ projectService: true,
1808
+ tsconfigRootDir: import.meta.dirname,
1809
+ },
1810
+ },
1811
+ },
1812
+
1813
+ // Config files
1814
+ {
1815
+ name: 'ts-configs',
1816
+ files: ['*.config.m?ts', 'eslint.config.mts'],
1817
+ languageOptions: {
1818
+ globals: {
1819
+ ...globals.node,
1820
+ },
1821
+ parserOptions: {
1822
+ projectService: false,
1823
+ },
1824
+ },
1825
+ rules: {
1826
+ '@typescript-eslint/no-unused-vars': 'off',
1827
+ },
1828
+ },
1829
+
1830
+ // JavaScript/MJS files (scripts, configs) \u2014 no TS project, so only
1831
+ // disable the TS-parser-specific rule that doesn't apply without it.
1832
+ {
1833
+ name: 'js-configs',
1834
+ files: ['**/*.js', '**/*.mjs'],
1835
+ languageOptions: {
1836
+ globals: {
1837
+ ...globals.node,
1838
+ },
1839
+ parserOptions: {
1840
+ projectService: false,
1841
+ },
1842
+ },
1843
+ rules: {
1844
+ '@typescript-eslint/no-require-imports': 'off',
1845
+ },
1846
+ },
1847
+
1848
+ eslintConfigPrettier,
1849
+ ]);
1757
1850
  `
1758
1851
  },
1759
1852
  {
@@ -1766,7 +1859,9 @@ generated
1766
1859
  "private": true,
1767
1860
  "scripts": {
1768
1861
  "build": "test -d src && custom-objects-build --input src --output dist || true",
1862
+ "lint": "pnpm lint:types && pnpm lint:eslint",
1769
1863
  "lint:types": "test ! -d src || tsc --noEmit",
1864
+ "lint:eslint": "eslint .",
1770
1865
  "test": "vitest run"
1771
1866
  },
1772
1867
  "dependencies": {
@@ -1789,8 +1884,20 @@ generated
1789
1884
  "moduleResolution": "bundler",
1790
1885
  "types": ["vitest/globals"]
1791
1886
  },
1887
+ "include": ["src/**/*.ts"],
1792
1888
  "exclude": ["dist"]
1793
1889
  }
1890
+ `
1891
+ },
1892
+ {
1893
+ path: "root/custom-objects/vitest.config.mts",
1894
+ content: `import { defineConfig } from 'vitest/config';
1895
+
1896
+ export default defineConfig({
1897
+ test: {
1898
+ globals: true,
1899
+ },
1900
+ });
1794
1901
  `
1795
1902
  },
1796
1903
  {
@@ -1908,7 +2015,7 @@ export default defineConfig([
1908
2015
  "build": "pnpm -r --if-present build",
1909
2016
  "lint": "pnpm lint:types && pnpm lint:eslint && pnpm lint:format",
1910
2017
  "lint:types": "pnpm -r --if-present lint:types",
1911
- "lint:eslint": "eslint . --ignore-pattern 'extensions/**' && pnpm -r --filter './extensions/*' --if-present lint:eslint",
2018
+ "lint:eslint": "eslint . --ignore-pattern 'extensions/**' && pnpm -r --filter './extensions/*' --if-present lint:eslint && pnpm -r --filter './custom-objects' --if-present lint:eslint",
1912
2019
  "lint:format": "prettier --check .",
1913
2020
  "fix:lint": "eslint --fix . --ignore-pattern 'extensions/**' && pnpm -r --filter './extensions/*' --if-present fix:lint",
1914
2021
  "fix:format": "prettier --write .",
@@ -1937,6 +2044,10 @@ export default defineConfig([
1937
2044
 
1938
2045
  overrides:
1939
2046
  vite: ^6.0.0
2047
+
2048
+ allowBuilds:
2049
+ core-js-pure: false
2050
+ esbuild: false
1940
2051
  `
1941
2052
  },
1942
2053
  {
@@ -1954,7 +2065,7 @@ declarations:
1954
2065
  content: `#!/usr/bin/env tsx
1955
2066
  /**
1956
2067
  * Runs tests across the workspace:
1957
- * - vitest for script extensions and custom objects (extensions/*)
2068
+ * - vitest for script extensions (extensions/*) and custom objects (custom-objects/)
1958
2069
  * - jest for UI extensions (ui/)
1959
2070
  */
1960
2071
  import { existsSync, readdirSync } from 'node:fs';
@@ -1964,6 +2075,8 @@ const hasExtensions =
1964
2075
  existsSync('extensions') &&
1965
2076
  readdirSync('extensions').some((name) => existsSync(\`extensions/\${name}/package.json\`));
1966
2077
 
2078
+ const hasCustomObjects = existsSync('custom-objects/package.json');
2079
+
1967
2080
  const hasUI = existsSync('ui/package.json');
1968
2081
 
1969
2082
  let exitCode = 0;
@@ -1976,7 +2089,7 @@ function run(cmd: string): void {
1976
2089
  }
1977
2090
  }
1978
2091
 
1979
- if (hasExtensions) {
2092
+ if (hasExtensions || hasCustomObjects) {
1980
2093
  run('vitest run');
1981
2094
  }
1982
2095
 
@@ -2740,11 +2853,33 @@ var _ExtensionTemplateManager = class extends import_extensibility_tool_utils4._
2740
2853
  }
2741
2854
  };
2742
2855
 
2856
+ // src/workspace-versions.json
2857
+ var workspace_versions_default = {
2858
+ "@stripe/extensibility-custom-objects": "1.0.0",
2859
+ "@stripe/extensibility-custom-objects-tools": "4.0.1",
2860
+ "@stripe/extensibility-dev-tools": "1.0.2",
2861
+ "@stripe/extensibility-eslint-plugin": "1.0.0",
2862
+ "@stripe/extensibility-language-server": "1.0.0",
2863
+ "@stripe/extensibility-sdk": "1.0.0",
2864
+ "@stripe/extensibility-test-helpers": "1.0.0"
2865
+ };
2866
+
2867
+ // src/workspace-versions.ts
2868
+ var _workspaceVersions = workspace_versions_default;
2869
+ function _workspaceVersion(packageName) {
2870
+ const v = _workspaceVersions[packageName];
2871
+ if (v === void 0) {
2872
+ throw new Error(
2873
+ `Unknown workspace package "${packageName}". Check workspace-versions.json or run: tsx scripts/src/sync-workspace-versions.ts`
2874
+ );
2875
+ }
2876
+ return v;
2877
+ }
2878
+
2743
2879
  // src/templates/extensions/base.ts
2744
- var import_extensibility_tool_utils9 = require("@stripe/extensibility-tool-utils");
2745
2880
  var SDK_PACKAGE_NAME = "@stripe/extensibility-sdk";
2746
2881
  var LANGUAGE_SERVER_PACKAGE_NAME = "@stripe/extensibility-language-server";
2747
- var LANGUAGE_SERVER_PACKAGE_VERSION = `^${(0, import_extensibility_tool_utils9._workspaceVersion)(LANGUAGE_SERVER_PACKAGE_NAME)}`;
2882
+ var LANGUAGE_SERVER_PACKAGE_VERSION = `^${_workspaceVersion(LANGUAGE_SERVER_PACKAGE_NAME)}`;
2748
2883
  function _createExtensionEslintConfigFile(params, context) {
2749
2884
  const { id, extensionInterfaceId } = params;
2750
2885
  const { fs: fs2 } = context;
@@ -2787,7 +2922,7 @@ function _createBaseOutput(params, context) {
2787
2922
  dependencies: {
2788
2923
  // Exact pin (no caret) — the SDK is tightly coupled to dev-tools and
2789
2924
  // must match the version that generated the extension scaffolding.
2790
- runtime: [_npmDep(SDK_PACKAGE_NAME, (0, import_extensibility_tool_utils9._workspaceVersion)(SDK_PACKAGE_NAME))],
2925
+ runtime: [_npmDep(SDK_PACKAGE_NAME, _workspaceVersion(SDK_PACKAGE_NAME))],
2791
2926
  dev: [_devNpmDep(LANGUAGE_SERVER_PACKAGE_NAME, LANGUAGE_SERVER_PACKAGE_VERSION)]
2792
2927
  },
2793
2928
  postGenerationHooks: [
@@ -3046,14 +3181,14 @@ var billing_bill_discount_calculation_default = {
3046
3181
  [EXTENSION_INTERFACE_ID5]: discountCalculationTemplate
3047
3182
  };
3048
3183
 
3049
- // src/templates/extensions/billing.invoice_collection_setting.ts
3050
- var EXTENSION_INTERFACE_ID6 = "billing.invoice_collection_setting";
3051
- var invoiceCollectionSettingTemplate = {
3184
+ // src/templates/extensions/billing.invoice_collection_options.ts
3185
+ var EXTENSION_INTERFACE_ID6 = "billing.invoice_collection_options";
3186
+ var invoiceCollectionOptionsTemplate = {
3052
3187
  hidden: true,
3053
3188
  methods: {
3054
- collection_override: { implementation_types: ["script"] }
3189
+ override_options: { implementation_types: ["script"] }
3055
3190
  },
3056
- description: "Use Stripe Scripts to create custom invoice collection logic that controls how your integration handles invoices generated from subscriptions.",
3191
+ description: "Use Stripe Scripts to create custom invoice collection options that controls how your integration handles invoices generated from subscriptions.",
3057
3192
  generate: (params, context) => {
3058
3193
  const { id } = params;
3059
3194
  const { fs: fs2 } = context;
@@ -3081,15 +3216,15 @@ var invoiceCollectionSettingTemplate = {
3081
3216
  ...base.files
3082
3217
  ],
3083
3218
  methods: {
3084
- collection_override: {
3219
+ override_options: {
3085
3220
  implementation_type: "script"
3086
3221
  }
3087
3222
  }
3088
3223
  };
3089
3224
  }
3090
3225
  };
3091
- var billing_invoice_collection_setting_default = {
3092
- [EXTENSION_INTERFACE_ID6]: invoiceCollectionSettingTemplate
3226
+ var billing_invoice_collection_options_default = {
3227
+ [EXTENSION_INTERFACE_ID6]: invoiceCollectionOptionsTemplate
3093
3228
  };
3094
3229
 
3095
3230
  // src/templates/extensions/billing.prorations.ts
@@ -3197,7 +3332,7 @@ var DEFAULT_TEMPLATES = {
3197
3332
  ...extend_workflows_custom_action_default,
3198
3333
  ...billing_customer_balance_application_default,
3199
3334
  ...billing_bill_discount_calculation_default,
3200
- ...billing_invoice_collection_setting_default,
3335
+ ...billing_invoice_collection_options_default,
3201
3336
  ...billing_prorations_default,
3202
3337
  ...billing_recurring_billing_item_handling_default
3203
3338
  };
@@ -3210,9 +3345,8 @@ var _templateManager = new _ExtensionTemplateManager(
3210
3345
  );
3211
3346
 
3212
3347
  // src/templates/root/index.ts
3213
- var import_extensibility_tool_utils10 = require("@stripe/extensibility-tool-utils");
3214
3348
  var EXTENSIBILITY_ESLINT_PLUGIN_PACKAGE_NAME = "@stripe/extensibility-eslint-plugin";
3215
- var EXTENSIBILITY_ESLINT_PLUGIN_VERSION = `^${(0, import_extensibility_tool_utils10._workspaceVersion)(EXTENSIBILITY_ESLINT_PLUGIN_PACKAGE_NAME)}`;
3349
+ var EXTENSIBILITY_ESLINT_PLUGIN_VERSION = `^${_workspaceVersion(EXTENSIBILITY_ESLINT_PLUGIN_PACKAGE_NAME)}`;
3216
3350
  var _rootWorkspaceTemplate = {
3217
3351
  generate: (params, context) => {
3218
3352
  const { fs: fs2 } = context;
@@ -3267,14 +3401,14 @@ var _rootWorkspaceTemplate = {
3267
3401
  path: "custom-objects/package.json",
3268
3402
  content: fs2.mustache(
3269
3403
  {
3270
- customObjectsVersion: (0, import_extensibility_tool_utils10._workspaceVersion)(
3404
+ customObjectsVersion: _workspaceVersion(
3271
3405
  "@stripe/extensibility-custom-objects"
3272
3406
  ),
3273
- sdkVersion: (0, import_extensibility_tool_utils10._workspaceVersion)("@stripe/extensibility-sdk"),
3274
- customObjectsToolsVersion: (0, import_extensibility_tool_utils10._workspaceVersion)(
3407
+ sdkVersion: _workspaceVersion("@stripe/extensibility-sdk"),
3408
+ customObjectsToolsVersion: _workspaceVersion(
3275
3409
  "@stripe/extensibility-custom-objects-tools"
3276
3410
  ),
3277
- testHelpersVersion: (0, import_extensibility_tool_utils10._workspaceVersion)("@stripe/extensibility-test-helpers")
3411
+ testHelpersVersion: _workspaceVersion("@stripe/extensibility-test-helpers")
3278
3412
  },
3279
3413
  "custom-objects",
3280
3414
  "package.json.mustache"
@@ -3286,6 +3420,16 @@ var _rootWorkspaceTemplate = {
3286
3420
  content: fs2.textFile("custom-objects/tsconfig.json"),
3287
3421
  precious: true
3288
3422
  },
3423
+ {
3424
+ path: "custom-objects/eslint.config.mts",
3425
+ content: fs2.textFile("custom-objects/eslint.config.mts"),
3426
+ precious: true
3427
+ },
3428
+ {
3429
+ path: "custom-objects/vitest.config.mts",
3430
+ content: fs2.textFile("custom-objects/vitest.config.mts"),
3431
+ precious: true
3432
+ },
3289
3433
  {
3290
3434
  path: "ui/package.json",
3291
3435
  content: fs2.textFile("ui/package.json"),
@@ -3312,7 +3456,7 @@ var _rootWorkspaceTemplate = {
3312
3456
  _devNpmDep("@types/node", "^20.19.0"),
3313
3457
  _devNpmDep(
3314
3458
  "@stripe/extensibility-dev-tools",
3315
- `^${(0, import_extensibility_tool_utils10._workspaceVersion)("@stripe/extensibility-dev-tools")}`
3459
+ `^${_workspaceVersion("@stripe/extensibility-dev-tools")}`
3316
3460
  ),
3317
3461
  _devNpmDep("concurrently", "^9.2.1"),
3318
3462
  _devNpmDep("eslint", "^9.0.0"),
@@ -3406,7 +3550,7 @@ async function _resolvePackageMetadata(providedId, providedName, packageDir) {
3406
3550
  name ??= id;
3407
3551
  return { id, name, version };
3408
3552
  }
3409
- function runPostGenerationHooks(hooks, workingDir, disabled = false, context = (0, import_extensibility_tool_utils11._createCliContext)()) {
3553
+ function runPostGenerationHooks(hooks, workingDir, disabled = false, context = (0, import_extensibility_tool_utils9._createCliContext)()) {
3410
3554
  if (!hooks || hooks.length === 0 || disabled) {
3411
3555
  return Promise.resolve();
3412
3556
  }
@@ -3510,9 +3654,9 @@ function resolveMode(options, projectRoot, packageDir) {
3510
3654
  workspaceDir: () => packageDir ?? import_node_path3.default.join(projectRoot, "custom-objects"),
3511
3655
  generate: async (svc) => {
3512
3656
  const customObjectsWorkspaceDir = packageDir ?? import_node_path3.default.join(projectRoot, "custom-objects");
3513
- const workspaceExists = (0, import_node_fs2.existsSync)(import_node_path3.default.join(customObjectsWorkspaceDir, "package.json")) && (0, import_node_fs2.existsSync)(import_node_path3.default.join(customObjectsWorkspaceDir, "tsconfig.json"));
3657
+ const workspaceScaffoldingExists = (0, import_node_fs2.existsSync)(import_node_path3.default.join(customObjectsWorkspaceDir, "package.json")) && (0, import_node_fs2.existsSync)(import_node_path3.default.join(customObjectsWorkspaceDir, "tsconfig.json")) && (0, import_node_fs2.existsSync)(import_node_path3.default.join(customObjectsWorkspaceDir, "eslint.config.mts"));
3514
3658
  const objectResult = await svc.generateCustomObject({ name: objectName });
3515
- if (workspaceExists) {
3659
+ if (workspaceScaffoldingExists) {
3516
3660
  return objectResult;
3517
3661
  }
3518
3662
  const workspaceResult = await svc.generateCustomObjectsWorkspace({});
@@ -3527,11 +3671,11 @@ function resolveMode(options, projectRoot, packageDir) {
3527
3671
  finalize: async (_svc, _meta, root, _output, context) => {
3528
3672
  context.ux.log("\nUpdating stripe-app.yaml...");
3529
3673
  const manifestPath = import_node_path3.default.join(root, "stripe-app.yaml");
3530
- const manifest = await (0, import_extensibility_tool_utils11._openStripeAppManifest)(manifestPath);
3531
- const apiName = (0, import_extensibility_tool_utils11._toSnakeCase)(objectName);
3674
+ const manifest = await (0, import_extensibility_tool_utils9._openStripeAppManifest)(manifestPath);
3675
+ const apiName = (0, import_extensibility_tool_utils9._toSnakeCase)(objectName);
3532
3676
  if (!manifest.hasCustomObject(apiName)) {
3533
3677
  manifest.addCustomObject(apiName, `custom-objects/src/${apiName}.object.ts`);
3534
- const tx = (0, import_extensibility_tool_utils11._beginTransaction)();
3678
+ const tx = (0, import_extensibility_tool_utils9._beginTransaction)();
3535
3679
  tx.adopt(manifest);
3536
3680
  const report = await tx.commit();
3537
3681
  if (report.written.length > 0) {
@@ -3625,7 +3769,7 @@ var _defaultServices = {
3625
3769
  };
3626
3770
  },
3627
3771
  generateCustomObjectsWorkspace: async (vars) => {
3628
- const runner = new import_extensibility_tool_utils11._GeneratorRunner(import_internal._customObjectsWorkspaceGenerator);
3772
+ const runner = new import_extensibility_tool_utils9._GeneratorRunner(import_internal._customObjectsWorkspaceGenerator);
3629
3773
  const plan = await runner.plan(vars, {
3630
3774
  scope: "project",
3631
3775
  projectRoot: process.cwd()
@@ -3639,7 +3783,7 @@ var _defaultServices = {
3639
3783
  loadManifest: (manifestPath) => _StripeAppManifest.load(manifestPath),
3640
3784
  runHooks: runPostGenerationHooks
3641
3785
  };
3642
- async function _regenAppProjectWorkspace(options, services = _defaultServices, context = (0, import_extensibility_tool_utils11._createCliContext)()) {
3786
+ async function _regenAppProjectWorkspace(options, services = _defaultServices, context = (0, import_extensibility_tool_utils9._createCliContext)()) {
3643
3787
  const isCustomObjectMode = options.templateId === "custom-object";
3644
3788
  if (!isCustomObjectMode && !options.packageDir && !options.workspaceId) {
3645
3789
  throw new Error("At least one of packageDir or workspaceId is required");
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workspace/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,EAML,KAAK,WAAW,EACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAcpF;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,yDAAyD;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;iBAqBvC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IACE,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,GACD;IACE,IAAI,EAAE,mBAAmB,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEN;;;GAGG;AACH,MAAM,MAAM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