@nomalism-com/api 0.43.42 → 0.43.44
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 +2 -4
- package/dist/index.js +2 -12
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -59,9 +59,8 @@ declare class Repository$1T implements Nomalism$1.Chat.IRepository {
|
|
|
59
59
|
route: string;
|
|
60
60
|
private api;
|
|
61
61
|
constructor({ api, route }: IModuleConstructor);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
findActiveBySubscriberId(params: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Chat.IPublicFindBySubscriberId>;
|
|
62
|
+
findByOwnerId(params: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Chat.IFindActiveByOwnerIdResponse>;
|
|
63
|
+
findBySubscriberId(params: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Chat.IPublicFindBySubscriberId>;
|
|
65
64
|
create(body: Nomalism$1.Chat.ICreateRequest): Promise<Nomalism$1.Chat.Entity>;
|
|
66
65
|
update({ id }: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Chat.IUpdateRequest): Promise<void>;
|
|
67
66
|
deleteOne({ id }: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
@@ -1612,7 +1611,6 @@ declare class Repository$d implements Nomalism$1.ChatSubscriber.IRepository {
|
|
|
1612
1611
|
constructor({ api, route }: IModuleConstructor);
|
|
1613
1612
|
createOrUpdate(data: Nomalism$1.ChatSubscriber.ICreateOrUpdateRequest): Promise<string>;
|
|
1614
1613
|
findByOwner(params: Nomalism$1.ChatSubscriber.IFindRequest): Promise<Nomalism$1.ChatSubscriber.IFindByOwnerResponse[]>;
|
|
1615
|
-
clientWebAppFindByOwner(params: Nomalism$1.ChatSubscriber.IFindRequest): Promise<Nomalism$1.ChatSubscriber.IFindChatSubscriberResponse>;
|
|
1616
1614
|
findById({ id, }: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ChatSubscriber.IFindByIdResponse>;
|
|
1617
1615
|
deleteOne({ id }: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1618
1616
|
}
|
package/dist/index.js
CHANGED
|
@@ -267,19 +267,13 @@ var Repository4 = class {
|
|
|
267
267
|
this.api = api;
|
|
268
268
|
this.route = route;
|
|
269
269
|
}
|
|
270
|
-
async
|
|
270
|
+
async findByOwnerId(params) {
|
|
271
271
|
const response = await this.api.get(`${this.route}active`, {
|
|
272
272
|
params
|
|
273
273
|
});
|
|
274
274
|
return response.data;
|
|
275
275
|
}
|
|
276
|
-
async
|
|
277
|
-
const response = await this.api.get(`${this.route}client_web_app`, {
|
|
278
|
-
params
|
|
279
|
-
});
|
|
280
|
-
return response.data;
|
|
281
|
-
}
|
|
282
|
-
async findActiveBySubscriberId(params) {
|
|
276
|
+
async findBySubscriberId(params) {
|
|
283
277
|
const response = await this.api.get(`${this.route}active_by_subscriber_id`, {
|
|
284
278
|
params
|
|
285
279
|
});
|
|
@@ -3753,10 +3747,6 @@ var Repository110 = class {
|
|
|
3753
3747
|
const response = await this.api.get(`${this.route}`, { params });
|
|
3754
3748
|
return response.data;
|
|
3755
3749
|
}
|
|
3756
|
-
async clientWebAppFindByOwner(params) {
|
|
3757
|
-
const response = await this.api.get(`${this.route}client_web_app`, { params });
|
|
3758
|
-
return response.data;
|
|
3759
|
-
}
|
|
3760
3750
|
async findById({
|
|
3761
3751
|
id
|
|
3762
3752
|
}) {
|
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.44",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,11 +23,11 @@
|
|
|
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.49",
|
|
27
27
|
"axios": "^1.13.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@swc/core": "^1.15.
|
|
30
|
+
"@swc/core": "^1.15.21",
|
|
31
31
|
"@types/node": "^24.12.0",
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^8.57.1",
|
|
33
33
|
"@typescript-eslint/parser": "^8.57.1",
|