@vulog/aima-config 1.1.2 → 1.1.4
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.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +12 -2
- package/dist/index.mjs +9 -1
- package/package.json +3 -3
- package/src/index.ts +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -23,6 +23,7 @@ type City = {
|
|
|
23
23
|
[key: string]: any;
|
|
24
24
|
};
|
|
25
25
|
declare const getCities: (client: Client) => Promise<City[]>;
|
|
26
|
+
declare const getCitiesAllFranchises: (client: Client) => Promise<City[]>;
|
|
26
27
|
|
|
27
28
|
type Service = {
|
|
28
29
|
id: string;
|
|
@@ -37,6 +38,7 @@ type Service = {
|
|
|
37
38
|
[key: string]: any;
|
|
38
39
|
};
|
|
39
40
|
declare const getServices: (client: Client) => Promise<Service[]>;
|
|
41
|
+
declare const getServicesAllFranchises: (client: Client) => Promise<Service[]>;
|
|
40
42
|
|
|
41
43
|
type FleetConf = {
|
|
42
44
|
triggerSubscriptionPaymentInHours: number;
|
|
@@ -44,4 +46,4 @@ type FleetConf = {
|
|
|
44
46
|
};
|
|
45
47
|
declare const getFleetConf: (client: Client) => Promise<FleetConf>;
|
|
46
48
|
|
|
47
|
-
export { type City, type FleetConf, type Service, getCities, getFleetConf, getServices };
|
|
49
|
+
export { type City, type FleetConf, type Service, getCities, getCitiesAllFranchises, getFleetConf, getServices, getServicesAllFranchises };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ type City = {
|
|
|
23
23
|
[key: string]: any;
|
|
24
24
|
};
|
|
25
25
|
declare const getCities: (client: Client) => Promise<City[]>;
|
|
26
|
+
declare const getCitiesAllFranchises: (client: Client) => Promise<City[]>;
|
|
26
27
|
|
|
27
28
|
type Service = {
|
|
28
29
|
id: string;
|
|
@@ -37,6 +38,7 @@ type Service = {
|
|
|
37
38
|
[key: string]: any;
|
|
38
39
|
};
|
|
39
40
|
declare const getServices: (client: Client) => Promise<Service[]>;
|
|
41
|
+
declare const getServicesAllFranchises: (client: Client) => Promise<Service[]>;
|
|
40
42
|
|
|
41
43
|
type FleetConf = {
|
|
42
44
|
triggerSubscriptionPaymentInHours: number;
|
|
@@ -44,4 +46,4 @@ type FleetConf = {
|
|
|
44
46
|
};
|
|
45
47
|
declare const getFleetConf: (client: Client) => Promise<FleetConf>;
|
|
46
48
|
|
|
47
|
-
export { type City, type FleetConf, type Service, getCities, getFleetConf, getServices };
|
|
49
|
+
export { type City, type FleetConf, type Service, getCities, getCitiesAllFranchises, getFleetConf, getServices, getServicesAllFranchises };
|
package/dist/index.js
CHANGED
|
@@ -21,8 +21,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
23
|
getCities: () => getCities,
|
|
24
|
+
getCitiesAllFranchises: () => getCitiesAllFranchises,
|
|
24
25
|
getFleetConf: () => getFleetConf,
|
|
25
|
-
getServices: () => getServices
|
|
26
|
+
getServices: () => getServices,
|
|
27
|
+
getServicesAllFranchises: () => getServicesAllFranchises
|
|
26
28
|
});
|
|
27
29
|
module.exports = __toCommonJS(src_exports);
|
|
28
30
|
|
|
@@ -32,6 +34,9 @@ var getCities = async (client) => {
|
|
|
32
34
|
({ data }) => data.filter((city) => city.fleetId === client.clientOptions.fleetId).map(({ fleetId, ...city }) => city)
|
|
33
35
|
);
|
|
34
36
|
};
|
|
37
|
+
var getCitiesAllFranchises = async (client) => {
|
|
38
|
+
return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities`).then(({ data }) => data.map(({ fleetId, ...city }) => city));
|
|
39
|
+
};
|
|
35
40
|
|
|
36
41
|
// src/getServices.ts
|
|
37
42
|
var getServices = async (client) => {
|
|
@@ -39,6 +44,9 @@ var getServices = async (client) => {
|
|
|
39
44
|
({ data }) => data.filter((service) => service.fleetId === client.clientOptions.fleetId).map(({ fleetId, ...service }) => service)
|
|
40
45
|
);
|
|
41
46
|
};
|
|
47
|
+
var getServicesAllFranchises = async (client) => {
|
|
48
|
+
return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/services`).then(({ data }) => data.map(({ fleetId, ...service }) => service));
|
|
49
|
+
};
|
|
42
50
|
|
|
43
51
|
// src/getFleetConf.ts
|
|
44
52
|
var getFleetConf = async (client) => {
|
|
@@ -47,6 +55,8 @@ var getFleetConf = async (client) => {
|
|
|
47
55
|
// Annotate the CommonJS export names for ESM import in node:
|
|
48
56
|
0 && (module.exports = {
|
|
49
57
|
getCities,
|
|
58
|
+
getCitiesAllFranchises,
|
|
50
59
|
getFleetConf,
|
|
51
|
-
getServices
|
|
60
|
+
getServices,
|
|
61
|
+
getServicesAllFranchises
|
|
52
62
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -4,6 +4,9 @@ var getCities = async (client) => {
|
|
|
4
4
|
({ data }) => data.filter((city) => city.fleetId === client.clientOptions.fleetId).map(({ fleetId, ...city }) => city)
|
|
5
5
|
);
|
|
6
6
|
};
|
|
7
|
+
var getCitiesAllFranchises = async (client) => {
|
|
8
|
+
return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities`).then(({ data }) => data.map(({ fleetId, ...city }) => city));
|
|
9
|
+
};
|
|
7
10
|
|
|
8
11
|
// src/getServices.ts
|
|
9
12
|
var getServices = async (client) => {
|
|
@@ -11,6 +14,9 @@ var getServices = async (client) => {
|
|
|
11
14
|
({ data }) => data.filter((service) => service.fleetId === client.clientOptions.fleetId).map(({ fleetId, ...service }) => service)
|
|
12
15
|
);
|
|
13
16
|
};
|
|
17
|
+
var getServicesAllFranchises = async (client) => {
|
|
18
|
+
return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/services`).then(({ data }) => data.map(({ fleetId, ...service }) => service));
|
|
19
|
+
};
|
|
14
20
|
|
|
15
21
|
// src/getFleetConf.ts
|
|
16
22
|
var getFleetConf = async (client) => {
|
|
@@ -18,6 +24,8 @@ var getFleetConf = async (client) => {
|
|
|
18
24
|
};
|
|
19
25
|
export {
|
|
20
26
|
getCities,
|
|
27
|
+
getCitiesAllFranchises,
|
|
21
28
|
getFleetConf,
|
|
22
|
-
getServices
|
|
29
|
+
getServices,
|
|
30
|
+
getServicesAllFranchises
|
|
23
31
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vulog/aima-config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"vitest": "^2.1.8"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@vulog/aima-client": "1.1.
|
|
36
|
-
"@vulog/aima-core": "1.1.
|
|
35
|
+
"@vulog/aima-client": "1.1.4",
|
|
36
|
+
"@vulog/aima-core": "1.1.4",
|
|
37
37
|
"zod": "^3.23.8"
|
|
38
38
|
},
|
|
39
39
|
"description": ""
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { getCities } from './getCities';
|
|
1
|
+
export { getCities, getCitiesAllFranchises } from './getCities';
|
|
2
2
|
export type { City } from './getCities';
|
|
3
|
-
export { getServices } from './getServices';
|
|
3
|
+
export { getServices, getServicesAllFranchises } from './getServices';
|
|
4
4
|
export type { Service } from './getServices';
|
|
5
5
|
export { getFleetConf } from './getFleetConf';
|
|
6
6
|
export type { FleetConf } from './getFleetConf';
|