@nomalism-com/api 0.39.21 → 0.39.23
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 -1
- package/dist/index.js +13 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -657,6 +657,7 @@ declare class Repository$19 implements Nomalism$1.StoreOperator.IRepository {
|
|
|
657
657
|
findMinified(params?: Nomalism$1.shared.IFindMinifiedRequest): Promise<Nomalism$1.shared.IFindMinifiedResponse[]>;
|
|
658
658
|
create(body: Nomalism$1.StoreOperator.ICreateRequest): Promise<string>;
|
|
659
659
|
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.StoreOperator.IUpdateRequest): Promise<void>;
|
|
660
|
+
updatePassword(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.StoreOperator.IUpdatePasswordRequest): Promise<void>;
|
|
660
661
|
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
661
662
|
}
|
|
662
663
|
|
|
@@ -1787,10 +1788,11 @@ declare class Repository$2 implements Nomalism$1.ChatSubscriber.IRepository {
|
|
|
1787
1788
|
private api;
|
|
1788
1789
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
1789
1790
|
createOrUpdate(data: Nomalism$1.ChatSubscriber.ICreateOrUpdateRequest): Promise<Nomalism$1.ChatSubscriber.Entity[]>;
|
|
1791
|
+
find(data: Nomalism$1.ChatSubscriber.IFindRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
|
|
1792
|
+
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1790
1793
|
findByOwnerId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
|
|
1791
1794
|
findByDocumentHeaderId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
|
|
1792
1795
|
findByPersonaId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
|
|
1793
|
-
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1794
1796
|
}
|
|
1795
1797
|
|
|
1796
1798
|
declare namespace chatSubscriber {
|
package/dist/index.js
CHANGED
|
@@ -1620,6 +1620,10 @@ var Repository42 = class {
|
|
|
1620
1620
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
1621
1621
|
return response.data;
|
|
1622
1622
|
}
|
|
1623
|
+
async updatePassword(selector, body) {
|
|
1624
|
+
const response = await this.api.put(`${this.route}password/${selector.id}`, body);
|
|
1625
|
+
return response.data;
|
|
1626
|
+
}
|
|
1623
1627
|
async deleteOne(selector) {
|
|
1624
1628
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
1625
1629
|
return response.data;
|
|
@@ -4049,6 +4053,14 @@ var Repository113 = class {
|
|
|
4049
4053
|
const response = await this.api.post(`${this.route}`, data);
|
|
4050
4054
|
return response.data;
|
|
4051
4055
|
}
|
|
4056
|
+
async find(data) {
|
|
4057
|
+
const response = await this.api.get(`${this.route}`, { params: data });
|
|
4058
|
+
return response.data;
|
|
4059
|
+
}
|
|
4060
|
+
async deleteOne(selector) {
|
|
4061
|
+
await this.api.post(`${this.route}/id/${selector}`);
|
|
4062
|
+
}
|
|
4063
|
+
//TODELETE (start)
|
|
4052
4064
|
async findByOwnerId(selector) {
|
|
4053
4065
|
const response = await this.api.get(`${this.route}by_owner_id/${selector.id}`);
|
|
4054
4066
|
return response.data;
|
|
@@ -4061,9 +4073,7 @@ var Repository113 = class {
|
|
|
4061
4073
|
const response = await this.api.get(`${this.route}by_persona_id/${selector.id}`);
|
|
4062
4074
|
return response.data;
|
|
4063
4075
|
}
|
|
4064
|
-
|
|
4065
|
-
await this.api.post(`${this.route}/id/${selector}`);
|
|
4066
|
-
}
|
|
4076
|
+
//TODELETE (end)
|
|
4067
4077
|
};
|
|
4068
4078
|
|
|
4069
4079
|
// src/modules/stock/tag.ts
|
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.39.
|
|
4
|
+
"version": "0.39.23",
|
|
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.39.
|
|
26
|
+
"@nomalism-com/types": "^0.39.31",
|
|
27
27
|
"axios": "^1.9.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|