@nomalism-com/api 0.8.57 → 0.8.59
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
|
-
import { GoogleSheets as Entity } from '@nomalism-com/types';
|
|
2
|
-
export import IFindByIdRequest = Entity.IFindByIdRequest;
|
|
1
|
+
import { GoogleSheets as Entity, shared } from '@nomalism-com/types';
|
|
3
2
|
export import ICloneRequest = Entity.ICloneRequest;
|
|
4
3
|
export import ICloneResponse = Entity.ICloneResponse;
|
|
5
4
|
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
@@ -8,4 +7,4 @@ export import IGetUserData = Entity.IGetUserData;
|
|
|
8
7
|
export import IGetProduct = Entity.IGetProduct;
|
|
9
8
|
export import IGetProductGroup = Entity.IGetProductGroup;
|
|
10
9
|
export import IGetProductType = Entity.IGetProductType;
|
|
11
|
-
export declare const clone: (params:
|
|
10
|
+
export declare const clone: (params: shared.IFindByIdRequest, data?: Entity.ICloneRequest | undefined) => Promise<Entity.ICloneResponse>, exportSheet: (params: shared.IFindByIdRequest) => Promise<string>, getData: (params: shared.IFindByIdRequest) => Promise<Entity.IGetDataResponse>, update: (params: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<void>;
|
|
@@ -80,13 +80,22 @@ var controller = {
|
|
|
80
80
|
});
|
|
81
81
|
}); },
|
|
82
82
|
update: function (selector, data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
83
|
-
var response;
|
|
84
83
|
return __generator(this, function (_a) {
|
|
85
84
|
switch (_a.label) {
|
|
86
85
|
case 0: return [4, client_1.default.put("".concat(route).concat(selector.id), data)];
|
|
87
86
|
case 1:
|
|
88
|
-
|
|
89
|
-
return [2
|
|
87
|
+
_a.sent();
|
|
88
|
+
return [2];
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}); },
|
|
92
|
+
setPermissions: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
93
|
+
return __generator(this, function (_a) {
|
|
94
|
+
switch (_a.label) {
|
|
95
|
+
case 0: return [4, client_1.default.patch("".concat(route).concat(selector.id))];
|
|
96
|
+
case 1:
|
|
97
|
+
_a.sent();
|
|
98
|
+
return [2];
|
|
90
99
|
}
|
|
91
100
|
});
|
|
92
101
|
}); },
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { PropostaSheets as IEntity, shared } from '@nomalism-com/types';
|
|
2
|
+
export import IConflictEnum = IEntity.IConflictEnum;
|
|
3
|
+
export import IConflict = IEntity.IConflict;
|
|
2
4
|
export import IFindByGooglesheetIdResponse = IEntity.IFindByGooglesheetIdResponse;
|
|
5
|
+
export import IDocumentLinePendingConflict = IEntity.Entity;
|
|
6
|
+
export import IConflictFindByOwnerIdResponse = IEntity.IConflictFindByOwnerIdResponse;
|
|
3
7
|
export declare const route: string;
|
|
4
|
-
export declare const importFromSheet: (params: shared.IFindByIdRequest, user_id: string, location_id: string) => Promise<IEntity.IFindByGooglesheetIdResponse>, conflictAccept: (params: shared.IFindByIdRequest, user_id: string, location_id: string) => Promise<void>, conflictDelete: (params: shared.IFindByIdRequest) => Promise<void>, conflictFindByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<
|
|
8
|
+
export declare const importFromSheet: (params: shared.IFindByIdRequest, user_id: string, location_id: string) => Promise<IEntity.IFindByGooglesheetIdResponse>, conflictAccept: (params: shared.IFindByIdRequest, user_id: string, location_id: string) => Promise<void>, conflictDelete: (params: shared.IFindByIdRequest) => Promise<void>, conflictFindByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<IEntity.IConflictFindByOwnerIdResponse[]>;
|
|
@@ -39,9 +39,11 @@ 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.conflictFindByOwnerId = exports.conflictDelete = exports.conflictAccept = exports.importFromSheet = exports.route = void 0;
|
|
42
|
+
exports.conflictFindByOwnerId = exports.conflictDelete = exports.conflictAccept = exports.importFromSheet = exports.route = exports.IConflictEnum = void 0;
|
|
43
|
+
var types_1 = require("@nomalism-com/types");
|
|
43
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
45
|
var _1 = require(".");
|
|
46
|
+
exports.IConflictEnum = types_1.PropostaSheets.IConflictEnum;
|
|
45
47
|
exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "proposta_sheets/");
|
|
46
48
|
var repository = {
|
|
47
49
|
importFromSheet: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.8.
|
|
12
|
+
"version": "0.8.59",
|
|
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.64",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|