stripe-experiment-sync 1.0.12 → 1.0.13

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.
@@ -17,6 +17,7 @@ declare class SupabaseSetupClient {
17
17
  private api;
18
18
  private projectRef;
19
19
  private projectBaseUrl;
20
+ private accessToken;
20
21
  constructor(options: DeployClientOptions);
21
22
  /**
22
23
  * Validate that the project exists and we have access
@@ -25,7 +26,7 @@ declare class SupabaseSetupClient {
25
26
  /**
26
27
  * Deploy an Edge Function
27
28
  */
28
- deployFunction(name: string, code: string): Promise<void>;
29
+ deployFunction(name: string, code: string, verifyJwt?: boolean): Promise<void>;
29
30
  /**
30
31
  * Set secrets for Edge Functions
31
32
  */
@@ -91,9 +92,9 @@ declare class SupabaseSetupClient {
91
92
  deleteSecret(name: string): Promise<void>;
92
93
  /**
93
94
  * Uninstall stripe-sync from a Supabase project
94
- * Removes all Edge Functions, secrets, database resources, and Stripe webhooks
95
+ * Invokes the stripe-setup edge function's DELETE endpoint which handles cleanup
95
96
  */
96
- uninstall(stripeSecretKey?: string): Promise<void>;
97
+ uninstall(): Promise<void>;
97
98
  /**
98
99
  * Inject package version into Edge Function code
99
100
  */
@@ -112,9 +113,8 @@ declare function install(params: {
112
113
  declare function uninstall(params: {
113
114
  supabaseAccessToken: string;
114
115
  supabaseProjectRef: string;
115
- stripeKey?: string;
116
116
  baseProjectUrl?: string;
117
- baseManagementApiUrl?: string;
117
+ baseManagementApiBaseUrl?: string;
118
118
  }): Promise<void>;
119
119
 
120
120
  declare const setupFunctionCode: string;
@@ -17,6 +17,7 @@ declare class SupabaseSetupClient {
17
17
  private api;
18
18
  private projectRef;
19
19
  private projectBaseUrl;
20
+ private accessToken;
20
21
  constructor(options: DeployClientOptions);
21
22
  /**
22
23
  * Validate that the project exists and we have access
@@ -25,7 +26,7 @@ declare class SupabaseSetupClient {
25
26
  /**
26
27
  * Deploy an Edge Function
27
28
  */
28
- deployFunction(name: string, code: string): Promise<void>;
29
+ deployFunction(name: string, code: string, verifyJwt?: boolean): Promise<void>;
29
30
  /**
30
31
  * Set secrets for Edge Functions
31
32
  */
@@ -91,9 +92,9 @@ declare class SupabaseSetupClient {
91
92
  deleteSecret(name: string): Promise<void>;
92
93
  /**
93
94
  * Uninstall stripe-sync from a Supabase project
94
- * Removes all Edge Functions, secrets, database resources, and Stripe webhooks
95
+ * Invokes the stripe-setup edge function's DELETE endpoint which handles cleanup
95
96
  */
96
- uninstall(stripeSecretKey?: string): Promise<void>;
97
+ uninstall(): Promise<void>;
97
98
  /**
98
99
  * Inject package version into Edge Function code
99
100
  */
@@ -112,9 +113,8 @@ declare function install(params: {
112
113
  declare function uninstall(params: {
113
114
  supabaseAccessToken: string;
114
115
  supabaseProjectRef: string;
115
- stripeKey?: string;
116
116
  baseProjectUrl?: string;
117
- baseManagementApiUrl?: string;
117
+ baseManagementApiBaseUrl?: string;
118
118
  }): Promise<void>;
119
119
 
120
120
  declare const setupFunctionCode: string;
@@ -9,8 +9,8 @@ import {
9
9
  uninstall,
10
10
  webhookFunctionCode,
11
11
  workerFunctionCode
12
- } from "../chunk-RAM7OG7J.js";
13
- import "../chunk-IO2EEPFD.js";
12
+ } from "../chunk-O2N4AEQS.js";
13
+ import "../chunk-RCU5ZXAX.js";
14
14
  export {
15
15
  INSTALLATION_ERROR_SUFFIX,
16
16
  INSTALLATION_INSTALLED_SUFFIX,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe-experiment-sync",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "private": false,
5
5
  "description": "Stripe Sync Engine to sync Stripe data to Postgres",
6
6
  "type": "module",