change discount field type

This commit is contained in:
nflnkr 2023-07-19 14:51:35 +03:00
parent 6b39f34884
commit bdeb1d9765
3 changed files with 5 additions and 22 deletions

@ -2,11 +2,11 @@
## Публикация
```bash
# заменить token на актуальный токен
GITLAB_AUTH_TOKEN=token yarn build && GITLAB_AUTH_TOKEN=token yarn publish ./dist
GITLAB_AUTH_TOKEN= yarn build && GITLAB_AUTH_TOKEN=token yarn publish ./dist
```
## Использование
```bash
# заменить token на актуальный токен
npm config set //penahub.gitlab.yandexcloud.net/api/v4/packages/npm/:_authToken=token
yarn add @frontend/kitui
```
```

@ -1,6 +1,6 @@
{
"name": "@frontend/kitui",
"version": "1.0.12",
"version": "1.0.13",
"description": "test",
"main": "index.js",
"types": "index.d.ts",

@ -1,20 +1,3 @@
export const SERVICE_LIST = [
{
serviceKey: "templategen",
displayName: "Шаблонизатор документов",
},
{
serviceKey: "squiz",
displayName: "Опросник",
},
{
serviceKey: "dwarfener",
displayName: "Аналитика сокращателя",
},
] as const;
export type ServiceType = (typeof SERVICE_LIST)[number]["serviceKey"];
export interface Discount {
ID: string;
Name: string;
@ -34,7 +17,7 @@ export interface Discount {
Term: string;
Usage: string;
PriceFrom: number;
Group: ServiceType;
Group: string;
};
Target: {
Products: [{
@ -44,7 +27,7 @@ export interface Discount {
}];
Factor: number;
TargetScope: string;
TargetGroup: ServiceType;
TargetGroup: string;
Overhelm: boolean;
};
Audit: {