@nomalism-com/api 0.43.32 → 0.43.34
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 +373 -364
- package/dist/index.js +31 -23
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __export(main_exports, {
|
|
|
26
26
|
DeliveryMethods: () => deliveryMethods_exports,
|
|
27
27
|
DocumentHeader: () => documentHeader_exports,
|
|
28
28
|
DocumentHeaderHistory: () => documentHeaderHistory_exports,
|
|
29
|
+
DocumentHeaderSubscriberClass: () => documentHeaderSubscriber_exports,
|
|
29
30
|
DocumentLine: () => documentLine_exports,
|
|
30
31
|
DocumentLineAssoc: () => documentLineAssoc_exports,
|
|
31
32
|
DocumentLineMtClass: () => documentLineMt_exports,
|
|
@@ -631,13 +632,6 @@ var Repository16 = class {
|
|
|
631
632
|
async update(selector, body) {
|
|
632
633
|
await this.api.put(`${this.route}${selector.id}`, body);
|
|
633
634
|
}
|
|
634
|
-
async updateIndexes(document_line_ids) {
|
|
635
|
-
await this.api.put(`${this.route}update_indexes`, document_line_ids);
|
|
636
|
-
}
|
|
637
|
-
async updateData(data) {
|
|
638
|
-
const response = await this.api.post(`${this.route}update_data`, data);
|
|
639
|
-
return response.data;
|
|
640
|
-
}
|
|
641
635
|
async updateMany(data) {
|
|
642
636
|
const response = await this.api.post(`${this.route}update_many`, data);
|
|
643
637
|
return response.data;
|
|
@@ -2131,14 +2125,6 @@ var Repository56 = class {
|
|
|
2131
2125
|
this.api = api;
|
|
2132
2126
|
this.route = route;
|
|
2133
2127
|
}
|
|
2134
|
-
async create(body) {
|
|
2135
|
-
const response = await this.api.post(`${this.route}`, body);
|
|
2136
|
-
return response.data;
|
|
2137
|
-
}
|
|
2138
|
-
async update(selector, body) {
|
|
2139
|
-
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
2140
|
-
return response.data;
|
|
2141
|
-
}
|
|
2142
2128
|
async findById(selector) {
|
|
2143
2129
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
2144
2130
|
return response.data;
|
|
@@ -2147,14 +2133,6 @@ var Repository56 = class {
|
|
|
2147
2133
|
const response = await this.api.get(`${this.route}by_owner`, { params });
|
|
2148
2134
|
return response.data;
|
|
2149
2135
|
}
|
|
2150
|
-
async find(params) {
|
|
2151
|
-
const response = await this.api.get(`${this.route}`, { params });
|
|
2152
|
-
return response.data;
|
|
2153
|
-
}
|
|
2154
|
-
async findPaginated(params) {
|
|
2155
|
-
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
2156
|
-
return response.data;
|
|
2157
|
-
}
|
|
2158
2136
|
async deleteOne(params) {
|
|
2159
2137
|
const response = await this.api.get(`${this.route}`, { params });
|
|
2160
2138
|
return response.data;
|
|
@@ -2162,6 +2140,9 @@ var Repository56 = class {
|
|
|
2162
2140
|
async sendEmailDocument(body) {
|
|
2163
2141
|
await this.api.post(`${this.route}sendEmail`, body);
|
|
2164
2142
|
}
|
|
2143
|
+
async retry(body) {
|
|
2144
|
+
await this.api.post(`${this.route}retry`, body);
|
|
2145
|
+
}
|
|
2165
2146
|
};
|
|
2166
2147
|
|
|
2167
2148
|
// src/modules/supply/vatValidation.ts
|
|
@@ -4111,6 +4092,30 @@ var Repository122 = class {
|
|
|
4111
4092
|
}
|
|
4112
4093
|
};
|
|
4113
4094
|
|
|
4095
|
+
// src/modules/supply/documentHeaderSubscriber.ts
|
|
4096
|
+
var documentHeaderSubscriber_exports = {};
|
|
4097
|
+
__export(documentHeaderSubscriber_exports, {
|
|
4098
|
+
default: () => Repository123
|
|
4099
|
+
});
|
|
4100
|
+
var Repository123 = class {
|
|
4101
|
+
constructor({ api, route }) {
|
|
4102
|
+
this.api = api;
|
|
4103
|
+
this.route = route;
|
|
4104
|
+
}
|
|
4105
|
+
async findByOwnerId(params) {
|
|
4106
|
+
const response = await this.api.get(`${this.route}by_owner`, {
|
|
4107
|
+
params
|
|
4108
|
+
});
|
|
4109
|
+
return response.data;
|
|
4110
|
+
}
|
|
4111
|
+
async create(body) {
|
|
4112
|
+
await this.api.post(`${this.route}`, body);
|
|
4113
|
+
}
|
|
4114
|
+
async deleteOne(selector) {
|
|
4115
|
+
await this.api.delete(`${this.route}${selector.id}`);
|
|
4116
|
+
}
|
|
4117
|
+
};
|
|
4118
|
+
|
|
4114
4119
|
// src/main.ts
|
|
4115
4120
|
var API = class {
|
|
4116
4121
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4313,6 +4318,9 @@ var API = class {
|
|
|
4313
4318
|
this.DocumentHeaderSurvey = new Repository122(
|
|
4314
4319
|
getModuleParams("stock", "document_header_survey")
|
|
4315
4320
|
);
|
|
4321
|
+
this.DocumentHeaderSubscriber = new Repository123(
|
|
4322
|
+
getModuleParams("stock", "document_header_subscriber")
|
|
4323
|
+
);
|
|
4316
4324
|
}
|
|
4317
4325
|
};
|
|
4318
4326
|
|
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.34",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^0.43.
|
|
27
|
-
"axios": "^1.13.
|
|
26
|
+
"@nomalism-com/types": "^0.43.37",
|
|
27
|
+
"axios": "^1.13.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@swc/core": "^1.15.
|
|
31
|
-
"@types/node": "^24.
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
33
|
-
"@typescript-eslint/parser": "^8.
|
|
34
|
-
"eslint": "^9.39.
|
|
30
|
+
"@swc/core": "^1.15.18",
|
|
31
|
+
"@types/node": "^24.12.0",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
33
|
+
"@typescript-eslint/parser": "^8.57.0",
|
|
34
|
+
"eslint": "^9.39.4",
|
|
35
35
|
"eslint-config-prettier": "^10.1.8",
|
|
36
36
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
37
37
|
"eslint-plugin-prettier": "^5.5.5",
|