@nomalism-com/api 1.3.37 → 1.3.39
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 +125 -8
- package/dist/main.d.ts +7 -1
- package/dist/modules/document/order.d.ts +1 -0
- package/dist/modules/sms/smsSender.d.ts +11 -0
- package/dist/modules/sms/smsTemplate.d.ts +17 -0
- package/dist/modules/stock/dashboard.d.ts +1 -0
- package/dist/modules/supply/documentHeaderSurvey.d.ts +1 -1
- package/dist/modules/supply/documentLine.d.ts +1 -0
- package/dist/modules/ui/portal.d.ts +1 -1
- package/dist/modules/user/chatSubscriber.d.ts +2 -0
- package/dist/modules/user/storeOperator.d.ts +1 -0
- package/dist/modules/user/timeSheet.d.ts +21 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -103,6 +103,8 @@ __export(main_exports, {
|
|
|
103
103
|
Shippings: () => shippings_exports,
|
|
104
104
|
SideMenu: () => sideMenu_exports,
|
|
105
105
|
SidemenuHighlight: () => sidemenuHighlight_exports,
|
|
106
|
+
SmsSender: () => smsSender_exports,
|
|
107
|
+
SmsTemplate: () => smsTemplate_exports,
|
|
106
108
|
StartDocumentHeaderLastUpdate: () => startDocumentHeaderLastUpdate_exports,
|
|
107
109
|
StockMovement: () => stockMovement_exports,
|
|
108
110
|
StoreOperator: () => storeOperator_exports,
|
|
@@ -829,6 +831,9 @@ var Repository16 = class {
|
|
|
829
831
|
this.api = api;
|
|
830
832
|
this.route = route;
|
|
831
833
|
}
|
|
834
|
+
async getSmsData() {
|
|
835
|
+
await this.api.get(`${this.route}get_sms_data`);
|
|
836
|
+
}
|
|
832
837
|
async create(body) {
|
|
833
838
|
const response = await this.api.post(`${this.route}`, body);
|
|
834
839
|
return response.data;
|
|
@@ -1713,6 +1718,10 @@ var Repository39 = class {
|
|
|
1713
1718
|
const response = await this.api.put(`${this.route}password/${selector.id}`, body);
|
|
1714
1719
|
return response.data;
|
|
1715
1720
|
}
|
|
1721
|
+
async updateOwnPin(body) {
|
|
1722
|
+
const response = await this.api.put(`${this.route}pin`, body);
|
|
1723
|
+
return response.data;
|
|
1724
|
+
}
|
|
1716
1725
|
async deleteOne(selector) {
|
|
1717
1726
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
1718
1727
|
return response.data;
|
|
@@ -3180,6 +3189,9 @@ var Repository81 = class {
|
|
|
3180
3189
|
async regroupLinesInProviderOrder({ id }) {
|
|
3181
3190
|
await this.api.post(`${this.route}regroup/${id}`);
|
|
3182
3191
|
}
|
|
3192
|
+
async createProviderOrderChat(data) {
|
|
3193
|
+
await this.api.post(`${this.route}create_provider_order_chat`, data);
|
|
3194
|
+
}
|
|
3183
3195
|
};
|
|
3184
3196
|
|
|
3185
3197
|
// src/modules/document/purchase.ts
|
|
@@ -3855,6 +3867,10 @@ var Repository103 = class {
|
|
|
3855
3867
|
const response = await this.api.get(`${this.route}project_info`);
|
|
3856
3868
|
return response.data;
|
|
3857
3869
|
}
|
|
3870
|
+
async todoCounts(params) {
|
|
3871
|
+
const response = await this.api.get(`${this.route}todo_counts`, { params });
|
|
3872
|
+
return response.data;
|
|
3873
|
+
}
|
|
3858
3874
|
};
|
|
3859
3875
|
|
|
3860
3876
|
// src/modules/stock/chatRapidMessage.ts
|
|
@@ -4047,6 +4063,18 @@ var Repository111 = class {
|
|
|
4047
4063
|
const response = await this.api.get(`${this.route}${id}`);
|
|
4048
4064
|
return response.data;
|
|
4049
4065
|
}
|
|
4066
|
+
async findByEmailToken({
|
|
4067
|
+
token
|
|
4068
|
+
}) {
|
|
4069
|
+
const response = await this.api.get(`${this.route}by_email_token/${token}`);
|
|
4070
|
+
return response.data;
|
|
4071
|
+
}
|
|
4072
|
+
async publicAuthenticateByEmailToken({
|
|
4073
|
+
token
|
|
4074
|
+
}) {
|
|
4075
|
+
const response = await this.api.get(`${this.route}authenticate_email_token/${token}`);
|
|
4076
|
+
return response.data;
|
|
4077
|
+
}
|
|
4050
4078
|
async createOrUpdate(data) {
|
|
4051
4079
|
const response = await this.api.post(`${this.route}`, data);
|
|
4052
4080
|
return response.data;
|
|
@@ -4201,7 +4229,7 @@ var Repository116 = class {
|
|
|
4201
4229
|
if (start_date) qs.set("start_date", start_date.toISOString());
|
|
4202
4230
|
if (end_date) qs.set("end_date", end_date.toISOString());
|
|
4203
4231
|
qs.set("token", token);
|
|
4204
|
-
return `${this.route}
|
|
4232
|
+
return `${this.route}export?${qs.toString()}`;
|
|
4205
4233
|
}
|
|
4206
4234
|
};
|
|
4207
4235
|
|
|
@@ -4397,8 +4425,8 @@ var Repository123 = class {
|
|
|
4397
4425
|
this.api = api;
|
|
4398
4426
|
this.route = route;
|
|
4399
4427
|
}
|
|
4400
|
-
async find() {
|
|
4401
|
-
const response = await this.api.get(`${this.route}
|
|
4428
|
+
async find(params) {
|
|
4429
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
4402
4430
|
return response.data;
|
|
4403
4431
|
}
|
|
4404
4432
|
async updateSent(body) {
|
|
@@ -4499,25 +4527,50 @@ var TimesheetRepository = class {
|
|
|
4499
4527
|
this.api = api;
|
|
4500
4528
|
this.route = route.endsWith("/") ? route : `${route}/`;
|
|
4501
4529
|
}
|
|
4530
|
+
/**
|
|
4531
|
+
* GET todos os registos com filtros opcionais
|
|
4532
|
+
*/
|
|
4502
4533
|
async find(params) {
|
|
4503
4534
|
const response = await this.api.get(`${this.route}`, { params });
|
|
4504
4535
|
return response.data;
|
|
4505
4536
|
}
|
|
4506
|
-
|
|
4507
|
-
|
|
4537
|
+
/**
|
|
4538
|
+
* GET registos de um utilizador numa data específica
|
|
4539
|
+
*/
|
|
4540
|
+
async findByUserAndDate(filters) {
|
|
4541
|
+
const response = await this.api.get(`${this.route}by-date`, {
|
|
4542
|
+
params: filters
|
|
4543
|
+
});
|
|
4544
|
+
return response.data;
|
|
4545
|
+
}
|
|
4546
|
+
/**
|
|
4547
|
+
* GET resumo diário
|
|
4548
|
+
*/
|
|
4549
|
+
async getDailySummary(filters) {
|
|
4550
|
+
const response = await this.api.get(`${this.route}daily-summary`, {
|
|
4551
|
+
params: filters
|
|
4552
|
+
});
|
|
4508
4553
|
return response.data;
|
|
4509
4554
|
}
|
|
4555
|
+
/**
|
|
4556
|
+
* POST novo registo
|
|
4557
|
+
*/
|
|
4510
4558
|
async create(body) {
|
|
4511
4559
|
const response = await this.api.post(`${this.route}`, body);
|
|
4512
4560
|
return response.data;
|
|
4513
4561
|
}
|
|
4562
|
+
/**
|
|
4563
|
+
* PUT atualizar registo
|
|
4564
|
+
*/
|
|
4514
4565
|
async update(selector, body) {
|
|
4515
4566
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
4516
4567
|
return response.data;
|
|
4517
4568
|
}
|
|
4569
|
+
/**
|
|
4570
|
+
* DELETE registo
|
|
4571
|
+
*/
|
|
4518
4572
|
async deleteOne(selector) {
|
|
4519
|
-
|
|
4520
|
-
return response.data;
|
|
4573
|
+
await this.api.delete(`${this.route}${selector.id}`);
|
|
4521
4574
|
}
|
|
4522
4575
|
};
|
|
4523
4576
|
|
|
@@ -4537,6 +4590,67 @@ var Repository128 = class {
|
|
|
4537
4590
|
}
|
|
4538
4591
|
};
|
|
4539
4592
|
|
|
4593
|
+
// src/modules/sms/smsSender.ts
|
|
4594
|
+
var smsSender_exports = {};
|
|
4595
|
+
__export(smsSender_exports, {
|
|
4596
|
+
default: () => Repository129
|
|
4597
|
+
});
|
|
4598
|
+
var Repository129 = class {
|
|
4599
|
+
constructor({ api, route }) {
|
|
4600
|
+
this.api = api;
|
|
4601
|
+
this.route = route;
|
|
4602
|
+
}
|
|
4603
|
+
async claim() {
|
|
4604
|
+
const response = await this.api.get(`${this.route}claim`);
|
|
4605
|
+
return response.data;
|
|
4606
|
+
}
|
|
4607
|
+
async result(id, body) {
|
|
4608
|
+
await this.api.post(`${this.route}result/${id}`, body);
|
|
4609
|
+
}
|
|
4610
|
+
async findById(id) {
|
|
4611
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
4612
|
+
return response.data;
|
|
4613
|
+
}
|
|
4614
|
+
async findAll() {
|
|
4615
|
+
const response = await this.api.get(`${this.route}`);
|
|
4616
|
+
return response.data;
|
|
4617
|
+
}
|
|
4618
|
+
};
|
|
4619
|
+
|
|
4620
|
+
// src/modules/sms/smsTemplate.ts
|
|
4621
|
+
var smsTemplate_exports = {};
|
|
4622
|
+
__export(smsTemplate_exports, {
|
|
4623
|
+
default: () => Repository130
|
|
4624
|
+
});
|
|
4625
|
+
var Repository130 = class {
|
|
4626
|
+
constructor({ api, route }) {
|
|
4627
|
+
this.api = api;
|
|
4628
|
+
this.route = route;
|
|
4629
|
+
}
|
|
4630
|
+
async find() {
|
|
4631
|
+
const response = await this.api.get(`${this.route}`);
|
|
4632
|
+
return response.data;
|
|
4633
|
+
}
|
|
4634
|
+
async findById(id) {
|
|
4635
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
4636
|
+
return response.data;
|
|
4637
|
+
}
|
|
4638
|
+
async findByKey(key) {
|
|
4639
|
+
const response = await this.api.get(`${this.route}key/${key}`);
|
|
4640
|
+
return response.data;
|
|
4641
|
+
}
|
|
4642
|
+
async create(data) {
|
|
4643
|
+
const response = await this.api.post(`${this.route}`, data);
|
|
4644
|
+
return response.data.id;
|
|
4645
|
+
}
|
|
4646
|
+
async update(selector, data) {
|
|
4647
|
+
await this.api.patch(`${this.route}${selector.id}`, data);
|
|
4648
|
+
}
|
|
4649
|
+
async deleteOne(selector) {
|
|
4650
|
+
await this.api.delete(`${this.route}${selector.id}`);
|
|
4651
|
+
}
|
|
4652
|
+
};
|
|
4653
|
+
|
|
4540
4654
|
// src/main.ts
|
|
4541
4655
|
var API = class {
|
|
4542
4656
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4569,7 +4683,8 @@ var API = class {
|
|
|
4569
4683
|
view: getServicePath("view"),
|
|
4570
4684
|
print: getServicePath("print"),
|
|
4571
4685
|
tickets: getServicePath("tickets"),
|
|
4572
|
-
llm: getServicePath("llm")
|
|
4686
|
+
llm: getServicePath("llm"),
|
|
4687
|
+
sms: getServicePath("sms")
|
|
4573
4688
|
};
|
|
4574
4689
|
const getModuleParams = (service, module) => ({
|
|
4575
4690
|
api: this.client,
|
|
@@ -4844,6 +4959,8 @@ var API = class {
|
|
|
4844
4959
|
);
|
|
4845
4960
|
this.TimeSheet = new TimesheetRepository(getModuleParams("users", Nomalism.TimeSheet.Route));
|
|
4846
4961
|
this.Catalogo = new Repository128(getModuleParams("stock", Nomalism.Catalogo.Route));
|
|
4962
|
+
this.SmsSender = new Repository129(getModuleParams("sms", Nomalism.SmsSender.Route));
|
|
4963
|
+
this.SmsTemplate = new Repository130(getModuleParams("sms", Nomalism.SmsTemplate.Route));
|
|
4847
4964
|
}
|
|
4848
4965
|
};
|
|
4849
4966
|
|
package/dist/main.d.ts
CHANGED
|
@@ -129,6 +129,8 @@ import SaftClass from './modules/supply/saft';
|
|
|
129
129
|
import ProductLocationClass from './modules/stock/productLocation';
|
|
130
130
|
import TimeSheetClass from './modules/user/timeSheet';
|
|
131
131
|
import CatalogoClass from './modules/document/CAT';
|
|
132
|
+
import SmsSenderClass from './modules/sms/smsSender';
|
|
133
|
+
import SmsTemplateClass from './modules/sms/smsTemplate';
|
|
132
134
|
export * as BankData from './modules/user/bankData';
|
|
133
135
|
export * as Client from './modules/user/clients';
|
|
134
136
|
export * as ClientType from './modules/user/clientType';
|
|
@@ -250,8 +252,10 @@ export * as Saft from './modules/supply/saft';
|
|
|
250
252
|
export * as ProductLocation from './modules/stock/productLocation';
|
|
251
253
|
export * as TimeSheet from './modules/user/timeSheet';
|
|
252
254
|
export * as Catalogo from './modules/document/CAT';
|
|
255
|
+
export * as SmsSender from './modules/sms/smsSender';
|
|
256
|
+
export * as SmsTemplate from './modules/sms/smsTemplate';
|
|
253
257
|
export type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
|
|
254
|
-
type IService = 'stock' | 'users' | 'integration' | 'documents' | 'view' | 'print' | 'tickets' | 'llm';
|
|
258
|
+
type IService = 'stock' | 'users' | 'integration' | 'documents' | 'view' | 'print' | 'tickets' | 'llm' | 'sms';
|
|
255
259
|
export interface IOptions {
|
|
256
260
|
processEnvironment: IEnvironment;
|
|
257
261
|
services: Record<IService, string>;
|
|
@@ -397,6 +401,8 @@ export declare class API {
|
|
|
397
401
|
ProductLocation: ProductLocationClass;
|
|
398
402
|
TimeSheet: TimeSheetClass;
|
|
399
403
|
Catalogo: CatalogoClass;
|
|
404
|
+
SmsSender: SmsSenderClass;
|
|
405
|
+
SmsTemplate: SmsTemplateClass;
|
|
400
406
|
private defaultHeaders;
|
|
401
407
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }: IOptions);
|
|
402
408
|
}
|
|
@@ -13,4 +13,5 @@ export default class Repository implements Nomalism.Order.IRepository {
|
|
|
13
13
|
find(params: Nomalism.Order.IFindRequest): Promise<Nomalism.Order.IFindResponse[]>;
|
|
14
14
|
previewRegroupLinesInProviderOrder({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.Order.IPreviewResponse>;
|
|
15
15
|
regroupLinesInProviderOrder({ id }: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
16
|
+
createProviderOrderChat(data: Nomalism.Order.ICreateProviderOrderChatRequest): Promise<void>;
|
|
16
17
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { IModuleConstructor } from '../../main';
|
|
3
|
+
export default class Repository implements Nomalism.SmsSender.IController {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
claim(): Promise<Nomalism.SmsSender.IClaimResponse[]>;
|
|
8
|
+
result(id: string, body: Nomalism.SmsSender.IResultRequest): Promise<void>;
|
|
9
|
+
findById(id: string): Promise<Nomalism.SmsSender.IFindResponse>;
|
|
10
|
+
findAll(): Promise<Nomalism.SmsSender.IFindResponse[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { IModuleConstructor } from '../../main';
|
|
3
|
+
export default class Repository implements Nomalism.SmsTemplate.IApi {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
find(): Promise<Nomalism.SmsTemplate.IEntity[]>;
|
|
8
|
+
findById(id: string): Promise<Nomalism.SmsTemplate.Entity>;
|
|
9
|
+
findByKey(key: string): Promise<Nomalism.SmsTemplate.Entity>;
|
|
10
|
+
create(data: Nomalism.SmsTemplate.ICreateRequest): Promise<string>;
|
|
11
|
+
update(selector: {
|
|
12
|
+
id: string;
|
|
13
|
+
}, data: Nomalism.SmsTemplate.IUpdateRequest): Promise<void>;
|
|
14
|
+
deleteOne(selector: {
|
|
15
|
+
id: string;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
}
|
|
@@ -6,4 +6,5 @@ export default class Repository implements Nomalism.Dashboard.IRepository {
|
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
7
|
salesByDate(params: Nomalism.Dashboard.IFindDashboardSalesByDate): Promise<Nomalism.Dashboard.IDashboardSalesResponse>;
|
|
8
8
|
projectInfo(): Promise<Nomalism.Dashboard.IDashboardProjectInfoResponse[]>;
|
|
9
|
+
todoCounts(params: Nomalism.Dashboard.IFindDashboardTodoCounts): Promise<Nomalism.Dashboard.IDashboardTodoCountsResponse>;
|
|
9
10
|
}
|
|
@@ -4,7 +4,7 @@ export default class Repository implements Nomalism.DocumentHeaderSurvey.IReposi
|
|
|
4
4
|
route: string;
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
|
-
find(): Promise<Nomalism.DocumentHeaderSurvey.
|
|
7
|
+
find(params: Nomalism.DocumentHeaderSurvey.IFindRequest): Promise<Nomalism.DocumentHeaderSurvey.IFindResponseItem[]>;
|
|
8
8
|
updateSent(body: Nomalism.DocumentHeaderSurvey.IUpdateSentRequest): Promise<void>;
|
|
9
9
|
updateSurvey(body: Nomalism.DocumentHeaderSurvey.IUpdateSurveyRequest): Promise<void>;
|
|
10
10
|
}
|
|
@@ -4,6 +4,7 @@ export default class Repository implements Nomalism.DocumentLine.IRepository {
|
|
|
4
4
|
route: string;
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
getSmsData(): Promise<void>;
|
|
7
8
|
create(body: Nomalism.DocumentLine.ICreateRequest[]): Promise<Nomalism.DocumentLineAssoc.IEntityExtended[]>;
|
|
8
9
|
update(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.DocumentLine.IUpdateRequest): Promise<void>;
|
|
9
10
|
updateMany(data: Nomalism.DocumentLine.IUpdateManyRequest): Promise<void>;
|
|
@@ -4,7 +4,7 @@ export default class Repository implements Nomalism.Portal.IRepository {
|
|
|
4
4
|
route: string;
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
|
-
publicFindBySubscriberId(params?: Nomalism.
|
|
7
|
+
publicFindBySubscriberId(params?: Nomalism.Portal.IPublicFindBySubscriberIdRequest): Promise<Nomalism.Portal.IPublicFindBySubscriberId>;
|
|
8
8
|
publicCreateDocumentHeaderNote(data: Nomalism.Portal.PublicDocumentHeaderNoteCreateRequest[]): Promise<Nomalism.Portal.PublicDocumentHeaderNote[]>;
|
|
9
9
|
publicUpdateDocumentHeaderNote({ id }: Nomalism.shared.IFindByIdRequest, data: Nomalism.Portal.PublicDocumentHeaderNoteUpdateRequest[]): Promise<Nomalism.Portal.PublicDocumentHeaderNote[]>;
|
|
10
10
|
}
|
|
@@ -8,6 +8,8 @@ export default class Repository implements Nomalism.ChatSubscriber.IRepository {
|
|
|
8
8
|
findDocumentHeaderSubscribersByLanguage(params: Nomalism.ChatSubscriber.IFindDocumentHeaderSubscribersByLanguageRequest): Promise<string[]>;
|
|
9
9
|
findSubscribedDocumentHeaders(params: Nomalism.ChatSubscriber.IFindSubscribedDocumentHeadersRequest): Promise<Nomalism.ChatSubscriber.IEntityWithPersonaAndSubscriptions>;
|
|
10
10
|
findById({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.ChatSubscriber.IEntityWithPersonaAndSubscriptions>;
|
|
11
|
+
findByEmailToken({ token, }: Nomalism.ChatSubscriber.IFindByEmailTokenRequest): Promise<Nomalism.ChatSubscriber.IEntityWithPersonaAndSubscriptions>;
|
|
12
|
+
publicAuthenticateByEmailToken({ token, }: Nomalism.ChatSubscriber.IPublicAuthenticateByEmailTokenRequest): Promise<string | null>;
|
|
11
13
|
createOrUpdate(data: Nomalism.ChatSubscriber.ICreateOrUpdateRequest): Promise<string>;
|
|
12
14
|
deleteOne({ id }: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
13
15
|
deleteByDocumentHeader({ id }: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
@@ -10,5 +10,6 @@ export default class Repository implements Nomalism.StoreOperator.IRepository {
|
|
|
10
10
|
create(body: Nomalism.StoreOperator.ICreateRequest): Promise<string>;
|
|
11
11
|
update(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.StoreOperator.IUpdateRequest): Promise<void>;
|
|
12
12
|
updatePassword(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.StoreOperator.IUpdatePasswordRequest): Promise<void>;
|
|
13
|
+
updateOwnPin(body: Nomalism.StoreOperator.IUpdateOwnPinRequest): Promise<void>;
|
|
13
14
|
deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
14
15
|
}
|
|
@@ -4,9 +4,28 @@ export default class TimesheetRepository implements Nomalism.TimeSheet.IApi {
|
|
|
4
4
|
route: string;
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
/**
|
|
8
|
+
* GET todos os registos com filtros opcionais
|
|
9
|
+
*/
|
|
7
10
|
find(params?: Nomalism.TimeSheet.IFindRequest): Promise<Nomalism.TimeSheet.Entity[]>;
|
|
8
|
-
|
|
11
|
+
/**
|
|
12
|
+
* GET registos de um utilizador numa data específica
|
|
13
|
+
*/
|
|
14
|
+
findByUserAndDate(filters: Nomalism.TimeSheet.IFindByDateRequest): Promise<Nomalism.TimeSheet.Entity[]>;
|
|
15
|
+
/**
|
|
16
|
+
* GET resumo diário
|
|
17
|
+
*/
|
|
18
|
+
getDailySummary(filters: Nomalism.TimeSheet.IDailySummaryRequest): Promise<Nomalism.TimeSheet.IDailySummaryResponse[]>;
|
|
19
|
+
/**
|
|
20
|
+
* POST novo registo
|
|
21
|
+
*/
|
|
9
22
|
create(body: Nomalism.TimeSheet.ICreateRequest): Promise<Nomalism.TimeSheet.Entity>;
|
|
23
|
+
/**
|
|
24
|
+
* PUT atualizar registo
|
|
25
|
+
*/
|
|
10
26
|
update(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.TimeSheet.IUpdateRequest): Promise<Nomalism.TimeSheet.Entity | null>;
|
|
11
|
-
|
|
27
|
+
/**
|
|
28
|
+
* DELETE registo
|
|
29
|
+
*/
|
|
30
|
+
deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
12
31
|
}
|
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": "1.3.
|
|
4
|
+
"version": "1.3.39",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^1.3.
|
|
27
|
-
"axios": "^1.
|
|
26
|
+
"@nomalism-com/types": "^1.3.40",
|
|
27
|
+
"axios": "^1.18.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@swc/core": "^1.15.
|
|
30
|
+
"@swc/core": "^1.15.43",
|
|
31
31
|
"@types/node": "^24.13.2",
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
33
|
-
"@typescript-eslint/parser": "^8.
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
33
|
+
"@typescript-eslint/parser": "^8.62.0",
|
|
34
34
|
"eslint": "^9.39.4",
|
|
35
35
|
"eslint-config-prettier": "^10.1.8",
|
|
36
36
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
37
37
|
"eslint-plugin-prettier": "^5.5.6",
|
|
38
|
-
"prettier": "^3.
|
|
38
|
+
"prettier": "^3.9.0",
|
|
39
39
|
"tsup": "^8.5.1"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|