@nomalism-com/api 0.51.15 → 0.51.17
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.cjs
CHANGED
|
@@ -974,6 +974,13 @@ var Repository21 = class {
|
|
|
974
974
|
}
|
|
975
975
|
);
|
|
976
976
|
}
|
|
977
|
+
async setPublic(data) {
|
|
978
|
+
const response = await this.api.post(
|
|
979
|
+
`${this.route}public`,
|
|
980
|
+
data
|
|
981
|
+
);
|
|
982
|
+
return response.data;
|
|
983
|
+
}
|
|
977
984
|
};
|
|
978
985
|
|
|
979
986
|
// src/modules/integration/emailLog.ts
|
|
@@ -1876,9 +1883,10 @@ var Repository47 = class {
|
|
|
1876
1883
|
const response = await this.api.get(`${this.route}auth`);
|
|
1877
1884
|
return response.data;
|
|
1878
1885
|
}
|
|
1879
|
-
async emails() {
|
|
1886
|
+
async emails(params) {
|
|
1880
1887
|
const response = await this.api.get(
|
|
1881
|
-
`${this.route}emails
|
|
1888
|
+
`${this.route}emails`,
|
|
1889
|
+
{ params }
|
|
1882
1890
|
);
|
|
1883
1891
|
return response.data;
|
|
1884
1892
|
}
|
|
@@ -2364,7 +2372,9 @@ var Repository58 = class {
|
|
|
2364
2372
|
return response.data;
|
|
2365
2373
|
}
|
|
2366
2374
|
async from_master_checked() {
|
|
2367
|
-
const response = await this.api.post(
|
|
2375
|
+
const response = await this.api.post(
|
|
2376
|
+
`${this.route}from_master_checked`
|
|
2377
|
+
);
|
|
2368
2378
|
return response.data;
|
|
2369
2379
|
}
|
|
2370
2380
|
};
|
package/dist/index.js
CHANGED
|
@@ -941,6 +941,13 @@ var Repository21 = class {
|
|
|
941
941
|
}
|
|
942
942
|
);
|
|
943
943
|
}
|
|
944
|
+
async setPublic(data) {
|
|
945
|
+
const response = await this.api.post(
|
|
946
|
+
`${this.route}public`,
|
|
947
|
+
data
|
|
948
|
+
);
|
|
949
|
+
return response.data;
|
|
950
|
+
}
|
|
944
951
|
};
|
|
945
952
|
|
|
946
953
|
// src/modules/integration/emailLog.ts
|
|
@@ -1843,9 +1850,10 @@ var Repository47 = class {
|
|
|
1843
1850
|
const response = await this.api.get(`${this.route}auth`);
|
|
1844
1851
|
return response.data;
|
|
1845
1852
|
}
|
|
1846
|
-
async emails() {
|
|
1853
|
+
async emails(params) {
|
|
1847
1854
|
const response = await this.api.get(
|
|
1848
|
-
`${this.route}emails
|
|
1855
|
+
`${this.route}emails`,
|
|
1856
|
+
{ params }
|
|
1849
1857
|
);
|
|
1850
1858
|
return response.data;
|
|
1851
1859
|
}
|
|
@@ -2331,7 +2339,9 @@ var Repository58 = class {
|
|
|
2331
2339
|
return response.data;
|
|
2332
2340
|
}
|
|
2333
2341
|
async from_master_checked() {
|
|
2334
|
-
const response = await this.api.post(
|
|
2342
|
+
const response = await this.api.post(
|
|
2343
|
+
`${this.route}from_master_checked`
|
|
2344
|
+
);
|
|
2335
2345
|
return response.data;
|
|
2336
2346
|
}
|
|
2337
2347
|
};
|
|
@@ -8,4 +8,5 @@ export default class Repository implements Nomalism.Multimedia.IApi {
|
|
|
8
8
|
getUrl(multimediaId: string, { download }?: Nomalism.Multimedia.IFindByIdRequest): string;
|
|
9
9
|
create(multipartFormData: unknown, headers?: RawAxiosRequestHeaders): Promise<Nomalism.Multimedia.Entity>;
|
|
10
10
|
update(id: string, multipartFormData: unknown, headers?: RawAxiosRequestHeaders): Promise<void>;
|
|
11
|
+
setPublic(data: Nomalism.Multimedia.ISetPublicRequest): Promise<Nomalism.Multimedia.ISetPublicResponse>;
|
|
11
12
|
}
|
|
@@ -4,7 +4,7 @@ export default class Repository implements Nomalism.Settings.IRepository {
|
|
|
4
4
|
route: string;
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
|
-
findByKey(params: Nomalism.Settings.IFindByKeyRequest): Promise<Nomalism.Settings.
|
|
8
|
-
update(body: Nomalism.Settings.IUpdateRequest): Promise<Nomalism.Settings.
|
|
9
|
-
find(): Promise<Nomalism.Settings.
|
|
7
|
+
findByKey(params: Nomalism.Settings.IFindByKeyRequest): Promise<Nomalism.Settings.IFindResponse | null>;
|
|
8
|
+
update(body: Nomalism.Settings.IUpdateRequest): Promise<Nomalism.Settings.IFindResponse | null>;
|
|
9
|
+
find(): Promise<Nomalism.Settings.IFindResponse[]>;
|
|
10
10
|
}
|
|
@@ -5,5 +5,5 @@ export default class Repository implements Nomalism.Gmails.IRepository {
|
|
|
5
5
|
private api;
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
7
|
auth(): Promise<string>;
|
|
8
|
-
emails(): Promise<Nomalism.Gmails.
|
|
8
|
+
emails(params?: Nomalism.Gmails.IFindRequest): Promise<Nomalism.Gmails.IFindResponse>;
|
|
9
9
|
}
|
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.51.
|
|
4
|
+
"version": "0.51.17",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"prepare": "husky"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nomalism-com/types": "^0.51.
|
|
33
|
+
"@nomalism-com/types": "^0.51.17",
|
|
34
34
|
"axios": "^1.21.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@eslint/js": "^10.0.1",
|
|
38
|
-
"@swc/core": "^1.16.
|
|
38
|
+
"@swc/core": "^1.16.21",
|
|
39
39
|
"@types/node": "^26.6.6",
|
|
40
40
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
41
41
|
"@typescript-eslint/parser": "^8.62.0",
|
|
42
|
-
"eslint": "^10.
|
|
42
|
+
"eslint": "^10.14.0",
|
|
43
43
|
"eslint-config-prettier": "^10.1.8",
|
|
44
44
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
45
|
-
"globals": "^17.
|
|
45
|
+
"globals": "^17.14.0",
|
|
46
46
|
"husky": "^9.1.7",
|
|
47
47
|
"lint-staged": "^17.6.0",
|
|
48
48
|
"prettier": "^3.9.10",
|