@nomalism-com/api 0.43.33 → 0.43.35
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 +3 -7
- package/dist/index.js +10 -26
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -208,8 +208,6 @@ declare class Repository$1H implements Nomalism$1.DocumentLine.IRepository {
|
|
|
208
208
|
constructor({ api, route }: IModuleConstructor);
|
|
209
209
|
create(body: Nomalism$1.DocumentLine.ICreateRequest[]): Promise<Nomalism$1.DocumentLineAssoc.IEntityExtended[]>;
|
|
210
210
|
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.DocumentLine.IUpdateRequest): Promise<void>;
|
|
211
|
-
updateIndexes(document_line_ids: string[]): Promise<void>;
|
|
212
|
-
updateData(data: Nomalism$1.DocumentLine.IUpdateDataRequest): Promise<Nomalism$1.DocumentLine.IEntityWithDocumentLine[]>;
|
|
213
211
|
updateMany(data: Nomalism$1.DocumentLine.IUpdateManyRequest): Promise<void>;
|
|
214
212
|
updateManyByDocumentHeader(params: Nomalism$1.shared.IFindByIdRequest, data: Nomalism$1.DocumentLine.IUpdateManyByDocumentHeaderRequest): Promise<void>;
|
|
215
213
|
deleteMany(document_line_ids: string[]): Promise<void>;
|
|
@@ -845,14 +843,12 @@ declare class Repository$13 implements Nomalism$1.ExternalDocumentHeader.IReposi
|
|
|
845
843
|
route: string;
|
|
846
844
|
private api;
|
|
847
845
|
constructor({ api, route }: IModuleConstructor);
|
|
848
|
-
|
|
849
|
-
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.ExternalDocumentHeader.IUpdateRequest): Promise<Nomalism$1.ExternalDocumentHeader.Entity | null>;
|
|
850
|
-
findById(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ExternalDocumentHeader.IFindByIdResponse | null>;
|
|
846
|
+
findById(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ExternalDocumentHeader.Entity | null>;
|
|
851
847
|
findByOwnerId(params?: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.ExternalDocumentHeader.IFindByOwnerIdItemWithVersions[]>;
|
|
852
|
-
find(params?: Nomalism$1.ExternalDocumentHeader.IFindRequest): Promise<Nomalism$1.ExternalDocumentHeader.IFindResponse[]>;
|
|
853
|
-
findPaginated(params: Nomalism$1.ExternalDocumentHeader.IFindPaginatedRequest): Promise<Nomalism$1.ExternalDocumentHeader.IFindWithPaginationResponse>;
|
|
854
848
|
deleteOne(params?: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ExternalDocumentHeader.Entity | null>;
|
|
855
849
|
sendEmailDocument(body: Nomalism$1.ExternalDocumentHeader.ISendEmailDocumentRequest): Promise<void>;
|
|
850
|
+
retry(body: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
851
|
+
create(body: Nomalism$1.ExternalDocumentHeader.ICreateRequest): Promise<Nomalism$1.ExternalDocumentHeader.Entity>;
|
|
856
852
|
}
|
|
857
853
|
|
|
858
854
|
declare namespace externalDocumentHeader {
|
package/dist/index.js
CHANGED
|
@@ -632,13 +632,6 @@ var Repository16 = class {
|
|
|
632
632
|
async update(selector, body) {
|
|
633
633
|
await this.api.put(`${this.route}${selector.id}`, body);
|
|
634
634
|
}
|
|
635
|
-
async updateIndexes(document_line_ids) {
|
|
636
|
-
await this.api.put(`${this.route}update_indexes`, document_line_ids);
|
|
637
|
-
}
|
|
638
|
-
async updateData(data) {
|
|
639
|
-
const response = await this.api.post(`${this.route}update_data`, data);
|
|
640
|
-
return response.data;
|
|
641
|
-
}
|
|
642
635
|
async updateMany(data) {
|
|
643
636
|
const response = await this.api.post(`${this.route}update_many`, data);
|
|
644
637
|
return response.data;
|
|
@@ -2132,14 +2125,6 @@ var Repository56 = class {
|
|
|
2132
2125
|
this.api = api;
|
|
2133
2126
|
this.route = route;
|
|
2134
2127
|
}
|
|
2135
|
-
async create(body) {
|
|
2136
|
-
const response = await this.api.post(`${this.route}`, body);
|
|
2137
|
-
return response.data;
|
|
2138
|
-
}
|
|
2139
|
-
async update(selector, body) {
|
|
2140
|
-
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
2141
|
-
return response.data;
|
|
2142
|
-
}
|
|
2143
2128
|
async findById(selector) {
|
|
2144
2129
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
2145
2130
|
return response.data;
|
|
@@ -2148,14 +2133,6 @@ var Repository56 = class {
|
|
|
2148
2133
|
const response = await this.api.get(`${this.route}by_owner`, { params });
|
|
2149
2134
|
return response.data;
|
|
2150
2135
|
}
|
|
2151
|
-
async find(params) {
|
|
2152
|
-
const response = await this.api.get(`${this.route}`, { params });
|
|
2153
|
-
return response.data;
|
|
2154
|
-
}
|
|
2155
|
-
async findPaginated(params) {
|
|
2156
|
-
const response = await this.api.get(`${this.route}paginated`, { params });
|
|
2157
|
-
return response.data;
|
|
2158
|
-
}
|
|
2159
2136
|
async deleteOne(params) {
|
|
2160
2137
|
const response = await this.api.get(`${this.route}`, { params });
|
|
2161
2138
|
return response.data;
|
|
@@ -2163,6 +2140,13 @@ var Repository56 = class {
|
|
|
2163
2140
|
async sendEmailDocument(body) {
|
|
2164
2141
|
await this.api.post(`${this.route}sendEmail`, body);
|
|
2165
2142
|
}
|
|
2143
|
+
async retry(body) {
|
|
2144
|
+
await this.api.post(`${this.route}retry`, body);
|
|
2145
|
+
}
|
|
2146
|
+
async create(body) {
|
|
2147
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
2148
|
+
return response.data;
|
|
2149
|
+
}
|
|
2166
2150
|
};
|
|
2167
2151
|
|
|
2168
2152
|
// src/modules/supply/vatValidation.ts
|
|
@@ -4335,12 +4319,12 @@ var API = class {
|
|
|
4335
4319
|
this.AccountCode = new Repository119(getModuleParams("stock", "account_code"));
|
|
4336
4320
|
this.LLM = new Repository120(getModuleParams("llm", "llm"));
|
|
4337
4321
|
this.PatchNotes = new Repository121(getModuleParams("integration", "patch_notes"));
|
|
4338
|
-
this.DocumentHeaderSubscriber = new Repository123(
|
|
4339
|
-
getModuleParams("stock", "document_header_subscriber")
|
|
4340
|
-
);
|
|
4341
4322
|
this.DocumentHeaderSurvey = new Repository122(
|
|
4342
4323
|
getModuleParams("stock", "document_header_survey")
|
|
4343
4324
|
);
|
|
4325
|
+
this.DocumentHeaderSubscriber = new Repository123(
|
|
4326
|
+
getModuleParams("stock", "document_header_subscriber")
|
|
4327
|
+
);
|
|
4344
4328
|
}
|
|
4345
4329
|
};
|
|
4346
4330
|
|
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.35",
|
|
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.
|
|
26
|
+
"@nomalism-com/types": "^0.43.38",
|
|
27
27
|
"axios": "^1.13.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@swc/core": "^1.15.18",
|
|
31
31
|
"@types/node": "^24.12.0",
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
33
|
-
"@typescript-eslint/parser": "^8.
|
|
34
|
-
"eslint": "^9.39.
|
|
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",
|