@nomalism-com/api 0.8.151 → 0.8.152

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.
Files changed (261) hide show
  1. package/dist/index.d.ts +124 -124
  2. package/dist/index.js +275 -275
  3. package/dist/modules/documentManagement/index.d.ts +3 -3
  4. package/dist/modules/documentManagement/index.js +12 -12
  5. package/dist/modules/documentManagement/multimedia.d.ts +6 -6
  6. package/dist/modules/documentManagement/multimedia.js +70 -70
  7. package/dist/modules/integration/dynamicData.d.ts +8 -8
  8. package/dist/modules/integration/dynamicData.js +103 -103
  9. package/dist/modules/integration/errorHandler.d.ts +5 -5
  10. package/dist/modules/integration/errorHandler.js +58 -58
  11. package/dist/modules/integration/field.d.ts +26 -26
  12. package/dist/modules/integration/field.js +93 -93
  13. package/dist/modules/integration/fieldGroup.d.ts +12 -12
  14. package/dist/modules/integration/fieldGroup.js +118 -118
  15. package/dist/modules/integration/file.d.ts +5 -5
  16. package/dist/modules/integration/file.js +83 -83
  17. package/dist/modules/integration/googleFilePermission.d.ts +4 -4
  18. package/dist/modules/integration/googleFilePermission.js +92 -92
  19. package/dist/modules/integration/googleSheets.d.ts +11 -11
  20. package/dist/modules/integration/googleSheets.js +103 -103
  21. package/dist/modules/integration/history.d.ts +11 -11
  22. package/dist/modules/integration/history.js +63 -63
  23. package/dist/modules/integration/index.d.ts +3 -3
  24. package/dist/modules/integration/index.js +12 -12
  25. package/dist/modules/integration/observation.d.ts +8 -8
  26. package/dist/modules/integration/observation.js +94 -94
  27. package/dist/modules/integration/observationType.d.ts +10 -10
  28. package/dist/modules/integration/observationType.js +107 -107
  29. package/dist/modules/integration/settings.d.ts +6 -6
  30. package/dist/modules/integration/settings.js +104 -104
  31. package/dist/modules/integration/task.d.ts +10 -10
  32. package/dist/modules/integration/task.js +113 -113
  33. package/dist/modules/integration/taskAttachment.d.ts +7 -7
  34. package/dist/modules/integration/taskAttachment.js +72 -72
  35. package/dist/modules/integration/taskGroup.d.ts +8 -8
  36. package/dist/modules/integration/taskGroup.js +103 -103
  37. package/dist/modules/integration/taskNote.d.ts +8 -8
  38. package/dist/modules/integration/taskNote.js +92 -92
  39. package/dist/modules/print/index.d.ts +4 -4
  40. package/dist/modules/print/index.js +9 -9
  41. package/dist/modules/print/npc.d.ts +5 -5
  42. package/dist/modules/print/npc.js +70 -70
  43. package/dist/modules/print/printer.d.ts +6 -6
  44. package/dist/modules/print/printer.js +70 -70
  45. package/dist/modules/print/schedulePrintJob.d.ts +8 -8
  46. package/dist/modules/print/schedulePrintJob.js +139 -139
  47. package/dist/modules/stock/attribute.d.ts +16 -16
  48. package/dist/modules/stock/attribute.js +143 -143
  49. package/dist/modules/stock/attributeValue.d.ts +12 -12
  50. package/dist/modules/stock/attributeValue.js +140 -140
  51. package/dist/modules/stock/cabide.d.ts +17 -17
  52. package/dist/modules/stock/cabide.js +147 -147
  53. package/dist/modules/stock/cabideProduct.d.ts +10 -10
  54. package/dist/modules/stock/cabideProduct.js +127 -127
  55. package/dist/modules/stock/clientCurrentAccount.d.ts +5 -5
  56. package/dist/modules/stock/clientCurrentAccount.js +61 -61
  57. package/dist/modules/stock/color.d.ts +13 -13
  58. package/dist/modules/stock/color.js +139 -139
  59. package/dist/modules/stock/composition.d.ts +12 -12
  60. package/dist/modules/stock/composition.js +127 -127
  61. package/dist/modules/stock/compositionMaterial.d.ts +13 -13
  62. package/dist/modules/stock/compositionMaterial.js +140 -140
  63. package/dist/modules/stock/documentHeader.d.ts +46 -46
  64. package/dist/modules/stock/documentHeader.js +372 -372
  65. package/dist/modules/stock/documentLine.d.ts +29 -29
  66. package/dist/modules/stock/documentLine.js +147 -147
  67. package/dist/modules/stock/documentLineAssoc.d.ts +30 -30
  68. package/dist/modules/stock/documentLineAssoc.js +166 -166
  69. package/dist/modules/stock/documentLineFolder.d.ts +6 -6
  70. package/dist/modules/stock/documentLineFolder.js +92 -92
  71. package/dist/modules/stock/documentSet.d.ts +8 -8
  72. package/dist/modules/stock/documentSet.js +114 -114
  73. package/dist/modules/stock/documentType.d.ts +14 -14
  74. package/dist/modules/stock/documentType.js +117 -117
  75. package/dist/modules/stock/externalDocumentHeader.d.ts +15 -15
  76. package/dist/modules/stock/externalDocumentHeader.js +135 -135
  77. package/dist/modules/stock/externalDocumentType.d.ts +6 -6
  78. package/dist/modules/stock/externalDocumentType.js +70 -70
  79. package/dist/modules/stock/index.d.ts +3 -3
  80. package/dist/modules/stock/index.js +12 -12
  81. package/dist/modules/stock/location.d.ts +12 -12
  82. package/dist/modules/stock/location.js +140 -140
  83. package/dist/modules/stock/maintenance.d.ts +12 -12
  84. package/dist/modules/stock/maintenance.js +140 -140
  85. package/dist/modules/stock/maintenanceAssoc.d.ts +12 -12
  86. package/dist/modules/stock/maintenanceAssoc.js +127 -127
  87. package/dist/modules/stock/maintenancePreset.d.ts +10 -10
  88. package/dist/modules/stock/maintenancePreset.js +114 -114
  89. package/dist/modules/stock/maintenancePresetAssoc.d.ts +8 -8
  90. package/dist/modules/stock/maintenancePresetAssoc.js +91 -91
  91. package/dist/modules/stock/maintenanceType.d.ts +13 -13
  92. package/dist/modules/stock/maintenanceType.js +140 -140
  93. package/dist/modules/stock/moloniRequest.d.ts +5 -5
  94. package/dist/modules/stock/moloniRequest.js +59 -59
  95. package/dist/modules/stock/orderManagement.d.ts +11 -11
  96. package/dist/modules/stock/orderManagement.js +88 -88
  97. package/dist/modules/stock/payment.d.ts +24 -24
  98. package/dist/modules/stock/payment.js +233 -233
  99. package/dist/modules/stock/plot.d.ts +35 -35
  100. package/dist/modules/stock/plot.js +223 -223
  101. package/dist/modules/stock/preSale.d.ts +11 -11
  102. package/dist/modules/stock/preSale.js +125 -125
  103. package/dist/modules/stock/preSaleProduct.d.ts +4 -4
  104. package/dist/modules/stock/preSaleProduct.js +70 -70
  105. package/dist/modules/stock/primaryColor.d.ts +13 -13
  106. package/dist/modules/stock/primaryColor.js +140 -140
  107. package/dist/modules/stock/product.d.ts +31 -31
  108. package/dist/modules/stock/product.js +223 -223
  109. package/dist/modules/stock/productAttribute.d.ts +12 -12
  110. package/dist/modules/stock/productAttribute.js +127 -127
  111. package/dist/modules/stock/productCategory.d.ts +13 -13
  112. package/dist/modules/stock/productCategory.js +140 -140
  113. package/dist/modules/stock/productColor.d.ts +12 -12
  114. package/dist/modules/stock/productColor.js +127 -127
  115. package/dist/modules/stock/productImage.d.ts +14 -14
  116. package/dist/modules/stock/productImage.js +130 -130
  117. package/dist/modules/stock/productName.d.ts +13 -13
  118. package/dist/modules/stock/productName.js +140 -140
  119. package/dist/modules/stock/productNamePreset.d.ts +13 -13
  120. package/dist/modules/stock/productNamePreset.js +140 -140
  121. package/dist/modules/stock/productPart.d.ts +14 -14
  122. package/dist/modules/stock/productPart.js +139 -139
  123. package/dist/modules/stock/productSubCategory.d.ts +13 -13
  124. package/dist/modules/stock/productSubCategory.js +139 -139
  125. package/dist/modules/stock/productUse.d.ts +13 -13
  126. package/dist/modules/stock/productUse.js +140 -140
  127. package/dist/modules/stock/productUseAssoc.d.ts +12 -12
  128. package/dist/modules/stock/productUseAssoc.js +126 -126
  129. package/dist/modules/stock/promotion.d.ts +13 -13
  130. package/dist/modules/stock/promotion.js +140 -140
  131. package/dist/modules/stock/promotionAssoc.d.ts +12 -12
  132. package/dist/modules/stock/promotionAssoc.js +127 -127
  133. package/dist/modules/stock/propostaSheets.d.ts +9 -9
  134. package/dist/modules/stock/propostaSheets.js +109 -109
  135. package/dist/modules/stock/providerCurrentAccount.d.ts +5 -5
  136. package/dist/modules/stock/providerCurrentAccount.js +61 -61
  137. package/dist/modules/stock/queryList.d.ts +11 -11
  138. package/dist/modules/stock/queryList.js +116 -116
  139. package/dist/modules/stock/queryParameter.d.ts +8 -8
  140. package/dist/modules/stock/queryParameter.js +105 -105
  141. package/dist/modules/stock/returnReason.d.ts +6 -6
  142. package/dist/modules/stock/returnReason.js +92 -92
  143. package/dist/modules/stock/schedule.d.ts +11 -11
  144. package/dist/modules/stock/schedule.js +61 -61
  145. package/dist/modules/stock/similarProduct.d.ts +12 -12
  146. package/dist/modules/stock/similarProduct.js +127 -127
  147. package/dist/modules/stock/startDocumentHeaderLastUpdate.d.ts +4 -4
  148. package/dist/modules/stock/startDocumentHeaderLastUpdate.js +59 -59
  149. package/dist/modules/stock/stockMovement.d.ts +9 -9
  150. package/dist/modules/stock/stockMovement.js +79 -79
  151. package/dist/modules/stock/topMenu.d.ts +5 -5
  152. package/dist/modules/stock/topMenu.js +61 -61
  153. package/dist/modules/stock/typeOfInventory.d.ts +13 -13
  154. package/dist/modules/stock/typeOfInventory.js +140 -140
  155. package/dist/modules/stock/typeOfLocation.d.ts +13 -13
  156. package/dist/modules/stock/typeOfLocation.js +140 -140
  157. package/dist/modules/stock/unitOfMeasure.d.ts +13 -13
  158. package/dist/modules/stock/unitOfMeasure.js +140 -140
  159. package/dist/modules/stock/vatTax.d.ts +13 -13
  160. package/dist/modules/stock/vatTax.js +140 -140
  161. package/dist/modules/stock/vatTaxZone.d.ts +14 -14
  162. package/dist/modules/stock/vatTaxZone.js +140 -140
  163. package/dist/modules/stock/vatValidation.d.ts +4 -4
  164. package/dist/modules/stock/vatValidation.js +63 -63
  165. package/dist/modules/stock/websiteRequest.d.ts +10 -10
  166. package/dist/modules/stock/websiteRequest.js +96 -96
  167. package/dist/modules/stock/workflow.d.ts +8 -8
  168. package/dist/modules/stock/workflow.js +103 -103
  169. package/dist/modules/tickets/channel.d.ts +8 -8
  170. package/dist/modules/tickets/channel.js +114 -114
  171. package/dist/modules/tickets/clt.d.ts +7 -7
  172. package/dist/modules/tickets/clt.js +114 -114
  173. package/dist/modules/tickets/index.d.ts +3 -3
  174. package/dist/modules/tickets/index.js +12 -12
  175. package/dist/modules/tickets/language.d.ts +7 -7
  176. package/dist/modules/tickets/language.js +114 -114
  177. package/dist/modules/tickets/tickets.d.ts +10 -10
  178. package/dist/modules/tickets/tickets.js +92 -92
  179. package/dist/modules/user/address.d.ts +12 -12
  180. package/dist/modules/user/address.js +127 -127
  181. package/dist/modules/user/bankData.d.ts +12 -12
  182. package/dist/modules/user/bankData.js +127 -127
  183. package/dist/modules/user/clientType.d.ts +12 -12
  184. package/dist/modules/user/clientType.js +127 -127
  185. package/dist/modules/user/clients.d.ts +17 -17
  186. package/dist/modules/user/clients.js +140 -140
  187. package/dist/modules/user/commissioner.d.ts +15 -15
  188. package/dist/modules/user/commissioner.js +140 -140
  189. package/dist/modules/user/contactTypes.d.ts +12 -12
  190. package/dist/modules/user/contactTypes.js +127 -127
  191. package/dist/modules/user/contacts.d.ts +14 -14
  192. package/dist/modules/user/contacts.js +149 -149
  193. package/dist/modules/user/country.d.ts +12 -12
  194. package/dist/modules/user/country.js +140 -140
  195. package/dist/modules/user/deliveryMethods.d.ts +8 -8
  196. package/dist/modules/user/deliveryMethods.js +116 -116
  197. package/dist/modules/user/entityList.d.ts +7 -7
  198. package/dist/modules/user/entityList.js +105 -105
  199. package/dist/modules/user/favorites.d.ts +7 -7
  200. package/dist/modules/user/favorites.js +92 -92
  201. package/dist/modules/user/groupPermission.d.ts +7 -7
  202. package/dist/modules/user/groupPermission.js +94 -94
  203. package/dist/modules/user/index.d.ts +3 -3
  204. package/dist/modules/user/index.js +12 -12
  205. package/dist/modules/user/language.d.ts +12 -12
  206. package/dist/modules/user/language.js +127 -127
  207. package/dist/modules/user/logout.d.ts +2 -2
  208. package/dist/modules/user/logout.js +58 -58
  209. package/dist/modules/user/maturityDates.d.ts +8 -8
  210. package/dist/modules/user/maturityDates.js +116 -116
  211. package/dist/modules/user/password.d.ts +5 -5
  212. package/dist/modules/user/password.js +68 -68
  213. package/dist/modules/user/paymentCondition.d.ts +11 -11
  214. package/dist/modules/user/paymentCondition.js +127 -127
  215. package/dist/modules/user/paymentMethods.d.ts +8 -8
  216. package/dist/modules/user/paymentMethods.js +116 -116
  217. package/dist/modules/user/permission.d.ts +7 -7
  218. package/dist/modules/user/permission.js +94 -94
  219. package/dist/modules/user/provider.d.ts +15 -15
  220. package/dist/modules/user/provider.js +153 -153
  221. package/dist/modules/user/providerType.d.ts +12 -12
  222. package/dist/modules/user/providerType.js +127 -127
  223. package/dist/modules/user/purchaseCondition.d.ts +12 -12
  224. package/dist/modules/user/purchaseCondition.js +127 -127
  225. package/dist/modules/user/reasonForExemption.d.ts +12 -12
  226. package/dist/modules/user/reasonForExemption.js +127 -127
  227. package/dist/modules/user/refreshToken.d.ts +5 -5
  228. package/dist/modules/user/refreshToken.js +59 -59
  229. package/dist/modules/user/segmentsArea.d.ts +12 -12
  230. package/dist/modules/user/segmentsArea.js +127 -127
  231. package/dist/modules/user/sessions.d.ts +5 -5
  232. package/dist/modules/user/sessions.js +59 -59
  233. package/dist/modules/user/shippings.d.ts +11 -11
  234. package/dist/modules/user/shippings.js +127 -127
  235. package/dist/modules/user/socialMedia.d.ts +11 -11
  236. package/dist/modules/user/socialMedia.js +127 -127
  237. package/dist/modules/user/storeOperator.d.ts +16 -16
  238. package/dist/modules/user/storeOperator.js +151 -151
  239. package/dist/modules/user/swift.d.ts +12 -12
  240. package/dist/modules/user/swift.js +127 -127
  241. package/dist/modules/user/tenant.d.ts +6 -6
  242. package/dist/modules/user/tenant.js +92 -92
  243. package/dist/modules/user/user.d.ts +18 -18
  244. package/dist/modules/user/user.js +151 -151
  245. package/dist/modules/user/userPermission.d.ts +7 -7
  246. package/dist/modules/user/userPermission.js +83 -83
  247. package/dist/modules/user/userPositions.d.ts +12 -12
  248. package/dist/modules/user/userPositions.js +127 -127
  249. package/dist/modules/user/userToken.d.ts +9 -9
  250. package/dist/modules/user/userToken.js +116 -116
  251. package/dist/modules/user/vehicles.d.ts +6 -6
  252. package/dist/modules/user/vehicles.js +92 -92
  253. package/dist/modules/user/zipCode.d.ts +6 -6
  254. package/dist/modules/user/zipCode.js +69 -69
  255. package/dist/modules/view/eventHistory.d.ts +4 -4
  256. package/dist/modules/view/eventHistory.js +59 -59
  257. package/dist/modules/view/index.d.ts +2 -2
  258. package/dist/modules/view/index.js +11 -11
  259. package/dist/shared/client.d.ts +2 -2
  260. package/dist/shared/client.js +24 -24
  261. package/package.json +54 -54
