@nomalism-com/api 0.43.51 → 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 +6 -8
- package/dist/index.js +10 -22
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -60,7 +60,6 @@ declare class Repository$1T implements Nomalism$1.Chat.IRepository {
|
|
|
60
60
|
private api;
|
|
61
61
|
constructor({ api, route }: IModuleConstructor);
|
|
62
62
|
findByOwnerId(params: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Chat.IFindActiveByOwnerIdResponse>;
|
|
63
|
-
findBySubscriberId(params: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Chat.IPublicFindBySubscriberId>;
|
|
64
63
|
create(body: Nomalism$1.Chat.ICreateRequest): Promise<Nomalism$1.Chat.Entity>;
|
|
65
64
|
update({ id }: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Chat.IUpdateRequest): Promise<void>;
|
|
66
65
|
deleteOne({ id }: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
@@ -1609,10 +1608,10 @@ declare class Repository$d implements Nomalism$1.ChatSubscriber.IRepository {
|
|
|
1609
1608
|
route: string;
|
|
1610
1609
|
private api;
|
|
1611
1610
|
constructor({ api, route }: IModuleConstructor);
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
publicFindByOwner(params: Nomalism$1.ChatSubscriber.IFindRequest): Promise<Nomalism$1.ChatSubscriber.IFindChatSubscriberResponse>;
|
|
1611
|
+
findDocumentHeaderSubscribers(params: Nomalism$1.ChatSubscriber.IFindDocumentHeaderSubscribersRequest): Promise<Nomalism$1.ChatSubscriber.IFindByOwnerResponse[]>;
|
|
1612
|
+
findSubscribedDocumentHeaders(params: Nomalism$1.ChatSubscriber.IFindSubscribedDocumentHeadersRequest): Promise<Nomalism$1.ChatSubscriber.IFindByOwnerResponse[]>;
|
|
1615
1613
|
findById({ id, }: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
|
|
1614
|
+
createOrUpdate(data: Nomalism$1.ChatSubscriber.ICreateOrUpdateRequest): Promise<string>;
|
|
1616
1615
|
deleteOne({ id }: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1617
1616
|
}
|
|
1618
1617
|
|
|
@@ -1709,10 +1708,9 @@ declare class Repository$6 implements Nomalism$1.Portal.IRepository {
|
|
|
1709
1708
|
route: string;
|
|
1710
1709
|
private api;
|
|
1711
1710
|
constructor({ api, route }: IModuleConstructor);
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
updatePublicDocumentHeaderNote({ id }: Nomalism$1.shared.IFindByIdRequest, data: Nomalism$1.Portal.PublicDocumentHeaderNoteUpdateRequest[]): Promise<Nomalism$1.Portal.PublicDocumentHeaderNote[]>;
|
|
1711
|
+
publicFindBySubscriberId(params?: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Portal.IPublicFindBySubscriberId>;
|
|
1712
|
+
publicCreateDocumentHeaderNote(data: Nomalism$1.Portal.PublicDocumentHeaderNoteCreateRequest[]): Promise<Nomalism$1.Portal.PublicDocumentHeaderNote[]>;
|
|
1713
|
+
publicUpdateDocumentHeaderNote({ id }: Nomalism$1.shared.IFindByIdRequest, data: Nomalism$1.Portal.PublicDocumentHeaderNoteUpdateRequest[]): Promise<Nomalism$1.Portal.PublicDocumentHeaderNote[]>;
|
|
1716
1714
|
}
|
|
1717
1715
|
|
|
1718
1716
|
declare namespace portal {
|
package/dist/index.js
CHANGED
|
@@ -273,12 +273,6 @@ var Repository4 = class {
|
|
|
273
273
|
});
|
|
274
274
|
return response.data;
|
|
275
275
|
}
|
|
276
|
-
async findBySubscriberId(params) {
|
|
277
|
-
const response = await this.api.get(`${this.route}active_by_subscriber_id`, {
|
|
278
|
-
params
|
|
279
|
-
});
|
|
280
|
-
return response.data;
|
|
281
|
-
}
|
|
282
276
|
async create(body) {
|
|
283
277
|
const response = await this.api.post(`${this.route}`, body);
|
|
284
278
|
return response.data;
|
|
@@ -3739,16 +3733,12 @@ var Repository110 = class {
|
|
|
3739
3733
|
this.api = api;
|
|
3740
3734
|
this.route = route;
|
|
3741
3735
|
}
|
|
3742
|
-
async
|
|
3743
|
-
const response = await this.api.
|
|
3744
|
-
return response.data;
|
|
3745
|
-
}
|
|
3746
|
-
async findByOwner(params) {
|
|
3747
|
-
const response = await this.api.get(`${this.route}`, { params });
|
|
3736
|
+
async findDocumentHeaderSubscribers(params) {
|
|
3737
|
+
const response = await this.api.get(`${this.route}document_header_subscribers`, { params });
|
|
3748
3738
|
return response.data;
|
|
3749
3739
|
}
|
|
3750
|
-
async
|
|
3751
|
-
const response = await this.api.get(`${this.route}
|
|
3740
|
+
async findSubscribedDocumentHeaders(params) {
|
|
3741
|
+
const response = await this.api.get(`${this.route}subscribed_document_headers`, { params });
|
|
3752
3742
|
return response.data;
|
|
3753
3743
|
}
|
|
3754
3744
|
async findById({
|
|
@@ -3757,6 +3747,10 @@ var Repository110 = class {
|
|
|
3757
3747
|
const response = await this.api.get(`${this.route}${id}`);
|
|
3758
3748
|
return response.data;
|
|
3759
3749
|
}
|
|
3750
|
+
async createOrUpdate(data) {
|
|
3751
|
+
const response = await this.api.post(`${this.route}`, data);
|
|
3752
|
+
return response.data;
|
|
3753
|
+
}
|
|
3760
3754
|
async deleteOne({ id }) {
|
|
3761
3755
|
await this.api.delete(`${this.route}/${id}`);
|
|
3762
3756
|
}
|
|
@@ -3954,23 +3948,17 @@ var Repository117 = class {
|
|
|
3954
3948
|
this.api = api;
|
|
3955
3949
|
this.route = route;
|
|
3956
3950
|
}
|
|
3957
|
-
async publicFindByOwnerId(params) {
|
|
3958
|
-
const response = await this.api.get(`${this.route}public_by_owner`, {
|
|
3959
|
-
params
|
|
3960
|
-
});
|
|
3961
|
-
return response.data;
|
|
3962
|
-
}
|
|
3963
3951
|
async publicFindBySubscriberId(params) {
|
|
3964
3952
|
const response = await this.api.get(`${this.route}public_by_subscriber`, {
|
|
3965
3953
|
params
|
|
3966
3954
|
});
|
|
3967
3955
|
return response.data;
|
|
3968
3956
|
}
|
|
3969
|
-
async
|
|
3957
|
+
async publicCreateDocumentHeaderNote(data) {
|
|
3970
3958
|
const response = await this.api.post(`${this.route}public_document_header_note`, data);
|
|
3971
3959
|
return response.data;
|
|
3972
3960
|
}
|
|
3973
|
-
async
|
|
3961
|
+
async publicUpdateDocumentHeaderNote({ id }, data) {
|
|
3974
3962
|
const response = await this.api.put(`${this.route}public_document_header_note/${id}`, data);
|
|
3975
3963
|
return response.data;
|
|
3976
3964
|
}
|
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": {
|