@nomalism-com/api 0.40.107 → 0.40.109
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.d.ts +3 -3
- package/dist/index.js +6 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,6 @@ declare class Repository$1T implements Nomalism$1.Client.IRepository {
|
|
|
30
30
|
findByOwnerId(params: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.Client.IFindByOwnerIdResponse[]>;
|
|
31
31
|
findById(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Client.IFindByIdResponse | null>;
|
|
32
32
|
create(body: Nomalism$1.Client.ICreateRequest): Promise<Nomalism$1.Client.IFindResponse>;
|
|
33
|
-
createOrUpdate(body: Nomalism$1.Client.ICreateRequest): Promise<Nomalism$1.Client.IFindResponse>;
|
|
34
33
|
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Client.IUpdateRequest): Promise<Nomalism$1.Client.IFindResponse | null>;
|
|
35
34
|
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Client.IFindResponse | null>;
|
|
36
35
|
}
|
|
@@ -133,6 +132,7 @@ declare class Repository$1O implements Nomalism$1.DocumentHeader.IRepository {
|
|
|
133
132
|
documentThermalPrint({ id }: Nomalism$1.shared.IFindByIdRequest): Promise<string>;
|
|
134
133
|
documentList({ id, }: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentHeader.IDocumentListResponse[]>;
|
|
135
134
|
findStartDocumentHeaderSiblings({ id, }: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentHeader.IFindStartDocumentHeaderSiblingsResponse>;
|
|
135
|
+
createSiteProposal(data: Nomalism$1.shared.IBrokerTopicPayload[typeof Nomalism$1.shared.IBrokerTopic.create_site_proposal]): Promise<Nomalism$1.ProjectInfo.ICreateResponse>;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
declare namespace documentHeader {
|
|
@@ -1202,7 +1202,7 @@ declare class Repository$F implements Nomalism$1.ProjectInfo.IController {
|
|
|
1202
1202
|
route: string;
|
|
1203
1203
|
private api;
|
|
1204
1204
|
constructor({ api, route }: IModuleConstructor);
|
|
1205
|
-
sendEmail(body: Nomalism$1.ProjectInfo.
|
|
1205
|
+
sendEmail(body: Nomalism$1.ProjectInfo.ICreateRequest): Promise<Nomalism$1.ProjectInfo.ICreateResponse>;
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
1208
|
declare namespace projectInfo {
|
|
@@ -1616,7 +1616,7 @@ declare class Repository$b implements Nomalism$1.ChatSubscriber.IRepository {
|
|
|
1616
1616
|
route: string;
|
|
1617
1617
|
private api;
|
|
1618
1618
|
constructor({ api, route }: IModuleConstructor);
|
|
1619
|
-
createOrUpdate(data: Nomalism$1.ChatSubscriber.ICreateOrUpdateRequest): Promise<
|
|
1619
|
+
createOrUpdate(data: Nomalism$1.ChatSubscriber.ICreateOrUpdateRequest): Promise<string>;
|
|
1620
1620
|
findByOwner(params: Nomalism$1.ChatSubscriber.IFindRequest): Promise<Nomalism$1.ChatSubscriber.IFindByOwnerResponse[]>;
|
|
1621
1621
|
clientWebAppFindByOwner(params: Nomalism$1.ChatSubscriber.IFindRequest): Promise<Nomalism$1.ChatSubscriber.IFindChatSubscriberResponse>;
|
|
1622
1622
|
findById({ id, }: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
|
package/dist/index.js
CHANGED
|
@@ -208,10 +208,6 @@ var Repository2 = class {
|
|
|
208
208
|
const response = await this.api.post(`${this.route}`, body);
|
|
209
209
|
return response.data;
|
|
210
210
|
}
|
|
211
|
-
async createOrUpdate(body) {
|
|
212
|
-
const response = await this.api.post(`${this.route}create_or_update`, body);
|
|
213
|
-
return response.data;
|
|
214
|
-
}
|
|
215
211
|
async update(selector, body) {
|
|
216
212
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
217
213
|
return response.data;
|
|
@@ -500,6 +496,10 @@ var Repository7 = class {
|
|
|
500
496
|
const result = await this.api.get(`${this.route}siblings/${id}`);
|
|
501
497
|
return result.data;
|
|
502
498
|
}
|
|
499
|
+
async createSiteProposal(data) {
|
|
500
|
+
const result = await this.api.post(`${this.route}create_site_proposal`, data);
|
|
501
|
+
return result.data;
|
|
502
|
+
}
|
|
503
503
|
};
|
|
504
504
|
|
|
505
505
|
// src/modules/supply/documentHeaderHistory.ts
|
|
@@ -2920,7 +2920,8 @@ var Repository80 = class {
|
|
|
2920
2920
|
this.route = route;
|
|
2921
2921
|
}
|
|
2922
2922
|
async sendEmail(body) {
|
|
2923
|
-
await this.api.post(`${this.route}sendEmail`, body);
|
|
2923
|
+
const response = await this.api.post(`${this.route}sendEmail`, body);
|
|
2924
|
+
return response.data;
|
|
2924
2925
|
}
|
|
2925
2926
|
};
|
|
2926
2927
|
|
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.40.
|
|
4
|
+
"version": "0.40.109",
|
|
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.40.
|
|
26
|
+
"@nomalism-com/types": "^0.40.113",
|
|
27
27
|
"axios": "^1.13.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"eslint": "^9.39.2",
|
|
35
35
|
"eslint-config-prettier": "^10.1.8",
|
|
36
36
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
37
|
-
"eslint-plugin-prettier": "^5.5.
|
|
37
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
38
38
|
"prettier": "^3.7.4",
|
|
39
39
|
"tsup": "^8.5.1"
|
|
40
40
|
},
|