@nomalism-com/types 0.22.73 → 0.22.75
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.
- package/dist/index.min.js +1 -1
- package/dist/main.d.ts +1 -45
- package/dist/modules/stock/product/interface.d.ts +10 -39
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +4 -4
- package/dist/modules/stock/productImage/interface.d.ts +1 -1
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +6 -8
- package/dist/modules/stock/unitOfMeasure/route.schema.d.ts +1 -1
- package/dist/modules/supply/cabide/interface.d.ts +16 -15
- package/dist/modules/user/purchaseConditions/interface.d.ts +9 -16
- package/dist/shared/entities/index.d.ts +0 -22
- package/dist/shared/entities/stock.d.ts +4 -235
- package/package.json +1 -1
- package/dist/modules/stock/attribute/interfaces.d.ts +0 -51
- package/dist/modules/stock/attribute/route.schema.d.ts +0 -5
- package/dist/modules/stock/attributeValue/interfaces.d.ts +0 -36
- package/dist/modules/stock/attributeValue/route.schema.d.ts +0 -5
- package/dist/modules/stock/color/interfaces.d.ts +0 -36
- package/dist/modules/stock/color/route.schema.d.ts +0 -5
- package/dist/modules/stock/composition/interfaces.d.ts +0 -36
- package/dist/modules/stock/composition/route.schema.d.ts +0 -5
- package/dist/modules/stock/compositionMaterial/interfaces.d.ts +0 -32
- package/dist/modules/stock/compositionMaterial/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenance/interface.d.ts +0 -37
- package/dist/modules/stock/maintenance/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenanceAssoc/interface.d.ts +0 -35
- package/dist/modules/stock/maintenanceAssoc/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenancePreset/interfaces.d.ts +0 -28
- package/dist/modules/stock/maintenancePreset/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenancePresetAssoc/interfaces.d.ts +0 -31
- package/dist/modules/stock/maintenancePresetAssoc/route.schema.d.ts +0 -4
- package/dist/modules/stock/maintenanceType/interface.d.ts +0 -32
- package/dist/modules/stock/maintenanceType/route.schema.d.ts +0 -5
- package/dist/modules/stock/primaryColor/interface.d.ts +0 -32
- package/dist/modules/stock/primaryColor/route.schema.d.ts +0 -5
- package/dist/modules/stock/productAttribute/interface.d.ts +0 -36
- package/dist/modules/stock/productAttribute/route.schema.d.ts +0 -5
- package/dist/modules/stock/productCategory/interface.d.ts +0 -32
- package/dist/modules/stock/productCategory/route.schema.d.ts +0 -5
- package/dist/modules/stock/productColor/interface.d.ts +0 -36
- package/dist/modules/stock/productColor/route.schema.d.ts +0 -5
- package/dist/modules/stock/productName/interface.d.ts +0 -32
- package/dist/modules/stock/productName/route.schema.d.ts +0 -5
- package/dist/modules/stock/productNamePreset/interface.d.ts +0 -32
- package/dist/modules/stock/productNamePreset/route.schema.d.ts +0 -5
- package/dist/modules/stock/productPart/interface.d.ts +0 -40
- package/dist/modules/stock/productPart/route.schema.d.ts +0 -5
- package/dist/modules/stock/productSubCategory/interface.d.ts +0 -38
- package/dist/modules/stock/productSubCategory/route.schema.d.ts +0 -5
- package/dist/modules/stock/productUse/interface.d.ts +0 -32
- package/dist/modules/stock/productUse/route.schema.d.ts +0 -5
- package/dist/modules/stock/productUseAssoc/interface.d.ts +0 -34
- package/dist/modules/stock/productUseAssoc/route.schema.d.ts +0 -5
- package/dist/modules/stock/similarProduct/interface.d.ts +0 -38
- package/dist/modules/stock/similarProduct/route.schema.d.ts +0 -5
- package/dist/modules/stock/typeOfInventory/interface.d.ts +0 -34
- package/dist/modules/stock/typeOfInventory/route.schema.d.ts +0 -5
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { MaintenancePreset } from '../../../shared/entities';
|
|
3
|
-
export type Entity = MaintenancePreset;
|
|
4
|
-
export declare const Route = "maintenance_preset";
|
|
5
|
-
export declare const UpperName = "MaintenancePreset";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Entity;
|
|
9
|
-
export interface ICreateRequest {
|
|
10
|
-
name: string;
|
|
11
|
-
origin_id: string | null;
|
|
12
|
-
}
|
|
13
|
-
export interface IUpdateRequest {
|
|
14
|
-
name: string;
|
|
15
|
-
origin_id: string | null;
|
|
16
|
-
}
|
|
17
|
-
export interface IApplyRequest {
|
|
18
|
-
product_part_id: string;
|
|
19
|
-
}
|
|
20
|
-
export interface IRepository {
|
|
21
|
-
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
22
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
23
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
24
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
25
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
26
|
-
apply(selector: IShared.IFindByIdRequest, data: IApplyRequest): Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { MaintenancePresetAssoc } from '../../../shared/entities';
|
|
3
|
-
import * as IMaintenance from '../maintenance/interface';
|
|
4
|
-
import * as IMaintenancePreset from '../maintenancePreset/interfaces';
|
|
5
|
-
export type Entity = MaintenancePresetAssoc;
|
|
6
|
-
export declare const Route = "maintenance_preset_assoc";
|
|
7
|
-
export declare const UpperName = "MaintenancePresetAssoc";
|
|
8
|
-
export declare const LowerName: string;
|
|
9
|
-
export interface IFindDetailedResponse extends Entity {
|
|
10
|
-
maintenance: IMaintenance.IFindDetailedResponse;
|
|
11
|
-
maintenance_preset: IMaintenancePreset.IFindResponse;
|
|
12
|
-
}
|
|
13
|
-
export type IFindRequest = Record<string, unknown>;
|
|
14
|
-
export type IFindResponse = Entity;
|
|
15
|
-
export interface ICreateRequest {
|
|
16
|
-
preset_id: string;
|
|
17
|
-
maintenance_id: string;
|
|
18
|
-
origin_id: string | null;
|
|
19
|
-
}
|
|
20
|
-
export interface IUpdateRequest {
|
|
21
|
-
preset_id?: string;
|
|
22
|
-
maintenance_id?: string;
|
|
23
|
-
origin_id: string | null;
|
|
24
|
-
}
|
|
25
|
-
export interface IRepository {
|
|
26
|
-
create(data: ICreateRequest): Promise<IFindDetailedResponse>;
|
|
27
|
-
find(selector: IFindRequest): Promise<IFindDetailedResponse[]>;
|
|
28
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindDetailedResponse | null>;
|
|
29
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
30
|
-
}
|
|
31
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { MaintenanceType } from '../../../shared/entities';
|
|
3
|
-
export type Entity = MaintenanceType;
|
|
4
|
-
export declare const Route = "maintenance_type";
|
|
5
|
-
export declare const UpperName = "MaintenanceType";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
10
|
-
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
15
|
-
export interface ICreateRequest {
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
name?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IRepository {
|
|
22
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
23
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
24
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
26
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
27
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
28
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
29
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
30
|
-
}
|
|
31
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
32
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { PrimaryColor } from '../../../shared/entities';
|
|
3
|
-
export type Entity = PrimaryColor;
|
|
4
|
-
export declare const Route = "primary_color";
|
|
5
|
-
export declare const UpperName = "PrimaryColor";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
10
|
-
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
15
|
-
export interface ICreateRequest {
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
name?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IRepository {
|
|
22
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
23
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
24
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
26
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
27
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
28
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
29
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
30
|
-
}
|
|
31
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
32
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ProductAttribute, Attribute } from '../../../shared/entities';
|
|
3
|
-
export type Entity = ProductAttribute;
|
|
4
|
-
export declare const Route = "product_attribute";
|
|
5
|
-
export declare const UpperName = "ProductAttribute";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export interface IFindDetailedResponse extends Entity {
|
|
8
|
-
attribute: Attribute;
|
|
9
|
-
}
|
|
10
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, 'attribute'>;
|
|
11
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export type IFindRequest = Record<string, unknown>;
|
|
13
|
-
export type IFindResponse = Omit<IFindDetailedResponse, 'attribute'>;
|
|
14
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
15
|
-
}
|
|
16
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, 'attribute'>>;
|
|
17
|
-
export interface ICreateRequest {
|
|
18
|
-
product_id: string;
|
|
19
|
-
value: string;
|
|
20
|
-
attribute_id: string;
|
|
21
|
-
}
|
|
22
|
-
export interface IUpdateRequest {
|
|
23
|
-
product_id?: string;
|
|
24
|
-
value?: string;
|
|
25
|
-
attribute_id?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface IRepository {
|
|
28
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
29
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
30
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
31
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
32
|
-
create(data: ICreateRequest): Promise<IFindDetailedResponse>;
|
|
33
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindDetailedResponse | null>;
|
|
34
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindDetailedResponse | null>;
|
|
35
|
-
}
|
|
36
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ProductCategory } from '../../../shared/entities';
|
|
3
|
-
export type Entity = ProductCategory;
|
|
4
|
-
export declare const Route = "product_category";
|
|
5
|
-
export declare const UpperName = "ProductCategory";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
10
|
-
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
15
|
-
export interface ICreateRequest {
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
name?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IRepository {
|
|
22
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
23
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
24
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
26
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
27
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
28
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
29
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
30
|
-
}
|
|
31
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
32
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ProductColor, Color } from '../../../shared/entities';
|
|
3
|
-
export type Entity = ProductColor;
|
|
4
|
-
export declare const Route = "product_color";
|
|
5
|
-
export declare const UpperName = "ProductColor";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
interface IFindDetailedResponse extends Entity {
|
|
8
|
-
color: Color;
|
|
9
|
-
}
|
|
10
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, 'color'>;
|
|
11
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export type IFindRequest = Record<string, unknown>;
|
|
13
|
-
export type IFindResponse = Omit<IFindDetailedResponse, 'color'>;
|
|
14
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
15
|
-
}
|
|
16
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, 'color'>>;
|
|
17
|
-
export interface ICreateRequest {
|
|
18
|
-
product_id: string;
|
|
19
|
-
color_id: string;
|
|
20
|
-
multimedia_id: string;
|
|
21
|
-
}
|
|
22
|
-
export interface IUpdateRequest {
|
|
23
|
-
color_id?: string;
|
|
24
|
-
multimedia_id?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface IRepository {
|
|
27
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
28
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
29
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
30
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
31
|
-
create(data: ICreateRequest): Promise<IFindByOwnerIdResponse>;
|
|
32
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
33
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
34
|
-
}
|
|
35
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
36
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ProductName } from '../../../shared/entities';
|
|
3
|
-
export type Entity = ProductName;
|
|
4
|
-
export declare const Route = "product_name";
|
|
5
|
-
export declare const UpperName = "ProductName";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
10
|
-
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
15
|
-
export interface ICreateRequest {
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
name?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IRepository {
|
|
22
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
23
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
24
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
26
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
27
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
28
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
29
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
30
|
-
}
|
|
31
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
32
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ProductNamePreset } from '../../../shared/entities';
|
|
3
|
-
export type Entity = ProductNamePreset;
|
|
4
|
-
export declare const Route = "product_name_preset";
|
|
5
|
-
export declare const UpperName = "ProductNamePreset";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
10
|
-
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
15
|
-
export interface ICreateRequest {
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
name?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IRepository {
|
|
22
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
23
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
24
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
26
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
27
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
28
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
29
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
30
|
-
}
|
|
31
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
32
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ProductPart } from '../../../shared/entities';
|
|
3
|
-
import * as IComposition from '../composition/interfaces';
|
|
4
|
-
import * as IMaintenanceAssoc from '../maintenanceAssoc/interface';
|
|
5
|
-
export type Entity = ProductPart;
|
|
6
|
-
export declare const Route = "product_part";
|
|
7
|
-
export declare const UpperName = "ProductPart";
|
|
8
|
-
export declare const LowerName: string;
|
|
9
|
-
interface IFindDetailedResponse extends Entity {
|
|
10
|
-
compositions: IComposition.IFindDetailedResponse[];
|
|
11
|
-
maintenance_assocs: IMaintenanceAssoc.IFindDetailedResponse[];
|
|
12
|
-
}
|
|
13
|
-
export type IFindByRefProduct = Omit<IFindDetailedResponse, 'maintenance_assocs'>;
|
|
14
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, 'compositions' | 'maintenance_assocs'>;
|
|
15
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
16
|
-
export type IFindRequest = Record<string, unknown>;
|
|
17
|
-
export type IFindResponse = Omit<IFindDetailedResponse, 'compositions' | 'maintenance_assocs'>;
|
|
18
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
19
|
-
}
|
|
20
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, 'compositions' | 'maintenance_assocs'>>;
|
|
21
|
-
export interface ICreateRequest {
|
|
22
|
-
name: string;
|
|
23
|
-
product_id: string;
|
|
24
|
-
}
|
|
25
|
-
export interface IUpdateRequest {
|
|
26
|
-
name?: string;
|
|
27
|
-
product_id?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface IRepository {
|
|
30
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
31
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
32
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
33
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
34
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
35
|
-
create(data: ICreateRequest): Promise<IFindByOwnerIdResponse>;
|
|
36
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
37
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
38
|
-
}
|
|
39
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
40
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ProductCategory, ProductSubCategory } from '../../../shared/entities';
|
|
3
|
-
export type Entity = ProductSubCategory;
|
|
4
|
-
export declare const Route = "product_sub_category";
|
|
5
|
-
export declare const UpperName = "ProductSubCategory";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
interface IFindDetailedResponse extends Entity {
|
|
8
|
-
product_category: ProductCategory;
|
|
9
|
-
}
|
|
10
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, 'product_category'>;
|
|
11
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, 'product_category'>;
|
|
12
|
-
export type IFindRequest = Record<string, unknown>;
|
|
13
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
14
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
15
|
-
}
|
|
16
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, 'product_category'>>;
|
|
17
|
-
export interface ICreateRequest {
|
|
18
|
-
name: string;
|
|
19
|
-
product_category_id: string;
|
|
20
|
-
external_id?: string | null;
|
|
21
|
-
}
|
|
22
|
-
export interface IUpdateRequest {
|
|
23
|
-
name?: string;
|
|
24
|
-
product_category_id?: string;
|
|
25
|
-
external_id?: string | null;
|
|
26
|
-
}
|
|
27
|
-
export interface IRepository {
|
|
28
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
29
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
30
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
31
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
32
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
33
|
-
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
34
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
35
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
36
|
-
}
|
|
37
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
38
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ProductUse } from '../../../shared/entities';
|
|
3
|
-
export type Entity = ProductUse;
|
|
4
|
-
export declare const Route = "product_use";
|
|
5
|
-
export declare const UpperName = "ProductUse";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
10
|
-
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
15
|
-
export interface ICreateRequest {
|
|
16
|
-
name: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
name?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IRepository {
|
|
22
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
23
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
24
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
26
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
27
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
28
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
29
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
30
|
-
}
|
|
31
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
32
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ProductUseAssoc, ProductUse } from '../../../shared/entities';
|
|
3
|
-
export type Entity = ProductUseAssoc;
|
|
4
|
-
export declare const Route = "product_use_assoc";
|
|
5
|
-
export declare const UpperName = "ProductUseAssoc";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
interface IFindDetailedResponse extends Entity {
|
|
8
|
-
product_use: ProductUse;
|
|
9
|
-
}
|
|
10
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, 'product_use'>;
|
|
11
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export type IFindRequest = Record<string, unknown>;
|
|
13
|
-
export type IFindResponse = Omit<IFindDetailedResponse, 'product_use'>;
|
|
14
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
15
|
-
}
|
|
16
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, 'product_use'>>;
|
|
17
|
-
export interface ICreateRequest {
|
|
18
|
-
product_use_id: string;
|
|
19
|
-
product_id: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IUpdateRequest {
|
|
22
|
-
product_use_id: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IRepository {
|
|
25
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
26
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
27
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
28
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
29
|
-
create(data: ICreateRequest): Promise<IFindByOwnerIdResponse>;
|
|
30
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
31
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
32
|
-
}
|
|
33
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
34
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { SimilarProduct } from '../../../shared/entities';
|
|
3
|
-
export type Entity = SimilarProduct;
|
|
4
|
-
export declare const Route = "similar_product";
|
|
5
|
-
export declare const UpperName = "SimilarProduct";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export interface IFindByOwnerIdResponse extends Entity {
|
|
10
|
-
similar_product: {
|
|
11
|
-
reference: string;
|
|
12
|
-
thumbnail: string | null;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export type IFindRequest = Record<string, unknown>;
|
|
16
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
17
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
18
|
-
}
|
|
19
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
20
|
-
export interface ICreateRequest {
|
|
21
|
-
product_id: string;
|
|
22
|
-
similar_product_id: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IUpdateRequest {
|
|
25
|
-
product_id: string;
|
|
26
|
-
similar_product_id: string;
|
|
27
|
-
}
|
|
28
|
-
export interface IRepository {
|
|
29
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
30
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
31
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
32
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
33
|
-
create(data: ICreateRequest): Promise<IFindByOwnerIdResponse>;
|
|
34
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
35
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
36
|
-
}
|
|
37
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
38
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { TypeOfInventory } from '../../../shared/entities';
|
|
3
|
-
export type Entity = TypeOfInventory;
|
|
4
|
-
export declare const Route = "type_of_inventory";
|
|
5
|
-
export declare const UpperName = "TypeOfInventory";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
10
|
-
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
15
|
-
export interface ICreateRequest {
|
|
16
|
-
name: string;
|
|
17
|
-
saft_code: string;
|
|
18
|
-
}
|
|
19
|
-
export interface IUpdateRequest {
|
|
20
|
-
name?: string;
|
|
21
|
-
saft_code?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface IRepository {
|
|
24
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
25
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
26
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
27
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
28
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
29
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
30
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
31
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
32
|
-
}
|
|
33
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
34
|
-
export {};
|