@@ -1,127 +1,127 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.deleteOne = exports.update = exports.create = exports.findById = exports.findMinified = exports.findPaginated = exports.find = exports.route = void 0;
43
- var client_1 = __importDefault(require("../../shared/client"));
44
- var _1 = require(".");
45
- exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "language/");
46
- var repository = {
47
- find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
48
- var response;
49
- return __generator(this, function (_a) {
50
- switch (_a.label) {
51
- case 0: return [4, client_1.default.get("".concat(exports.route), { params: params })];
52
- case 1:
53
- response = _a.sent();
54
- return [2, response.data];
55
- }
56
- });
57
- }); },
58
- findPaginated: function (params) { return __awaiter(void 0, void 0, void 0, function () {
59
- var response;
60
- return __generator(this, function (_a) {
61
- switch (_a.label) {
62
- case 0: return [4, client_1.default.get("".concat(exports.route, "paginated"), { params: params })];
63
- case 1:
64
- response = _a.sent();
65
- return [2, response.data];
66
- }
67
- });
68
- }); },
69
- findMinified: function (params) { return __awaiter(void 0, void 0, void 0, function () {
70
- var response;
71
- return __generator(this, function (_a) {
72
- switch (_a.label) {
73
- case 0: return [4, client_1.default.get("".concat(exports.route, "minified"), {
74
- params: params,
75
- })];
76
- case 1:
77
- response = _a.sent();
78
- return [2, response.data];
79
- }
80
- });
81
- }); },
82
- findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
83
- var response;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
86
- case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
87
- case 1:
88
- response = _a.sent();
89
- return [2, response.data];
90
- }
91
- });
92
- }); },
93
- create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
94
- var response;
95
- return __generator(this, function (_a) {
96
- switch (_a.label) {
97
- case 0: return [4, client_1.default.post("".concat(exports.route), body)];
98
- case 1:
99
- response = _a.sent();
100
- return [2, response.data];
101
- }
102
- });
103
- }); },
104
- update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
105
- var response;
106
- return __generator(this, function (_a) {
107
- switch (_a.label) {
108
- case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
109
- case 1:
110
- response = _a.sent();
111
- return [2, response.data];
112
- }
113
- });
114
- }); },
115
- deleteOne: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
116
- var response;
117
- return __generator(this, function (_a) {
118
- switch (_a.label) {
119
- case 0: return [4, client_1.default.delete("".concat(exports.route).concat(selector.id))];
120
- case 1:
121
- response = _a.sent();
122
- return [2, response.data];
123
- }
124
- });
125
- }); },
126
- };
127
- exports.find = repository.find, exports.findPaginated = repository.findPaginated, exports.findMinified = repository.findMinified, exports.findById = repository.findById, exports.create = repository.create, exports.update = repository.update, exports.deleteOne = repository.deleteOne;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.deleteOne = exports.update = exports.create = exports.findById = exports.findMinified = exports.findPaginated = exports.find = exports.route = void 0;
43
+ var client_1 = __importDefault(require("../../shared/client"));
44
+ var _1 = require(".");
45
+ exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "language/");
46
+ var repository = {
47
+ find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
48
+ var response;
49
+ return __generator(this, function (_a) {
50
+ switch (_a.label) {
51
+ case 0: return [4, client_1.default.get("".concat(exports.route), { params: params })];
52
+ case 1:
53
+ response = _a.sent();
54
+ return [2, response.data];
55
+ }
56
+ });
57
+ }); },
58
+ findPaginated: function (params) { return __awaiter(void 0, void 0, void 0, function () {
59
+ var response;
60
+ return __generator(this, function (_a) {
61
+ switch (_a.label) {
62
+ case 0: return [4, client_1.default.get("".concat(exports.route, "paginated"), { params: params })];
63
+ case 1:
64
+ response = _a.sent();
65
+ return [2, response.data];
66
+ }
67
+ });
68
+ }); },
69
+ findMinified: function (params) { return __awaiter(void 0, void 0, void 0, function () {
70
+ var response;
71
+ return __generator(this, function (_a) {
72
+ switch (_a.label) {
73
+ case 0: return [4, client_1.default.get("".concat(exports.route, "minified"), {
74
+ params: params,
75
+ })];
76
+ case 1:
77
+ response = _a.sent();
78
+ return [2, response.data];
79
+ }
80
+ });
81
+ }); },
82
+ findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
83
+ var response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
87
+ case 1:
88
+ response = _a.sent();
89
+ return [2, response.data];
90
+ }
91
+ });
92
+ }); },
93
+ create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
94
+ var response;
95
+ return __generator(this, function (_a) {
96
+ switch (_a.label) {
97
+ case 0: return [4, client_1.default.post("".concat(exports.route), body)];
98
+ case 1:
99
+ response = _a.sent();
100
+ return [2, response.data];
101
+ }
102
+ });
103
+ }); },
104
+ update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
105
+ var response;
106
+ return __generator(this, function (_a) {
107
+ switch (_a.label) {
108
+ case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
109
+ case 1:
110
+ response = _a.sent();
111
+ return [2, response.data];
112
+ }
113
+ });
114
+ }); },
115
+ deleteOne: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
116
+ var response;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0: return [4, client_1.default.delete("".concat(exports.route).concat(selector.id))];
120
+ case 1:
121
+ response = _a.sent();
122
+ return [2, response.data];
123
+ }
124
+ });
125
+ }); },
126
+ };
127
+ exports.find = repository.find, exports.findPaginated = repository.findPaginated, exports.findMinified = repository.findMinified, exports.findById = repository.findById, exports.create = repository.create, exports.update = repository.update, exports.deleteOne = repository.deleteOne;
@@ -1,2 +1,2 @@
1
- export declare const route: string;
2
- export declare const logout: () => Promise<void>;
1
+ export declare const route: string;
2
+ export declare const logout: () => Promise<void>;
@@ -1,58 +1,58 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.logout = exports.route = void 0;
43
- var client_1 = __importDefault(require("../../shared/client"));
44
- var _1 = require(".");
45
- exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "logout/");
46
- var repository = {
47
- logout: function () { return __awaiter(void 0, void 0, void 0, function () {
48
- return __generator(this, function (_a) {
49
- switch (_a.label) {
50
- case 0: return [4, client_1.default.post("".concat(exports.route))];
51
- case 1:
52
- _a.sent();
53
- return [2];
54
- }
55
- });
56
- }); },
57
- };
58
- exports.logout = repository.logout;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.logout = exports.route = void 0;
43
+ var client_1 = __importDefault(require("../../shared/client"));
44
+ var _1 = require(".");
45
+ exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "logout/");
46
+ var repository = {
47
+ logout: function () { return __awaiter(void 0, void 0, void 0, function () {
48
+ return __generator(this, function (_a) {
49
+ switch (_a.label) {
50
+ case 0: return [4, client_1.default.post("".concat(exports.route))];
51
+ case 1:
52
+ _a.sent();
53
+ return [2];
54
+ }
55
+ });
56
+ }); },
57
+ };
58
+ exports.logout = repository.logout;
@@ -1,8 +1,8 @@
1
- import { MaturityDates as Entity, shared } from '@nomalism-com/types';
2
- export import IEntity = Entity.Entity;
3
- export import ICreateRequest = Entity.ICreateRequest;
4
- export import IUpdateRequest = Entity.IUpdateRequest;
5
- export import IFindMinifiedRequest = shared.IFindMinifiedRequest;
6
- export import IFindMinifiedResponse = shared.IFindMinifiedResponse;
7
- export declare const route: string;
8
- export declare const find: () => Promise<import("@nomalism-com/types/dist/shared/entities").MaturityDates[]>, findById: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").MaturityDates | null>, findMinified: (params?: shared.IFindMinifiedRequest | undefined) => Promise<shared.IFindMinifiedResponse[]>, create: (data: Entity.ICreateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").MaturityDates>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").MaturityDates | null>, deleteOne: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").MaturityDates | null>;
1
+ import { MaturityDates as Entity, shared } from '@nomalism-com/types';
2
+ export import IEntity = Entity.Entity;
3
+ export import ICreateRequest = Entity.ICreateRequest;
4
+ export import IUpdateRequest = Entity.IUpdateRequest;
5
+ export import IFindMinifiedRequest = shared.IFindMinifiedRequest;
6
+ export import IFindMinifiedResponse = shared.IFindMinifiedResponse;
7
+ export declare const route: string;
8
+ export declare const find: () => Promise<import("@nomalism-com/types/dist/shared/entities").MaturityDates[]>, findById: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").MaturityDates | null>, findMinified: (params?: shared.IFindMinifiedRequest | undefined) => Promise<shared.IFindMinifiedResponse[]>, create: (data: Entity.ICreateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").MaturityDates>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").MaturityDates | null>, deleteOne: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").MaturityDates | null>;
@@ -1,116 +1,116 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.deleteOne = exports.update = exports.create = exports.findMinified = exports.findById = exports.find = exports.route = void 0;
43
- var client_1 = __importDefault(require("../../shared/client"));
44
- var _1 = require(".");
45
- exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "maturity_dates/");
46
- var repository = {
47
- find: function () { return __awaiter(void 0, void 0, void 0, function () {
48
- var response;
49
- return __generator(this, function (_a) {
50
- switch (_a.label) {
51
- case 0: return [4, client_1.default.get("".concat(exports.route))];
52
- case 1:
53
- response = _a.sent();
54
- return [2, response.data];
55
- }
56
- });
57
- }); },
58
- findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
59
- var response;
60
- return __generator(this, function (_a) {
61
- switch (_a.label) {
62
- case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
63
- case 1:
64
- response = _a.sent();
65
- return [2, response.data];
66
- }
67
- });
68
- }); },
69
- findMinified: function (params) { return __awaiter(void 0, void 0, void 0, function () {
70
- var response;
71
- return __generator(this, function (_a) {
72
- switch (_a.label) {
73
- case 0: return [4, client_1.default.get("".concat(exports.route, "minified"), {
74
- params: params,
75
- })];
76
- case 1:
77
- response = _a.sent();
78
- return [2, response.data];
79
- }
80
- });
81
- }); },
82
- create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
83
- var response;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
86
- case 0: return [4, client_1.default.post("".concat(exports.route), body)];
87
- case 1:
88
- response = _a.sent();
89
- return [2, response.data];
90
- }
91
- });
92
- }); },
93
- update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
94
- var response;
95
- return __generator(this, function (_a) {
96
- switch (_a.label) {
97
- case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
98
- case 1:
99
- response = _a.sent();
100
- return [2, response.data];
101
- }
102
- });
103
- }); },
104
- deleteOne: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
105
- var response;
106
- return __generator(this, function (_a) {
107
- switch (_a.label) {
108
- case 0: return [4, client_1.default.delete("".concat(exports.route).concat(selector.id))];
109
- case 1:
110
- response = _a.sent();
111
- return [2, response.data];
112
- }
113
- });
114
- }); },
115
- };
116
- exports.find = repository.find, exports.findById = repository.findById, exports.findMinified = repository.findMinified, exports.create = repository.create, exports.update = repository.update, exports.deleteOne = repository.deleteOne;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.deleteOne = exports.update = exports.create = exports.findMinified = exports.findById = exports.find = exports.route = void 0;
43
+ var client_1 = __importDefault(require("../../shared/client"));
44
+ var _1 = require(".");
45
+ exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "maturity_dates/");
46
+ var repository = {
47
+ find: function () { return __awaiter(void 0, void 0, void 0, function () {
48
+ var response;
49
+ return __generator(this, function (_a) {
50
+ switch (_a.label) {
51
+ case 0: return [4, client_1.default.get("".concat(exports.route))];
52
+ case 1:
53
+ response = _a.sent();
54
+ return [2, response.data];
55
+ }
56
+ });
57
+ }); },
58
+ findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
59
+ var response;
60
+ return __generator(this, function (_a) {
61
+ switch (_a.label) {
62
+ case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
63
+ case 1:
64
+ response = _a.sent();
65
+ return [2, response.data];
66
+ }
67
+ });
68
+ }); },
69
+ findMinified: function (params) { return __awaiter(void 0, void 0, void 0, function () {
70
+ var response;
71
+ return __generator(this, function (_a) {
72
+ switch (_a.label) {
73
+ case 0: return [4, client_1.default.get("".concat(exports.route, "minified"), {
74
+ params: params,
75
+ })];
76
+ case 1:
77
+ response = _a.sent();
78
+ return [2, response.data];
79
+ }
80
+ });
81
+ }); },
82
+ create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
83
+ var response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0: return [4, client_1.default.post("".concat(exports.route), body)];
87
+ case 1:
88
+ response = _a.sent();
89
+ return [2, response.data];
90
+ }
91
+ });
92
+ }); },
93
+ update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
94
+ var response;
95
+ return __generator(this, function (_a) {
96
+ switch (_a.label) {
97
+ case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
98
+ case 1:
99
+ response = _a.sent();
100
+ return [2, response.data];
101
+ }
102
+ });
103
+ }); },
104
+ deleteOne: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
105
+ var response;
106
+ return __generator(this, function (_a) {
107
+ switch (_a.label) {
108
+ case 0: return [4, client_1.default.delete("".concat(exports.route).concat(selector.id))];
109
+ case 1:
110
+ response = _a.sent();
111
+ return [2, response.data];
112
+ }
113
+ });
114
+ }); },
115
+ };
116
+ exports.find = repository.find, exports.findById = repository.findById, exports.findMinified = repository.findMinified, exports.create = repository.create, exports.update = repository.update, exports.deleteOne = repository.deleteOne;