tuix-timesheets-api 0.6.25 → 0.6.26
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.
|
@@ -14,13 +14,17 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.PaginatedEmployeesToJSON = exports.PaginatedEmployeesFromJSONTyped = exports.PaginatedEmployeesFromJSON = exports.instanceOfPaginatedEmployees = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
17
|
const EmployeeDTO_1 = require("./EmployeeDTO");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the PaginatedEmployees interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfPaginatedEmployees(value) {
|
|
23
22
|
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "items" in value;
|
|
24
|
+
isInstance = isInstance && "page" in value;
|
|
25
|
+
isInstance = isInstance && "pageSize" in value;
|
|
26
|
+
isInstance = isInstance && "totalItems" in value;
|
|
27
|
+
isInstance = isInstance && "totalPages" in value;
|
|
24
28
|
return isInstance;
|
|
25
29
|
}
|
|
26
30
|
exports.instanceOfPaginatedEmployees = instanceOfPaginatedEmployees;
|
|
@@ -33,11 +37,11 @@ function PaginatedEmployeesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
37
|
return json;
|
|
34
38
|
}
|
|
35
39
|
return {
|
|
36
|
-
'
|
|
37
|
-
'page':
|
|
38
|
-
'pageSize':
|
|
39
|
-
'totalItems':
|
|
40
|
-
'totalPages':
|
|
40
|
+
'items': (json['items'].map(EmployeeDTO_1.EmployeeDTOFromJSON)),
|
|
41
|
+
'page': json['page'],
|
|
42
|
+
'pageSize': json['pageSize'],
|
|
43
|
+
'totalItems': json['totalItems'],
|
|
44
|
+
'totalPages': json['totalPages'],
|
|
41
45
|
};
|
|
42
46
|
}
|
|
43
47
|
exports.PaginatedEmployeesFromJSONTyped = PaginatedEmployeesFromJSONTyped;
|
|
@@ -49,7 +53,7 @@ function PaginatedEmployeesToJSON(value) {
|
|
|
49
53
|
return null;
|
|
50
54
|
}
|
|
51
55
|
return {
|
|
52
|
-
'
|
|
56
|
+
'items': (value.items.map(EmployeeDTO_1.EmployeeDTOToJSON)),
|
|
53
57
|
'page': value.page,
|
|
54
58
|
'pageSize': value.pageSize,
|
|
55
59
|
'totalItems': value.totalItems,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginatedEmployees.js","sourceRoot":"","sources":["PaginatedEmployees.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"PaginatedEmployees.js","sourceRoot":"","sources":["PaginatedEmployees.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,+CAIuB;AAwCvB;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAC5C,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAC3C,UAAU,GAAG,UAAU,IAAI,UAAU,IAAI,KAAK,CAAC;IAC/C,UAAU,GAAG,UAAU,IAAI,YAAY,IAAI,KAAK,CAAC;IACjD,UAAU,GAAG,UAAU,IAAI,YAAY,IAAI,KAAK,CAAC;IAEjD,OAAO,UAAU,CAAC;AACtB,CAAC;AATD,oEASC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAFD,gEAEC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,CAAE,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,iCAAmB,CAAC,CAAC;QACjE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;KACnC,CAAC;AACN,CAAC;AAZD,0EAYC;AAED,SAAgB,wBAAwB,CAAC,KAAiC;IACtE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,CAAE,KAAK,CAAC,KAAoB,CAAC,GAAG,CAAC,+BAAiB,CAAC,CAAC;QAC7D,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,YAAY,EAAE,KAAK,CAAC,UAAU;KACjC,CAAC;AACN,CAAC;AAfD,4DAeC"}
|
|
@@ -31,31 +31,31 @@ export interface PaginatedEmployees {
|
|
|
31
31
|
* @type {Array<EmployeeDTO>}
|
|
32
32
|
* @memberof PaginatedEmployees
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
items: Array<EmployeeDTO>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {number}
|
|
38
38
|
* @memberof PaginatedEmployees
|
|
39
39
|
*/
|
|
40
|
-
page
|
|
40
|
+
page: number;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {number}
|
|
44
44
|
* @memberof PaginatedEmployees
|
|
45
45
|
*/
|
|
46
|
-
pageSize
|
|
46
|
+
pageSize: number;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {number}
|
|
50
50
|
* @memberof PaginatedEmployees
|
|
51
51
|
*/
|
|
52
|
-
totalItems
|
|
52
|
+
totalItems: number;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {number}
|
|
56
56
|
* @memberof PaginatedEmployees
|
|
57
57
|
*/
|
|
58
|
-
totalPages
|
|
58
|
+
totalPages: number;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -63,6 +63,11 @@ export interface PaginatedEmployees {
|
|
|
63
63
|
*/
|
|
64
64
|
export function instanceOfPaginatedEmployees(value: object): boolean {
|
|
65
65
|
let isInstance = true;
|
|
66
|
+
isInstance = isInstance && "items" in value;
|
|
67
|
+
isInstance = isInstance && "page" in value;
|
|
68
|
+
isInstance = isInstance && "pageSize" in value;
|
|
69
|
+
isInstance = isInstance && "totalItems" in value;
|
|
70
|
+
isInstance = isInstance && "totalPages" in value;
|
|
66
71
|
|
|
67
72
|
return isInstance;
|
|
68
73
|
}
|
|
@@ -77,11 +82,11 @@ export function PaginatedEmployeesFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
77
82
|
}
|
|
78
83
|
return {
|
|
79
84
|
|
|
80
|
-
'
|
|
81
|
-
'page':
|
|
82
|
-
'pageSize':
|
|
83
|
-
'totalItems':
|
|
84
|
-
'totalPages':
|
|
85
|
+
'items': ((json['items'] as Array<any>).map(EmployeeDTOFromJSON)),
|
|
86
|
+
'page': json['page'],
|
|
87
|
+
'pageSize': json['pageSize'],
|
|
88
|
+
'totalItems': json['totalItems'],
|
|
89
|
+
'totalPages': json['totalPages'],
|
|
85
90
|
};
|
|
86
91
|
}
|
|
87
92
|
|
|
@@ -94,7 +99,7 @@ export function PaginatedEmployeesToJSON(value?: PaginatedEmployees | null): any
|
|
|
94
99
|
}
|
|
95
100
|
return {
|
|
96
101
|
|
|
97
|
-
'
|
|
102
|
+
'items': ((value.items as Array<any>).map(EmployeeDTOToJSON)),
|
|
98
103
|
'page': value.page,
|
|
99
104
|
'pageSize': value.pageSize,
|
|
100
105
|
'totalItems': value.totalItems,
|