@nomalism-com/api 0.40.58 → 0.40.70
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 -2
- package/dist/index.js +10 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ declare class Repository$1P implements Nomalism$1.Chat.IRepository {
|
|
|
65
65
|
private api;
|
|
66
66
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
67
67
|
findActiveByOwnerId(params: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.Chat.IPublicFindActiveByOwnerIdResponse>;
|
|
68
|
-
|
|
68
|
+
findActiveBySubscriberId(params: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.Chat.IPublicFindActiveByOwnerIdResponse>;
|
|
69
69
|
create(body: Nomalism$1.Chat.ICreateRequest): Promise<Nomalism$1.Chat.Entity>;
|
|
70
70
|
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Chat.IUpdateRequest): Promise<void>;
|
|
71
71
|
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
@@ -1727,7 +1727,8 @@ declare class Repository$9 implements Nomalism$1.ChatSubscriber.IRepository {
|
|
|
1727
1727
|
private api;
|
|
1728
1728
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
1729
1729
|
createOrUpdate(data: Nomalism$1.ChatSubscriber.ICreateOrUpdateRequest): Promise<void>;
|
|
1730
|
-
|
|
1730
|
+
findByOwner(params: Nomalism$1.ChatSubscriber.IFindRequest): Promise<Nomalism$1.ChatSubscriber.IFindResponse[]>;
|
|
1731
|
+
findById({ id, }: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindResponse>;
|
|
1731
1732
|
deleteOne({ id }: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1732
1733
|
}
|
|
1733
1734
|
|
package/dist/index.js
CHANGED
|
@@ -278,8 +278,8 @@ var Repository4 = class {
|
|
|
278
278
|
});
|
|
279
279
|
return response.data;
|
|
280
280
|
}
|
|
281
|
-
async
|
|
282
|
-
const response = await this.api.get(`${this.route}
|
|
281
|
+
async findActiveBySubscriberId(params) {
|
|
282
|
+
const response = await this.api.get(`${this.route}active_by_subscriber_id`, {
|
|
283
283
|
params
|
|
284
284
|
});
|
|
285
285
|
return response.data;
|
|
@@ -3877,8 +3877,14 @@ var Repository110 = class {
|
|
|
3877
3877
|
const response = await this.api.post(`${this.route}`, data);
|
|
3878
3878
|
return response.data;
|
|
3879
3879
|
}
|
|
3880
|
-
async
|
|
3881
|
-
const response = await this.api.get(`${this.route}`, { params
|
|
3880
|
+
async findByOwner(params) {
|
|
3881
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
3882
|
+
return response.data;
|
|
3883
|
+
}
|
|
3884
|
+
async findById({
|
|
3885
|
+
id
|
|
3886
|
+
}) {
|
|
3887
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
3882
3888
|
return response.data;
|
|
3883
3889
|
}
|
|
3884
3890
|
async deleteOne({ id }) {
|
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.70",
|
|
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.70",
|
|
27
27
|
"axios": "^1.13.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|