@nomalism-com/types 0.9.556 → 0.9.558

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.
@@ -23,6 +23,7 @@ export interface IFindByQueryRequest {
23
23
  }
24
24
  export interface IFindByOwnersRequest {
25
25
  owner_ids: string[];
26
+ includeInternal?: boolean;
26
27
  }
27
28
  export interface IFindByOwnerResponse extends Entity {
28
29
  observation_type: ObservationType | null;
@@ -21,6 +21,7 @@ exports.updateBodyKeys = {
21
21
  exports.updateBody = joi_1.default.object().keys(exports.updateBodyKeys).messages(messages_1.messages);
22
22
  exports.findByOwnerQueryKeys = {
23
23
  owner_ids: joi_1.default.array().items(joi_1.default.string().uuid().required()).required(),
24
+ includeInternal: joi_1.default.boolean().optional(),
24
25
  };
25
26
  exports.findByOwnerQuery = joi_1.default
26
27
  .object()
@@ -216,7 +216,7 @@ export interface IRepository {
216
216
  create(data: ICreateRequest): Promise<IFindResponse>;
217
217
  update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
218
218
  deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
219
- duplicateProduct(selector: IShared.IFindByIdRequest, body: IDuplicateProductRequest): Promise<IFindResponse>;
219
+ duplicateProduct(selector: IShared.IFindByIdRequest, body: IDuplicateProductRequest): Promise<string>;
220
220
  }
221
221
  export type IApi = Omit<IRepository, 'getLabelData'>;
222
222
  export type IController = IShared.IEntityWithUserToken<IRepository>;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.9.556",
12
+ "version": "0.9.558",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [