-
Notifications
You must be signed in to change notification settings - Fork 12
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
Alpha #119
base: master
Are you sure you want to change the base?
Alpha #119
Conversation
BREAKING CHANGE: Session.client doesn't accept custom endpoint anymore
ServiceEndpointResolver
# [3.0.0-alpha.1](v2.4.2...v3.0.0-alpha.1) (2023-03-13) * feat!: use standalone class for resolving service endpoints ([d9b00eb](d9b00eb)) ### BREAKING CHANGES * Session.client doesn't accept custom endpoint anymore
проверил, работает! Спасибо:) |
serviceIds: string[]; | ||
endpoint: string; | ||
} | ||
|
||
type ServiceEndpointsList = ServiceEndpoint[]; | ||
export type ServiceSlug = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не очень понимаю зачем это, если они не соответствуют id
https://api.cloud.yandex.net/endpoints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не очень понимаю зачем это, если они не соответствуют
id
https://api.cloud.yandex.net/endpoints
Это просто логическая группировка, которая помимо упрощения чтения еще позволяет проще переопределить часть эндпоинтов. Например, можно взять дефолтный список и по ключам заоверрайдить только нужный скоуп эндпоинтов.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Проблема в автоматическом построении. Из-за того что тип ServiceSlug
это перечисление констант, сложно на основе данных /endpoints
скриптом собрать объект нужной формы. TypeScript ругается.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Проблема в автоматическом построении. Из-за того что тип
ServiceSlug
это перечисление констант, сложно на основе данных/endpoints
скриптом собрать объект нужной формы. TypeScript ругается.
Так поди можно скриптик написать, который этим же типом оперирует и генерирует нужной формы объект?
Кстати было бы неплохо сюда положить такую функцию, которая на вход принимает эндпоинт, а на выходе ServiceEndpointsMap
выплевывает.
No description provided.