@nomalism-com/types 0.11.37 → 0.11.38
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.
|
@@ -7,7 +7,7 @@ export declare const UpperName = "ExternalDocumentHeader";
|
|
|
7
7
|
export declare const LowerName: string;
|
|
8
8
|
type IEntityExtended = Entity;
|
|
9
9
|
export type IFindByIdResponse = Omit<IEntityExtended, ''>;
|
|
10
|
-
export interface
|
|
10
|
+
export interface IFindByOwnerIdItem {
|
|
11
11
|
id: string | null;
|
|
12
12
|
document_header_id: string;
|
|
13
13
|
is_void: boolean;
|
|
@@ -19,6 +19,9 @@ export interface IFindByOwnerIdResponse {
|
|
|
19
19
|
emission_date: Date;
|
|
20
20
|
retryPayload: IUpdateDataRequest | null;
|
|
21
21
|
}
|
|
22
|
+
export interface IFindByOwnerIdResponse extends IFindByOwnerIdItem {
|
|
23
|
+
older_versions: IFindByOwnerIdItem[];
|
|
24
|
+
}
|
|
22
25
|
export type IFindRequest = Record<string, unknown>;
|
|
23
26
|
export type IFindResponse = Omit<IEntityExtended, ''>;
|
|
24
27
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import joi from 'joi';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
import { IFindByOwnerIdResponse } from './interface';
|
|
4
2
|
export declare const findBodyResponse: joi.ArraySchema<any[]>;
|
|
5
3
|
export declare const findByIdBodyResponse: joi.ObjectSchema<any>;
|
|
6
|
-
export declare const findOwnerIdBodyResponsekeys: IShared.IRouteResponseWithoutStamps<IFindByOwnerIdResponse>;
|
|
7
4
|
export declare const findOwnerIdBodyResponse: joi.ArraySchema<any[]>;
|
|
8
5
|
export declare const findPaginationBodyResponse: joi.ObjectSchema<any>;
|
|
@@ -37,7 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.findPaginationBodyResponse = exports.findOwnerIdBodyResponse = exports.
|
|
40
|
+
exports.findPaginationBodyResponse = exports.findOwnerIdBodyResponse = exports.findByIdBodyResponse = exports.findBodyResponse = void 0;
|
|
41
41
|
var joi_1 = __importDefault(require("joi"));
|
|
42
42
|
var IShared = __importStar(require("../../../shared/interface"));
|
|
43
43
|
var findBodyResponseKeys = {
|
|
@@ -62,7 +62,7 @@ exports.findByIdBodyResponse = joi_1.default
|
|
|
62
62
|
.object()
|
|
63
63
|
.keys(__assign(__assign({}, findByIdBodyResponseKeys), IShared.joiValidateStamps))
|
|
64
64
|
.allow(null);
|
|
65
|
-
|
|
65
|
+
var findOwnerIdItemKeys = {
|
|
66
66
|
id: joi_1.default.string().allow(null).required(),
|
|
67
67
|
document_header_id: joi_1.default.string().uuid().required(),
|
|
68
68
|
is_void: joi_1.default.boolean().required(),
|
|
@@ -84,9 +84,13 @@ exports.findOwnerIdBodyResponsekeys = {
|
|
|
84
84
|
.allow(null)
|
|
85
85
|
.required(),
|
|
86
86
|
};
|
|
87
|
+
var findOwnerIdResponseKeys = __assign(__assign({}, findOwnerIdItemKeys), { older_versions: joi_1.default
|
|
88
|
+
.array()
|
|
89
|
+
.items(__assign({}, findOwnerIdItemKeys))
|
|
90
|
+
.required() });
|
|
87
91
|
exports.findOwnerIdBodyResponse = joi_1.default
|
|
88
92
|
.array()
|
|
89
|
-
.items(__assign(__assign({},
|
|
93
|
+
.items(__assign(__assign({}, findOwnerIdResponseKeys), IShared.joiValidateStamps))
|
|
90
94
|
.required();
|
|
91
95
|
var findPaginatedBodyResponseKeys = {
|
|
92
96
|
per_page: joi_1.default.number().required(),
|