@tagsamurai/fats-api-services 1.0.0-alpha.231 → 1.0.0-alpha.233
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/api-services.es.js +13 -8
- package/api-services.system.js +13 -7
- package/main.d.ts +1 -1
- package/package.json +1 -1
package/api-services.es.js
CHANGED
|
@@ -42,7 +42,7 @@ const queryParamsStringfy = (data) => {
|
|
|
42
42
|
});
|
|
43
43
|
return assignedData;
|
|
44
44
|
};
|
|
45
|
-
const getImageURL
|
|
45
|
+
const getImageURL = (name, width, height) => {
|
|
46
46
|
if (!name) return;
|
|
47
47
|
const BASE_URL = getBaseURL("APP_API");
|
|
48
48
|
const filePath = name.startsWith("http") ? name : `${BASE_URL}/utility/v2/files/${name.replace(/^\/+/, "")}`;
|
|
@@ -56,12 +56,6 @@ const getImageURL$1 = (name, width, height) => {
|
|
|
56
56
|
}
|
|
57
57
|
return filePath;
|
|
58
58
|
};
|
|
59
|
-
const getImageURL = (name) => {
|
|
60
|
-
if (!name) return;
|
|
61
|
-
const BASE_URL = getBaseURL();
|
|
62
|
-
const filePath = name.startsWith("http") ? name : `${BASE_URL}/file-manager/v2/files/${name}`;
|
|
63
|
-
return filePath;
|
|
64
|
-
};
|
|
65
59
|
const getAssetsFile = async (file, type = "excel") => {
|
|
66
60
|
const response = await fetch(
|
|
67
61
|
`${getBaseURL("APP_ASSETS_URL")}/${type}/${file}`
|
|
@@ -906,6 +900,7 @@ const AuthServices$1 = {
|
|
|
906
900
|
}
|
|
907
901
|
};
|
|
908
902
|
const API$h = createAxiosInstance({
|
|
903
|
+
env: "APP_TAGSAMURAI_API",
|
|
909
904
|
prefix: "/settings-attribute/v2/asset-name"
|
|
910
905
|
});
|
|
911
906
|
const AssetNameServices = {
|
|
@@ -929,6 +924,7 @@ const AssetNameServices = {
|
|
|
929
924
|
}
|
|
930
925
|
};
|
|
931
926
|
const API$g = createAxiosInstance({
|
|
927
|
+
env: "APP_TAGSAMURAI_API",
|
|
932
928
|
prefix: "/audit/v2"
|
|
933
929
|
});
|
|
934
930
|
const AuditServices = {
|
|
@@ -945,6 +941,7 @@ const AuditServices = {
|
|
|
945
941
|
}
|
|
946
942
|
};
|
|
947
943
|
const API$f = createAxiosInstance({
|
|
944
|
+
env: "APP_TAGSAMURAI_API",
|
|
948
945
|
prefix: "/settings-attribute/v2/brands"
|
|
949
946
|
});
|
|
950
947
|
const BrandServices = {
|
|
@@ -1016,6 +1013,7 @@ const CountryStateServices = {
|
|
|
1016
1013
|
}
|
|
1017
1014
|
};
|
|
1018
1015
|
const API$c = createAxiosInstance({
|
|
1016
|
+
env: "APP_TAGSAMURAI_API",
|
|
1019
1017
|
prefix: "/dashboard/v2/dashboard"
|
|
1020
1018
|
});
|
|
1021
1019
|
const DashboardServices = {
|
|
@@ -1122,6 +1120,7 @@ const I18nService = {
|
|
|
1122
1120
|
}
|
|
1123
1121
|
};
|
|
1124
1122
|
const API$9 = createAxiosInstance({
|
|
1123
|
+
env: "APP_TAGSAMURAI_API",
|
|
1125
1124
|
prefix: "/settings-attribute/v2/models"
|
|
1126
1125
|
});
|
|
1127
1126
|
const ModelTypeServices = {
|
|
@@ -1139,6 +1138,7 @@ const NotificationApprovalServices = {
|
|
|
1139
1138
|
}
|
|
1140
1139
|
};
|
|
1141
1140
|
const API$7 = createAxiosInstance({
|
|
1141
|
+
env: "APP_TAGSAMURAI_API",
|
|
1142
1142
|
prefix: "/iot/v2/reader"
|
|
1143
1143
|
});
|
|
1144
1144
|
const ReaderServices = {
|
|
@@ -1168,6 +1168,7 @@ const ReaderServices = {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
};
|
|
1170
1170
|
const API$6 = createAxiosInstance({
|
|
1171
|
+
env: "APP_TAGSAMURAI_API",
|
|
1171
1172
|
prefix: "/repair/v2"
|
|
1172
1173
|
});
|
|
1173
1174
|
const RepairServices = {
|
|
@@ -1185,6 +1186,7 @@ const RepairServices = {
|
|
|
1185
1186
|
}
|
|
1186
1187
|
};
|
|
1187
1188
|
const API$5 = createAxiosInstance({
|
|
1189
|
+
env: "APP_TAGSAMURAI_API",
|
|
1188
1190
|
prefix: "/routine/v2"
|
|
1189
1191
|
});
|
|
1190
1192
|
const RoutineServices = {
|
|
@@ -1199,6 +1201,7 @@ const RoutineServices = {
|
|
|
1199
1201
|
}
|
|
1200
1202
|
};
|
|
1201
1203
|
const API$4 = createAxiosInstance({
|
|
1204
|
+
env: "APP_TAGSAMURAI_API",
|
|
1202
1205
|
prefix: "/routine/v2"
|
|
1203
1206
|
});
|
|
1204
1207
|
const ServiceCenterServices = {
|
|
@@ -1247,6 +1250,7 @@ const SessionLogServices = {
|
|
|
1247
1250
|
}
|
|
1248
1251
|
};
|
|
1249
1252
|
const API$2 = createAxiosInstance({
|
|
1253
|
+
env: "APP_TAGSAMURAI_API",
|
|
1250
1254
|
prefix: "/tag/v2"
|
|
1251
1255
|
});
|
|
1252
1256
|
const TAGServices = {
|
|
@@ -1339,6 +1343,7 @@ const TAGServices = {
|
|
|
1339
1343
|
}
|
|
1340
1344
|
};
|
|
1341
1345
|
const API$1 = createAxiosInstance({
|
|
1346
|
+
env: "APP_TAGSAMURAI_API",
|
|
1342
1347
|
prefix: "/tracking/v2/tracking"
|
|
1343
1348
|
});
|
|
1344
1349
|
const MissingServices = {
|
|
@@ -1362,6 +1367,7 @@ const MissingServices = {
|
|
|
1362
1367
|
}
|
|
1363
1368
|
};
|
|
1364
1369
|
const API = createAxiosInstance({
|
|
1370
|
+
env: "APP_TAGSAMURAI_API",
|
|
1365
1371
|
prefix: "/settings-attribute/v2/transaction-settings"
|
|
1366
1372
|
});
|
|
1367
1373
|
const TransactionSettingServices = {
|
|
@@ -1418,6 +1424,5 @@ export {
|
|
|
1418
1424
|
getAssetsFile,
|
|
1419
1425
|
getBaseURL,
|
|
1420
1426
|
getImageURL,
|
|
1421
|
-
getImageURL$1 as getImageURLGo,
|
|
1422
1427
|
queryParamsStringfy
|
|
1423
1428
|
};
|
package/api-services.system.js
CHANGED
|
@@ -49,7 +49,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
49
49
|
});
|
|
50
50
|
return assignedData;
|
|
51
51
|
});
|
|
52
|
-
const getImageURL
|
|
52
|
+
const getImageURL = exports("getImageURL", (name, width, height) => {
|
|
53
53
|
if (!name) return;
|
|
54
54
|
const BASE_URL = getBaseURL("APP_API");
|
|
55
55
|
const filePath = name.startsWith("http") ? name : `${BASE_URL}/utility/v2/files/${name.replace(/^\/+/, "")}`;
|
|
@@ -63,12 +63,6 @@ System.register(["axios"], function(exports, module) {
|
|
|
63
63
|
}
|
|
64
64
|
return filePath;
|
|
65
65
|
});
|
|
66
|
-
const getImageURL = exports("getImageURL", (name) => {
|
|
67
|
-
if (!name) return;
|
|
68
|
-
const BASE_URL = getBaseURL();
|
|
69
|
-
const filePath = name.startsWith("http") ? name : `${BASE_URL}/file-manager/v2/files/${name}`;
|
|
70
|
-
return filePath;
|
|
71
|
-
});
|
|
72
66
|
const getAssetsFile = exports("getAssetsFile", async (file, type = "excel") => {
|
|
73
67
|
const response = await fetch(
|
|
74
68
|
`${getBaseURL("APP_ASSETS_URL")}/${type}/${file}`
|
|
@@ -913,6 +907,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
913
907
|
}
|
|
914
908
|
});
|
|
915
909
|
const API$h = createAxiosInstance({
|
|
910
|
+
env: "APP_TAGSAMURAI_API",
|
|
916
911
|
prefix: "/settings-attribute/v2/asset-name"
|
|
917
912
|
});
|
|
918
913
|
const AssetNameServices = exports("AssetNameServices", {
|
|
@@ -936,6 +931,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
936
931
|
}
|
|
937
932
|
});
|
|
938
933
|
const API$g = createAxiosInstance({
|
|
934
|
+
env: "APP_TAGSAMURAI_API",
|
|
939
935
|
prefix: "/audit/v2"
|
|
940
936
|
});
|
|
941
937
|
const AuditServices = exports("AuditServices", {
|
|
@@ -952,6 +948,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
952
948
|
}
|
|
953
949
|
});
|
|
954
950
|
const API$f = createAxiosInstance({
|
|
951
|
+
env: "APP_TAGSAMURAI_API",
|
|
955
952
|
prefix: "/settings-attribute/v2/brands"
|
|
956
953
|
});
|
|
957
954
|
const BrandServices = exports("BrandServices", {
|
|
@@ -1023,6 +1020,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1023
1020
|
}
|
|
1024
1021
|
});
|
|
1025
1022
|
const API$c = createAxiosInstance({
|
|
1023
|
+
env: "APP_TAGSAMURAI_API",
|
|
1026
1024
|
prefix: "/dashboard/v2/dashboard"
|
|
1027
1025
|
});
|
|
1028
1026
|
const DashboardServices = exports("DashboardServices", {
|
|
@@ -1129,6 +1127,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1129
1127
|
}
|
|
1130
1128
|
});
|
|
1131
1129
|
const API$9 = createAxiosInstance({
|
|
1130
|
+
env: "APP_TAGSAMURAI_API",
|
|
1132
1131
|
prefix: "/settings-attribute/v2/models"
|
|
1133
1132
|
});
|
|
1134
1133
|
const ModelTypeServices = exports("ModelTypeServices", {
|
|
@@ -1146,6 +1145,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1146
1145
|
}
|
|
1147
1146
|
});
|
|
1148
1147
|
const API$7 = createAxiosInstance({
|
|
1148
|
+
env: "APP_TAGSAMURAI_API",
|
|
1149
1149
|
prefix: "/iot/v2/reader"
|
|
1150
1150
|
});
|
|
1151
1151
|
const ReaderServices = exports("ReaderServices", {
|
|
@@ -1175,6 +1175,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
});
|
|
1177
1177
|
const API$6 = createAxiosInstance({
|
|
1178
|
+
env: "APP_TAGSAMURAI_API",
|
|
1178
1179
|
prefix: "/repair/v2"
|
|
1179
1180
|
});
|
|
1180
1181
|
const RepairServices = exports("RepairServices", {
|
|
@@ -1192,6 +1193,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1192
1193
|
}
|
|
1193
1194
|
});
|
|
1194
1195
|
const API$5 = createAxiosInstance({
|
|
1196
|
+
env: "APP_TAGSAMURAI_API",
|
|
1195
1197
|
prefix: "/routine/v2"
|
|
1196
1198
|
});
|
|
1197
1199
|
const RoutineServices = exports("RoutineServices", {
|
|
@@ -1206,6 +1208,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1206
1208
|
}
|
|
1207
1209
|
});
|
|
1208
1210
|
const API$4 = createAxiosInstance({
|
|
1211
|
+
env: "APP_TAGSAMURAI_API",
|
|
1209
1212
|
prefix: "/routine/v2"
|
|
1210
1213
|
});
|
|
1211
1214
|
const ServiceCenterServices = exports("ServiceCenterServices", {
|
|
@@ -1254,6 +1257,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1254
1257
|
}
|
|
1255
1258
|
});
|
|
1256
1259
|
const API$2 = createAxiosInstance({
|
|
1260
|
+
env: "APP_TAGSAMURAI_API",
|
|
1257
1261
|
prefix: "/tag/v2"
|
|
1258
1262
|
});
|
|
1259
1263
|
const TAGServices = exports("TAGServices", {
|
|
@@ -1346,6 +1350,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1346
1350
|
}
|
|
1347
1351
|
});
|
|
1348
1352
|
const API$1 = createAxiosInstance({
|
|
1353
|
+
env: "APP_TAGSAMURAI_API",
|
|
1349
1354
|
prefix: "/tracking/v2/tracking"
|
|
1350
1355
|
});
|
|
1351
1356
|
const MissingServices = exports("TrackingServices", {
|
|
@@ -1369,6 +1374,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1369
1374
|
}
|
|
1370
1375
|
});
|
|
1371
1376
|
const API = createAxiosInstance({
|
|
1377
|
+
env: "APP_TAGSAMURAI_API",
|
|
1372
1378
|
prefix: "/settings-attribute/v2/transaction-settings"
|
|
1373
1379
|
});
|
|
1374
1380
|
const TransactionSettingServices = exports("TransactionSettingServices", {
|
package/main.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { getImageURL as getImageURL, getBaseURL, getAssetsFile, queryParamsStringfy, } from './src/utils';
|
|
2
2
|
export { default as LogServices } from './src/services/log.service';
|
|
3
3
|
export { default as AssetServices } from './src/services/asset.service';
|
|
4
4
|
export { default as MissingServices } from './src/services/missing.service';
|
package/package.json
CHANGED