@nomalism-com/api 1.1.1 → 1.1.3
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 +5 -9
- package/dist/index.js +2 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -636,21 +636,17 @@ declare namespace shippings {
|
|
|
636
636
|
export { Repository$18 as default };
|
|
637
637
|
}
|
|
638
638
|
|
|
639
|
-
declare class Repository$17 implements Nomalism$1.StoreOperator.
|
|
639
|
+
declare class Repository$17 implements Nomalism$1.StoreOperator.IRepository {
|
|
640
640
|
route: string;
|
|
641
641
|
publicRoute: string;
|
|
642
642
|
private api;
|
|
643
643
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
644
|
-
find(
|
|
644
|
+
find(): Promise<Nomalism$1.StoreOperator.IFindResponse[]>;
|
|
645
645
|
findPaginated(params: Nomalism$1.StoreOperator.IFindPaginatedRequest): Promise<Nomalism$1.shared.IPaginationResponse<Nomalism$1.StoreOperator.IFindResponse>>;
|
|
646
646
|
findMinified(params?: Nomalism$1.shared.IFindMinifiedRequest): Promise<Nomalism$1.shared.IFindMinifiedResponse[]>;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.StoreOperator.IUpdateRequest): Promise<Nomalism$1.StoreOperator.IFindResponse | null>;
|
|
651
|
-
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.StoreOperator.IFindResponse | null>;
|
|
652
|
-
checkPin(data: Nomalism$1.StoreOperator.ICheckPinRequest): Promise<Nomalism$1.StoreOperator.IFindResponse>;
|
|
653
|
-
updateStoreOperator(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.StoreOperator.IStoreOperatorUpdateRequest): Promise<void>;
|
|
647
|
+
create(body: Nomalism$1.StoreOperator.ICreateRequest): Promise<string>;
|
|
648
|
+
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.StoreOperator.IUpdateRequest): Promise<void>;
|
|
649
|
+
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
654
650
|
}
|
|
655
651
|
|
|
656
652
|
declare namespace storeOperator {
|
package/dist/index.js
CHANGED
|
@@ -1584,8 +1584,8 @@ var Repository41 = class {
|
|
|
1584
1584
|
this.route = route;
|
|
1585
1585
|
this.publicRoute = publicRoute;
|
|
1586
1586
|
}
|
|
1587
|
-
async find(
|
|
1588
|
-
const response = await this.api.get(`${this.route}
|
|
1587
|
+
async find() {
|
|
1588
|
+
const response = await this.api.get(`${this.route}`);
|
|
1589
1589
|
return response.data;
|
|
1590
1590
|
}
|
|
1591
1591
|
async findPaginated(params) {
|
|
@@ -1598,16 +1598,6 @@ var Repository41 = class {
|
|
|
1598
1598
|
});
|
|
1599
1599
|
return response.data;
|
|
1600
1600
|
}
|
|
1601
|
-
async findByOwnerId(params) {
|
|
1602
|
-
const response = await this.api.get(`${this.route}by_owner`, {
|
|
1603
|
-
params
|
|
1604
|
-
});
|
|
1605
|
-
return response.data;
|
|
1606
|
-
}
|
|
1607
|
-
async findById(selector) {
|
|
1608
|
-
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
1609
|
-
return response.data;
|
|
1610
|
-
}
|
|
1611
1601
|
async create(body) {
|
|
1612
1602
|
const response = await this.api.post(`${this.route}`, body);
|
|
1613
1603
|
return response.data;
|
|
@@ -1620,13 +1610,6 @@ var Repository41 = class {
|
|
|
1620
1610
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
1621
1611
|
return response.data;
|
|
1622
1612
|
}
|
|
1623
|
-
async checkPin(data) {
|
|
1624
|
-
const response = await this.api.post(`${this.route}pin`, data);
|
|
1625
|
-
return response.data;
|
|
1626
|
-
}
|
|
1627
|
-
async updateStoreOperator(selector, body) {
|
|
1628
|
-
await this.api.put(`${this.route}store_operator${selector.id}`, body);
|
|
1629
|
-
}
|
|
1630
1613
|
};
|
|
1631
1614
|
|
|
1632
1615
|
// src/modules/user/swift.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": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|