change discount field type
This commit is contained in:
parent
6b39f34884
commit
bdeb1d9765
@ -2,11 +2,11 @@
|
|||||||
## Публикация
|
## Публикация
|
||||||
```bash
|
```bash
|
||||||
# заменить token на актуальный токен
|
# заменить 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
|
```bash
|
||||||
# заменить token на актуальный токен
|
# заменить token на актуальный токен
|
||||||
npm config set //penahub.gitlab.yandexcloud.net/api/v4/packages/npm/:_authToken=token
|
npm config set //penahub.gitlab.yandexcloud.net/api/v4/packages/npm/:_authToken=token
|
||||||
yarn add @frontend/kitui
|
yarn add @frontend/kitui
|
||||||
```
|
```
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@frontend/kitui",
|
"name": "@frontend/kitui",
|
||||||
"version": "1.0.12",
|
"version": "1.0.13",
|
||||||
"description": "test",
|
"description": "test",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"types": "index.d.ts",
|
"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 {
|
export interface Discount {
|
||||||
ID: string;
|
ID: string;
|
||||||
Name: string;
|
Name: string;
|
||||||
@ -34,7 +17,7 @@ export interface Discount {
|
|||||||
Term: string;
|
Term: string;
|
||||||
Usage: string;
|
Usage: string;
|
||||||
PriceFrom: number;
|
PriceFrom: number;
|
||||||
Group: ServiceType;
|
Group: string;
|
||||||
};
|
};
|
||||||
Target: {
|
Target: {
|
||||||
Products: [{
|
Products: [{
|
||||||
@ -44,7 +27,7 @@ export interface Discount {
|
|||||||
}];
|
}];
|
||||||
Factor: number;
|
Factor: number;
|
||||||
TargetScope: string;
|
TargetScope: string;
|
||||||
TargetGroup: ServiceType;
|
TargetGroup: string;
|
||||||
Overhelm: boolean;
|
Overhelm: boolean;
|
||||||
};
|
};
|
||||||
Audit: {
|
Audit: {
|
||||||
|
Loading…
Reference in New Issue
Block a user