@vulog/aima-config 1.1.4 → 1.1.6

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 CHANGED
@@ -23,7 +23,9 @@ 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
+ declare const getCitiesAllFranchises: (client: Client) => Promise<(City & {
27
+ fleetId: string;
28
+ })[]>;
27
29
 
28
30
  type Service = {
29
31
  id: string;
@@ -38,7 +40,9 @@ type Service = {
38
40
  [key: string]: any;
39
41
  };
40
42
  declare const getServices: (client: Client) => Promise<Service[]>;
41
- declare const getServicesAllFranchises: (client: Client) => Promise<Service[]>;
43
+ declare const getServicesAllFranchises: (client: Client) => Promise<(Service & {
44
+ fleetId: string;
45
+ })[]>;
42
46
 
43
47
  type FleetConf = {
44
48
  triggerSubscriptionPaymentInHours: number;
package/dist/index.d.ts CHANGED
@@ -23,7 +23,9 @@ 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
+ declare const getCitiesAllFranchises: (client: Client) => Promise<(City & {
27
+ fleetId: string;
28
+ })[]>;
27
29
 
28
30
  type Service = {
29
31
  id: string;
@@ -38,7 +40,9 @@ type Service = {
38
40
  [key: string]: any;
39
41
  };
40
42
  declare const getServices: (client: Client) => Promise<Service[]>;
41
- declare const getServicesAllFranchises: (client: Client) => Promise<Service[]>;
43
+ declare const getServicesAllFranchises: (client: Client) => Promise<(Service & {
44
+ fleetId: string;
45
+ })[]>;
42
46
 
43
47
  type FleetConf = {
44
48
  triggerSubscriptionPaymentInHours: number;
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ var getCities = async (client) => {
35
35
  );
36
36
  };
37
37
  var getCitiesAllFranchises = async (client) => {
38
- return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities`).then(({ data }) => data.map(({ fleetId, ...city }) => city));
38
+ return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities`).then(({ data }) => data);
39
39
  };
40
40
 
41
41
  // src/getServices.ts
@@ -45,7 +45,7 @@ var getServices = async (client) => {
45
45
  );
46
46
  };
47
47
  var getServicesAllFranchises = async (client) => {
48
- return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/services`).then(({ data }) => data.map(({ fleetId, ...service }) => service));
48
+ return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/services`).then(({ data }) => data);
49
49
  };
50
50
 
51
51
  // src/getFleetConf.ts
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var getCities = async (client) => {
5
5
  );
6
6
  };
7
7
  var getCitiesAllFranchises = async (client) => {
8
- return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities`).then(({ data }) => data.map(({ fleetId, ...city }) => city));
8
+ return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities`).then(({ data }) => data);
9
9
  };
10
10
 
11
11
  // src/getServices.ts
@@ -15,7 +15,7 @@ var getServices = async (client) => {
15
15
  );
16
16
  };
17
17
  var getServicesAllFranchises = async (client) => {
18
- return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/services`).then(({ data }) => data.map(({ fleetId, ...service }) => service));
18
+ return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/services`).then(({ data }) => data);
19
19
  };
20
20
 
21
21
  // src/getFleetConf.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulog/aima-config",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -18,23 +18,10 @@
18
18
  ],
19
19
  "author": "Vulog",
20
20
  "license": "ISC",
21
- "devDependencies": {
22
- "@types/node": "^22.10.1",
23
- "eslint-config-airbnb-base": "^15.0.0",
24
- "eslint-config-airbnb-typescript": "^18.0.0",
25
- "eslint-config-prettier": "^9.1.0",
26
- "eslint-plugin-import": "^2.31.0",
27
- "eslint-plugin-prettier": "^5.2.1",
28
- "eslint-plugin-unused-imports": "^4.1.4",
29
- "prettier": "^3.4.1",
30
- "tsup": "^8.3.5",
31
- "typescript": "^5.7.2",
32
- "vitest": "^2.1.8"
33
- },
34
21
  "peerDependencies": {
35
- "@vulog/aima-client": "1.1.4",
36
- "@vulog/aima-core": "1.1.4",
37
- "zod": "^3.23.8"
22
+ "@vulog/aima-client": "1.1.6",
23
+ "@vulog/aima-core": "1.1.6",
24
+ "zod": "^3.24.1"
38
25
  },
39
26
  "description": ""
40
27
  }
package/src/getCities.ts CHANGED
@@ -37,12 +37,18 @@ export const getCities = async (client: Client): Promise<City[]> => {
37
37
  );
38
38
  };
39
39
 
40
- export const getCitiesAllFranchises = async (client: Client): Promise<City[]> => {
40
+ export const getCitiesAllFranchises = async (
41
+ client: Client
42
+ ): Promise<
43
+ (City & {
44
+ fleetId: string;
45
+ })[]
46
+ > => {
41
47
  return client
42
48
  .get<
43
49
  (City & {
44
50
  fleetId: string;
45
51
  })[]
46
52
  >(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities`)
47
- .then(({ data }) => data.map(({ fleetId, ...city }) => city as City));
53
+ .then(({ data }) => data);
48
54
  };
@@ -36,12 +36,18 @@ export const getServices = async (client: Client): Promise<Service[]> => {
36
36
  );
37
37
  };
38
38
 
39
- export const getServicesAllFranchises = async (client: Client): Promise<Service[]> => {
39
+ export const getServicesAllFranchises = async (
40
+ client: Client
41
+ ): Promise<
42
+ (Service & {
43
+ fleetId: string;
44
+ })[]
45
+ > => {
40
46
  return client
41
47
  .get<
42
48
  (Service & {
43
49
  fleetId: string;
44
50
  })[]
45
51
  >(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/services`)
46
- .then(({ data }) => data.map(({ fleetId, ...service }) => service as Service));
52
+ .then(({ data }) => data);
47
53
  };