@cinerino/sdk 15.0.0-alpha.3 → 15.0.0-alpha.4

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.
@@ -1,5 +1,6 @@
1
1
  import { factory } from '../factory';
2
2
  import { Service } from '../service';
3
+ type ICustomerType = Pick<factory.categoryCode.ICategoryCode, 'codeValue' | 'id' | 'name' | 'typeOf'>;
3
4
  /**
4
5
  * カスタマータイプサービス
5
6
  */
@@ -7,5 +8,6 @@ export declare class CustomerTypeService extends Service {
7
8
  /**
8
9
  * 検索
9
10
  */
10
- search(params: Pick<factory.categoryCode.ISearchConditions, 'codeValue' | 'limit' | 'page' | 'sort'>): Promise<factory.categoryCode.ICategoryCode[]>;
11
+ search(params: Pick<factory.categoryCode.ISearchConditions, 'codeValue' | 'limit' | 'page' | 'sort'>): Promise<ICustomerType[]>;
11
12
  }
13
+ export {};
@@ -22,8 +22,6 @@ interface IProductModel {
22
22
  }[];
23
23
  }[];
24
24
  }
25
- type IKeyOfProjection = keyof IProductModel | '_id';
26
- type IProjection = Partial<Record<IKeyOfProjection, 0 | 1>>;
27
25
  type ISearchConditions = Pick<factory.product.ISearchConditions, 'id' | 'limit' | 'page' | 'project'> & {
28
26
  category?: {
29
27
  codeValue?: {
@@ -43,9 +41,7 @@ export declare class ProductModelService extends Service {
43
41
  create(params: IProductModel): Promise<{
44
42
  id: string;
45
43
  }>;
46
- search(params: Omit<ISearchConditions, 'project'> & {
47
- $projection?: IProjection;
48
- }): Promise<IProductModel[]>;
44
+ search(params: Omit<ISearchConditions, 'project'>): Promise<IProductModel[]>;
49
45
  updateById(params: IProductModel & {
50
46
  id: string;
51
47
  }): Promise<void>;