@nomalism-com/api 0.12.7 → 0.12.9
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.d.ts +281 -3
- package/dist/index.js +311 -5
- package/dist/modules/document/materialEntrance.d.ts +11 -3
- package/dist/modules/document/materialEntrance.js +43 -33
- package/dist/modules/document/order.d.ts +15 -2
- package/dist/modules/document/order.js +90 -75
- package/dist/modules/document/purchase.d.ts +11 -2
- package/dist/modules/document/purchase.js +58 -50
- package/dist/modules/documentManagement/multimedia.d.ts +11 -4
- package/dist/modules/documentManagement/multimedia.js +32 -51
- package/dist/modules/integration/dynamicData.d.ts +12 -2
- package/dist/modules/integration/dynamicData.js +70 -60
- package/dist/modules/integration/emailTemplate.d.ts +12 -2
- package/dist/modules/integration/emailTemplate.js +69 -59
- package/dist/modules/integration/emailTemplateAttachment.d.ts +9 -2
- package/dist/modules/integration/emailTemplateAttachment.js +33 -29
- package/dist/modules/integration/errorHandler.d.ts +8 -2
- package/dist/modules/integration/errorHandler.js +21 -19
- package/dist/modules/integration/field.d.ts +11 -2
- package/dist/modules/integration/field.js +58 -49
- package/dist/modules/integration/fieldGroup.d.ts +13 -2
- package/dist/modules/integration/fieldGroup.js +85 -72
- package/dist/modules/integration/file.d.ts +10 -2
- package/dist/modules/integration/file.js +48 -42
- package/dist/modules/integration/googleFilePermission.d.ts +11 -2
- package/dist/modules/integration/googleFilePermission.js +58 -50
- package/dist/modules/integration/googleSheets.d.ts +11 -2
- package/dist/modules/integration/googleSheets.js +59 -51
- package/dist/modules/integration/history.d.ts +8 -2
- package/dist/modules/integration/history.js +23 -20
- package/dist/modules/integration/observation.d.ts +11 -2
- package/dist/modules/integration/observation.js +60 -52
- package/dist/modules/integration/observationType.d.ts +12 -2
- package/dist/modules/integration/observationType.js +72 -62
- package/dist/modules/integration/projectInfo.d.ts +8 -2
- package/dist/modules/integration/projectInfo.js +21 -19
- package/dist/modules/integration/settings.d.ts +12 -3
- package/dist/modules/integration/settings.js +72 -61
- package/dist/modules/integration/task.d.ts +11 -2
- package/dist/modules/integration/task.js +68 -60
- package/dist/modules/integration/taskAttachment.d.ts +9 -2
- package/dist/modules/integration/taskAttachment.js +36 -32
- package/dist/modules/integration/taskGroup.d.ts +12 -2
- package/dist/modules/integration/taskGroup.js +70 -60
- package/dist/modules/integration/taskNote.d.ts +11 -2
- package/dist/modules/integration/taskNote.js +58 -50
- package/dist/modules/print/npc.d.ts +9 -2
- package/dist/modules/print/npc.js +34 -30
- package/dist/modules/print/printer.d.ts +10 -2
- package/dist/modules/print/printer.js +46 -40
- package/dist/modules/print/schedulePrintJob.d.ts +11 -2
- package/dist/modules/print/schedulePrintJob.js +56 -48
- package/dist/modules/stock/attribute.d.ts +15 -2
- package/dist/modules/stock/attribute.js +111 -94
- package/dist/modules/stock/attributeValue.d.ts +15 -2
- package/dist/modules/stock/attributeValue.js +110 -94
- package/dist/modules/stock/color.d.ts +15 -2
- package/dist/modules/stock/color.js +109 -93
- package/dist/modules/stock/composition.d.ts +14 -2
- package/dist/modules/stock/composition.js +96 -82
- package/dist/modules/stock/compositionMaterial.d.ts +15 -2
- package/dist/modules/stock/compositionMaterial.js +110 -94
- package/dist/modules/stock/location.d.ts +15 -2
- package/dist/modules/stock/location.js +110 -94
- package/dist/modules/stock/maintenance.d.ts +15 -2
- package/dist/modules/stock/maintenance.js +110 -94
- package/dist/modules/stock/maintenanceAssoc.d.ts +14 -2
- package/dist/modules/stock/maintenanceAssoc.js +96 -82
- package/dist/modules/stock/maintenancePreset.d.ts +13 -2
- package/dist/modules/stock/maintenancePreset.js +82 -70
- package/dist/modules/stock/maintenancePresetAssoc.d.ts +11 -2
- package/dist/modules/stock/maintenancePresetAssoc.js +57 -49
- package/dist/modules/stock/maintenanceType.d.ts +15 -2
- package/dist/modules/stock/maintenanceType.js +110 -94
- package/dist/modules/stock/plot.d.ts +24 -4
- package/dist/modules/stock/plot.js +219 -172
- package/dist/modules/stock/primaryColor.d.ts +15 -2
- package/dist/modules/stock/primaryColor.js +110 -94
- package/dist/modules/stock/product.d.ts +24 -4
- package/dist/modules/stock/product.js +221 -190
- package/dist/modules/stock/productAttribute.d.ts +14 -2
- package/dist/modules/stock/productAttribute.js +96 -82
- package/dist/modules/stock/productCategory.d.ts +15 -2
- package/dist/modules/stock/productCategory.js +110 -94
- package/dist/modules/stock/productColor.d.ts +14 -2
- package/dist/modules/stock/productColor.js +96 -82
- package/dist/modules/stock/productImage.d.ts +14 -2
- package/dist/modules/stock/productImage.js +97 -82
- package/dist/modules/stock/productName.d.ts +15 -2
- package/dist/modules/stock/productName.js +110 -94
- package/dist/modules/stock/productNamePreset.d.ts +15 -2
- package/dist/modules/stock/productNamePreset.js +110 -94
- package/dist/modules/stock/productPart.d.ts +15 -2
- package/dist/modules/stock/productPart.js +109 -93
- package/dist/modules/stock/productSubCategory.d.ts +15 -2
- package/dist/modules/stock/productSubCategory.js +109 -93
- package/dist/modules/stock/productUse.d.ts +15 -2
- package/dist/modules/stock/productUse.js +110 -94
- package/dist/modules/stock/productUseAssoc.d.ts +14 -2
- package/dist/modules/stock/productUseAssoc.js +95 -81
- package/dist/modules/stock/promotion.d.ts +16 -3
- package/dist/modules/stock/promotion.js +130 -115
- package/dist/modules/stock/promotionAssoc.d.ts +14 -2
- package/dist/modules/stock/promotionAssoc.js +96 -82
- package/dist/modules/stock/queryList.d.ts +14 -3
- package/dist/modules/stock/queryList.js +101 -89
- package/dist/modules/stock/queryParameter.d.ts +13 -2
- package/dist/modules/stock/queryParameter.js +83 -70
- package/dist/modules/stock/returnReason.d.ts +11 -2
- package/dist/modules/stock/returnReason.js +58 -50
- package/dist/modules/stock/savedEmPicking.d.ts +9 -2
- package/dist/modules/stock/savedEmPicking.js +34 -30
- package/dist/modules/stock/schedule.d.ts +8 -2
- package/dist/modules/stock/schedule.js +23 -20
- package/dist/modules/stock/similarProduct.d.ts +14 -2
- package/dist/modules/stock/similarProduct.js +96 -82
- package/dist/modules/stock/stockMovement.d.ts +11 -4
- package/dist/modules/stock/stockMovement.js +45 -43
- package/dist/modules/stock/typeOfInventory.d.ts +15 -2
- package/dist/modules/stock/typeOfInventory.js +110 -94
- package/dist/modules/stock/typeOfLocation.d.ts +15 -2
- package/dist/modules/stock/typeOfLocation.js +110 -94
- package/dist/modules/stock/unitOfMeasure.d.ts +15 -2
- package/dist/modules/stock/unitOfMeasure.js +110 -94
- package/dist/modules/stock/vatTax.d.ts +15 -2
- package/dist/modules/stock/vatTax.js +110 -94
- package/dist/modules/stock/vatTaxZone.d.ts +15 -2
- package/dist/modules/stock/vatTaxZone.js +110 -94
- package/dist/modules/supply/cabide.d.ts +17 -4
- package/dist/modules/supply/cabide.js +128 -109
- package/dist/modules/supply/cabideProduct.d.ts +15 -2
- package/dist/modules/supply/cabideProduct.js +99 -85
- package/dist/modules/supply/clientCurrentAccount.d.ts +13 -2
- package/dist/modules/supply/clientCurrentAccount.js +88 -74
- package/dist/modules/supply/documentHeader.d.ts +38 -4
- package/dist/modules/supply/documentHeader.js +378 -316
- package/dist/modules/supply/documentLine.d.ts +18 -3
- package/dist/modules/supply/documentLine.js +136 -114
- package/dist/modules/supply/documentLineAssoc.d.ts +11 -2
- package/dist/modules/supply/documentLineAssoc.js +57 -49
- package/dist/modules/supply/documentLineFolder.d.ts +11 -2
- package/dist/modules/supply/documentLineFolder.js +58 -50
- package/dist/modules/supply/documentSet.d.ts +13 -2
- package/dist/modules/supply/documentSet.js +82 -70
- package/dist/modules/supply/documentType.d.ts +13 -2
- package/dist/modules/supply/documentType.js +83 -70
- package/dist/modules/supply/externalDocumentHeader.d.ts +15 -2
- package/dist/modules/supply/externalDocumentHeader.js +105 -89
- package/dist/modules/supply/externalDocumentType.d.ts +9 -2
- package/dist/modules/supply/externalDocumentType.js +34 -30
- package/dist/modules/supply/moloniRequest.d.ts +8 -2
- package/dist/modules/supply/moloniRequest.js +21 -20
- package/dist/modules/supply/orderManagement.d.ts +10 -2
- package/dist/modules/supply/orderManagement.js +23 -20
- package/dist/modules/supply/payment.d.ts +23 -4
- package/dist/modules/supply/payment.js +208 -180
- package/dist/modules/supply/preSale.d.ts +15 -2
- package/dist/modules/supply/preSale.js +106 -90
- package/dist/modules/supply/preSaleProduct.d.ts +9 -2
- package/dist/modules/supply/preSaleProduct.js +34 -30
- package/dist/modules/supply/propostaSheets.d.ts +21 -10
- package/dist/modules/supply/propostaSheets.js +89 -76
- package/dist/modules/supply/providerCurrentAccount.d.ts +8 -2
- package/dist/modules/supply/providerCurrentAccount.js +24 -22
- package/dist/modules/supply/startDocumentHeaderLastUpdate.d.ts +10 -4
- package/dist/modules/supply/startDocumentHeaderLastUpdate.js +22 -20
- package/dist/modules/supply/transformado.d.ts +8 -2
- package/dist/modules/supply/transformado.js +22 -20
- package/dist/modules/supply/upfrontReturn.d.ts +10 -4
- package/dist/modules/supply/upfrontReturn.js +22 -20
- package/dist/modules/supply/vatValidation.d.ts +8 -2
- package/dist/modules/supply/vatValidation.js +26 -24
- package/dist/modules/supply/workflow.d.ts +15 -2
- package/dist/modules/supply/workflow.js +70 -60
- package/dist/modules/tickets/channel.d.ts +13 -2
- package/dist/modules/tickets/channel.js +82 -70
- package/dist/modules/tickets/clt.d.ts +13 -2
- package/dist/modules/tickets/clt.js +82 -70
- package/dist/modules/tickets/language.d.ts +13 -2
- package/dist/modules/tickets/language.js +82 -70
- package/dist/modules/tickets/tickets.d.ts +11 -2
- package/dist/modules/tickets/tickets.js +58 -50
- package/dist/modules/user/address.d.ts +15 -2
- package/dist/modules/user/address.js +108 -92
- package/dist/modules/user/bankData.d.ts +14 -2
- package/dist/modules/user/bankData.js +96 -82
- package/dist/modules/user/clientType.d.ts +14 -2
- package/dist/modules/user/clientType.js +96 -82
- package/dist/modules/user/clients.d.ts +16 -2
- package/dist/modules/user/clients.js +122 -104
- package/dist/modules/user/commissioner.d.ts +15 -2
- package/dist/modules/user/commissioner.js +110 -94
- package/dist/modules/user/contactTypes.d.ts +14 -2
- package/dist/modules/user/contactTypes.js +96 -82
- package/dist/modules/user/contacts.d.ts +16 -2
- package/dist/modules/user/contacts.js +122 -102
- package/dist/modules/user/country.d.ts +15 -2
- package/dist/modules/user/country.js +110 -94
- package/dist/modules/user/deliveryMethods.d.ts +13 -2
- package/dist/modules/user/deliveryMethods.js +84 -72
- package/dist/modules/user/entityList.d.ts +12 -2
- package/dist/modules/user/entityList.js +47 -42
- package/dist/modules/user/favorites.d.ts +11 -2
- package/dist/modules/user/favorites.js +58 -50
- package/dist/modules/user/groupPermission.d.ts +11 -2
- package/dist/modules/user/groupPermission.js +60 -52
- package/dist/modules/user/language.d.ts +14 -2
- package/dist/modules/user/language.js +96 -82
- package/dist/modules/user/logout.d.ts +8 -2
- package/dist/modules/user/logout.js +21 -19
- package/dist/modules/user/maturityDates.d.ts +13 -2
- package/dist/modules/user/maturityDates.js +84 -72
- package/dist/modules/user/password.d.ts +9 -2
- package/dist/modules/user/password.js +32 -28
- package/dist/modules/user/paymentCondition.d.ts +14 -2
- package/dist/modules/user/paymentCondition.js +96 -82
- package/dist/modules/user/paymentMethods.d.ts +13 -2
- package/dist/modules/user/paymentMethods.js +84 -72
- package/dist/modules/user/permission.d.ts +11 -2
- package/dist/modules/user/permission.js +60 -52
- package/dist/modules/user/persona.d.ts +12 -2
- package/dist/modules/user/persona.js +72 -62
- package/dist/modules/user/provider.d.ts +17 -2
- package/dist/modules/user/provider.js +136 -116
- package/dist/modules/user/providerType.d.ts +14 -2
- package/dist/modules/user/providerType.js +96 -82
- package/dist/modules/user/purchaseCondition.d.ts +14 -2
- package/dist/modules/user/purchaseCondition.js +96 -82
- package/dist/modules/user/reasonForExemption.d.ts +14 -2
- package/dist/modules/user/reasonForExemption.js +96 -82
- package/dist/modules/user/refreshToken.d.ts +8 -2
- package/dist/modules/user/refreshToken.js +22 -20
- package/dist/modules/user/segmentsArea.d.ts +14 -2
- package/dist/modules/user/segmentsArea.js +96 -82
- package/dist/modules/user/sessions.d.ts +8 -2
- package/dist/modules/user/sessions.js +22 -20
- package/dist/modules/user/shippings.d.ts +14 -2
- package/dist/modules/user/shippings.js +96 -82
- package/dist/modules/user/socialMedia.d.ts +14 -2
- package/dist/modules/user/socialMedia.js +96 -82
- package/dist/modules/user/storeOperator.d.ts +16 -2
- package/dist/modules/user/storeOperator.js +122 -104
- package/dist/modules/user/swift.d.ts +14 -2
- package/dist/modules/user/swift.js +96 -82
- package/dist/modules/user/tenant.d.ts +11 -2
- package/dist/modules/user/tenant.js +58 -50
- package/dist/modules/user/user.d.ts +16 -2
- package/dist/modules/user/user.js +120 -102
- package/dist/modules/user/userPermission.d.ts +10 -2
- package/dist/modules/user/userPermission.js +48 -42
- package/dist/modules/user/userPositions.d.ts +14 -2
- package/dist/modules/user/userPositions.js +96 -82
- package/dist/modules/user/vehicles.d.ts +11 -2
- package/dist/modules/user/vehicles.js +58 -50
- package/dist/modules/user/zipCode.d.ts +9 -2
- package/dist/modules/user/zipCode.js +33 -29
- package/dist/modules/view/eventHistory.d.ts +8 -2
- package/dist/modules/view/eventHistory.js +22 -20
- package/package.json +4 -4
- package/dist/modules/documentManagement/index.d.ts +0 -3
- package/dist/modules/documentManagement/index.js +0 -13
- package/dist/modules/integration/index.d.ts +0 -3
- package/dist/modules/integration/index.js +0 -13
- package/dist/modules/print/index.d.ts +0 -3
- package/dist/modules/print/index.js +0 -13
- package/dist/modules/stock/index.d.ts +0 -3
- package/dist/modules/stock/index.js +0 -13
- package/dist/modules/tickets/index.d.ts +0 -3
- package/dist/modules/tickets/index.js +0 -13
- package/dist/modules/user/index.d.ts +0 -3
- package/dist/modules/user/index.js +0 -13
- package/dist/modules/user/userToken.d.ts +0 -9
- package/dist/modules/user/userToken.js +0 -116
- package/dist/modules/view/index.d.ts +0 -2
- package/dist/modules/view/index.js +0 -12
- package/dist/shared/client.d.ts +0 -7
- package/dist/shared/client.js +0 -24
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.12.
|
|
12
|
+
"version": "0.12.9",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/convert-units": "^2.3.9",
|
|
35
|
-
"@types/node": "^
|
|
35
|
+
"@types/node": "^20.9.5",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
37
37
|
"@typescript-eslint/parser": "^6.12.0",
|
|
38
38
|
"concurrently": "^8.2.2",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"eslint-plugin-import": "^2.29.0",
|
|
44
44
|
"eslint-plugin-prettier": "^5.0.1",
|
|
45
45
|
"prettier": "^3.1.0",
|
|
46
|
-
"tsx": "^4.
|
|
46
|
+
"tsx": "^4.4.0",
|
|
47
47
|
"typescript": "^5.3.2"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.12.
|
|
50
|
+
"@nomalism-com/types": "^0.12.9",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
var client_1 = require("../../shared/client");
|
|
5
|
-
exports.serviceHostname = client_1.processEnvironment === 'localhost'
|
|
6
|
-
? process.env.REACT_APP_DOCUMENT_MANAGEMENT_URL
|
|
7
|
-
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
-
var serviceJwtPath = client_1.processEnvironment === 'localhost' ? '/' : 'documents/auth/';
|
|
9
|
-
var serviceApiKeyPath = client_1.processEnvironment === 'localhost' ? '/' : 'documents/apikey/';
|
|
10
|
-
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
11
|
-
? serviceApiKeyPath
|
|
12
|
-
: serviceJwtPath;
|
|
13
|
-
exports.servicePublicPath = client_1.processEnvironment === 'localhost' ? '/' : 'documents/public/';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
var client_1 = require("../../shared/client");
|
|
5
|
-
exports.serviceHostname = client_1.processEnvironment === 'localhost'
|
|
6
|
-
? process.env.REACT_APP_INTEGRATION_URL
|
|
7
|
-
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
-
var serviceJwtPath = client_1.processEnvironment === 'localhost' ? '/' : 'integration/auth/';
|
|
9
|
-
var serviceApiKeyPath = client_1.processEnvironment === 'localhost' ? '/' : 'integration/apikey/';
|
|
10
|
-
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
11
|
-
? serviceApiKeyPath
|
|
12
|
-
: serviceJwtPath;
|
|
13
|
-
exports.servicePublicPath = client_1.processEnvironment === 'localhost' ? '/' : 'integration/public/';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
var client_1 = require("../../shared/client");
|
|
5
|
-
exports.serviceHostname = client_1.processEnvironment === 'localhost'
|
|
6
|
-
? process.env.REACT_APP_PRINT_URL
|
|
7
|
-
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
-
var serviceJwtPath = client_1.processEnvironment === 'localhost' ? '/' : 'print/auth/';
|
|
9
|
-
var serviceApiKeyPath = client_1.processEnvironment === 'localhost' ? '/' : 'print/apikey/';
|
|
10
|
-
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
11
|
-
? serviceApiKeyPath
|
|
12
|
-
: serviceJwtPath;
|
|
13
|
-
exports.servicePublicPath = client_1.processEnvironment === 'localhost' ? '/' : 'print/public/';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
var client_1 = require("../../shared/client");
|
|
5
|
-
exports.serviceHostname = client_1.processEnvironment === 'localhost'
|
|
6
|
-
? process.env.REACT_APP_STOCK_URL
|
|
7
|
-
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
-
var serviceJwtPath = client_1.processEnvironment === 'localhost' ? '/' : 'stock/auth/';
|
|
9
|
-
var serviceApiKeyPath = client_1.processEnvironment === 'localhost' ? '/' : 'stock/apikey/';
|
|
10
|
-
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
11
|
-
? serviceApiKeyPath
|
|
12
|
-
: serviceJwtPath;
|
|
13
|
-
exports.servicePublicPath = client_1.processEnvironment === 'localhost' ? '/' : 'stock/public/';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
var client_1 = require("../../shared/client");
|
|
5
|
-
exports.serviceHostname = client_1.processEnvironment === 'localhost'
|
|
6
|
-
? process.env.REACT_APP_TICKETS_URL
|
|
7
|
-
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
-
var serviceJwtPath = client_1.processEnvironment === 'localhost' ? '/' : 'tickets/auth/';
|
|
9
|
-
var serviceApiKeyPath = client_1.processEnvironment === 'localhost' ? '/' : 'tickets/apikey/';
|
|
10
|
-
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
11
|
-
? serviceApiKeyPath
|
|
12
|
-
: serviceJwtPath;
|
|
13
|
-
exports.servicePublicPath = client_1.processEnvironment === 'localhost' ? '/' : 'tickets/public/';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
var client_1 = require("../../shared/client");
|
|
5
|
-
exports.serviceHostname = client_1.processEnvironment === 'localhost'
|
|
6
|
-
? process.env.REACT_APP_USER_URL
|
|
7
|
-
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
-
var serviceJwtPath = client_1.processEnvironment === 'localhost' ? '/' : 'users/auth/';
|
|
9
|
-
var serviceApiKeyPath = client_1.processEnvironment === 'localhost' ? '/' : 'users/apikey/';
|
|
10
|
-
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
11
|
-
? serviceApiKeyPath
|
|
12
|
-
: serviceJwtPath;
|
|
13
|
-
exports.servicePublicPath = client_1.processEnvironment === 'localhost' ? '/' : 'users/public/';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { shared, UserTokens as Entity } from '@nomalism-com/types';
|
|
2
|
-
export import IFindRequest = Entity.IFindRequest;
|
|
3
|
-
export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
|
|
4
|
-
export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
|
|
5
|
-
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
6
|
-
export import IEntity = Entity.Entity;
|
|
7
|
-
export type IPaginationResponse = shared.IPaginationResponse<IEntity>;
|
|
8
|
-
export declare const route: string;
|
|
9
|
-
export declare const find: (selector: Entity.IFindRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").UserTokens[]>, findPaginated: (selector: Entity.IFindPaginatedRequest) => Promise<Entity.IFindWithPaginationResponse>, findByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").UserTokens[]>, findById: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").UserTokens | null>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").UserTokens | null>, deleteOne: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").UserTokens | null>;
|
|
@@ -1,116 +0,0 @@
|
|
|
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.findById = exports.findByOwnerId = 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, "user_token/");
|
|
46
|
-
var repository = {
|
|
47
|
-
findById: function (selector) { 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).concat(selector.id))];
|
|
52
|
-
case 1:
|
|
53
|
-
response = _a.sent();
|
|
54
|
-
return [2, response.data];
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}); },
|
|
58
|
-
findByOwnerId: 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, "by_owner"), {
|
|
63
|
-
params: params,
|
|
64
|
-
})];
|
|
65
|
-
case 1:
|
|
66
|
-
response = _a.sent();
|
|
67
|
-
return [2, response.data];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}); },
|
|
71
|
-
find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
72
|
-
var response;
|
|
73
|
-
return __generator(this, function (_a) {
|
|
74
|
-
switch (_a.label) {
|
|
75
|
-
case 0: return [4, client_1.default.get("".concat(exports.route), { params: params })];
|
|
76
|
-
case 1:
|
|
77
|
-
response = _a.sent();
|
|
78
|
-
return [2, response.data];
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}); },
|
|
82
|
-
findPaginated: function (params) { 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, "paginated"), { params: params })];
|
|
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.findPaginated = repository.findPaginated, exports.findByOwnerId = repository.findByOwnerId, exports.findById = repository.findById, exports.update = repository.update, exports.deleteOne = repository.deleteOne;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
var client_1 = require("../../shared/client");
|
|
5
|
-
exports.serviceHostname = client_1.processEnvironment === 'localhost'
|
|
6
|
-
? process.env.REACT_APP_VIEW_URL
|
|
7
|
-
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
-
var serviceJwtPath = client_1.processEnvironment === 'localhost' ? '/' : 'view/auth/';
|
|
9
|
-
var serviceApiKeyPath = client_1.processEnvironment === 'localhost' ? '/' : 'view/apikey/';
|
|
10
|
-
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
11
|
-
? serviceApiKeyPath
|
|
12
|
-
: serviceJwtPath;
|
package/dist/shared/client.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const processEnvironment: string;
|
|
2
|
-
export declare const REACT_APP_API_GATEWAY_URL: string | undefined;
|
|
3
|
-
export declare const defaultHeaders: {
|
|
4
|
-
apikey: string;
|
|
5
|
-
} | undefined;
|
|
6
|
-
declare const _default: import("axios").AxiosInstance;
|
|
7
|
-
export default _default;
|
package/dist/shared/client.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.defaultHeaders = exports.REACT_APP_API_GATEWAY_URL = exports.processEnvironment = void 0;
|
|
7
|
-
var axios_1 = __importDefault(require("axios"));
|
|
8
|
-
exports.processEnvironment = process.env.REACT_APP_ENV || process.env.NODE_ENV || 'localhost';
|
|
9
|
-
var PROCESS_REACT_APP_API_GATEWAY_URL = {
|
|
10
|
-
production: process.env.REACT_APP_API_GATEWAY_URL_PROD,
|
|
11
|
-
uat: process.env.REACT_APP_API_GATEWAY_URL_UAT,
|
|
12
|
-
development: process.env.REACT_APP_API_GATEWAY_URL_DEV,
|
|
13
|
-
localhost: 'localhost',
|
|
14
|
-
};
|
|
15
|
-
exports.REACT_APP_API_GATEWAY_URL = PROCESS_REACT_APP_API_GATEWAY_URL[exports.processEnvironment];
|
|
16
|
-
exports.defaultHeaders = process.env.REACT_APP_API_KEY
|
|
17
|
-
? {
|
|
18
|
-
apikey: process.env.REACT_APP_API_KEY,
|
|
19
|
-
}
|
|
20
|
-
: undefined;
|
|
21
|
-
exports.default = axios_1.default.create({
|
|
22
|
-
baseURL: exports.REACT_APP_API_GATEWAY_URL,
|
|
23
|
-
headers: exports.defaultHeaders,
|
|
24
|
-
});
|