@nomalism-com/api 0.8.363 → 0.8.365
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.
|
@@ -11,6 +11,7 @@ export import IFindByIdProviderResponse = Entity.IFindByIdProviderResponse;
|
|
|
11
11
|
export import IFindCabideProvidersResponse = Entity.IFindCabideProvidersResponse;
|
|
12
12
|
export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
|
|
13
13
|
export import IFindWithPaginationResponse = Entity.IFindWithPaginationResponse;
|
|
14
|
+
export import IBasicSearchRequest = Entity.IBasicSearchRequest;
|
|
14
15
|
export declare const route: string;
|
|
15
16
|
export declare const publicRoute: string;
|
|
16
17
|
export declare const printLabelToPdfUrl: ({ id }: shared.IFindByIdRequest, token: string) => string;
|
|
@@ -102,6 +102,19 @@ var repository = {
|
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
}); },
|
|
105
|
+
findByBasicSearch: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
+
var response;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "basic_search"), {
|
|
110
|
+
params: params,
|
|
111
|
+
})];
|
|
112
|
+
case 1:
|
|
113
|
+
response = _a.sent();
|
|
114
|
+
return [2, response.data];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}); },
|
|
105
118
|
findCabideProviders: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
119
|
var response;
|
|
107
120
|
return __generator(this, function (_a) {
|
|
@@ -7,4 +7,4 @@ export import ICreateProductByCabideProductIdRequest = Entity.ICreateProductByCa
|
|
|
7
7
|
export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
|
|
8
8
|
export import IFindWithPaginationResponse = Entity.IFindWithPaginationResponse;
|
|
9
9
|
export declare const route: string;
|
|
10
|
-
export declare const create: (data: Entity.ICreateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").CabideProduct>, createProductByCabideProductId: (data: Entity.ICreateProductByCabideProductIdRequest) => Promise<Product.IEntityExtended>, deleteOne: (selector: shared.IFindByIdRequest) => Promise<void>, findById: (select: shared.IFindByIdRequest) => Promise<
|
|
10
|
+
export declare const create: (data: Entity.ICreateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").CabideProduct>, createProductByCabideProductId: (data: Entity.ICreateProductByCabideProductIdRequest) => Promise<Product.IEntityExtended>, deleteOne: (selector: shared.IFindByIdRequest) => Promise<void>, findById: (select: shared.IFindByIdRequest) => Promise<Entity.IFindCabideByOwnerResponse | null>, findByOwner: (selector: shared.IFindByOwnerIdRequest) => Promise<Entity.IFindCabideByOwnerResponse[]>, findByOwnerPaginated: (selector: Entity.IFindPaginatedRequest) => Promise<Entity.IFindWithPaginationResponse>, findProductByCabideProductId: (selector: shared.IFindByIdRequest) => Promise<Product.IEntityExtended[]>;
|
package/package.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nomalism-com/api",
|
|
3
|
-
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"nomalism",
|
|
7
|
-
"api",
|
|
8
|
-
"types",
|
|
9
|
-
"typescript",
|
|
10
|
-
"helper"
|
|
11
|
-
],
|
|
12
|
-
"version": "0.8.
|
|
13
|
-
"main": "dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"license": "UNLICENSED",
|
|
19
|
-
"homepage": "https://gitlab.com/nomalism-develop/api",
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://gitlab.com/nomalism-develop/api/issues"
|
|
22
|
-
},
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://gitlab.com/nomalism-develop/api.git"
|
|
26
|
-
},
|
|
27
|
-
"scripts": {
|
|
28
|
-
"lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
|
|
29
|
-
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
30
|
-
"start": "tsx --tsconfig ./tsconfig.json src/index.ts",
|
|
31
|
-
"prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/convert-units": "^2.3.6",
|
|
35
|
-
"@types/node": "^18.16.19",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
|
37
|
-
"@typescript-eslint/parser": "^5.61.0",
|
|
38
|
-
"concurrently": "^8.2.0",
|
|
39
|
-
"eslint": "^8.44.0",
|
|
40
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
-
"eslint-config-prettier": "^8.8.0",
|
|
42
|
-
"eslint-import-resolver-typescript": "^3.5.5",
|
|
43
|
-
"eslint-plugin-import": "^2.27.5",
|
|
44
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
45
|
-
"prettier": "^2.8.8",
|
|
46
|
-
"tsx": "^3.12.7",
|
|
47
|
-
"typescript": "^5.1.6"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.9.
|
|
51
|
-
"axios": "^0.27.2"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@nomalism-com/api",
|
|
3
|
+
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
+
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"nomalism",
|
|
7
|
+
"api",
|
|
8
|
+
"types",
|
|
9
|
+
"typescript",
|
|
10
|
+
"helper"
|
|
11
|
+
],
|
|
12
|
+
"version": "0.8.365",
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"license": "UNLICENSED",
|
|
19
|
+
"homepage": "https://gitlab.com/nomalism-develop/api",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://gitlab.com/nomalism-develop/api/issues"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://gitlab.com/nomalism-develop/api.git"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
|
|
29
|
+
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
30
|
+
"start": "tsx --tsconfig ./tsconfig.json src/index.ts",
|
|
31
|
+
"prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/convert-units": "^2.3.6",
|
|
35
|
+
"@types/node": "^18.16.19",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
|
37
|
+
"@typescript-eslint/parser": "^5.61.0",
|
|
38
|
+
"concurrently": "^8.2.0",
|
|
39
|
+
"eslint": "^8.44.0",
|
|
40
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
+
"eslint-config-prettier": "^8.8.0",
|
|
42
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
43
|
+
"eslint-plugin-import": "^2.27.5",
|
|
44
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
45
|
+
"prettier": "^2.8.8",
|
|
46
|
+
"tsx": "^3.12.7",
|
|
47
|
+
"typescript": "^5.1.6"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@nomalism-com/types": "^0.9.482",
|
|
51
|
+
"axios": "^0.27.2"
|
|
52
|
+
}
|
|
53
|
+
}
|