tuix-timesheets-api 0.6.44 → 0.6.45

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.
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tuix Services
5
+ * Tuix Services API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GlobalTimesheetEntryUpdateDTO
20
+ */
21
+ export interface GlobalTimesheetEntryUpdateDTO {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GlobalTimesheetEntryUpdateDTO
26
+ */
27
+ comments?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GlobalTimesheetEntryUpdateDTO interface.
32
+ */
33
+ export function instanceOfGlobalTimesheetEntryUpdateDTO(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function GlobalTimesheetEntryUpdateDTOFromJSON(json: any): GlobalTimesheetEntryUpdateDTO {
40
+ return GlobalTimesheetEntryUpdateDTOFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function GlobalTimesheetEntryUpdateDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalTimesheetEntryUpdateDTO {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'comments': !exists(json, 'comments') ? undefined : json['comments'],
50
+ };
51
+ }
52
+
53
+ export function GlobalTimesheetEntryUpdateDTOToJSON(value?: GlobalTimesheetEntryUpdateDTO | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'comments': value.comments,
63
+ };
64
+ }
65
+
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tuix Services
6
+ * Tuix Services API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PaginatedGlobalTimesheetsToJSON = exports.PaginatedGlobalTimesheetsFromJSONTyped = exports.PaginatedGlobalTimesheetsFromJSON = exports.instanceOfPaginatedGlobalTimesheets = void 0;
17
+ const GlobalTimesheetDTO_1 = require("./GlobalTimesheetDTO");
18
+ /**
19
+ * Check if a given object implements the PaginatedGlobalTimesheets interface.
20
+ */
21
+ function instanceOfPaginatedGlobalTimesheets(value) {
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;
28
+ return isInstance;
29
+ }
30
+ exports.instanceOfPaginatedGlobalTimesheets = instanceOfPaginatedGlobalTimesheets;
31
+ function PaginatedGlobalTimesheetsFromJSON(json) {
32
+ return PaginatedGlobalTimesheetsFromJSONTyped(json, false);
33
+ }
34
+ exports.PaginatedGlobalTimesheetsFromJSON = PaginatedGlobalTimesheetsFromJSON;
35
+ function PaginatedGlobalTimesheetsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'items': (json['items'].map(GlobalTimesheetDTO_1.GlobalTimesheetDTOFromJSON)),
41
+ 'page': json['page'],
42
+ 'pageSize': json['pageSize'],
43
+ 'totalItems': json['totalItems'],
44
+ 'totalPages': json['totalPages'],
45
+ };
46
+ }
47
+ exports.PaginatedGlobalTimesheetsFromJSONTyped = PaginatedGlobalTimesheetsFromJSONTyped;
48
+ function PaginatedGlobalTimesheetsToJSON(value) {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+ return {
56
+ 'items': (value.items.map(GlobalTimesheetDTO_1.GlobalTimesheetDTOToJSON)),
57
+ 'page': value.page,
58
+ 'pageSize': value.pageSize,
59
+ 'totalItems': value.totalItems,
60
+ 'totalPages': value.totalPages,
61
+ };
62
+ }
63
+ exports.PaginatedGlobalTimesheetsToJSON = PaginatedGlobalTimesheetsToJSON;
64
+ //# sourceMappingURL=PaginatedGlobalTimesheets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginatedGlobalTimesheets.js","sourceRoot":"","sources":["PaginatedGlobalTimesheets.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,6DAI8B;AAwC9B;;GAEG;AACH,SAAgB,mCAAmC,CAAC,KAAa;IAC7D,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,kFASC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAFD,8EAEC;AAED,SAAgB,sCAAsC,CAAC,IAAS,EAAE,mBAA4B;IAC1F,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,+CAA0B,CAAC,CAAC;QACxE,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,wFAYC;AAED,SAAgB,+BAA+B,CAAC,KAAwC;IACpF,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,6CAAwB,CAAC,CAAC;QACpE,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,0EAeC"}
@@ -0,0 +1,109 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tuix Services
5
+ * Tuix Services API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { GlobalTimesheetDTO } from './GlobalTimesheetDTO';
17
+ import {
18
+ GlobalTimesheetDTOFromJSON,
19
+ GlobalTimesheetDTOFromJSONTyped,
20
+ GlobalTimesheetDTOToJSON,
21
+ } from './GlobalTimesheetDTO';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface PaginatedGlobalTimesheets
27
+ */
28
+ export interface PaginatedGlobalTimesheets {
29
+ /**
30
+ *
31
+ * @type {Array<GlobalTimesheetDTO>}
32
+ * @memberof PaginatedGlobalTimesheets
33
+ */
34
+ items: Array<GlobalTimesheetDTO>;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof PaginatedGlobalTimesheets
39
+ */
40
+ page: number;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof PaginatedGlobalTimesheets
45
+ */
46
+ pageSize: number;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof PaginatedGlobalTimesheets
51
+ */
52
+ totalItems: number;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof PaginatedGlobalTimesheets
57
+ */
58
+ totalPages: number;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the PaginatedGlobalTimesheets interface.
63
+ */
64
+ export function instanceOfPaginatedGlobalTimesheets(value: object): boolean {
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;
71
+
72
+ return isInstance;
73
+ }
74
+
75
+ export function PaginatedGlobalTimesheetsFromJSON(json: any): PaginatedGlobalTimesheets {
76
+ return PaginatedGlobalTimesheetsFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedGlobalTimesheetsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGlobalTimesheets {
80
+ if ((json === undefined) || (json === null)) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'items': ((json['items'] as Array<any>).map(GlobalTimesheetDTOFromJSON)),
86
+ 'page': json['page'],
87
+ 'pageSize': json['pageSize'],
88
+ 'totalItems': json['totalItems'],
89
+ 'totalPages': json['totalPages'],
90
+ };
91
+ }
92
+
93
+ export function PaginatedGlobalTimesheetsToJSON(value?: PaginatedGlobalTimesheets | null): any {
94
+ if (value === undefined) {
95
+ return undefined;
96
+ }
97
+ if (value === null) {
98
+ return null;
99
+ }
100
+ return {
101
+
102
+ 'items': ((value.items as Array<any>).map(GlobalTimesheetDTOToJSON)),
103
+ 'page': value.page,
104
+ 'pageSize': value.pageSize,
105
+ 'totalItems': value.totalItems,
106
+ 'totalPages': value.totalPages,
107
+ };
108
+ }
109
+
package/models/index.js CHANGED
@@ -26,10 +26,14 @@ __exportStar(require("./EmailTemplates"), exports);
26
26
  __exportStar(require("./EmployeeDTO"), exports);
27
27
  __exportStar(require("./EmployeeProjectDTO"), exports);
28
28
  __exportStar(require("./ErrorDTO"), exports);
29
+ __exportStar(require("./GlobalTimesheetDTO"), exports);
30
+ __exportStar(require("./GlobalTimesheetEntryDTO"), exports);
31
+ __exportStar(require("./GlobalTimesheetEntryUpdateDTO"), exports);
29
32
  __exportStar(require("./PaginatedAdjustedTimesheets"), exports);
30
33
  __exportStar(require("./PaginatedClients"), exports);
31
34
  __exportStar(require("./PaginatedEmployeeProjects"), exports);
32
35
  __exportStar(require("./PaginatedEmployees"), exports);
36
+ __exportStar(require("./PaginatedGlobalTimesheets"), exports);
33
37
  __exportStar(require("./PaginatedProjects"), exports);
34
38
  __exportStar(require("./PaginatedTimesheets"), exports);
35
39
  __exportStar(require("./PaginatedUsers"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,yDAAuC;AACvC,6DAA2C;AAC3C,oEAAkD;AAClD,8CAA4B;AAC5B,+CAA6B;AAC7B,0DAAwC;AACxC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,6CAA2B;AAC3B,gEAA8C;AAC9C,qDAAmC;AACnC,8DAA4C;AAC5C,uDAAqC;AACrC,sDAAoC;AACpC,wDAAsC;AACtC,mDAAiC;AACjC,wDAAsC;AACtC,mDAAiC;AACjC,+CAA6B;AAC7B,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,iDAA+B;AAC/B,wDAAsC;AACtC,iEAA+C;AAC/C,kDAAgC;AAChC,iDAA+B;AAC/B,sDAAoC;AACpC,4DAA0C;AAC1C,8CAA4B;AAC5B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,yDAAuC;AACvC,6DAA2C;AAC3C,oEAAkD;AAClD,8CAA4B;AAC5B,+CAA6B;AAC7B,0DAAwC;AACxC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,6CAA2B;AAC3B,uDAAqC;AACrC,4DAA0C;AAC1C,kEAAgD;AAChD,gEAA8C;AAC9C,qDAAmC;AACnC,8DAA4C;AAC5C,uDAAqC;AACrC,8DAA4C;AAC5C,sDAAoC;AACpC,wDAAsC;AACtC,mDAAiC;AACjC,wDAAsC;AACtC,mDAAiC;AACjC,+CAA6B;AAC7B,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,iDAA+B;AAC/B,wDAAsC;AACtC,iEAA+C;AAC/C,kDAAgC;AAChC,iDAA+B;AAC/B,sDAAoC;AACpC,4DAA0C;AAC1C,8CAA4B;AAC5B,kDAAgC"}
package/models/index.ts CHANGED
@@ -10,10 +10,14 @@ export * from './EmailTemplates';
10
10
  export * from './EmployeeDTO';
11
11
  export * from './EmployeeProjectDTO';
12
12
  export * from './ErrorDTO';
13
+ export * from './GlobalTimesheetDTO';
14
+ export * from './GlobalTimesheetEntryDTO';
15
+ export * from './GlobalTimesheetEntryUpdateDTO';
13
16
  export * from './PaginatedAdjustedTimesheets';
14
17
  export * from './PaginatedClients';
15
18
  export * from './PaginatedEmployeeProjects';
16
19
  export * from './PaginatedEmployees';
20
+ export * from './PaginatedGlobalTimesheets';
17
21
  export * from './PaginatedProjects';
18
22
  export * from './PaginatedTimesheets';
19
23
  export * from './PaginatedUsers';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuix-timesheets-api",
3
- "version": "0.6.44",
3
+ "version": "0.6.45",
4
4
  "description": "This package facilitates the client request to tuix timesheets api",
5
5
  "main": "index.js",
6
6
  "private": false,