@nomalism-com/api 0.45.54 → 0.45.55
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.
- package/dist/index.js +300 -274
- package/dist/main.d.ts +3 -0
- package/dist/modules/user/timeSheet.d.ts +6 -13
- package/dist/modules/user/user.d.ts +10 -13
- package/package.json +2 -2
package/dist/main.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ import DocumentHeaderSurveyClass from './modules/supply/documentHeaderSurvey';
|
|
|
126
126
|
import DocumentHeaderSubscriberClass from './modules/supply/documentHeaderSubscriber';
|
|
127
127
|
import GoogleCalendarClass from './modules/stock/googleCalendar';
|
|
128
128
|
import ProductLocationClass from './modules/stock/productLocation';
|
|
129
|
+
import TimeSheetClass from './modules/user/timeSheet';
|
|
129
130
|
export * as BankData from './modules/user/bankData';
|
|
130
131
|
export * as Client from './modules/user/clients';
|
|
131
132
|
export * as ClientType from './modules/user/clientType';
|
|
@@ -244,6 +245,7 @@ export * as DocumentHeaderSurvey from './modules/supply/documentHeaderSurvey';
|
|
|
244
245
|
export * as DocumentHeaderSubscriber from './modules/supply/documentHeaderSubscriber';
|
|
245
246
|
export * as GoogleCalendar from './modules/stock/googleCalendar';
|
|
246
247
|
export * as ProductLocation from './modules/stock/productLocation';
|
|
248
|
+
export * as TimeSheet from './modules/user/timeSheet';
|
|
247
249
|
export type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
|
|
248
250
|
type IService = 'stock' | 'users' | 'integration' | 'documents' | 'view' | 'print' | 'tickets' | 'llm';
|
|
249
251
|
export interface IOptions {
|
|
@@ -388,6 +390,7 @@ export declare class API {
|
|
|
388
390
|
DocumentHeaderSubscriber: DocumentHeaderSubscriberClass;
|
|
389
391
|
GoogleCalendar: GoogleCalendarClass;
|
|
390
392
|
ProductLocation: ProductLocationClass;
|
|
393
|
+
TimeSheet: TimeSheetClass;
|
|
391
394
|
private defaultHeaders;
|
|
392
395
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }: IOptions);
|
|
393
396
|
}
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import Nomalism from '@nomalism-com/types';
|
|
2
2
|
import { IModuleConstructor } from '../../main';
|
|
3
|
-
export default class TimesheetRepository {
|
|
3
|
+
export default class TimesheetRepository implements Nomalism.TimeSheet.IApi {
|
|
4
4
|
route: string;
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
findClocks(params: {
|
|
13
|
-
timesheet_day_id: string;
|
|
14
|
-
}): Promise<Nomalism.TimeSheet.ClockEntity[]>;
|
|
15
|
-
findClockById(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.TimeSheet.ClockEntity | null>;
|
|
16
|
-
createClock(body: Nomalism.TimeSheet.IClockCreateRequest): Promise<Nomalism.TimeSheet.ClockEntity>;
|
|
17
|
-
updateClock(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.TimeSheet.IClockUpdateRequest): Promise<Nomalism.TimeSheet.ClockEntity | null>;
|
|
18
|
-
deleteClock(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.TimeSheet.ClockEntity | null>;
|
|
7
|
+
find(params?: Nomalism.TimeSheet.IFindRequest): Promise<Nomalism.TimeSheet.Entity[]>;
|
|
8
|
+
findById(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.TimeSheet.Entity | null>;
|
|
9
|
+
create(body: Nomalism.TimeSheet.ICreateRequest): Promise<Nomalism.TimeSheet.Entity>;
|
|
10
|
+
update(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.TimeSheet.IUpdateRequest): Promise<Nomalism.TimeSheet.Entity | null>;
|
|
11
|
+
deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.TimeSheet.Entity | null>;
|
|
19
12
|
}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import Nomalism from '@nomalism-com/types';
|
|
2
2
|
import { IModuleConstructor } from '../../main';
|
|
3
|
-
export default class
|
|
3
|
+
export default class Repository implements Nomalism.Users.IApi {
|
|
4
4
|
route: string;
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
createClock(body: Nomalism.TimeSheet.IClockCreateRequest): Promise<Nomalism.TimeSheet.ClockEntity>;
|
|
17
|
-
updateClock(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.TimeSheet.IClockUpdateRequest): Promise<Nomalism.TimeSheet.ClockEntity | null>;
|
|
18
|
-
deleteClock(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.TimeSheet.ClockEntity | null>;
|
|
7
|
+
find(params: Nomalism.Users.IFindRequest): Promise<Nomalism.Users.IFindResponse[]>;
|
|
8
|
+
findPaginated(params: Nomalism.Users.IFindPaginatedRequest): Promise<Nomalism.shared.IPaginationResponse<Nomalism.Users.IFindResponse>>;
|
|
9
|
+
findMinified(params?: Nomalism.shared.IFindMinifiedRequest): Promise<Nomalism.shared.IFindMinifiedResponse[]>;
|
|
10
|
+
findById(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.Users.IFindByIdResponse | null>;
|
|
11
|
+
create(body: Nomalism.Users.ICreateRequest): Promise<Nomalism.Users.IFindResponse>;
|
|
12
|
+
update(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.Users.IUpdateRequest): Promise<Nomalism.Users.IFindResponse | null>;
|
|
13
|
+
deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.Users.IFindResponse | null>;
|
|
14
|
+
findProvidersWithClientId(body: Nomalism.Users.IFindProvidersWithClientIdRequest): Promise<Nomalism.Users.IFindProvidersWithClientIdResponse[]>;
|
|
15
|
+
findFromClientOrProviderId(body: Nomalism.Users.IFindFromClientOrProviderRequest): Promise<Nomalism.Users.IFindFromClientOrProviderResponse[]>;
|
|
19
16
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
3
|
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"version": "0.45.
|
|
4
|
+
"version": "0.45.55",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^0.45.
|
|
26
|
+
"@nomalism-com/types": "^0.45.59",
|
|
27
27
|
"axios": "^1.17.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|