@nomalism-com/api 0.8.16 → 0.8.18
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.js +0 -1
- package/dist/modules/documentManagement/multimedia.js +2 -2
- package/dist/modules/integration/dynamicData.js +10 -10
- package/dist/modules/integration/field.js +8 -8
- package/dist/modules/integration/fieldGroup.js +12 -13
- package/dist/modules/integration/file.js +6 -6
- package/dist/modules/integration/history.js +2 -5
- package/dist/modules/integration/observation.js +8 -8
- package/dist/modules/integration/observationType.js +10 -10
- package/dist/modules/integration/task.js +8 -8
- package/dist/modules/integration/taskAttachment.js +4 -4
- package/dist/modules/integration/taskGroup.js +10 -10
- package/dist/modules/integration/taskNote.js +8 -8
- package/dist/modules/print/npc.js +4 -4
- package/dist/modules/print/printer.js +4 -4
- package/dist/modules/print/schedulePrintJob.js +16 -16
- package/dist/modules/stock/attribute.js +16 -18
- package/dist/modules/stock/attributeValue.js +16 -16
- package/dist/modules/stock/cabide.js +18 -19
- package/dist/modules/stock/cabideProduct.js +12 -12
- package/dist/modules/stock/clientCurrentAccount.js +2 -2
- package/dist/modules/stock/color.js +16 -16
- package/dist/modules/stock/composition.js +14 -14
- package/dist/modules/stock/compositionMaterial.js +16 -16
- package/dist/modules/stock/documentHeader.js +56 -56
- package/dist/modules/stock/documentLine.js +14 -14
- package/dist/modules/stock/documentLineAssoc.js +20 -20
- package/dist/modules/stock/documentLineFolder.js +8 -8
- package/dist/modules/stock/documentLineState.js +12 -12
- package/dist/modules/stock/documentLineStateCriteria.js +12 -15
- package/dist/modules/stock/documentSet.js +12 -12
- package/dist/modules/stock/documentType.js +12 -14
- package/dist/modules/stock/externalDocumentHeader.js +16 -16
- package/dist/modules/stock/externalDocumentType.js +4 -4
- package/dist/modules/stock/location.js +16 -16
- package/dist/modules/stock/maintenance.js +16 -16
- package/dist/modules/stock/maintenanceAssoc.js +14 -14
- package/dist/modules/stock/maintenancePreset.js +12 -12
- package/dist/modules/stock/maintenancePresetAssoc.js +8 -8
- package/dist/modules/stock/maintenanceType.js +16 -16
- package/dist/modules/stock/moloniRequest.js +2 -2
- package/dist/modules/stock/orderManagement.js +6 -6
- package/dist/modules/stock/payment.js +28 -28
- package/dist/modules/stock/plot.js +33 -35
- package/dist/modules/stock/preSale.js +14 -14
- package/dist/modules/stock/preSaleProduct.js +4 -4
- package/dist/modules/stock/primaryColor.js +16 -16
- package/dist/modules/stock/product.js +32 -34
- package/dist/modules/stock/productAttribute.js +14 -14
- package/dist/modules/stock/productCategory.js +16 -16
- package/dist/modules/stock/productColor.js +14 -14
- package/dist/modules/stock/productImage.js +14 -16
- package/dist/modules/stock/productName.js +16 -16
- package/dist/modules/stock/productNamePreset.js +16 -16
- package/dist/modules/stock/productPart.js +16 -16
- package/dist/modules/stock/productSubCategory.js +16 -16
- package/dist/modules/stock/productUse.js +16 -16
- package/dist/modules/stock/productUseAssoc.js +14 -14
- package/dist/modules/stock/promotion.js +16 -16
- package/dist/modules/stock/promotionAssoc.js +14 -14
- package/dist/modules/stock/providerCurrentAccount.js +2 -2
- package/dist/modules/stock/queryList.js +12 -12
- package/dist/modules/stock/queryParameter.js +10 -11
- package/dist/modules/stock/returnReason.js +8 -8
- package/dist/modules/stock/similarProduct.js +14 -14
- package/dist/modules/stock/stockMovement.js +4 -4
- package/dist/modules/stock/topMenu.js +2 -2
- package/dist/modules/stock/typeOfInventory.js +16 -16
- package/dist/modules/stock/typeOfLocation.js +16 -16
- package/dist/modules/stock/unitOfMeasure.js +16 -16
- package/dist/modules/stock/vatTax.js +16 -16
- package/dist/modules/stock/vatTaxZone.js +16 -16
- package/dist/modules/stock/vatValidation.js +2 -2
- package/dist/modules/stock/websiteRequest.js +8 -9
- package/dist/modules/stock/workflow.js +10 -10
- package/dist/modules/user/address.js +14 -14
- package/dist/modules/user/bankData.js +14 -14
- package/dist/modules/user/clientType.js +14 -14
- package/dist/modules/user/clients.js +16 -16
- package/dist/modules/user/commissioner.js +16 -16
- package/dist/modules/user/contactTypes.js +14 -14
- package/dist/modules/user/contacts.js +18 -18
- package/dist/modules/user/country.js +16 -16
- package/dist/modules/user/deliveryMethods.js +12 -12
- package/dist/modules/user/entityList.js +10 -11
- package/dist/modules/user/favorites.js +8 -8
- package/dist/modules/user/groupPermission.js +8 -8
- package/dist/modules/user/language.js +14 -14
- package/dist/modules/user/logout.js +2 -2
- package/dist/modules/user/maturityDates.js +12 -12
- package/dist/modules/user/password.js +4 -4
- package/dist/modules/user/paymentCondition.js +14 -14
- package/dist/modules/user/paymentMethods.js +12 -12
- package/dist/modules/user/permission.js +8 -8
- package/dist/modules/user/provider.js +18 -18
- package/dist/modules/user/providerType.js +14 -14
- package/dist/modules/user/purchaseCondition.js +14 -14
- package/dist/modules/user/reasonForExemption.js +14 -14
- package/dist/modules/user/refreshToken.js +2 -2
- package/dist/modules/user/segmentsArea.js +14 -14
- package/dist/modules/user/sessions.js +2 -2
- package/dist/modules/user/shippings.js +14 -14
- package/dist/modules/user/socialMedia.js +14 -14
- package/dist/modules/user/storeOperator.js +18 -18
- package/dist/modules/user/swift.js +14 -14
- package/dist/modules/user/tenant.js +8 -8
- package/dist/modules/user/user.js +18 -18
- package/dist/modules/user/userPermission.js +6 -6
- package/dist/modules/user/userPositions.js +14 -14
- package/dist/modules/user/userToken.js +12 -12
- package/dist/modules/user/vehicles.js +8 -8
- package/dist/modules/user/zipCode.js +4 -4
- package/package.json +8 -8
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -48,10 +48,10 @@ var repository = {
|
|
|
48
48
|
var response;
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
50
|
switch (_a.label) {
|
|
51
|
-
case 0: return [4
|
|
51
|
+
case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
|
|
52
52
|
case 1:
|
|
53
53
|
response = _a.sent();
|
|
54
|
-
return [2
|
|
54
|
+
return [2, response.data];
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
}); },
|
|
@@ -59,10 +59,10 @@ var repository = {
|
|
|
59
59
|
var response;
|
|
60
60
|
return __generator(this, function (_a) {
|
|
61
61
|
switch (_a.label) {
|
|
62
|
-
case 0: return [4
|
|
62
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "by_owner"), { params: params })];
|
|
63
63
|
case 1:
|
|
64
64
|
response = _a.sent();
|
|
65
|
-
return [2
|
|
65
|
+
return [2, response.data];
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}); },
|
|
@@ -70,10 +70,10 @@ var repository = {
|
|
|
70
70
|
var response;
|
|
71
71
|
return __generator(this, function (_a) {
|
|
72
72
|
switch (_a.label) {
|
|
73
|
-
case 0: return [4
|
|
73
|
+
case 0: return [4, client_1.default.post("".concat(exports.route), body)];
|
|
74
74
|
case 1:
|
|
75
75
|
response = _a.sent();
|
|
76
|
-
return [2
|
|
76
|
+
return [2, response.data];
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}); },
|
|
@@ -81,20 +81,20 @@ var repository = {
|
|
|
81
81
|
var response;
|
|
82
82
|
return __generator(this, function (_a) {
|
|
83
83
|
switch (_a.label) {
|
|
84
|
-
case 0: return [4
|
|
84
|
+
case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
|
|
85
85
|
case 1:
|
|
86
86
|
response = _a.sent();
|
|
87
|
-
return [2
|
|
87
|
+
return [2, response.data];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
}); },
|
|
91
91
|
updateIndexes: function (document_line_ids) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
92
|
return __generator(this, function (_a) {
|
|
93
93
|
switch (_a.label) {
|
|
94
|
-
case 0: return [4
|
|
94
|
+
case 0: return [4, client_1.default.put("".concat(exports.route, "update_indexes"), document_line_ids)];
|
|
95
95
|
case 1:
|
|
96
96
|
_a.sent();
|
|
97
|
-
return [2
|
|
97
|
+
return [2];
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
}); },
|
|
@@ -102,20 +102,20 @@ var repository = {
|
|
|
102
102
|
var response;
|
|
103
103
|
return __generator(this, function (_a) {
|
|
104
104
|
switch (_a.label) {
|
|
105
|
-
case 0: return [4
|
|
105
|
+
case 0: return [4, client_1.default.post("".concat(exports.route, "update_many"), data)];
|
|
106
106
|
case 1:
|
|
107
107
|
response = _a.sent();
|
|
108
|
-
return [2
|
|
108
|
+
return [2, response.data];
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}); },
|
|
112
112
|
deleteMany: function (document_line_ids) { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
113
|
return __generator(this, function (_a) {
|
|
114
114
|
switch (_a.label) {
|
|
115
|
-
case 0: return [4
|
|
115
|
+
case 0: return [4, client_1.default.delete("".concat(exports.route), { data: document_line_ids })];
|
|
116
116
|
case 1:
|
|
117
117
|
_a.sent();
|
|
118
|
-
return [2
|
|
118
|
+
return [2];
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
}); },
|
|
@@ -48,10 +48,10 @@ var repository = {
|
|
|
48
48
|
var response;
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
50
|
switch (_a.label) {
|
|
51
|
-
case 0: return [4
|
|
51
|
+
case 0: return [4, client_1.default.get("".concat(route, "by_owner"), { params: params })];
|
|
52
52
|
case 1:
|
|
53
53
|
response = _a.sent();
|
|
54
|
-
return [2
|
|
54
|
+
return [2, response.data];
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
}); },
|
|
@@ -59,10 +59,10 @@ var repository = {
|
|
|
59
59
|
var response;
|
|
60
60
|
return __generator(this, function (_a) {
|
|
61
61
|
switch (_a.label) {
|
|
62
|
-
case 0: return [4
|
|
62
|
+
case 0: return [4, client_1.default.post("".concat(route), body)];
|
|
63
63
|
case 1:
|
|
64
64
|
response = _a.sent();
|
|
65
|
-
return [2
|
|
65
|
+
return [2, response.data];
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}); },
|
|
@@ -70,10 +70,10 @@ var repository = {
|
|
|
70
70
|
var response;
|
|
71
71
|
return __generator(this, function (_a) {
|
|
72
72
|
switch (_a.label) {
|
|
73
|
-
case 0: return [4
|
|
73
|
+
case 0: return [4, client_1.default.put("".concat(route).concat(selector.id), body)];
|
|
74
74
|
case 1:
|
|
75
75
|
response = _a.sent();
|
|
76
|
-
return [2
|
|
76
|
+
return [2, response.data];
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}); },
|
|
@@ -81,50 +81,50 @@ var repository = {
|
|
|
81
81
|
var response;
|
|
82
82
|
return __generator(this, function (_a) {
|
|
83
83
|
switch (_a.label) {
|
|
84
|
-
case 0: return [4
|
|
84
|
+
case 0: return [4, client_1.default.post("".concat(route, "validate_material_entrance"), data)];
|
|
85
85
|
case 1:
|
|
86
86
|
response = _a.sent();
|
|
87
|
-
return [2
|
|
87
|
+
return [2, response.data];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
}); },
|
|
91
91
|
finalizarEntradaMaterial: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
92
|
return __generator(this, function (_a) {
|
|
93
93
|
switch (_a.label) {
|
|
94
|
-
case 0: return [4
|
|
94
|
+
case 0: return [4, client_1.default.post("".concat(route, "finalize_material_entrance"), data)];
|
|
95
95
|
case 1:
|
|
96
96
|
_a.sent();
|
|
97
|
-
return [2
|
|
97
|
+
return [2];
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
}); },
|
|
101
101
|
conferirEncomendaCliente: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
102
102
|
return __generator(this, function (_a) {
|
|
103
103
|
switch (_a.label) {
|
|
104
|
-
case 0: return [4
|
|
104
|
+
case 0: return [4, client_1.default.post("".concat(route, "check_client_order"), data)];
|
|
105
105
|
case 1:
|
|
106
106
|
_a.sent();
|
|
107
|
-
return [2
|
|
107
|
+
return [2];
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
}); },
|
|
111
111
|
purchaseFromProvider: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
112
112
|
return __generator(this, function (_a) {
|
|
113
113
|
switch (_a.label) {
|
|
114
|
-
case 0: return [4
|
|
114
|
+
case 0: return [4, client_1.default.post("".concat(route, "purchase_from_provider"), data)];
|
|
115
115
|
case 1:
|
|
116
116
|
_a.sent();
|
|
117
|
-
return [2
|
|
117
|
+
return [2];
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
}); },
|
|
121
121
|
deleteInventoryLosses: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
122
122
|
return __generator(this, function (_a) {
|
|
123
123
|
switch (_a.label) {
|
|
124
|
-
case 0: return [4
|
|
124
|
+
case 0: return [4, client_1.default.delete("".concat(route, "inventory_loss"), { data: data })];
|
|
125
125
|
case 1:
|
|
126
126
|
_a.sent();
|
|
127
|
-
return [2
|
|
127
|
+
return [2];
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
}); },
|
|
@@ -132,10 +132,10 @@ var repository = {
|
|
|
132
132
|
var response;
|
|
133
133
|
return __generator(this, function (_a) {
|
|
134
134
|
switch (_a.label) {
|
|
135
|
-
case 0: return [4
|
|
135
|
+
case 0: return [4, client_1.default.get("".concat(route, "check_lines_to_order"), { params: params })];
|
|
136
136
|
case 1:
|
|
137
137
|
response = _a.sent();
|
|
138
|
-
return [2
|
|
138
|
+
return [2, response.data];
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
}); },
|
|
@@ -143,10 +143,10 @@ var repository = {
|
|
|
143
143
|
var response;
|
|
144
144
|
return __generator(this, function (_a) {
|
|
145
145
|
switch (_a.label) {
|
|
146
|
-
case 0: return [4
|
|
146
|
+
case 0: return [4, client_1.default.get("".concat(route, "stock_order_provider"))];
|
|
147
147
|
case 1:
|
|
148
148
|
response = _a.sent();
|
|
149
|
-
return [2
|
|
149
|
+
return [2, response.data];
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
152
|
}); },
|
|
@@ -48,10 +48,10 @@ var repository = {
|
|
|
48
48
|
var response;
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
50
|
switch (_a.label) {
|
|
51
|
-
case 0: return [4
|
|
51
|
+
case 0: return [4, client_1.default.get("".concat(route, "by_owner"), { params: params })];
|
|
52
52
|
case 1:
|
|
53
53
|
response = _a.sent();
|
|
54
|
-
return [2
|
|
54
|
+
return [2, response.data];
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
}); },
|
|
@@ -59,10 +59,10 @@ var repository = {
|
|
|
59
59
|
var response;
|
|
60
60
|
return __generator(this, function (_a) {
|
|
61
61
|
switch (_a.label) {
|
|
62
|
-
case 0: return [4
|
|
62
|
+
case 0: return [4, client_1.default.post("".concat(route), body)];
|
|
63
63
|
case 1:
|
|
64
64
|
response = _a.sent();
|
|
65
|
-
return [2
|
|
65
|
+
return [2, response.data];
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}); },
|
|
@@ -70,10 +70,10 @@ var repository = {
|
|
|
70
70
|
var response;
|
|
71
71
|
return __generator(this, function (_a) {
|
|
72
72
|
switch (_a.label) {
|
|
73
|
-
case 0: return [4
|
|
73
|
+
case 0: return [4, client_1.default.put("".concat(route).concat(selector.id), body)];
|
|
74
74
|
case 1:
|
|
75
75
|
response = _a.sent();
|
|
76
|
-
return [2
|
|
76
|
+
return [2, response.data];
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}); },
|
|
@@ -81,10 +81,10 @@ var repository = {
|
|
|
81
81
|
var response;
|
|
82
82
|
return __generator(this, function (_a) {
|
|
83
83
|
switch (_a.label) {
|
|
84
|
-
case 0: return [4
|
|
84
|
+
case 0: return [4, client_1.default.delete("".concat(route).concat(selector.id))];
|
|
85
85
|
case 1:
|
|
86
86
|
response = _a.sent();
|
|
87
|
-
return [2
|
|
87
|
+
return [2, response.data];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
}); },
|
|
@@ -48,10 +48,10 @@ var repository = {
|
|
|
48
48
|
var response;
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
50
|
switch (_a.label) {
|
|
51
|
-
case 0: return [4
|
|
51
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "find_by_document_type"), { params: params })];
|
|
52
52
|
case 1:
|
|
53
53
|
response = _a.sent();
|
|
54
|
-
return [2
|
|
54
|
+
return [2, response.data];
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
}); },
|
|
@@ -59,10 +59,10 @@ var repository = {
|
|
|
59
59
|
var response;
|
|
60
60
|
return __generator(this, function (_a) {
|
|
61
61
|
switch (_a.label) {
|
|
62
|
-
case 0: return [4
|
|
62
|
+
case 0: return [4, client_1.default.get("".concat(exports.route))];
|
|
63
63
|
case 1:
|
|
64
64
|
response = _a.sent();
|
|
65
|
-
return [2
|
|
65
|
+
return [2, response.data];
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}); },
|
|
@@ -70,10 +70,10 @@ var repository = {
|
|
|
70
70
|
var response;
|
|
71
71
|
return __generator(this, function (_a) {
|
|
72
72
|
switch (_a.label) {
|
|
73
|
-
case 0: return [4
|
|
73
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "minified"))];
|
|
74
74
|
case 1:
|
|
75
75
|
response = _a.sent();
|
|
76
|
-
return [2
|
|
76
|
+
return [2, response.data];
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}); },
|
|
@@ -81,10 +81,10 @@ var repository = {
|
|
|
81
81
|
var response;
|
|
82
82
|
return __generator(this, function (_a) {
|
|
83
83
|
switch (_a.label) {
|
|
84
|
-
case 0: return [4
|
|
84
|
+
case 0: return [4, client_1.default.post("".concat(exports.route), body)];
|
|
85
85
|
case 1:
|
|
86
86
|
response = _a.sent();
|
|
87
|
-
return [2
|
|
87
|
+
return [2, response.data];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
}); },
|
|
@@ -92,10 +92,10 @@ var repository = {
|
|
|
92
92
|
var response;
|
|
93
93
|
return __generator(this, function (_a) {
|
|
94
94
|
switch (_a.label) {
|
|
95
|
-
case 0: return [4
|
|
95
|
+
case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
|
|
96
96
|
case 1:
|
|
97
97
|
response = _a.sent();
|
|
98
|
-
return [2
|
|
98
|
+
return [2, response.data];
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}); },
|
|
@@ -103,10 +103,10 @@ var repository = {
|
|
|
103
103
|
var response;
|
|
104
104
|
return __generator(this, function (_a) {
|
|
105
105
|
switch (_a.label) {
|
|
106
|
-
case 0: return [4
|
|
106
|
+
case 0: return [4, client_1.default.delete("".concat(exports.route).concat(selector.id))];
|
|
107
107
|
case 1:
|
|
108
108
|
response = _a.sent();
|
|
109
|
-
return [2
|
|
109
|
+
return [2, response.data];
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
}); },
|
|
@@ -44,11 +44,8 @@ var types_1 = require("@nomalism-com/types");
|
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
45
|
var _1 = require(".");
|
|
46
46
|
exports.AccessorType = types_1.DocumentLineStateCriteria.AccessorType;
|
|
47
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
47
|
exports.ScalarOperatorType = types_1.DocumentLineStateCriteria.ScalarOperatorType;
|
|
49
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
50
48
|
exports.ArrayOperatorType = types_1.DocumentLineStateCriteria.ArrayOperatorType;
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
49
|
exports.AggregatorOperatorType = types_1.DocumentLineStateCriteria.AggregatorOperatorType;
|
|
53
50
|
exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "document_line_state_criteria/");
|
|
54
51
|
var repository = {
|
|
@@ -56,10 +53,10 @@ var repository = {
|
|
|
56
53
|
var response;
|
|
57
54
|
return __generator(this, function (_a) {
|
|
58
55
|
switch (_a.label) {
|
|
59
|
-
case 0: return [4
|
|
56
|
+
case 0: return [4, client_1.default.get("".concat(exports.route), { params: params })];
|
|
60
57
|
case 1:
|
|
61
58
|
response = _a.sent();
|
|
62
|
-
return [2
|
|
59
|
+
return [2, response.data];
|
|
63
60
|
}
|
|
64
61
|
});
|
|
65
62
|
}); },
|
|
@@ -67,10 +64,10 @@ var repository = {
|
|
|
67
64
|
var response;
|
|
68
65
|
return __generator(this, function (_a) {
|
|
69
66
|
switch (_a.label) {
|
|
70
|
-
case 0: return [4
|
|
67
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "paginated"), { params: params })];
|
|
71
68
|
case 1:
|
|
72
69
|
response = _a.sent();
|
|
73
|
-
return [2
|
|
70
|
+
return [2, response.data];
|
|
74
71
|
}
|
|
75
72
|
});
|
|
76
73
|
}); },
|
|
@@ -78,12 +75,12 @@ var repository = {
|
|
|
78
75
|
var response;
|
|
79
76
|
return __generator(this, function (_a) {
|
|
80
77
|
switch (_a.label) {
|
|
81
|
-
case 0: return [4
|
|
78
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "by_owner"), {
|
|
82
79
|
params: params,
|
|
83
80
|
})];
|
|
84
81
|
case 1:
|
|
85
82
|
response = _a.sent();
|
|
86
|
-
return [2
|
|
83
|
+
return [2, response.data];
|
|
87
84
|
}
|
|
88
85
|
});
|
|
89
86
|
}); },
|
|
@@ -91,10 +88,10 @@ var repository = {
|
|
|
91
88
|
var response;
|
|
92
89
|
return __generator(this, function (_a) {
|
|
93
90
|
switch (_a.label) {
|
|
94
|
-
case 0: return [4
|
|
91
|
+
case 0: return [4, client_1.default.post("".concat(exports.route), body)];
|
|
95
92
|
case 1:
|
|
96
93
|
response = _a.sent();
|
|
97
|
-
return [2
|
|
94
|
+
return [2, response.data];
|
|
98
95
|
}
|
|
99
96
|
});
|
|
100
97
|
}); },
|
|
@@ -102,10 +99,10 @@ var repository = {
|
|
|
102
99
|
var response;
|
|
103
100
|
return __generator(this, function (_a) {
|
|
104
101
|
switch (_a.label) {
|
|
105
|
-
case 0: return [4
|
|
102
|
+
case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
|
|
106
103
|
case 1:
|
|
107
104
|
response = _a.sent();
|
|
108
|
-
return [2
|
|
105
|
+
return [2, response.data];
|
|
109
106
|
}
|
|
110
107
|
});
|
|
111
108
|
}); },
|
|
@@ -113,10 +110,10 @@ var repository = {
|
|
|
113
110
|
var response;
|
|
114
111
|
return __generator(this, function (_a) {
|
|
115
112
|
switch (_a.label) {
|
|
116
|
-
case 0: return [4
|
|
113
|
+
case 0: return [4, client_1.default.delete("".concat(exports.route).concat(selector.id))];
|
|
117
114
|
case 1:
|
|
118
115
|
response = _a.sent();
|
|
119
|
-
return [2
|
|
116
|
+
return [2, response.data];
|
|
120
117
|
}
|
|
121
118
|
});
|
|
122
119
|
}); },
|
|
@@ -48,10 +48,10 @@ var repository = {
|
|
|
48
48
|
var response;
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
50
|
switch (_a.label) {
|
|
51
|
-
case 0: return [4
|
|
51
|
+
case 0: return [4, client_1.default.get("".concat(exports.route))];
|
|
52
52
|
case 1:
|
|
53
53
|
response = _a.sent();
|
|
54
|
-
return [2
|
|
54
|
+
return [2, response.data];
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
}); },
|
|
@@ -59,10 +59,10 @@ var repository = {
|
|
|
59
59
|
var response;
|
|
60
60
|
return __generator(this, function (_a) {
|
|
61
61
|
switch (_a.label) {
|
|
62
|
-
case 0: return [4
|
|
62
|
+
case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
|
|
63
63
|
case 1:
|
|
64
64
|
response = _a.sent();
|
|
65
|
-
return [2
|
|
65
|
+
return [2, response.data];
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}); },
|
|
@@ -70,10 +70,10 @@ var repository = {
|
|
|
70
70
|
var response;
|
|
71
71
|
return __generator(this, function (_a) {
|
|
72
72
|
switch (_a.label) {
|
|
73
|
-
case 0: return [4
|
|
73
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "minified"), { params: params })];
|
|
74
74
|
case 1:
|
|
75
75
|
response = _a.sent();
|
|
76
|
-
return [2
|
|
76
|
+
return [2, response.data];
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}); },
|
|
@@ -81,10 +81,10 @@ var repository = {
|
|
|
81
81
|
var response;
|
|
82
82
|
return __generator(this, function (_a) {
|
|
83
83
|
switch (_a.label) {
|
|
84
|
-
case 0: return [4
|
|
84
|
+
case 0: return [4, client_1.default.post("".concat(exports.route), body)];
|
|
85
85
|
case 1:
|
|
86
86
|
response = _a.sent();
|
|
87
|
-
return [2
|
|
87
|
+
return [2, response.data];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
}); },
|
|
@@ -92,10 +92,10 @@ var repository = {
|
|
|
92
92
|
var response;
|
|
93
93
|
return __generator(this, function (_a) {
|
|
94
94
|
switch (_a.label) {
|
|
95
|
-
case 0: return [4
|
|
95
|
+
case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
|
|
96
96
|
case 1:
|
|
97
97
|
response = _a.sent();
|
|
98
|
-
return [2
|
|
98
|
+
return [2, response.data];
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}); },
|
|
@@ -103,10 +103,10 @@ var repository = {
|
|
|
103
103
|
var response;
|
|
104
104
|
return __generator(this, function (_a) {
|
|
105
105
|
switch (_a.label) {
|
|
106
|
-
case 0: return [4
|
|
106
|
+
case 0: return [4, client_1.default.delete("".concat(exports.route).concat(selector.id))];
|
|
107
107
|
case 1:
|
|
108
108
|
response = _a.sent();
|
|
109
|
-
return [2
|
|
109
|
+
return [2, response.data];
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
}); },
|
|
@@ -43,9 +43,7 @@ exports.deleteOne = exports.update = exports.create = exports.findDetailed = exp
|
|
|
43
43
|
var types_1 = require("@nomalism-com/types");
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
45
|
var _1 = require(".");
|
|
46
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
47
46
|
exports.DocumentTypeUserTypeEnum = types_1.DocumentType.DocumentTypeUserTypeEnum;
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
49
47
|
exports.documentTypeUserTypes = types_1.DocumentType.documentTypeUserTypes;
|
|
50
48
|
exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "document_type/");
|
|
51
49
|
var repository = {
|
|
@@ -53,10 +51,10 @@ var repository = {
|
|
|
53
51
|
var response;
|
|
54
52
|
return __generator(this, function (_a) {
|
|
55
53
|
switch (_a.label) {
|
|
56
|
-
case 0: return [4
|
|
54
|
+
case 0: return [4, client_1.default.get("".concat(exports.route), { params: params })];
|
|
57
55
|
case 1:
|
|
58
56
|
response = _a.sent();
|
|
59
|
-
return [2
|
|
57
|
+
return [2, response.data];
|
|
60
58
|
}
|
|
61
59
|
});
|
|
62
60
|
}); },
|
|
@@ -64,10 +62,10 @@ var repository = {
|
|
|
64
62
|
var response;
|
|
65
63
|
return __generator(this, function (_a) {
|
|
66
64
|
switch (_a.label) {
|
|
67
|
-
case 0: return [4
|
|
65
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "minified"), { params: params })];
|
|
68
66
|
case 1:
|
|
69
67
|
response = _a.sent();
|
|
70
|
-
return [2
|
|
68
|
+
return [2, response.data];
|
|
71
69
|
}
|
|
72
70
|
});
|
|
73
71
|
}); },
|
|
@@ -75,10 +73,10 @@ var repository = {
|
|
|
75
73
|
var response;
|
|
76
74
|
return __generator(this, function (_a) {
|
|
77
75
|
switch (_a.label) {
|
|
78
|
-
case 0: return [4
|
|
76
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "detailed"), { params: params })];
|
|
79
77
|
case 1:
|
|
80
78
|
response = _a.sent();
|
|
81
|
-
return [2
|
|
79
|
+
return [2, response.data];
|
|
82
80
|
}
|
|
83
81
|
});
|
|
84
82
|
}); },
|
|
@@ -86,10 +84,10 @@ var repository = {
|
|
|
86
84
|
var response;
|
|
87
85
|
return __generator(this, function (_a) {
|
|
88
86
|
switch (_a.label) {
|
|
89
|
-
case 0: return [4
|
|
87
|
+
case 0: return [4, client_1.default.post("".concat(exports.route), body)];
|
|
90
88
|
case 1:
|
|
91
89
|
response = _a.sent();
|
|
92
|
-
return [2
|
|
90
|
+
return [2, response.data];
|
|
93
91
|
}
|
|
94
92
|
});
|
|
95
93
|
}); },
|
|
@@ -97,10 +95,10 @@ var repository = {
|
|
|
97
95
|
var response;
|
|
98
96
|
return __generator(this, function (_a) {
|
|
99
97
|
switch (_a.label) {
|
|
100
|
-
case 0: return [4
|
|
98
|
+
case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
|
|
101
99
|
case 1:
|
|
102
100
|
response = _a.sent();
|
|
103
|
-
return [2
|
|
101
|
+
return [2, response.data];
|
|
104
102
|
}
|
|
105
103
|
});
|
|
106
104
|
}); },
|
|
@@ -108,10 +106,10 @@ var repository = {
|
|
|
108
106
|
var response;
|
|
109
107
|
return __generator(this, function (_a) {
|
|
110
108
|
switch (_a.label) {
|
|
111
|
-
case 0: return [4
|
|
109
|
+
case 0: return [4, client_1.default.delete("".concat(exports.route).concat(selector.id))];
|
|
112
110
|
case 1:
|
|
113
111
|
response = _a.sent();
|
|
114
|
-
return [2
|
|
112
|
+
return [2, response.data];
|
|
115
113
|
}
|
|
116
114
|
});
|
|
117
115
|
}); },
|