@nomalism-com/api 0.43.52 → 0.43.53
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 +8 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1608,9 +1608,10 @@ declare class Repository$d implements Nomalism$1.ChatSubscriber.IRepository {
|
|
|
1608
1608
|
route: string;
|
|
1609
1609
|
private api;
|
|
1610
1610
|
constructor({ api, route }: IModuleConstructor);
|
|
1611
|
-
|
|
1612
|
-
|
|
1611
|
+
findDocumentHeaderSubscribers(params: Nomalism$1.ChatSubscriber.IFindDocumentHeaderSubscribersRequest): Promise<Nomalism$1.ChatSubscriber.IFindByOwnerResponse[]>;
|
|
1612
|
+
findSubscribedDocumentHeaders(params: Nomalism$1.ChatSubscriber.IFindSubscribedDocumentHeadersRequest): Promise<Nomalism$1.ChatSubscriber.IFindByOwnerResponse[]>;
|
|
1613
1613
|
findById({ id, }: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
|
|
1614
|
+
createOrUpdate(data: Nomalism$1.ChatSubscriber.ICreateOrUpdateRequest): Promise<string>;
|
|
1614
1615
|
deleteOne({ id }: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1615
1616
|
}
|
|
1616
1617
|
|
package/dist/index.js
CHANGED
|
@@ -3733,12 +3733,12 @@ var Repository110 = class {
|
|
|
3733
3733
|
this.api = api;
|
|
3734
3734
|
this.route = route;
|
|
3735
3735
|
}
|
|
3736
|
-
async
|
|
3737
|
-
const response = await this.api.
|
|
3736
|
+
async findDocumentHeaderSubscribers(params) {
|
|
3737
|
+
const response = await this.api.get(`${this.route}document_header_subscribers`, { params });
|
|
3738
3738
|
return response.data;
|
|
3739
3739
|
}
|
|
3740
|
-
async
|
|
3741
|
-
const response = await this.api.get(`${this.route}`, { params });
|
|
3740
|
+
async findSubscribedDocumentHeaders(params) {
|
|
3741
|
+
const response = await this.api.get(`${this.route}subscribed_document_headers`, { params });
|
|
3742
3742
|
return response.data;
|
|
3743
3743
|
}
|
|
3744
3744
|
async findById({
|
|
@@ -3747,6 +3747,10 @@ var Repository110 = class {
|
|
|
3747
3747
|
const response = await this.api.get(`${this.route}${id}`);
|
|
3748
3748
|
return response.data;
|
|
3749
3749
|
}
|
|
3750
|
+
async createOrUpdate(data) {
|
|
3751
|
+
const response = await this.api.post(`${this.route}`, data);
|
|
3752
|
+
return response.data;
|
|
3753
|
+
}
|
|
3750
3754
|
async deleteOne({ id }) {
|
|
3751
3755
|
await this.api.delete(`${this.route}/${id}`);
|
|
3752
3756
|
}
|
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.43.
|
|
4
|
+
"version": "0.43.53",
|
|
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.43.
|
|
26
|
+
"@nomalism-com/types": "^0.43.58",
|
|
27
27
|
"axios": "^1.13.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|