Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STRIPE required as input for secrets.update() #18

Closed
ana-lovelace opened this issue Feb 13, 2024 · 2 comments · Fixed by #19
Closed

STRIPE required as input for secrets.update() #18

ana-lovelace opened this issue Feb 13, 2024 · 2 comments · Fixed by #19

Comments

@ana-lovelace
Copy link

The STRIPE property is required as part of the Secrets interface. It is not possible to call secrets.update() without including this property.

Example code:

  const input = {
    config: 'dev',
    project: 'test-project',
    secrets: {
      TEST_SECRET: 'test_secret_value',
    }
  };

  const response = await sdk.secrets.update(input);

Resulting error:

Argument of type '{ config: string; project: string; secrets: { TEST_SECRET: string; }; }' is not assignable to parameter of type 'UpdateRequest'.
  Types of property 'secrets' are incompatible.
    Property 'STRIPE' is missing in type '{ TEST_SECRET: string; }' but required in type 'Secrets'.

Please make the STRIPE property optional.

@green2jello
Copy link

Bumping this again. Why is there a missing property of STRIPE?

@kyle-mcguire kyle-mcguire linked a pull request Apr 8, 2024 that will close this issue
@kyle-mcguire
Copy link
Contributor

Hi @green2jello, this issue will be fixed in the next SDK update. It should go out sometime this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants