b2m-utils 0.0.260 → 0.0.262
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/build/consts/index.d.ts +2 -0
- package/build/enums/ExportCteColumnEnum.d.ts +30 -0
- package/build/enums/index.d.ts +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.esm.js +65 -1
- package/build/index.esm.js.gz +0 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +65 -0
- package/build/index.js.gz +0 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -86,6 +86,38 @@ exports.DomainTypeEnum = void 0;
|
|
|
86
86
|
DomainTypeEnum[DomainTypeEnum["CARRIER"] = 7] = "CARRIER";
|
|
87
87
|
})(exports.DomainTypeEnum || (exports.DomainTypeEnum = {}));
|
|
88
88
|
|
|
89
|
+
exports.ExportCteColumn = void 0;
|
|
90
|
+
(function (ExportCteColumn) {
|
|
91
|
+
ExportCteColumn["CARRIER"] = "carrier";
|
|
92
|
+
ExportCteColumn["NUMBER"] = "number";
|
|
93
|
+
ExportCteColumn["EMISSION_DATE"] = "emissionDate";
|
|
94
|
+
ExportCteColumn["CTE_TYPE"] = "cteType";
|
|
95
|
+
ExportCteColumn["ORIGIN_CITY"] = "originCity";
|
|
96
|
+
ExportCteColumn["DESTINATION_CITY"] = "destinationCity";
|
|
97
|
+
ExportCteColumn["ORIGIN_STATE"] = "originState";
|
|
98
|
+
ExportCteColumn["DESTINATION_STATE"] = "destinationState";
|
|
99
|
+
ExportCteColumn["FREIGHT_VALUE"] = "freightValue";
|
|
100
|
+
ExportCteColumn["AUDITED_VALUE"] = "auditedValue";
|
|
101
|
+
ExportCteColumn["APPROVED_VALUE"] = "approvedValue";
|
|
102
|
+
ExportCteColumn["STATUS"] = "status";
|
|
103
|
+
ExportCteColumn["WEIGHT"] = "weight";
|
|
104
|
+
ExportCteColumn["CUBED_WEIGHT"] = "cubedWeight";
|
|
105
|
+
ExportCteColumn["TAXED_WEIGHT"] = "taxedWeight";
|
|
106
|
+
ExportCteColumn["COMMODITY_VALUE"] = "commodityValue";
|
|
107
|
+
ExportCteColumn["MODAL"] = "modal";
|
|
108
|
+
ExportCteColumn["RATECARD_MODAL"] = "ratecardModal";
|
|
109
|
+
ExportCteColumn["VEHICLE_TYPE"] = "vehicleType";
|
|
110
|
+
ExportCteColumn["SERVICE_TYPE"] = "serviceType";
|
|
111
|
+
ExportCteColumn["SENDER_NAME"] = "senderName";
|
|
112
|
+
ExportCteColumn["SENDER_CNPJ"] = "senderCnpj";
|
|
113
|
+
ExportCteColumn["RECIPIENT_NAME"] = "recipientName";
|
|
114
|
+
ExportCteColumn["RECIPIENT_CNPJ"] = "recipientCnpj";
|
|
115
|
+
ExportCteColumn["ICMS_VALUE"] = "icmsValue";
|
|
116
|
+
ExportCteColumn["PIS_VALUE"] = "pisValue";
|
|
117
|
+
ExportCteColumn["COFINS_VALUE"] = "cofinsValue";
|
|
118
|
+
ExportCteColumn["TAGS"] = "tags";
|
|
119
|
+
})(exports.ExportCteColumn || (exports.ExportCteColumn = {}));
|
|
120
|
+
|
|
89
121
|
exports.FeeCalculationTypeEnum = void 0;
|
|
90
122
|
(function (FeeCalculationTypeEnum) {
|
|
91
123
|
FeeCalculationTypeEnum[FeeCalculationTypeEnum["FIXED"] = 1] = "FIXED";
|
|
@@ -235,6 +267,38 @@ exports.TrackProcessProviderTypeEnum = void 0;
|
|
|
235
267
|
TrackProcessProviderTypeEnum[TrackProcessProviderTypeEnum["OTHERS"] = 5] = "OTHERS";
|
|
236
268
|
})(exports.TrackProcessProviderTypeEnum || (exports.TrackProcessProviderTypeEnum = {}));
|
|
237
269
|
|
|
270
|
+
var _a;
|
|
271
|
+
var EXPORT_CTE_COLUMN_LABELS = (_a = {},
|
|
272
|
+
_a[exports.ExportCteColumn.CARRIER] = 'Transportadora',
|
|
273
|
+
_a[exports.ExportCteColumn.NUMBER] = 'Número do CTE',
|
|
274
|
+
_a[exports.ExportCteColumn.EMISSION_DATE] = 'Data de Emissão',
|
|
275
|
+
_a[exports.ExportCteColumn.CTE_TYPE] = 'Tipo de CTE',
|
|
276
|
+
_a[exports.ExportCteColumn.ORIGIN_CITY] = 'Cidade de Origem',
|
|
277
|
+
_a[exports.ExportCteColumn.DESTINATION_CITY] = 'Cidade de Destino',
|
|
278
|
+
_a[exports.ExportCteColumn.ORIGIN_STATE] = 'Estado de Origem',
|
|
279
|
+
_a[exports.ExportCteColumn.DESTINATION_STATE] = 'Estado de Destino',
|
|
280
|
+
_a[exports.ExportCteColumn.FREIGHT_VALUE] = 'Valor do Frete',
|
|
281
|
+
_a[exports.ExportCteColumn.AUDITED_VALUE] = 'Valor Auditado',
|
|
282
|
+
_a[exports.ExportCteColumn.APPROVED_VALUE] = 'Valor Aprovado',
|
|
283
|
+
_a[exports.ExportCteColumn.STATUS] = 'Status',
|
|
284
|
+
_a[exports.ExportCteColumn.WEIGHT] = 'Peso',
|
|
285
|
+
_a[exports.ExportCteColumn.CUBED_WEIGHT] = 'Peso Cubado',
|
|
286
|
+
_a[exports.ExportCteColumn.TAXED_WEIGHT] = 'Peso Taxado',
|
|
287
|
+
_a[exports.ExportCteColumn.COMMODITY_VALUE] = 'Valor da Mercadoria',
|
|
288
|
+
_a[exports.ExportCteColumn.MODAL] = 'Modal',
|
|
289
|
+
_a[exports.ExportCteColumn.RATECARD_MODAL] = 'Modal do Tarifário',
|
|
290
|
+
_a[exports.ExportCteColumn.VEHICLE_TYPE] = 'Tipo de Veículo',
|
|
291
|
+
_a[exports.ExportCteColumn.SERVICE_TYPE] = 'Tipo de Serviço',
|
|
292
|
+
_a[exports.ExportCteColumn.SENDER_NAME] = 'Remetente',
|
|
293
|
+
_a[exports.ExportCteColumn.SENDER_CNPJ] = 'CNPJ Remetente',
|
|
294
|
+
_a[exports.ExportCteColumn.RECIPIENT_NAME] = 'Destinatário',
|
|
295
|
+
_a[exports.ExportCteColumn.RECIPIENT_CNPJ] = 'CNPJ Destinatário',
|
|
296
|
+
_a[exports.ExportCteColumn.ICMS_VALUE] = 'Valor ICMS',
|
|
297
|
+
_a[exports.ExportCteColumn.PIS_VALUE] = 'Valor PIS',
|
|
298
|
+
_a[exports.ExportCteColumn.COFINS_VALUE] = 'Valor COFINS',
|
|
299
|
+
_a[exports.ExportCteColumn.TAGS] = 'Etiquetas',
|
|
300
|
+
_a);
|
|
301
|
+
|
|
238
302
|
var getRatecardFromCte = function (cte) {
|
|
239
303
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
240
304
|
var ratecard = null;
|
|
@@ -7759,6 +7823,7 @@ var setFormattedDatesInObjects = function (objectFormat) { return __awaiter(void
|
|
|
7759
7823
|
});
|
|
7760
7824
|
}); };
|
|
7761
7825
|
|
|
7826
|
+
exports.EXPORT_CTE_COLUMN_LABELS = EXPORT_CTE_COLUMN_LABELS;
|
|
7762
7827
|
exports.applyRedeliveryMultiplier = applyRedeliveryMultiplier;
|
|
7763
7828
|
exports.calculateFee = calculateFee;
|
|
7764
7829
|
exports.calculateIcms = calculateIcms;
|
package/build/index.js.gz
CHANGED
|
Binary file
|