@nomalism-com/api 0.8.87 → 0.8.88
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { shared, GoogleFilePermission as Entity } from '@nomalism-com/types';
|
|
2
2
|
export import IEntity = Entity.Entity;
|
|
3
3
|
export import ICreateRequest = Entity.ICreateRequest;
|
|
4
|
-
export import
|
|
5
|
-
export declare const find: () => Promise<import("@nomalism-com/types/dist/shared/entities").GoogleFilePermission[]>, findById: (shared: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").GoogleFilePermission | null>, update: (params: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").GoogleFilePermission | null>, create: (data: Entity.ICreateRequestRepository) => Promise<import("@nomalism-com/types/dist/shared/entities").GoogleFilePermission>, deleteOne: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").GoogleFilePermission | null>;
|
|
4
|
+
export declare const find: () => Promise<import("@nomalism-com/types/dist/shared/entities").GoogleFilePermission[]>, findById: (shared: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").GoogleFilePermission | null>, create: (data: Entity.ICreateRequestRepository) => Promise<import("@nomalism-com/types/dist/shared/entities").GoogleFilePermission>, deleteOne: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").GoogleFilePermission | null>;
|
|
@@ -39,7 +39,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.deleteOne = exports.create = exports.
|
|
42
|
+
exports.deleteOne = exports.create = exports.findById = exports.find = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
44
|
var _1 = require(".");
|
|
45
45
|
var route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "google_file_permission/");
|
|
@@ -77,17 +77,6 @@ var repository = {
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}); },
|
|
80
|
-
update: function (selector, data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
-
var response;
|
|
82
|
-
return __generator(this, function (_a) {
|
|
83
|
-
switch (_a.label) {
|
|
84
|
-
case 0: return [4, client_1.default.put("".concat(route).concat(selector.id), data)];
|
|
85
|
-
case 1:
|
|
86
|
-
response = _a.sent();
|
|
87
|
-
return [2, response.data];
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}); },
|
|
91
80
|
deleteOne: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
81
|
var response;
|
|
93
82
|
return __generator(this, function (_a) {
|
|
@@ -100,4 +89,4 @@ var repository = {
|
|
|
100
89
|
});
|
|
101
90
|
}); },
|
|
102
91
|
};
|
|
103
|
-
exports.find = repository.find, exports.findById = repository.findById, exports.
|
|
92
|
+
exports.find = repository.find, exports.findById = repository.findById, exports.create = repository.create, exports.deleteOne = repository.deleteOne;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.8.
|
|
12
|
+
"version": "0.8.88",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typescript": "^4.9.5"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.9.
|
|
50
|
+
"@nomalism-com/types": "^0.9.95",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|