@nomalism-com/api 0.39.60 → 0.39.62
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 +1 -1
- package/dist/index.js +4 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -525,6 +525,7 @@ declare class Repository$1h implements Nomalism$1.Providers.IRepository {
|
|
|
525
525
|
create(body: Nomalism$1.Providers.ICreateRequest): Promise<Nomalism$1.Providers.IFindResponse>;
|
|
526
526
|
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Providers.IUpdateRequest): Promise<Nomalism$1.Providers.IFindResponse | null>;
|
|
527
527
|
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Providers.IFindResponse | null>;
|
|
528
|
+
findByNumber(selector: Nomalism$1.Providers.IFindByNumberRequest): Promise<Nomalism$1.Providers.IFindByNumberResponse | null>;
|
|
528
529
|
}
|
|
529
530
|
|
|
530
531
|
declare namespace provider {
|
|
@@ -1618,7 +1619,6 @@ declare class Repository$f implements Nomalism$1.ProductGoogleSheets.IRepository
|
|
|
1618
1619
|
updateDbFromSheets(): Promise<void>;
|
|
1619
1620
|
partialLocation(body: Nomalism$1.ProductGoogleSheets.IProductLocation): Promise<void>;
|
|
1620
1621
|
fullLocation(body: Nomalism$1.ProductGoogleSheets.IProductLocation): Promise<void>;
|
|
1621
|
-
findByOwner(params: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ProductGoogleSheets.IProductByOwner[]>;
|
|
1622
1622
|
}
|
|
1623
1623
|
|
|
1624
1624
|
declare namespace productGoogleSheets {
|
package/dist/index.js
CHANGED
|
@@ -1332,6 +1332,10 @@ var Repository34 = class {
|
|
|
1332
1332
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
1333
1333
|
return response.data;
|
|
1334
1334
|
}
|
|
1335
|
+
async findByNumber(selector) {
|
|
1336
|
+
const response = await this.api.get(`${this.route}by_number/${selector.number}`);
|
|
1337
|
+
return response.data;
|
|
1338
|
+
}
|
|
1335
1339
|
};
|
|
1336
1340
|
|
|
1337
1341
|
// src/modules/user/providerType.ts
|
|
@@ -3772,10 +3776,6 @@ var Repository100 = class {
|
|
|
3772
3776
|
async fullLocation(body) {
|
|
3773
3777
|
await this.api.post(`${this.route}full_location`, body);
|
|
3774
3778
|
}
|
|
3775
|
-
async findByOwner(params) {
|
|
3776
|
-
const response = await this.api.get(`${this.route}by_owner/${params.id}`);
|
|
3777
|
-
return response.data;
|
|
3778
|
-
}
|
|
3779
3779
|
};
|
|
3780
3780
|
|
|
3781
3781
|
// src/modules/stock/task.ts
|
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.39.
|
|
4
|
+
"version": "0.39.62",
|
|
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.39.
|
|
26
|
+
"@nomalism-com/types": "^0.39.63",
|
|
27
27
|
"axios": "^1.9.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|