@stefaninigo/security-client 1.1.2 → 1.2.1

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.
@@ -1,7 +1,7 @@
1
1
  import type { CreateLocationTrackDto, DailyRoute, LocationTrackResponseDto, LocationTrackingControllerGetLocationsParams, LocationTrackingControllerGetTechniciansLastLocationParams, LocationTrackingControllerGetUserLocationsParams, TicketRoute } from '../stefaniniGoServiceAPI.schemas';
2
2
  import { customInstance } from '../../utils/mutator';
3
3
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
4
- export declare const getLocationTracking: () => {
4
+ export declare const getLocationTrackingDeprecated: () => {
5
5
  locationTrackingControllerTrackLocation: (createLocationTrackDto: CreateLocationTrackDto, options?: SecondParameter<typeof customInstance<LocationTrackResponseDto>>) => Promise<LocationTrackResponseDto>;
6
6
  locationTrackingControllerGetLocations: (params?: LocationTrackingControllerGetLocationsParams, options?: SecondParameter<typeof customInstance<void>>) => Promise<void>;
7
7
  locationTrackingControllerGetDailyRoute: (userId: string, date: string, options?: SecondParameter<typeof customInstance<DailyRoute>>) => Promise<DailyRoute>;
@@ -10,11 +10,11 @@ export declare const getLocationTracking: () => {
10
10
  locationTrackingControllerGetUserLocations: (userId: string, params?: LocationTrackingControllerGetUserLocationsParams, options?: SecondParameter<typeof customInstance<void>>) => Promise<void>;
11
11
  locationTrackingControllerGetTechniciansLastLocation: (params?: LocationTrackingControllerGetTechniciansLastLocationParams, options?: SecondParameter<typeof customInstance<void>>) => Promise<void>;
12
12
  };
13
- export type LocationTrackingControllerTrackLocationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTracking>['locationTrackingControllerTrackLocation']>>>;
14
- export type LocationTrackingControllerGetLocationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTracking>['locationTrackingControllerGetLocations']>>>;
15
- export type LocationTrackingControllerGetDailyRouteResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTracking>['locationTrackingControllerGetDailyRoute']>>>;
16
- export type LocationTrackingControllerGetTicketRouteResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTracking>['locationTrackingControllerGetTicketRoute']>>>;
17
- export type LocationTrackingControllerGetLastLocationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTracking>['locationTrackingControllerGetLastLocation']>>>;
18
- export type LocationTrackingControllerGetUserLocationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTracking>['locationTrackingControllerGetUserLocations']>>>;
19
- export type LocationTrackingControllerGetTechniciansLastLocationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTracking>['locationTrackingControllerGetTechniciansLastLocation']>>>;
13
+ export type LocationTrackingControllerTrackLocationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTrackingDeprecated>['locationTrackingControllerTrackLocation']>>>;
14
+ export type LocationTrackingControllerGetLocationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTrackingDeprecated>['locationTrackingControllerGetLocations']>>>;
15
+ export type LocationTrackingControllerGetDailyRouteResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTrackingDeprecated>['locationTrackingControllerGetDailyRoute']>>>;
16
+ export type LocationTrackingControllerGetTicketRouteResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTrackingDeprecated>['locationTrackingControllerGetTicketRoute']>>>;
17
+ export type LocationTrackingControllerGetLastLocationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTrackingDeprecated>['locationTrackingControllerGetLastLocation']>>>;
18
+ export type LocationTrackingControllerGetUserLocationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTrackingDeprecated>['locationTrackingControllerGetUserLocations']>>>;
19
+ export type LocationTrackingControllerGetTechniciansLastLocationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLocationTrackingDeprecated>['locationTrackingControllerGetTechniciansLastLocation']>>>;
20
20
  export {};
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLocationTracking = void 0;
3
+ exports.getLocationTrackingDeprecated = void 0;
4
4
  const mutator_1 = require("../../utils/mutator");
5
- const getLocationTracking = () => {
5
+ const getLocationTrackingDeprecated = () => {
6
6
  const locationTrackingControllerTrackLocation = (createLocationTrackDto, options) => {
7
7
  return (0, mutator_1.customInstance)({ url: `/location-tracking`, method: 'POST',
8
8
  headers: { 'Content-Type': 'application/json', },
@@ -38,5 +38,5 @@ const getLocationTracking = () => {
38
38
  };
39
39
  return { locationTrackingControllerTrackLocation, locationTrackingControllerGetLocations, locationTrackingControllerGetDailyRoute, locationTrackingControllerGetTicketRoute, locationTrackingControllerGetLastLocation, locationTrackingControllerGetUserLocations, locationTrackingControllerGetTechniciansLastLocation };
40
40
  };
41
- exports.getLocationTracking = getLocationTracking;
42
- //# sourceMappingURL=location-tracking.js.map
41
+ exports.getLocationTrackingDeprecated = getLocationTrackingDeprecated;
42
+ //# sourceMappingURL=location-tracking-deprecated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-tracking-deprecated.js","sourceRoot":"","sources":["../../../src/generated/location-tracking-deprecated/location-tracking-deprecated.ts"],"names":[],"mappings":";;;AAiBA,iDAAqD;AAM5C,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAMpD,MAAM,uCAAuC,GAAG,CAC5C,sBAA8C,EACjD,OAA0E,EAAG,EAAE;QAC1E,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM;YAC1C,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,GAAG;YAC/C,IAAI,EAAE,sBAAsB;SAC7B,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAML,MAAM,sCAAsC,GAAG,CAC3C,MAAqD,EACxD,OAAsD,EAAG,EAAE;QACtD,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,oBAAoB,EAAE,M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AA0C,EAAC,oDAAoD,EAAC,CAAA;AAAA,CAAC,CAAC;AAnGvS,QAAA,6BAA6B,iCAmG0Q"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stefaninigo/security-client",
3
- "version": "1.1.2",
3
+ "version": "1.2.1",
4
4
  "description": "StefaniniGo Security Client SDK - Guards, decorators and HTTP client for authentication and authorization",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"location-tracking.js","sourceRoot":"","sources":["../../../src/generated/location-tracking/location-tracking.ts"],"names":[],"mappings":";;;AAiBA,iDAAqD;AAM5C,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAK1C,MAAM,uCAAuC,GAAG,CAC5C,sBAA8C,EACjD,OAA0E,EAAG,EAAE;QAC1E,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM;YAC1C,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,GAAG;YAC/C,IAAI,EAAE,sBAAsB;SAC7B,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,sCAAsC,GAAG,CAC3C,MAAqD,EACxD,OAAsD,EAAG,EAAE;QACtD,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,oBAAoB,EAAE,MAAM,EAAE,KAAK;YACvC,MAAM;SACT,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,uCAAuC,GAAG,CAC5C,MAAc,EACd,IAAY,EACf,OAA4D,EAAG,EAAE;QAC5D,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,kCAAkC,MAAM,IAAI,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK;SACxE,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,wCAAwC,GAAG,CAC7C,QAAgB,EACnB,OAA6D,EAAG,EAAE;QAC7D,O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