@nomalism-com/api 0.51.7 → 0.51.8
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
|
@@ -3227,6 +3227,13 @@ var Repository82 = class {
|
|
|
3227
3227
|
async retry(body) {
|
|
3228
3228
|
await this.api.post(`${this.route}retry`, body);
|
|
3229
3229
|
}
|
|
3230
|
+
async viewPdf(selector) {
|
|
3231
|
+
const response = await this.api.get(
|
|
3232
|
+
`${this.route}view_pdf/${selector.id}`,
|
|
3233
|
+
{ responseType: "arraybuffer" }
|
|
3234
|
+
);
|
|
3235
|
+
return response.status === 204 ? null : new Uint8Array(response.data);
|
|
3236
|
+
}
|
|
3230
3237
|
async create(body) {
|
|
3231
3238
|
const response = await this.api.post(
|
|
3232
3239
|
`${this.route}`,
|
package/dist/index.js
CHANGED
|
@@ -3194,6 +3194,13 @@ var Repository82 = class {
|
|
|
3194
3194
|
async retry(body) {
|
|
3195
3195
|
await this.api.post(`${this.route}retry`, body);
|
|
3196
3196
|
}
|
|
3197
|
+
async viewPdf(selector) {
|
|
3198
|
+
const response = await this.api.get(
|
|
3199
|
+
`${this.route}view_pdf/${selector.id}`,
|
|
3200
|
+
{ responseType: "arraybuffer" }
|
|
3201
|
+
);
|
|
3202
|
+
return response.status === 204 ? null : new Uint8Array(response.data);
|
|
3203
|
+
}
|
|
3197
3204
|
async create(body) {
|
|
3198
3205
|
const response = await this.api.post(
|
|
3199
3206
|
`${this.route}`,
|
|
@@ -9,5 +9,6 @@ export default class Repository implements Nomalism.ExternalDocumentHeader.IRepo
|
|
|
9
9
|
deleteOne(params?: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.ExternalDocumentHeader.Entity | null>;
|
|
10
10
|
sendEmailDocument(body: Nomalism.ExternalDocumentHeader.ISendEmailDocumentRequest): Promise<void>;
|
|
11
11
|
retry(body: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
12
|
+
viewPdf(selector: Nomalism.shared.IFindByIdRequest): Promise<Uint8Array | null>;
|
|
12
13
|
create(body: Nomalism.ExternalDocumentHeader.ICreateRequest): Promise<Nomalism.ExternalDocumentHeader.Entity>;
|
|
13
14
|
}
|
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.8",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"prepare": "husky"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nomalism-com/types": "^0.51.
|
|
33
|
+
"@nomalism-com/types": "^0.51.8",
|
|
34
34
|
"axios": "^1.20.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@eslint/js": "^10.0.1",
|
|
38
|
-
"@swc/core": "^1.16.
|
|
38
|
+
"@swc/core": "^1.16.20",
|
|
39
39
|
"@types/node": "^26.6.5",
|
|
40
40
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
41
41
|
"@typescript-eslint/parser": "^8.62.0",
|