@nomalism-com/api 0.46.14 → 0.46.16
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.js
CHANGED
|
@@ -4421,8 +4421,8 @@ var Repository123 = class {
|
|
|
4421
4421
|
this.api = api;
|
|
4422
4422
|
this.route = route;
|
|
4423
4423
|
}
|
|
4424
|
-
async find() {
|
|
4425
|
-
const response = await this.api.get(`${this.route}
|
|
4424
|
+
async find(params) {
|
|
4425
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
4426
4426
|
return response.data;
|
|
4427
4427
|
}
|
|
4428
4428
|
async updateSent(body) {
|
|
@@ -4,7 +4,7 @@ export default class Repository implements Nomalism.DocumentHeaderSurvey.IReposi
|
|
|
4
4
|
route: string;
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
|
-
find(): Promise<Nomalism.DocumentHeaderSurvey.
|
|
7
|
+
find(params: Nomalism.DocumentHeaderSurvey.IFindRequest): Promise<Nomalism.DocumentHeaderSurvey.IFindResponseItem[]>;
|
|
8
8
|
updateSent(body: Nomalism.DocumentHeaderSurvey.IUpdateSentRequest): Promise<void>;
|
|
9
9
|
updateSurvey(body: Nomalism.DocumentHeaderSurvey.IUpdateSurveyRequest): Promise<void>;
|
|
10
10
|
}
|
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.46.
|
|
4
|
+
"version": "0.46.16",
|
|
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.46.
|
|
26
|
+
"@nomalism-com/types": "^0.46.16",
|
|
27
27
|
"axios": "^1.18.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|