@nomalism-com/api 0.8.283 → 0.8.285
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 +24 -26
- package/dist/index.js +26 -28
- package/dist/modules/{stock → supply}/cabide.js +3 -3
- package/dist/modules/{stock → supply}/cabideProduct.d.ts +1 -1
- package/dist/modules/{stock → supply}/cabideProduct.js +2 -2
- package/dist/modules/{stock → supply}/clientCurrentAccount.js +2 -2
- package/dist/modules/{stock → supply}/documentHeader.js +2 -2
- package/dist/modules/{stock → supply}/documentLine.js +2 -2
- package/dist/modules/{stock → supply}/documentLineAssoc.js +2 -2
- package/dist/modules/{stock → supply}/documentLineFolder.js +2 -2
- package/dist/modules/{stock → supply}/documentSet.js +2 -2
- package/dist/modules/{stock → supply}/documentType.js +2 -2
- package/dist/modules/{stock → supply}/externalDocumentHeader.js +2 -2
- package/dist/modules/{stock → supply}/externalDocumentType.js +2 -2
- package/dist/modules/{stock → supply}/materialEntrance.js +2 -2
- package/dist/modules/{stock → supply}/moloniRequest.js +2 -2
- package/dist/modules/{stock → supply}/order.js +2 -2
- package/dist/modules/{stock → supply}/orderManagement.js +2 -2
- package/dist/modules/{stock → supply}/payment.js +3 -3
- package/dist/modules/{stock → supply}/preSale.js +2 -2
- package/dist/modules/{stock → supply}/preSaleProduct.js +2 -2
- package/dist/modules/{stock → supply}/propostaSheets.js +2 -2
- package/dist/modules/{stock → supply}/providerCurrentAccount.js +2 -2
- package/dist/modules/{stock → supply}/purchase.js +2 -2
- package/dist/modules/{stock → supply}/startDocumentHeaderLastUpdate.js +2 -2
- package/dist/modules/{stock → supply}/vatValidation.js +2 -2
- package/dist/modules/{stock → supply}/workflow.js +2 -2
- package/package.json +53 -53
- package/dist/modules/stock/topMenu.d.ts +0 -5
- package/dist/modules/stock/topMenu.js +0 -61
- package/dist/modules/stock/websiteRequest.d.ts +0 -10
- package/dist/modules/stock/websiteRequest.js +0 -96
- /package/dist/modules/{stock → supply}/cabide.d.ts +0 -0
- /package/dist/modules/{stock → supply}/clientCurrentAccount.d.ts +0 -0
- /package/dist/modules/{stock → supply}/documentHeader.d.ts +0 -0
- /package/dist/modules/{stock → supply}/documentLine.d.ts +0 -0
- /package/dist/modules/{stock → supply}/documentLineAssoc.d.ts +0 -0
- /package/dist/modules/{stock → supply}/documentLineFolder.d.ts +0 -0
- /package/dist/modules/{stock → supply}/documentSet.d.ts +0 -0
- /package/dist/modules/{stock → supply}/documentType.d.ts +0 -0
- /package/dist/modules/{stock → supply}/externalDocumentHeader.d.ts +0 -0
- /package/dist/modules/{stock → supply}/externalDocumentType.d.ts +0 -0
- /package/dist/modules/{stock → supply}/materialEntrance.d.ts +0 -0
- /package/dist/modules/{stock → supply}/moloniRequest.d.ts +0 -0
- /package/dist/modules/{stock → supply}/order.d.ts +0 -0
- /package/dist/modules/{stock → supply}/orderManagement.d.ts +0 -0
- /package/dist/modules/{stock → supply}/payment.d.ts +0 -0
- /package/dist/modules/{stock → supply}/preSale.d.ts +0 -0
- /package/dist/modules/{stock → supply}/preSaleProduct.d.ts +0 -0
- /package/dist/modules/{stock → supply}/propostaSheets.d.ts +0 -0
- /package/dist/modules/{stock → supply}/providerCurrentAccount.d.ts +0 -0
- /package/dist/modules/{stock → supply}/purchase.d.ts +0 -0
- /package/dist/modules/{stock → supply}/startDocumentHeaderLastUpdate.d.ts +0 -0
- /package/dist/modules/{stock → supply}/vatValidation.d.ts +0 -0
- /package/dist/modules/{stock → supply}/workflow.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -13,11 +13,11 @@ export * as CompositionMaterial from './modules/stock/compositionMaterial';
|
|
|
13
13
|
export * as Contacts from './modules/user/contacts';
|
|
14
14
|
export * as ContactType from './modules/user/contactTypes';
|
|
15
15
|
export * as Country from './modules/user/country';
|
|
16
|
-
export * as DocumentHeader from './modules/
|
|
17
|
-
export * as DocumentLine from './modules/
|
|
18
|
-
export * as DocumentLineAssoc from './modules/
|
|
19
|
-
export * as DocumentLineFolder from './modules/
|
|
20
|
-
export * as DocumentType from './modules/
|
|
16
|
+
export * as DocumentHeader from './modules/supply/documentHeader';
|
|
17
|
+
export * as DocumentLine from './modules/supply/documentLine';
|
|
18
|
+
export * as DocumentLineAssoc from './modules/supply/documentLineAssoc';
|
|
19
|
+
export * as DocumentLineFolder from './modules/supply/documentLineFolder';
|
|
20
|
+
export * as DocumentType from './modules/supply/documentType';
|
|
21
21
|
export * as EntityList from './modules/user/entityList';
|
|
22
22
|
export * as Favorites from './modules/user/favorites';
|
|
23
23
|
export * as Field from './modules/integration/field';
|
|
@@ -70,7 +70,6 @@ export * as TaskAttachment from './modules/integration/taskAttachment';
|
|
|
70
70
|
export * as TaskNote from './modules/integration/taskNote';
|
|
71
71
|
export * as Tasks from './modules/integration/task';
|
|
72
72
|
export * as TasksGroup from './modules/integration/taskGroup';
|
|
73
|
-
export * as TopMenu from './modules/stock/topMenu';
|
|
74
73
|
export * as TypeOfInventory from './modules/stock/typeOfInventory';
|
|
75
74
|
export * as TypeOfLocation from './modules/stock/typeOfLocation';
|
|
76
75
|
export * as UnitOfMeasure from './modules/stock/unitOfMeasure';
|
|
@@ -80,37 +79,36 @@ export * as Users from './modules/user/user';
|
|
|
80
79
|
export * as UserTokens from './modules/user/userToken';
|
|
81
80
|
export * as VatTax from './modules/stock/vatTax';
|
|
82
81
|
export * as VatTaxZone from './modules/stock/vatTaxZone';
|
|
83
|
-
export * as
|
|
84
|
-
export * as Workflow from './modules/stock/workflow';
|
|
82
|
+
export * as Workflow from './modules/supply/workflow';
|
|
85
83
|
export * as DynamicData from './modules/integration/dynamicData';
|
|
86
84
|
export * as DeliveryMethods from './modules/user/deliveryMethods';
|
|
87
85
|
export * as MaturityDates from './modules/user/maturityDates';
|
|
88
86
|
export * as PaymentMethods from './modules/user/paymentMethods';
|
|
89
87
|
export * as Vehicles from './modules/user/vehicles';
|
|
90
|
-
export * as ExternalDocumentType from './modules/
|
|
91
|
-
export * as DocumentSet from './modules/
|
|
92
|
-
export * as Payment from './modules/
|
|
93
|
-
export * as ExternalDocumentHeader from './modules/
|
|
94
|
-
export * as ClientCurrentAccount from './modules/
|
|
95
|
-
export * as ProviderCurrentAccount from './modules/
|
|
96
|
-
export * as MoloniRequest from './modules/
|
|
97
|
-
export * as VatValidation from './modules/
|
|
88
|
+
export * as ExternalDocumentType from './modules/supply/externalDocumentType';
|
|
89
|
+
export * as DocumentSet from './modules/supply/documentSet';
|
|
90
|
+
export * as Payment from './modules/supply/payment';
|
|
91
|
+
export * as ExternalDocumentHeader from './modules/supply/externalDocumentHeader';
|
|
92
|
+
export * as ClientCurrentAccount from './modules/supply/clientCurrentAccount';
|
|
93
|
+
export * as ProviderCurrentAccount from './modules/supply/providerCurrentAccount';
|
|
94
|
+
export * as MoloniRequest from './modules/supply/moloniRequest';
|
|
95
|
+
export * as VatValidation from './modules/supply/vatValidation';
|
|
98
96
|
export * as ProductNamePreset from './modules/stock/productNamePreset';
|
|
99
97
|
export * as StockMovement from './modules/stock/stockMovement';
|
|
100
98
|
export * as ZipCode from './modules/user/zipCode';
|
|
101
99
|
export * as Tenant from './modules/user/tenant';
|
|
102
|
-
export * as PreSale from './modules/
|
|
103
|
-
export * as PreSaleProduct from './modules/
|
|
104
|
-
export * as Cabide from './modules/
|
|
105
|
-
export * as CabideProduct from './modules/
|
|
106
|
-
export * as OrderManagement from './modules/
|
|
100
|
+
export * as PreSale from './modules/supply/preSale';
|
|
101
|
+
export * as PreSaleProduct from './modules/supply/preSaleProduct';
|
|
102
|
+
export * as Cabide from './modules/supply/cabide';
|
|
103
|
+
export * as CabideProduct from './modules/supply/cabideProduct';
|
|
104
|
+
export * as OrderManagement from './modules/supply/orderManagement';
|
|
107
105
|
export * as Npc from './modules/print/npc';
|
|
108
106
|
export * as Printer from './modules/print/printer';
|
|
109
107
|
export * as SchedulePrintJob from './modules/print/schedulePrintJob';
|
|
110
108
|
export * as QueryList from './modules/stock/queryList';
|
|
111
109
|
export * as QueryParameter from './modules/stock/queryParameter';
|
|
112
110
|
export * as ReturnReason from './modules/stock/returnReason';
|
|
113
|
-
export * as PropostaSheets from './modules/
|
|
111
|
+
export * as PropostaSheets from './modules/supply/propostaSheets';
|
|
114
112
|
export * as Schedule from './modules/stock/schedule';
|
|
115
113
|
export * as GoogleFilePermission from './modules/integration/googleFilePermission';
|
|
116
114
|
export * as Settings from './modules/integration/settings';
|
|
@@ -118,12 +116,12 @@ export * as Tickets from './modules/tickets/tickets';
|
|
|
118
116
|
export * as Channel from './modules/tickets/channel';
|
|
119
117
|
export * as TicketsLanguage from './modules/tickets/language';
|
|
120
118
|
export * as Clt from './modules/tickets/clt';
|
|
121
|
-
export * as StartDocumentHeaderLastUpdate from './modules/
|
|
119
|
+
export * as StartDocumentHeaderLastUpdate from './modules/supply/startDocumentHeaderLastUpdate';
|
|
122
120
|
export * as ErrorHandler from './modules/integration/errorHandler';
|
|
123
121
|
export * as Persona from './modules/user/persona';
|
|
124
122
|
export * as ProjectInfo from './modules/integration/projectInfo';
|
|
125
|
-
export * as Order from './modules/
|
|
126
|
-
export * as Purchase from './modules/
|
|
127
|
-
export * as MaterialEntrance from './modules/
|
|
123
|
+
export * as Order from './modules/supply/order';
|
|
124
|
+
export * as Purchase from './modules/supply/purchase';
|
|
125
|
+
export * as MaterialEntrance from './modules/supply/materialEntrance';
|
|
128
126
|
export default api;
|
|
129
127
|
export { shared };
|
package/dist/index.js
CHANGED
|
@@ -27,8 +27,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ProductUse = exports.ProductSubCategory = exports.ProductPart = exports.ProductImage = exports.ProductColor = exports.ProductCategory = exports.ProductAttribute = exports.Product = exports.PrimaryColor = exports.Plot = exports.Permissions = exports.Password = exports.PaymentConditions = exports.ObservationType = exports.Observation = exports.Multimedia = exports.MaintenancePresetAssoc = exports.MaintenancePreset = exports.MaintenanceType = exports.MaintenanceAssoc = exports.Maintenance = exports.Logout = exports.Location = exports.Language = exports.History = exports.GroupPermissions = exports.GoogleSheets = exports.File = exports.FieldGroup = exports.Field = exports.Favorites = exports.EntityList = exports.DocumentType = exports.DocumentLineFolder = exports.DocumentLineAssoc = exports.DocumentLine = exports.DocumentHeader = exports.Country = exports.ContactType = exports.Contacts = exports.CompositionMaterial = exports.Composition = exports.Commissioner = exports.Color = exports.ClientType = exports.Client = exports.BankData = exports.AttributeValue = exports.Attribute = exports.Address = void 0;
|
|
30
|
-
exports.PreSale = exports.Tenant = exports.ZipCode = exports.StockMovement = exports.ProductNamePreset = exports.VatValidation = exports.MoloniRequest = exports.ProviderCurrentAccount = exports.ClientCurrentAccount = exports.ExternalDocumentHeader = exports.Payment = exports.DocumentSet = exports.ExternalDocumentType = exports.Vehicles = exports.PaymentMethods = exports.MaturityDates = exports.DeliveryMethods = exports.DynamicData = exports.Workflow = exports.
|
|
31
|
-
exports.shared = exports.MaterialEntrance = exports.Purchase = exports.Order = exports.ProjectInfo = exports.Persona = exports.ErrorHandler = exports.StartDocumentHeaderLastUpdate = exports.Clt = exports.TicketsLanguage = exports.Channel = exports.Tickets = exports.Settings = exports.GoogleFilePermission = exports.Schedule = exports.PropostaSheets = exports.ReturnReason = exports.QueryParameter = exports.QueryList = exports.SchedulePrintJob = exports.Printer = exports.Npc = exports.OrderManagement = exports.CabideProduct =
|
|
30
|
+
exports.Cabide = exports.PreSaleProduct = exports.PreSale = exports.Tenant = exports.ZipCode = exports.StockMovement = exports.ProductNamePreset = exports.VatValidation = exports.MoloniRequest = exports.ProviderCurrentAccount = exports.ClientCurrentAccount = exports.ExternalDocumentHeader = exports.Payment = exports.DocumentSet = exports.ExternalDocumentType = exports.Vehicles = exports.PaymentMethods = exports.MaturityDates = exports.DeliveryMethods = exports.DynamicData = exports.Workflow = exports.VatTaxZone = exports.VatTax = exports.UserTokens = exports.Users = exports.UserPositions = exports.UserPermissions = exports.UnitOfMeasure = exports.TypeOfLocation = exports.TypeOfInventory = exports.TasksGroup = exports.Tasks = exports.TaskNote = exports.TaskAttachment = exports.Swift = exports.StoreOperator = exports.SocialMedia = exports.SimilarProduct = exports.Shippings = exports.Sessions = exports.SegmentsArea = exports.RefreshToken = exports.ReasonForExemption = exports.PurchaseConditions = exports.ProviderType = exports.Providers = exports.PromotionAssoc = exports.Promotion = exports.ProductName = exports.ProductUseAssoc = void 0;
|
|
31
|
+
exports.shared = exports.MaterialEntrance = exports.Purchase = exports.Order = exports.ProjectInfo = exports.Persona = exports.ErrorHandler = exports.StartDocumentHeaderLastUpdate = exports.Clt = exports.TicketsLanguage = exports.Channel = exports.Tickets = exports.Settings = exports.GoogleFilePermission = exports.Schedule = exports.PropostaSheets = exports.ReturnReason = exports.QueryParameter = exports.QueryList = exports.SchedulePrintJob = exports.Printer = exports.Npc = exports.OrderManagement = exports.CabideProduct = void 0;
|
|
32
32
|
var types_1 = require("@nomalism-com/types");
|
|
33
33
|
Object.defineProperty(exports, "shared", { enumerable: true, get: function () { return types_1.shared; } });
|
|
34
34
|
var client_1 = __importDefault(require("./shared/client"));
|
|
@@ -45,11 +45,11 @@ exports.CompositionMaterial = __importStar(require("./modules/stock/compositionM
|
|
|
45
45
|
exports.Contacts = __importStar(require("./modules/user/contacts"));
|
|
46
46
|
exports.ContactType = __importStar(require("./modules/user/contactTypes"));
|
|
47
47
|
exports.Country = __importStar(require("./modules/user/country"));
|
|
48
|
-
exports.DocumentHeader = __importStar(require("./modules/
|
|
49
|
-
exports.DocumentLine = __importStar(require("./modules/
|
|
50
|
-
exports.DocumentLineAssoc = __importStar(require("./modules/
|
|
51
|
-
exports.DocumentLineFolder = __importStar(require("./modules/
|
|
52
|
-
exports.DocumentType = __importStar(require("./modules/
|
|
48
|
+
exports.DocumentHeader = __importStar(require("./modules/supply/documentHeader"));
|
|
49
|
+
exports.DocumentLine = __importStar(require("./modules/supply/documentLine"));
|
|
50
|
+
exports.DocumentLineAssoc = __importStar(require("./modules/supply/documentLineAssoc"));
|
|
51
|
+
exports.DocumentLineFolder = __importStar(require("./modules/supply/documentLineFolder"));
|
|
52
|
+
exports.DocumentType = __importStar(require("./modules/supply/documentType"));
|
|
53
53
|
exports.EntityList = __importStar(require("./modules/user/entityList"));
|
|
54
54
|
exports.Favorites = __importStar(require("./modules/user/favorites"));
|
|
55
55
|
exports.Field = __importStar(require("./modules/integration/field"));
|
|
@@ -102,7 +102,6 @@ exports.TaskAttachment = __importStar(require("./modules/integration/taskAttachm
|
|
|
102
102
|
exports.TaskNote = __importStar(require("./modules/integration/taskNote"));
|
|
103
103
|
exports.Tasks = __importStar(require("./modules/integration/task"));
|
|
104
104
|
exports.TasksGroup = __importStar(require("./modules/integration/taskGroup"));
|
|
105
|
-
exports.TopMenu = __importStar(require("./modules/stock/topMenu"));
|
|
106
105
|
exports.TypeOfInventory = __importStar(require("./modules/stock/typeOfInventory"));
|
|
107
106
|
exports.TypeOfLocation = __importStar(require("./modules/stock/typeOfLocation"));
|
|
108
107
|
exports.UnitOfMeasure = __importStar(require("./modules/stock/unitOfMeasure"));
|
|
@@ -112,37 +111,36 @@ exports.Users = __importStar(require("./modules/user/user"));
|
|
|
112
111
|
exports.UserTokens = __importStar(require("./modules/user/userToken"));
|
|
113
112
|
exports.VatTax = __importStar(require("./modules/stock/vatTax"));
|
|
114
113
|
exports.VatTaxZone = __importStar(require("./modules/stock/vatTaxZone"));
|
|
115
|
-
exports.
|
|
116
|
-
exports.Workflow = __importStar(require("./modules/stock/workflow"));
|
|
114
|
+
exports.Workflow = __importStar(require("./modules/supply/workflow"));
|
|
117
115
|
exports.DynamicData = __importStar(require("./modules/integration/dynamicData"));
|
|
118
116
|
exports.DeliveryMethods = __importStar(require("./modules/user/deliveryMethods"));
|
|
119
117
|
exports.MaturityDates = __importStar(require("./modules/user/maturityDates"));
|
|
120
118
|
exports.PaymentMethods = __importStar(require("./modules/user/paymentMethods"));
|
|
121
119
|
exports.Vehicles = __importStar(require("./modules/user/vehicles"));
|
|
122
|
-
exports.ExternalDocumentType = __importStar(require("./modules/
|
|
123
|
-
exports.DocumentSet = __importStar(require("./modules/
|
|
124
|
-
exports.Payment = __importStar(require("./modules/
|
|
125
|
-
exports.ExternalDocumentHeader = __importStar(require("./modules/
|
|
126
|
-
exports.ClientCurrentAccount = __importStar(require("./modules/
|
|
127
|
-
exports.ProviderCurrentAccount = __importStar(require("./modules/
|
|
128
|
-
exports.MoloniRequest = __importStar(require("./modules/
|
|
129
|
-
exports.VatValidation = __importStar(require("./modules/
|
|
120
|
+
exports.ExternalDocumentType = __importStar(require("./modules/supply/externalDocumentType"));
|
|
121
|
+
exports.DocumentSet = __importStar(require("./modules/supply/documentSet"));
|
|
122
|
+
exports.Payment = __importStar(require("./modules/supply/payment"));
|
|
123
|
+
exports.ExternalDocumentHeader = __importStar(require("./modules/supply/externalDocumentHeader"));
|
|
124
|
+
exports.ClientCurrentAccount = __importStar(require("./modules/supply/clientCurrentAccount"));
|
|
125
|
+
exports.ProviderCurrentAccount = __importStar(require("./modules/supply/providerCurrentAccount"));
|
|
126
|
+
exports.MoloniRequest = __importStar(require("./modules/supply/moloniRequest"));
|
|
127
|
+
exports.VatValidation = __importStar(require("./modules/supply/vatValidation"));
|
|
130
128
|
exports.ProductNamePreset = __importStar(require("./modules/stock/productNamePreset"));
|
|
131
129
|
exports.StockMovement = __importStar(require("./modules/stock/stockMovement"));
|
|
132
130
|
exports.ZipCode = __importStar(require("./modules/user/zipCode"));
|
|
133
131
|
exports.Tenant = __importStar(require("./modules/user/tenant"));
|
|
134
|
-
exports.PreSale = __importStar(require("./modules/
|
|
135
|
-
exports.PreSaleProduct = __importStar(require("./modules/
|
|
136
|
-
exports.Cabide = __importStar(require("./modules/
|
|
137
|
-
exports.CabideProduct = __importStar(require("./modules/
|
|
138
|
-
exports.OrderManagement = __importStar(require("./modules/
|
|
132
|
+
exports.PreSale = __importStar(require("./modules/supply/preSale"));
|
|
133
|
+
exports.PreSaleProduct = __importStar(require("./modules/supply/preSaleProduct"));
|
|
134
|
+
exports.Cabide = __importStar(require("./modules/supply/cabide"));
|
|
135
|
+
exports.CabideProduct = __importStar(require("./modules/supply/cabideProduct"));
|
|
136
|
+
exports.OrderManagement = __importStar(require("./modules/supply/orderManagement"));
|
|
139
137
|
exports.Npc = __importStar(require("./modules/print/npc"));
|
|
140
138
|
exports.Printer = __importStar(require("./modules/print/printer"));
|
|
141
139
|
exports.SchedulePrintJob = __importStar(require("./modules/print/schedulePrintJob"));
|
|
142
140
|
exports.QueryList = __importStar(require("./modules/stock/queryList"));
|
|
143
141
|
exports.QueryParameter = __importStar(require("./modules/stock/queryParameter"));
|
|
144
142
|
exports.ReturnReason = __importStar(require("./modules/stock/returnReason"));
|
|
145
|
-
exports.PropostaSheets = __importStar(require("./modules/
|
|
143
|
+
exports.PropostaSheets = __importStar(require("./modules/supply/propostaSheets"));
|
|
146
144
|
exports.Schedule = __importStar(require("./modules/stock/schedule"));
|
|
147
145
|
exports.GoogleFilePermission = __importStar(require("./modules/integration/googleFilePermission"));
|
|
148
146
|
exports.Settings = __importStar(require("./modules/integration/settings"));
|
|
@@ -150,11 +148,11 @@ exports.Tickets = __importStar(require("./modules/tickets/tickets"));
|
|
|
150
148
|
exports.Channel = __importStar(require("./modules/tickets/channel"));
|
|
151
149
|
exports.TicketsLanguage = __importStar(require("./modules/tickets/language"));
|
|
152
150
|
exports.Clt = __importStar(require("./modules/tickets/clt"));
|
|
153
|
-
exports.StartDocumentHeaderLastUpdate = __importStar(require("./modules/
|
|
151
|
+
exports.StartDocumentHeaderLastUpdate = __importStar(require("./modules/supply/startDocumentHeaderLastUpdate"));
|
|
154
152
|
exports.ErrorHandler = __importStar(require("./modules/integration/errorHandler"));
|
|
155
153
|
exports.Persona = __importStar(require("./modules/user/persona"));
|
|
156
154
|
exports.ProjectInfo = __importStar(require("./modules/integration/projectInfo"));
|
|
157
|
-
exports.Order = __importStar(require("./modules/
|
|
158
|
-
exports.Purchase = __importStar(require("./modules/
|
|
159
|
-
exports.MaterialEntrance = __importStar(require("./modules/
|
|
155
|
+
exports.Order = __importStar(require("./modules/supply/order"));
|
|
156
|
+
exports.Purchase = __importStar(require("./modules/supply/purchase"));
|
|
157
|
+
exports.MaterialEntrance = __importStar(require("./modules/supply/materialEntrance"));
|
|
160
158
|
exports.default = client_1.default;
|
|
@@ -42,10 +42,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.findCabideProviders = exports.findPaginated = exports.find = exports.deleteOne = exports.update = exports.create = exports.findById = exports.printLabelToPdfUrl = exports.publicRoute = exports.route = exports.cabidesTypesEnum = void 0;
|
|
43
43
|
var types_1 = require("@nomalism-com/types");
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
|
-
var
|
|
45
|
+
var stock_1 = require("../stock");
|
|
46
46
|
exports.cabidesTypesEnum = types_1.Cabide.cabideTypes;
|
|
47
|
-
exports.route = "".concat(
|
|
48
|
-
exports.publicRoute = "".concat(
|
|
47
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "cabide/");
|
|
48
|
+
exports.publicRoute = "".concat(stock_1.serviceHostname).concat(stock_1.servicePublicPath, "cabide/");
|
|
49
49
|
var repository = {
|
|
50
50
|
create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
51
|
var response;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shared, CabideProduct as Entity } from '@nomalism-com/types';
|
|
2
|
-
import * as Product from '
|
|
2
|
+
import * as Product from '../stock/product';
|
|
3
3
|
export import ICreateRequest = Entity.ICreateRequest;
|
|
4
4
|
export import IEntity = Entity.Entity;
|
|
5
5
|
export import IFindCabideByOwnerResponse = Entity.IFindCabideByOwnerResponse;
|
|
@@ -52,8 +52,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
exports.findProductByCabideProductId = exports.findByOwnerPaginated = exports.findByOwner = exports.deleteOne = exports.create = exports.route = void 0;
|
|
54
54
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
55
|
-
var
|
|
56
|
-
exports.route = "".concat(
|
|
55
|
+
var stock_1 = require("../stock");
|
|
56
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "cabide_product/");
|
|
57
57
|
var repository = {
|
|
58
58
|
create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
59
59
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.findByOwnerId = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "client_current_account/");
|
|
46
46
|
var repository = {
|
|
47
47
|
findByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -42,9 +42,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.documentPdf = exports.sendClientNotification = exports.markUnsentClientNotification = exports.updateManyWithPersona = exports.transferClientOwnership = exports.findMaterialEntranceProviders = exports.createProviderCreditNoteFromReturn = exports.findProviderReturn = exports.createProviderServiceInvoice = exports.createProviderFinancialCreditNote = exports.findProviderInvoice = exports.findUnfinishedPickings = exports.findUnpaidCommissions = exports.getActions = exports.deleteOne = exports.update = exports.createFromPlots = exports.createFromHeader = exports.create = exports.find = exports.findClientUnpaidDebit = exports.findClientUnpaidCredit = exports.findByCommissionerId = exports.findByBasicSearch = exports.findByDocumentLineState = exports.findOne = exports.findMinified = exports.getDocumentPdfUrl = exports.route = exports.IBrokerTopic = void 0;
|
|
43
43
|
var types_1 = require("@nomalism-com/types");
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
|
-
var
|
|
45
|
+
var stock_1 = require("../stock");
|
|
46
46
|
exports.IBrokerTopic = types_1.shared.IBrokerTopic;
|
|
47
|
-
exports.route = "".concat(
|
|
47
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "document_header/");
|
|
48
48
|
var repository = {
|
|
49
49
|
findMinified: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
50
|
var response;
|
|
@@ -42,9 +42,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.deleteMany = exports.updateMany = exports.updateData = exports.updateIndexes = exports.update = exports.create = exports.findUnallocatedStock = exports.findByOwnerId = exports.findById = exports.route = exports.IMetadataPlugins = void 0;
|
|
43
43
|
var types_1 = require("@nomalism-com/types");
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
|
-
var
|
|
45
|
+
var stock_1 = require("../stock");
|
|
46
46
|
exports.IMetadataPlugins = types_1.DocumentLine.IMetadataPlugins;
|
|
47
|
-
exports.route = "".concat(
|
|
47
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "document_line/");
|
|
48
48
|
var repository = {
|
|
49
49
|
findByState: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
50
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.deleteInventoryLosses = exports.update = exports.create = exports.findByOwnerId = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "document_line_assoc/");
|
|
46
46
|
var repository = {
|
|
47
47
|
findByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.deleteOne = exports.update = exports.create = exports.findByOwnerId = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "document_line_folder/");
|
|
46
46
|
var repository = {
|
|
47
47
|
findByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.deleteOne = exports.update = exports.create = exports.findMinified = exports.findById = exports.find = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "document_set/");
|
|
46
46
|
var repository = {
|
|
47
47
|
find: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -42,10 +42,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.deleteOne = exports.update = exports.create = exports.findDetailed = exports.findMinified = exports.find = exports.route = exports.documentTypeUserTypes = exports.DocumentTypeUserTypeEnum = void 0;
|
|
43
43
|
var types_1 = require("@nomalism-com/types");
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
|
-
var
|
|
45
|
+
var stock_1 = require("../stock");
|
|
46
46
|
exports.DocumentTypeUserTypeEnum = types_1.DocumentType.DocumentTypeUserTypeEnum;
|
|
47
47
|
exports.documentTypeUserTypes = types_1.DocumentType.documentTypeUserTypes;
|
|
48
|
-
exports.route = "".concat(
|
|
48
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "document_type/");
|
|
49
49
|
var repository = {
|
|
50
50
|
find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
51
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.sendEmailDocument = exports.update = exports.findPaginated = exports.findByOwnerId = exports.findById = exports.deleteOne = exports.create = exports.find = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "external_document_header/");
|
|
46
46
|
var repository = {
|
|
47
47
|
create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.findMinified = exports.find = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "external_document_type/");
|
|
46
46
|
var repository = {
|
|
47
47
|
find: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.validarEntradaMaterial = exports.undoEntradaMaterial = exports.finalizarEntradaMaterial = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "material_entrance/");
|
|
46
46
|
var repository = {
|
|
47
47
|
validarEntradaMaterial: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -42,8 +42,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.create = exports.route = void 0;
|
|
43
43
|
var types_1 = require("@nomalism-com/types");
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
|
-
var
|
|
46
|
-
exports.route = "".concat(
|
|
45
|
+
var stock_1 = require("../stock");
|
|
46
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath).concat(types_1.MoloniRequest.Route, "/");
|
|
47
47
|
var repository = {
|
|
48
48
|
create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
49
|
return __generator(this, function (_a) {
|
|
@@ -42,9 +42,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.unsetProvider = exports.undoProviderOrder = exports.undoEncomendaVA = exports.undoEncomendaStock = exports.setProvider = exports.findStockToOrder = exports.findProvidersWithStockToOrder = exports.conferirEncomendaCliente = exports.route = exports.conferirEncomendaClienteOptions = exports.ConferirEncomendaClienteOptionsEnum = void 0;
|
|
43
43
|
var types_1 = require("@nomalism-com/types");
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
|
-
var
|
|
45
|
+
var stock_1 = require("../stock");
|
|
46
46
|
exports.ConferirEncomendaClienteOptionsEnum = types_1.Order.ConferirEncomendaClienteOptionsEnum, exports.conferirEncomendaClienteOptions = types_1.Order.conferirEncomendaClienteOptions;
|
|
47
|
-
exports.route = "".concat(
|
|
47
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "order/");
|
|
48
48
|
var repository = {
|
|
49
49
|
findStockToOrder: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
50
|
var response;
|
|
@@ -42,8 +42,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.findProductHistory = exports.findProviderProducts = exports.findProviders = exports.route = void 0;
|
|
43
43
|
var types_1 = require("@nomalism-com/types");
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
|
-
var
|
|
46
|
-
exports.route = "".concat(
|
|
45
|
+
var stock_1 = require("../stock");
|
|
46
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath).concat(types_1.OrderManagement.Route, "/");
|
|
47
47
|
var repository = {
|
|
48
48
|
findProviders: function () {
|
|
49
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -41,9 +41,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.getExportCurrentAccountUrl = exports.exportPayments = exports.findSettledMaterialEntranceByDate = exports.exportCurrentAccount = exports.updateDownloadedBatchNumber = exports.findPaymentBatches = exports.findPaymentsNotExported = exports.createProvidersPayments = exports.findSettledMaterialEntranceProviders = exports.findSettledMaterialEntrance = exports.findCurrentAccountByOwnerId = exports.deleteBatch = exports.findById = exports.findByOwnerId = exports.findPaginated = exports.find = exports.publicRoute = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
46
|
-
exports.publicRoute = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "payment/");
|
|
46
|
+
exports.publicRoute = "".concat(stock_1.serviceHostname).concat(stock_1.servicePublicPath, "payment/");
|
|
47
47
|
var repository = {
|
|
48
48
|
find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
49
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.importToClientProposal = exports.findPending = exports.removePlot = exports.update = exports.create = exports.findById = exports.find = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "pre_sale/");
|
|
46
46
|
var repository = {
|
|
47
47
|
find: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.findById = exports.find = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "pre_sale_product/");
|
|
46
46
|
var repository = {
|
|
47
47
|
find: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -42,9 +42,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.conflictFindByOwnerId = exports.conflictDelete = exports.conflictAccept = exports.createSheetFromDocument = exports.importFromSheet = exports.route = exports.IConflictEnum = void 0;
|
|
43
43
|
var types_1 = require("@nomalism-com/types");
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
|
-
var
|
|
45
|
+
var stock_1 = require("../stock");
|
|
46
46
|
exports.IConflictEnum = types_1.PropostaSheets.IConflictEnum;
|
|
47
|
-
exports.route = "".concat(
|
|
47
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "proposta_sheets/");
|
|
48
48
|
var repository = {
|
|
49
49
|
importFromSheet: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
50
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.findByOwnerId = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "provider_current_account/");
|
|
46
46
|
var repository = {
|
|
47
47
|
findByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.purchaseFromProvider = exports.findUnpaidMaterialEntranceProviders = exports.findUnpaidMaterialEntrance = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "purchase/");
|
|
46
46
|
var repository = {
|
|
47
47
|
purchaseFromProvider: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
return __generator(this, function (_a) {
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.findById = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "start_document_header_last_update/");
|
|
46
46
|
var repository = {
|
|
47
47
|
findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.findByLatest = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "vat_validation/");
|
|
46
46
|
var repository = {
|
|
47
47
|
findByLatest: function (nif) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.deleteOne = exports.update = exports.create = exports.findByOwnerId = exports.find = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
|
-
var
|
|
45
|
-
exports.route = "".concat(
|
|
44
|
+
var stock_1 = require("../stock");
|
|
45
|
+
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "workflow/");
|
|
46
46
|
var repository = {
|
|
47
47
|
find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
package/package.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nomalism-com/api",
|
|
3
|
-
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"nomalism",
|
|
7
|
-
"api",
|
|
8
|
-
"types",
|
|
9
|
-
"typescript",
|
|
10
|
-
"helper"
|
|
11
|
-
],
|
|
12
|
-
"version": "0.8.
|
|
13
|
-
"main": "dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"license": "UNLICENSED",
|
|
19
|
-
"homepage": "https://gitlab.com/nomalism-develop/api",
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://gitlab.com/nomalism-develop/api/issues"
|
|
22
|
-
},
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://gitlab.com/nomalism-develop/api.git"
|
|
26
|
-
},
|
|
27
|
-
"scripts": {
|
|
28
|
-
"lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
|
|
29
|
-
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
30
|
-
"start": "tsx --tsconfig ./tsconfig.json src/index.ts",
|
|
31
|
-
"prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/convert-units": "^2.3.5",
|
|
35
|
-
"@types/node": "^18.16.13",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
37
|
-
"@typescript-eslint/parser": "^5.59.6",
|
|
38
|
-
"concurrently": "^8.0.1",
|
|
39
|
-
"eslint": "^8.40.0",
|
|
40
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
-
"eslint-config-prettier": "^8.8.0",
|
|
42
|
-
"eslint-import-resolver-typescript": "^3.5.5",
|
|
43
|
-
"eslint-plugin-import": "^2.27.5",
|
|
44
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
45
|
-
"prettier": "^2.8.8",
|
|
46
|
-
"tsx": "^3.12.7",
|
|
47
|
-
"typescript": "^5.0.4"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.9.
|
|
51
|
-
"axios": "^0.27.2"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@nomalism-com/api",
|
|
3
|
+
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
+
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"nomalism",
|
|
7
|
+
"api",
|
|
8
|
+
"types",
|
|
9
|
+
"typescript",
|
|
10
|
+
"helper"
|
|
11
|
+
],
|
|
12
|
+
"version": "0.8.285",
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"license": "UNLICENSED",
|
|
19
|
+
"homepage": "https://gitlab.com/nomalism-develop/api",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://gitlab.com/nomalism-develop/api/issues"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://gitlab.com/nomalism-develop/api.git"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
|
|
29
|
+
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
30
|
+
"start": "tsx --tsconfig ./tsconfig.json src/index.ts",
|
|
31
|
+
"prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/convert-units": "^2.3.5",
|
|
35
|
+
"@types/node": "^18.16.13",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
37
|
+
"@typescript-eslint/parser": "^5.59.6",
|
|
38
|
+
"concurrently": "^8.0.1",
|
|
39
|
+
"eslint": "^8.40.0",
|
|
40
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
+
"eslint-config-prettier": "^8.8.0",
|
|
42
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
43
|
+
"eslint-plugin-import": "^2.27.5",
|
|
44
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
45
|
+
"prettier": "^2.8.8",
|
|
46
|
+
"tsx": "^3.12.7",
|
|
47
|
+
"typescript": "^5.0.4"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@nomalism-com/types": "^0.9.368",
|
|
51
|
+
"axios": "^0.27.2"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TopMenu as Entity } from '@nomalism-com/types';
|
|
2
|
-
export import IFindByEntityRequest = Entity.IFindByEntityRequest;
|
|
3
|
-
export import IFindByEntityResponse = Entity.IFindByEntityResponse;
|
|
4
|
-
export declare const route: string;
|
|
5
|
-
export declare const findByEntity: (data: Entity.IFindByEntityRequest) => Promise<Entity.IFindByEntityResponse>;
|
|
@@ -1,61 +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.findByEntity = 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, "nav_top/");
|
|
46
|
-
var repository = {
|
|
47
|
-
findByEntity: 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), {
|
|
52
|
-
params: params,
|
|
53
|
-
})];
|
|
54
|
-
case 1:
|
|
55
|
-
response = _a.sent();
|
|
56
|
-
return [2, response.data];
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}); },
|
|
60
|
-
};
|
|
61
|
-
exports.findByEntity = repository.findByEntity;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { shared, WebsiteRequest as Entity } from '@nomalism-com/types';
|
|
2
|
-
export import IState = Entity.IState;
|
|
3
|
-
export import IFindByStateRequest = Entity.IFindByStateRequest;
|
|
4
|
-
export import IFindByStateResponse = Entity.IFindByStateResponse;
|
|
5
|
-
export import IFindOneResponse = Entity.IFindOneResponse;
|
|
6
|
-
export import ICreateRequest = Entity.ICreateRequest;
|
|
7
|
-
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
8
|
-
export import IEntity = Entity.Entity;
|
|
9
|
-
export declare const route: string;
|
|
10
|
-
export declare const findByState: (data: Entity.IFindByStateRequest) => Promise<Entity.IFindByStateResponse[]>, findById: (selector: shared.IFindByIdRequest) => Promise<Entity.IFindOneResponse | null>, create: (data: Entity.ICreateRequest) => Promise<Entity.IFindOneResponse>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<Entity.IFindOneResponse | null>;
|
|
@@ -1,96 +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.update = exports.create = exports.findById = exports.findByState = exports.route = exports.IState = void 0;
|
|
43
|
-
var types_1 = require("@nomalism-com/types");
|
|
44
|
-
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
|
-
var _1 = require(".");
|
|
46
|
-
exports.IState = types_1.WebsiteRequest.IState;
|
|
47
|
-
exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "website_request/");
|
|
48
|
-
var repository = {
|
|
49
|
-
findByState: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
|
-
var response;
|
|
51
|
-
return __generator(this, function (_a) {
|
|
52
|
-
switch (_a.label) {
|
|
53
|
-
case 0: return [4, client_1.default.get("".concat(exports.route), {
|
|
54
|
-
params: params,
|
|
55
|
-
})];
|
|
56
|
-
case 1:
|
|
57
|
-
response = _a.sent();
|
|
58
|
-
return [2, response.data];
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}); },
|
|
62
|
-
findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
|
-
var response;
|
|
64
|
-
return __generator(this, function (_a) {
|
|
65
|
-
switch (_a.label) {
|
|
66
|
-
case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
|
|
67
|
-
case 1:
|
|
68
|
-
response = _a.sent();
|
|
69
|
-
return [2, response.data];
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}); },
|
|
73
|
-
create: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
74
|
-
var response;
|
|
75
|
-
return __generator(this, function (_a) {
|
|
76
|
-
switch (_a.label) {
|
|
77
|
-
case 0: return [4, client_1.default.post("".concat(exports.route), data)];
|
|
78
|
-
case 1:
|
|
79
|
-
response = _a.sent();
|
|
80
|
-
return [2, response.data];
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}); },
|
|
84
|
-
update: function (selector, data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
85
|
-
var response;
|
|
86
|
-
return __generator(this, function (_a) {
|
|
87
|
-
switch (_a.label) {
|
|
88
|
-
case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), data)];
|
|
89
|
-
case 1:
|
|
90
|
-
response = _a.sent();
|
|
91
|
-
return [2, response.data];
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
}); },
|
|
95
|
-
};
|
|
96
|
-
exports.findByState = repository.findByState, exports.findById = repository.findById, exports.create = repository.create, exports.update = repository.update;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|