@vulog/aima-config 1.2.46 → 1.2.47

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.cjs CHANGED
@@ -8,6 +8,11 @@ const getCitiesAllFranchises = async (client) => {
8
8
  return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities`).then(({ data }) => data);
9
9
  };
10
10
  //#endregion
11
+ //#region src/getCityById.ts
12
+ const getCity = async (client, id) => {
13
+ return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities/${id}`).then(({ data }) => data);
14
+ };
15
+ //#endregion
11
16
  //#region src/getServices.ts
12
17
  const getServices = async (client) => {
13
18
  return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/services`).then(({ data }) => data.filter((service) => service.fleetId === client.clientOptions.fleetId).map(({ fleetId: _, ...service }) => service));
@@ -67,6 +72,7 @@ const getPaymentParameters = async (client, serviceId, modelId, strict) => {
67
72
  exports.addLabel = addLabel;
68
73
  exports.getCities = getCities;
69
74
  exports.getCitiesAllFranchises = getCitiesAllFranchises;
75
+ exports.getCity = getCity;
70
76
  exports.getFleetConf = getFleetConf;
71
77
  exports.getLabels = getLabels;
72
78
  exports.getPaymentParameters = getPaymentParameters;
package/dist/index.d.cts CHANGED
@@ -54,6 +54,9 @@ declare const getCitiesAllFranchises: (client: Client) => Promise<(City & {
54
54
  fleetId: string;
55
55
  })[]>;
56
56
  //#endregion
57
+ //#region src/getCityById.d.ts
58
+ declare const getCity: (client: Client, id: string) => Promise<City[]>;
59
+ //#endregion
57
60
  //#region src/getServices.d.ts
58
61
  declare const getServices: (client: Client) => Promise<Service[]>;
59
62
  declare const getServicesAllFranchises: (client: Client) => Promise<(Service & {
@@ -81,4 +84,4 @@ declare const removeLabel: (client: Client, labelId: number, cascade?: boolean)
81
84
  //#region src/getPaymentParameters.d.ts
82
85
  declare const getPaymentParameters: (client: Client, serviceId?: string, modelId?: string, strict?: string) => Promise<PaymentParameters[] | null>;
83
86
  //#endregion
84
- export { City, FleetConf, Label, PaymentParameters, Service, addLabel, getCities, getCitiesAllFranchises, getFleetConf, getLabels, getPaymentParameters, getServices, getServicesAllFranchises, removeLabel };
87
+ export { City, FleetConf, Label, PaymentParameters, Service, addLabel, getCities, getCitiesAllFranchises, getCity, getFleetConf, getLabels, getPaymentParameters, getServices, getServicesAllFranchises, removeLabel };
package/dist/index.d.mts CHANGED
@@ -54,6 +54,9 @@ declare const getCitiesAllFranchises: (client: Client) => Promise<(City & {
54
54
  fleetId: string;
55
55
  })[]>;
56
56
  //#endregion
57
+ //#region src/getCityById.d.ts
58
+ declare const getCity: (client: Client, id: string) => Promise<City[]>;
59
+ //#endregion
57
60
  //#region src/getServices.d.ts
58
61
  declare const getServices: (client: Client) => Promise<Service[]>;
59
62
  declare const getServicesAllFranchises: (client: Client) => Promise<(Service & {
@@ -81,4 +84,4 @@ declare const removeLabel: (client: Client, labelId: number, cascade?: boolean)
81
84
  //#region src/getPaymentParameters.d.ts
82
85
  declare const getPaymentParameters: (client: Client, serviceId?: string, modelId?: string, strict?: string) => Promise<PaymentParameters[] | null>;
83
86
  //#endregion
84
- export { City, FleetConf, Label, PaymentParameters, Service, addLabel, getCities, getCitiesAllFranchises, getFleetConf, getLabels, getPaymentParameters, getServices, getServicesAllFranchises, removeLabel };
87
+ export { City, FleetConf, Label, PaymentParameters, Service, addLabel, getCities, getCitiesAllFranchises, getCity, getFleetConf, getLabels, getPaymentParameters, getServices, getServicesAllFranchises, removeLabel };
package/dist/index.mjs CHANGED
@@ -7,6 +7,11 @@ const getCitiesAllFranchises = async (client) => {
7
7
  return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities`).then(({ data }) => data);
8
8
  };
9
9
  //#endregion
10
+ //#region src/getCityById.ts
11
+ const getCity = async (client, id) => {
12
+ return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/cities/${id}`).then(({ data }) => data);
13
+ };
14
+ //#endregion
10
15
  //#region src/getServices.ts
11
16
  const getServices = async (client) => {
12
17
  return client.get(`/boapi/proxy/user/fleets/${client.clientOptions.fleetId}/services`).then(({ data }) => data.filter((service) => service.fleetId === client.clientOptions.fleetId).map(({ fleetId: _, ...service }) => service));
@@ -63,4 +68,4 @@ const getPaymentParameters = async (client, serviceId, modelId, strict) => {
63
68
  return client.get(url).then(({ data }) => data);
64
69
  };
65
70
  //#endregion
66
- export { addLabel, getCities, getCitiesAllFranchises, getFleetConf, getLabels, getPaymentParameters, getServices, getServicesAllFranchises, removeLabel };
71
+ export { addLabel, getCities, getCitiesAllFranchises, getCity, getFleetConf, getLabels, getPaymentParameters, getServices, getServicesAllFranchises, removeLabel };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vulog/aima-config",
3
3
  "type": "module",
4
- "version": "1.2.46",
4
+ "version": "1.2.47",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.cts",
@@ -32,8 +32,8 @@
32
32
  "author": "Vulog",
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
- "@vulog/aima-client": "1.2.46",
36
- "@vulog/aima-core": "1.2.46"
35
+ "@vulog/aima-client": "1.2.47",
36
+ "@vulog/aima-core": "1.2.47"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "zod": "^4.3.6"
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './getCities';
2
+ export * from './getCityById';
2
3
  export * from './getServices';
3
4
  export * from './getFleetConf';
4
5
  export * from './label';