@stefaninigo/security-client 1.0.2 → 1.0.3

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,14 +1,14 @@
1
- import type { ClientAssignment, ClientAssignmentsControllerCheckPermission200, ClientAssignmentsControllerFindAllParams, CreateClientAssignmentDto, PaginatedResultDto, UpdateClientAssignmentDto } from '../stefaniniGoSecurityAPI.schemas';
1
+ import type { ClientAssignmentsControllerCheckPermission200, ClientAssignmentsControllerCreate201, ClientAssignmentsControllerFindAll200, ClientAssignmentsControllerFindAllParams, ClientAssignmentsControllerFindByClient200, ClientAssignmentsControllerFindByUser200, ClientAssignmentsControllerFindOne200, ClientAssignmentsControllerUpdate200, CreateClientAssignmentDto, UpdateClientAssignmentDto } from '../stefaniniGoSecurityAPI.schemas';
2
2
  import { customInstance } from '../../utils/mutator';
3
3
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
4
4
  export declare const getClientAssignments: () => {
5
- clientAssignmentsControllerCreate: (createClientAssignmentDto: CreateClientAssignmentDto, options?: SecondParameter<typeof customInstance<ClientAssignment>>) => Promise<ClientAssignment>;
6
- clientAssignmentsControllerFindAll: (params?: ClientAssignmentsControllerFindAllParams, options?: SecondParameter<typeof customInstance<PaginatedResultDto>>) => Promise<PaginatedResultDto>;
7
- clientAssignmentsControllerFindByUser: (userId: string, options?: SecondParameter<typeof customInstance<ClientAssignment[]>>) => Promise<ClientAssignment[]>;
8
- clientAssignmentsControllerFindByClient: (clientId: string, options?: SecondParameter<typeof customInstance<ClientAssignment[]>>) => Promise<ClientAssignment[]>;
5
+ clientAssignmentsControllerCreate: (createClientAssignmentDto: CreateClientAssignmentDto, options?: SecondParameter<typeof customInstance<ClientAssignmentsControllerCreate201>>) => Promise<ClientAssignmentsControllerCreate201>;
6
+ clientAssignmentsControllerFindAll: (params?: ClientAssignmentsControllerFindAllParams, options?: SecondParameter<typeof customInstance<ClientAssignmentsControllerFindAll200>>) => Promise<ClientAssignmentsControllerFindAll200>;
7
+ clientAssignmentsControllerFindByUser: (userId: string, options?: SecondParameter<typeof customInstance<ClientAssignmentsControllerFindByUser200>>) => Promise<ClientAssignmentsControllerFindByUser200>;
8
+ clientAssignmentsControllerFindByClient: (clientId: string, options?: SecondParameter<typeof customInstance<ClientAssignmentsControllerFindByClient200>>) => Promise<ClientAssignmentsControllerFindByClient200>;
9
9
  clientAssignmentsControllerCheckPermission: (userId: string, clientId: string, permission: string, options?: SecondParameter<typeof customInstance<ClientAssignmentsControllerCheckPermission200>>) => Promise<ClientAssignmentsControllerCheckPermission200>;
10
- clientAssignmentsControllerFindOne: (id: string, options?: SecondParameter<typeof customInstance<ClientAssignment>>) => Promise<ClientAssignment>;
11
- clientAssignmentsControllerUpdate: (id: string, updateClientAssignmentDto: UpdateClientAssignmentDto, options?: SecondParameter<typeof customInstance<ClientAssignment>>) => Promise<ClientAssignment>;
10
+ clientAssignmentsControllerFindOne: (id: string, options?: SecondParameter<typeof customInstance<ClientAssignmentsControllerFindOne200>>) => Promise<ClientAssignmentsControllerFindOne200>;
11
+ clientAssignmentsControllerUpdate: (id: string, updateClientAssignmentDto: UpdateClientAssignmentDto, options?: SecondParameter<typeof customInstance<ClientAssignmentsControllerUpdate200>>) => Promise<ClientAssignmentsControllerUpdate200>;
12
12
  clientAssignmentsControllerRemove: (id: string, options?: SecondParameter<typeof customInstance<void>>) => Promise<void>;
13
13
  };
14
14
  export type ClientAssignmentsControllerCreateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getClientAssignments>['clientAssignmentsControllerCreate']>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"client-assignments.js","sourceRoot":"","sources":["../../../src/generated/client-assignments/client-assignments.ts"],"names":[],"mappings":";;;AAgBA,iDAAqD;AAM5C,MAAM,oBAAoB,GAAG,GAAG,EAAE;IAK3C,MAAM,iCAAiC,GAAG,CACtC,yBAAoD,EACvD,OAAkE,EAAG,EAAE;QAClE,OAAO,IAAA,wBAAc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AC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,iCAAiC,GAAG,CACtC,EAAU,EACV,yBAAoD,EACvD,OAAkE,EAAG,EAAE;QAClE,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,uBAAuB,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO;YAClD,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,GAAG;YAC/C,IAAI,EAAE,yBAAyB;SAChC,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,iCAAiC,GAAG,CACtC,EAAU,EACb,OAAsD,EAAG,EAAE;QACtD,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,uBAAuB,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ;SACpD,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IACH,OAAO,EAAC,iCAAiC,EAAC,kCAAkC,EAAC,qCAAqC,EAAC,uCAAuC,EAAC,0CAA0C,EAAC,kCAAkC,EAAC,iCAAiC,EAAC,iCAAiC,EAAC,CAAA;AAAA,CAAC,CAAC;AAzGlS,QAAA,oBAAoB,wBAyG8Q"}
1
+ {"version":3,"file":"client-assignments.js","sourceRoot":"","sources":["../../../src/generated/client-assignments/client-assignments.ts"],"names":[],"mappings":";;;AAoBA,iDAAqD;AAM5C,MAAM,oBAAoB,GAAG,GAAG,EAAE;IAK3C,MAAM,iCAAiC,GAAG,CACtC,yBAAoD,EACvD,OAAsF,EAAG,EAAE;QACtF,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM;YAC3C,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,GAAG;YAC/C,IAAI,EAAE,yBAAyB;SAChC,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,kCAAkC,GAAG,CACvC,MAAiD,EACpD,OAAuF,EAAG,EAAE;QACvF,OAAO,IAAA,wBAAc,EACrB,EA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C,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,iCAAiC,GAAG,CACtC,EAAU,EACb,OAAsD,EAAG,EAAE;QACtD,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,uBAAuB,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ;SACpD,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IACH,OAAO,EAAC,iCAAiC,EAAC,kCAAkC,EAAC,qCAAqC,EAAC,uCAAuC,EAAC,0CAA0C,EAAC,kCAAkC,EAAC,iCAAiC,EAAC,iCAAiC,EAAC,CAAA;AAAA,CAAC,CAAC;AAzGlS,QAAA,oBAAoB,wBAyG8Q"}
@@ -1,13 +1,13 @@
1
- import type { CreateProviderClientAssignmentDto, ProviderClientAssignment, ProviderClientAssignmentsControllerFindAllParams, UpdateProviderClientAssignmentDto } from '../stefaniniGoSecurityAPI.schemas';
1
+ import type { CreateProviderClientAssignmentDto, ProviderClientAssignmentsControllerCreate201, ProviderClientAssignmentsControllerFindAll200, ProviderClientAssignmentsControllerFindAllParams, ProviderClientAssignmentsControllerFindByClient200, ProviderClientAssignmentsControllerFindByProvider200, ProviderClientAssignmentsControllerFindOne200, ProviderClientAssignmentsControllerUpdate200, UpdateProviderClientAssignmentDto } from '../stefaniniGoSecurityAPI.schemas';
2
2
  import { customInstance } from '../../utils/mutator';
3
3
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
4
4
  export declare const getProviderClientAssignments: () => {
5
- providerClientAssignmentsControllerCreate: (createProviderClientAssignmentDto: CreateProviderClientAssignmentDto, options?: SecondParameter<typeof customInstance<ProviderClientAssignment>>) => Promise<ProviderClientAssignment>;
6
- providerClientAssignmentsControllerFindAll: (params?: ProviderClientAssignmentsControllerFindAllParams, options?: SecondParameter<typeof customInstance<void>>) => Promise<void>;
7
- providerClientAssignmentsControllerFindByProvider: (providerId: string, options?: SecondParameter<typeof customInstance<ProviderClientAssignment[]>>) => Promise<ProviderClientAssignment[]>;
8
- providerClientAssignmentsControllerFindByClient: (clientId: string, options?: SecondParameter<typeof customInstance<ProviderClientAssignment[]>>) => Promise<ProviderClientAssignment[]>;
9
- providerClientAssignmentsControllerFindOne: (id: string, options?: SecondParameter<typeof customInstance<ProviderClientAssignment>>) => Promise<ProviderClientAssignment>;
10
- providerClientAssignmentsControllerUpdate: (id: string, updateProviderClientAssignmentDto: UpdateProviderClientAssignmentDto, options?: SecondParameter<typeof customInstance<ProviderClientAssignment>>) => Promise<ProviderClientAssignment>;
5
+ providerClientAssignmentsControllerCreate: (createProviderClientAssignmentDto: CreateProviderClientAssignmentDto, options?: SecondParameter<typeof customInstance<ProviderClientAssignmentsControllerCreate201>>) => Promise<ProviderClientAssignmentsControllerCreate201>;
6
+ providerClientAssignmentsControllerFindAll: (params?: ProviderClientAssignmentsControllerFindAllParams, options?: SecondParameter<typeof customInstance<ProviderClientAssignmentsControllerFindAll200>>) => Promise<ProviderClientAssignmentsControllerFindAll200>;
7
+ providerClientAssignmentsControllerFindByProvider: (providerId: string, options?: SecondParameter<typeof customInstance<ProviderClientAssignmentsControllerFindByProvider200>>) => Promise<ProviderClientAssignmentsControllerFindByProvider200>;
8
+ providerClientAssignmentsControllerFindByClient: (clientId: string, options?: SecondParameter<typeof customInstance<ProviderClientAssignmentsControllerFindByClient200>>) => Promise<ProviderClientAssignmentsControllerFindByClient200>;
9
+ providerClientAssignmentsControllerFindOne: (id: string, options?: SecondParameter<typeof customInstance<ProviderClientAssignmentsControllerFindOne200>>) => Promise<ProviderClientAssignmentsControllerFindOne200>;
10
+ providerClientAssignmentsControllerUpdate: (id: string, updateProviderClientAssignmentDto: UpdateProviderClientAssignmentDto, options?: SecondParameter<typeof customInstance<ProviderClientAssignmentsControllerUpdate200>>) => Promise<ProviderClientAssignmentsControllerUpdate200>;
11
11
  providerClientAssignmentsControllerRemove: (id: string, options?: SecondParameter<typeof customInstance<void>>) => Promise<void>;
12
12
  };
13
13
  export type ProviderClientAssignmentsControllerCreateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getProviderClientAssignments>['providerClientAssignmentsControllerCreate']>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"provider-client-assignments.js","sourceRoot":"","sources":["../../../src/generated/provider-client-assignments/provider-client-assignments.ts"],"names":[],"mappings":";;;AAcA,iDAAqD;AAM5C,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAKnD,MAAM,yCAAyC,GAAG,CAC9C,iCAAoE,EACvE,OAA0E,EAAG,EAAE;QAC1E,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,8BAA8B,EAAE,MAAM,EAAE,MAAM;YACpD,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,GAAG;YAC/C,IAAI,EAAE,iCAAiC;SACxC,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,0CAA0C,GAAG,CAC/C,MAAyD,EAC5D,OAAsD,EAAG,EAAE;QACtD,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,8BAA8B,EAAE,MAAM,EAAE,KAAK;YACjD,MAAM;SACT,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,iDAAiD,GAAG,CACtD,UAAkB,EACrB,OAA4E,EAAG,EAAE;QAC5E,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,yCAAyC,UAAU,EAAE,EAAE,MAAM,EAAE,KAAK;SAC3E,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,+CAA+C,GAAG,CACpD,QAAgB,EACnB,OAA4E,EAAG,EAAE;QAC5E,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,uCAAuC,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK;SACvE,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAIL,MAAM,0CAA0C,GAAG,CAC/C,EAAU,EACb,OAA0E,EAAG,EAAE;QAC1E,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,gCAAgC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK;SAC1D,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,yCAAyC,GAAG,CAC9C,EAAU,EACV,iCAAoE,EACvE,OAA0E,EAAG,EAAE;QAC1E,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,gCAAgC,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO;YAC3D,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,GAAG;YAC/C,IAAI,EAAE,iCAAiC;SACxC,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,yCAAyC,GAAG,CAC9C,EAAU,EACb,OAAsD,EAAG,EAAE;QACtD,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,gCAAgC,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ;SAC7D,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IACH,OAAO,EAAC,yCAAyC,EAAC,0CAA0C,EAAC,iDAAiD,EAAC,+CAA+C,EAAC,0CAA0C,EAAC,yCAAyC,EAAC,yCAAyC,EAAC,CAAA;AAAA,CAAC,CAAC;AA1FnT,QAAA,4BAA4B,gCA0FuR"}
1
+ {"version":3,"file":"provider-client-assignments.js","sourceRoot":"","sources":["../../../src/generated/provider-client-assignments/provider-client-assignments.ts"],"names":[],"mappings":";;;AAmBA,iDAAqD;AAM5C,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAKnD,MAAM,yCAAyC,GAAG,CAC9C,iCAAoE,EACvE,OAA8F,EAAG,EAAE;QAC9F,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,8BAA8B,EAAE,MAAM,EAAE,MAAM;YACpD,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,GAAG;YAC/C,IAAI,EAAE,iCAAiC;SACxC,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL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CAAgC,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ;SAC7D,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IACH,OAAO,EAAC,yCAAyC,EAAC,0CAA0C,EAAC,iDAAiD,EAAC,+CAA+C,EAAC,0CAA0C,EAAC,yCAAyC,EAAC,yCAAyC,EAAC,CAAA;AAAA,CAAC,CAAC;AA1FnT,QAAA,4BAA4B,gCA0FuR"}
@@ -1,14 +1,14 @@
1
- import type { CreateProviderDto, PaginatedResultDto, Provider, ProvidersControllerFindAllParams, UpdateProviderDto } from '../stefaniniGoSecurityAPI.schemas';
1
+ import type { CreateProviderDto, ProvidersControllerActivate200, ProvidersControllerCreate201, ProvidersControllerFindAll200, ProvidersControllerFindAllParams, ProvidersControllerFindOne200, ProvidersControllerSuspend200, ProvidersControllerUpdate200, UpdateProviderDto } from '../stefaniniGoSecurityAPI.schemas';
2
2
  import { customInstance } from '../../utils/mutator';
3
3
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
4
4
  export declare const getProviders: () => {
5
- providersControllerCreate: (createProviderDto: CreateProviderDto, options?: SecondParameter<typeof customInstance<Provider>>) => Promise<Provider>;
6
- providersControllerFindAll: (params?: ProvidersControllerFindAllParams, options?: SecondParameter<typeof customInstance<PaginatedResultDto>>) => Promise<PaginatedResultDto>;
7
- providersControllerFindOne: (id: string, options?: SecondParameter<typeof customInstance<Provider>>) => Promise<Provider>;
8
- providersControllerUpdate: (id: string, updateProviderDto: UpdateProviderDto, options?: SecondParameter<typeof customInstance<Provider>>) => Promise<Provider>;
5
+ providersControllerCreate: (createProviderDto: CreateProviderDto, options?: SecondParameter<typeof customInstance<ProvidersControllerCreate201>>) => Promise<ProvidersControllerCreate201>;
6
+ providersControllerFindAll: (params?: ProvidersControllerFindAllParams, options?: SecondParameter<typeof customInstance<ProvidersControllerFindAll200>>) => Promise<ProvidersControllerFindAll200>;
7
+ providersControllerFindOne: (id: string, options?: SecondParameter<typeof customInstance<ProvidersControllerFindOne200>>) => Promise<ProvidersControllerFindOne200>;
8
+ providersControllerUpdate: (id: string, updateProviderDto: UpdateProviderDto, options?: SecondParameter<typeof customInstance<ProvidersControllerUpdate200>>) => Promise<ProvidersControllerUpdate200>;
9
9
  providersControllerRemove: (id: string, options?: SecondParameter<typeof customInstance<void>>) => Promise<void>;
10
- providersControllerSuspend: (id: string, options?: SecondParameter<typeof customInstance<Provider>>) => Promise<Provider>;
11
- providersControllerActivate: (id: string, options?: SecondParameter<typeof customInstance<Provider>>) => Promise<Provider>;
10
+ providersControllerSuspend: (id: string, options?: SecondParameter<typeof customInstance<ProvidersControllerSuspend200>>) => Promise<ProvidersControllerSuspend200>;
11
+ providersControllerActivate: (id: string, options?: SecondParameter<typeof customInstance<ProvidersControllerActivate200>>) => Promise<ProvidersControllerActivate200>;
12
12
  };
13
13
  export type ProvidersControllerCreateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getProviders>['providersControllerCreate']>>>;
14
14
  export type ProvidersControllerFindAllResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getProviders>['providersControllerFindAll']>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/generated/providers/providers.ts"],"names":[],"mappings":";;;AAeA,iDAAqD;AAM5C,MAAM,YAAY,GAAG,GAAG,EAAE;IAKnC,MAAM,yBAAyB,GAAG,CAC9B,iBAAoC,EACvC,OAA0D,EAAG,EAAE;QAC1D,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;YAClC,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,GAAG;YAC/C,IAAI,EAAE,iBAAiB;SACxB,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,0BAA0B,GAAG,CAC/B,MAAyC,EAC5C,OAAoE,EAAG,EAAE;QACpE,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EA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AAyB,GAAG,CAC9B,EAAU,EACb,OAAsD,EAAG,EAAE;QACtD,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ;SAC3C,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,0BAA0B,GAAG,CAC/B,EAAU,EACb,OAA+E,EAAG,EAAE;QAC/E,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO;SAClD,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,2BAA2B,GAAG,CAChC,EAAU,EACb,OAAgF,EAAG,EAAE;QAChF,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO;SACnD,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IACH,OAAO,EAAC,yBAAyB,EAAC,0BAA0B,EAAC,0BAA0B,EAAC,yBAAyB,EAAC,yBAAyB,EAAC,0BAA0B,EAAC,2BAA2B,EAAC,CAAA;AAAA,CAAC,CAAC;AA3FxL,QAAA,YAAY,gBA2F4K"}
@@ -1,3 +1,47 @@
1
+ export interface UserLocation {
2
+ country?: string;
3
+ region?: string;
4
+ province?: string;
5
+ commune?: string;
6
+ address?: string;
7
+ }
8
+ export interface UserProfile {
9
+ dniType?: string;
10
+ dniNumber?: string;
11
+ fullName?: string;
12
+ birthCountry?: string;
13
+ area?: string;
14
+ position?: string;
15
+ location?: UserLocation;
16
+ phone?: string;
17
+ language?: string;
18
+ avatarUrl?: string;
19
+ }
20
+ export type UserRole = typeof UserRole[keyof typeof UserRole];
21
+ export declare const UserRole: {
22
+ readonly root: "root";
23
+ readonly admin: "admin";
24
+ readonly dispatcher: "dispatcher";
25
+ readonly technician: "technician";
26
+ };
27
+ export type UserStatus = typeof UserStatus[keyof typeof UserStatus];
28
+ export declare const UserStatus: {
29
+ readonly active: "active";
30
+ readonly pending: "pending";
31
+ readonly blocked: "blocked";
32
+ };
33
+ export interface User {
34
+ id: string;
35
+ email: string;
36
+ role: UserRole;
37
+ providerId?: string;
38
+ status: UserStatus;
39
+ cognitoSub?: string;
40
+ profile?: UserProfile;
41
+ lastLogin?: string;
42
+ createdAt: string;
43
+ updatedAt: string;
44
+ }
1
45
  export interface UserLocationDto {
2
46
  country?: string;
3
47
  region?: string;
@@ -47,63 +91,6 @@ export interface CreateUserDto {
47
91
  providerId?: string;
48
92
  profile?: UserProfileDto;
49
93
  }
50
- export interface UserLocation {
51
- country?: string;
52
- region?: string;
53
- province?: string;
54
- commune?: string;
55
- address?: string;
56
- }
57
- export interface UserProfile {
58
- dniType?: string;
59
- dniNumber?: string;
60
- fullName?: string;
61
- birthCountry?: string;
62
- area?: string;
63
- position?: string;
64
- location?: UserLocation;
65
- phone?: string;
66
- language?: string;
67
- avatarUrl?: string;
68
- }
69
- export type UserRole = typeof UserRole[keyof typeof UserRole];
70
- export declare const UserRole: {
71
- readonly root: "root";
72
- readonly admin: "admin";
73
- readonly dispatcher: "dispatcher";
74
- readonly technician: "technician";
75
- };
76
- export type UserStatus = typeof UserStatus[keyof typeof UserStatus];
77
- export declare const UserStatus: {
78
- readonly active: "active";
79
- readonly pending: "pending";
80
- readonly blocked: "blocked";
81
- };
82
- export interface User {
83
- id: string;
84
- email: string;
85
- role: UserRole;
86
- providerId?: string;
87
- status: UserStatus;
88
- cognitoSub?: string;
89
- profile?: UserProfile;
90
- lastLogin?: string;
91
- createdAt: string;
92
- updatedAt: string;
93
- }
94
- export interface PaginationDto {
95
- page: number;
96
- limit: number;
97
- total: number;
98
- totalPages: number;
99
- }
100
- export type PaginatedResultDtoDataItem = {
101
- [key: string]: unknown;
102
- };
103
- export interface PaginatedResultDto {
104
- data: PaginatedResultDtoDataItem[];
105
- pagination: PaginationDto;
106
- }
107
94
  export type ChangeRoleDtoNewRole = typeof ChangeRoleDtoNewRole[keyof typeof ChangeRoleDtoNewRole];
108
95
  export declare const ChangeRoleDtoNewRole: {
109
96
  readonly root: "root";
@@ -129,11 +116,6 @@ export interface UpdateUserDto {
129
116
  lastLogin?: string;
130
117
  cognitoSub?: string;
131
118
  }
132
- export interface CreateProviderDto {
133
- name: string;
134
- alias: string;
135
- contactEmail: string;
136
- }
137
119
  export type ProviderStatus = typeof ProviderStatus[keyof typeof ProviderStatus];
138
120
  export declare const ProviderStatus: {
139
121
  readonly active: "active";
@@ -149,6 +131,11 @@ export interface Provider {
149
131
  createdAt: string;
150
132
  updatedAt: string;
151
133
  }
134
+ export interface CreateProviderDto {
135
+ name: string;
136
+ alias: string;
137
+ contactEmail: string;
138
+ }
152
139
  export type UpdateProviderDtoStatus = typeof UpdateProviderDtoStatus[keyof typeof UpdateProviderDtoStatus];
153
140
  export declare const UpdateProviderDtoStatus: {
154
141
  readonly active: "active";
@@ -160,18 +147,6 @@ export interface UpdateProviderDto {
160
147
  contactEmail?: string;
161
148
  status?: UpdateProviderDtoStatus;
162
149
  }
163
- export type CreateClientAssignmentDtoPermission = typeof CreateClientAssignmentDtoPermission[keyof typeof CreateClientAssignmentDtoPermission];
164
- export declare const CreateClientAssignmentDtoPermission: {
165
- readonly read: "read";
166
- readonly write: "write";
167
- readonly admin: "admin";
168
- };
169
- export interface CreateClientAssignmentDto {
170
- userId: string;
171
- clientId: string;
172
- permission: CreateClientAssignmentDtoPermission;
173
- expiresAt?: string;
174
- }
175
150
  export type ClientAssignmentPermission = typeof ClientAssignmentPermission[keyof typeof ClientAssignmentPermission];
176
151
  export declare const ClientAssignmentPermission: {
177
152
  readonly read: "read";
@@ -195,6 +170,18 @@ export interface ClientAssignment {
195
170
  createdAt: string;
196
171
  updatedAt: string;
197
172
  }
173
+ export type CreateClientAssignmentDtoPermission = typeof CreateClientAssignmentDtoPermission[keyof typeof CreateClientAssignmentDtoPermission];
174
+ export declare const CreateClientAssignmentDtoPermission: {
175
+ readonly read: "read";
176
+ readonly write: "write";
177
+ readonly admin: "admin";
178
+ };
179
+ export interface CreateClientAssignmentDto {
180
+ userId: string;
181
+ clientId: string;
182
+ permission: CreateClientAssignmentDtoPermission;
183
+ expiresAt?: string;
184
+ }
198
185
  export type UpdateClientAssignmentDtoPermission = typeof UpdateClientAssignmentDtoPermission[keyof typeof UpdateClientAssignmentDtoPermission];
199
186
  export declare const UpdateClientAssignmentDtoPermission: {
200
187
  readonly read: "read";
@@ -212,16 +199,6 @@ export interface UpdateClientAssignmentDto {
212
199
  expiresAt?: string;
213
200
  status?: UpdateClientAssignmentDtoStatus;
214
201
  }
215
- export type CreateProviderClientAssignmentDtoMetadata = {
216
- [key: string]: unknown;
217
- };
218
- export interface CreateProviderClientAssignmentDto {
219
- providerId: string;
220
- clientId: string;
221
- startDate?: string;
222
- endDate?: string;
223
- metadata?: CreateProviderClientAssignmentDtoMetadata;
224
- }
225
202
  export type ProviderClientAssignmentStatus = typeof ProviderClientAssignmentStatus[keyof typeof ProviderClientAssignmentStatus];
226
203
  export declare const ProviderClientAssignmentStatus: {
227
204
  readonly active: "active";
@@ -243,6 +220,16 @@ export interface ProviderClientAssignment {
243
220
  createdAt: string;
244
221
  updatedAt: string;
245
222
  }
223
+ export type CreateProviderClientAssignmentDtoMetadata = {
224
+ [key: string]: unknown;
225
+ };
226
+ export interface CreateProviderClientAssignmentDto {
227
+ providerId: string;
228
+ clientId: string;
229
+ startDate?: string;
230
+ endDate?: string;
231
+ metadata?: CreateProviderClientAssignmentDtoMetadata;
232
+ }
246
233
  export type UpdateProviderClientAssignmentDtoStatus = typeof UpdateProviderClientAssignmentDtoStatus[keyof typeof UpdateProviderClientAssignmentDtoStatus];
247
234
  export declare const UpdateProviderClientAssignmentDtoStatus: {
248
235
  readonly active: "active";
@@ -281,24 +268,37 @@ export interface ChangePasswordDto {
281
268
  currentPassword: string;
282
269
  newPassword: string;
283
270
  }
284
- export type BootstrapControllerCreateRootUser201User = {
285
- [key: string]: unknown;
286
- };
287
- export type BootstrapControllerCreateRootUser201 = {
288
- user?: BootstrapControllerCreateRootUser201User;
271
+ export type BootstrapControllerCreateRootUser201Message = {
272
+ user?: User;
289
273
  temporaryPassword?: string;
290
274
  message?: string;
291
275
  };
276
+ export type BootstrapControllerCreateRootUser201 = {
277
+ success?: boolean;
278
+ message?: BootstrapControllerCreateRootUser201Message;
279
+ };
292
280
  export type BootstrapControllerDeleteRootUserParams = {
293
281
  email: string;
294
282
  };
295
- export type BootstrapControllerDeleteRootUser204 = {
283
+ export type BootstrapControllerDeleteRootUser204Message = {
296
284
  message?: string;
297
285
  };
298
- export type BootstrapControllerCheckBootstrapStatus200 = {
286
+ export type BootstrapControllerDeleteRootUser204 = {
287
+ success?: boolean;
288
+ message?: BootstrapControllerDeleteRootUser204Message;
289
+ };
290
+ export type BootstrapControllerCheckBootstrapStatus200Message = {
299
291
  needsBootstrap?: boolean;
300
292
  rootUsersCount?: number;
301
293
  };
294
+ export type BootstrapControllerCheckBootstrapStatus200 = {
295
+ success?: boolean;
296
+ message?: BootstrapControllerCheckBootstrapStatus200Message;
297
+ };
298
+ export type UsersControllerCreate201 = {
299
+ success?: boolean;
300
+ message?: User;
301
+ };
302
302
  export type UsersControllerFindAllParams = {
303
303
  page?: number;
304
304
  limit?: number;
@@ -320,21 +320,84 @@ export declare const UsersControllerFindAllStatus: {
320
320
  readonly pending: "pending";
321
321
  readonly blocked: "blocked";
322
322
  };
323
+ export type UsersControllerFindAll200MessagePagination = {
324
+ page?: number;
325
+ limit?: number;
326
+ total?: number;
327
+ totalPages?: number;
328
+ };
329
+ export type UsersControllerFindAll200Message = {
330
+ data?: User[];
331
+ pagination?: UsersControllerFindAll200MessagePagination;
332
+ };
333
+ export type UsersControllerFindAll200 = {
334
+ success?: boolean;
335
+ message?: UsersControllerFindAll200Message;
336
+ };
337
+ export type UsersControllerGetMyProfile200 = {
338
+ success?: boolean;
339
+ message?: User;
340
+ };
323
341
  export type UsersControllerFindByProviderParams = {
324
342
  page?: number;
325
343
  limit?: number;
326
344
  };
345
+ export type UsersControllerFindByProvider200MessagePagination = {
346
+ page?: number;
347
+ limit?: number;
348
+ total?: number;
349
+ totalPages?: number;
350
+ };
351
+ export type UsersControllerFindByProvider200Message = {
352
+ data?: User[];
353
+ pagination?: UsersControllerFindByProvider200MessagePagination;
354
+ };
355
+ export type UsersControllerFindByProvider200 = {
356
+ success?: boolean;
357
+ message?: UsersControllerFindByProvider200Message;
358
+ };
327
359
  export type UsersControllerFindByRoleParams = {
328
360
  providerId?: string;
329
361
  page?: number;
330
362
  limit?: number;
331
363
  };
332
- export type UsersControllerTransferRoot200NewRoot = {
333
- [key: string]: unknown;
364
+ export type UsersControllerFindByRole200MessagePagination = {
365
+ page?: number;
366
+ limit?: number;
367
+ total?: number;
368
+ totalPages?: number;
334
369
  };
335
- export type UsersControllerTransferRoot200 = {
370
+ export type UsersControllerFindByRole200Message = {
371
+ data?: User[];
372
+ pagination?: UsersControllerFindByRole200MessagePagination;
373
+ };
374
+ export type UsersControllerFindByRole200 = {
375
+ success?: boolean;
376
+ message?: UsersControllerFindByRole200Message;
377
+ };
378
+ export type UsersControllerChangeRole200 = {
379
+ success?: boolean;
380
+ message?: User;
381
+ };
382
+ export type UsersControllerTransferRoot200Message = {
336
383
  message?: string;
337
- newRoot?: UsersControllerTransferRoot200NewRoot;
384
+ newRoot?: User;
385
+ };
386
+ export type UsersControllerTransferRoot200 = {
387
+ success?: boolean;
388
+ message?: UsersControllerTransferRoot200Message;
389
+ };
390
+ export type UsersControllerFindOne200 = {
391
+ success?: boolean;
392
+ message?: User;
393
+ };
394
+ export type UsersControllerUpdate200 = {
395
+ success?: boolean;
396
+ message?: User;
397
+ };
398
+ export type ProvidersControllerCreate201 = {
399
+ success?: boolean;
400
+ message?: Provider;
338
401
  };
339
402
  export type ProvidersControllerFindAllParams = {
340
403
  page?: number;
@@ -347,6 +410,40 @@ export declare const ProvidersControllerFindAllStatus: {
347
410
  readonly active: "active";
348
411
  readonly suspended: "suspended";
349
412
  };
413
+ export type ProvidersControllerFindAll200MessagePagination = {
414
+ page?: number;
415
+ limit?: number;
416
+ total?: number;
417
+ totalPages?: number;
418
+ };
419
+ export type ProvidersControllerFindAll200Message = {
420
+ data?: Provider[];
421
+ pagination?: ProvidersControllerFindAll200MessagePagination;
422
+ };
423
+ export type ProvidersControllerFindAll200 = {
424
+ success?: boolean;
425
+ message?: ProvidersControllerFindAll200Message;
426
+ };
427
+ export type ProvidersControllerFindOne200 = {
428
+ success?: boolean;
429
+ message?: Provider;
430
+ };
431
+ export type ProvidersControllerUpdate200 = {
432
+ success?: boolean;
433
+ message?: Provider;
434
+ };
435
+ export type ProvidersControllerSuspend200 = {
436
+ success?: boolean;
437
+ message?: Provider;
438
+ };
439
+ export type ProvidersControllerActivate200 = {
440
+ success?: boolean;
441
+ message?: Provider;
442
+ };
443
+ export type ClientAssignmentsControllerCreate201 = {
444
+ success?: boolean;
445
+ message?: ClientAssignment;
446
+ };
350
447
  export type ClientAssignmentsControllerFindAllParams = {
351
448
  page?: number;
352
449
  limit?: number;
@@ -367,9 +464,47 @@ export declare const ClientAssignmentsControllerFindAllStatus: {
367
464
  readonly suspended: "suspended";
368
465
  readonly expired: "expired";
369
466
  };
370
- export type ClientAssignmentsControllerCheckPermission200 = {
467
+ export type ClientAssignmentsControllerFindAll200MessagePagination = {
468
+ page?: number;
469
+ limit?: number;
470
+ total?: number;
471
+ totalPages?: number;
472
+ };
473
+ export type ClientAssignmentsControllerFindAll200Message = {
474
+ data?: ClientAssignment[];
475
+ pagination?: ClientAssignmentsControllerFindAll200MessagePagination;
476
+ };
477
+ export type ClientAssignmentsControllerFindAll200 = {
478
+ success?: boolean;
479
+ message?: ClientAssignmentsControllerFindAll200Message;
480
+ };
481
+ export type ClientAssignmentsControllerFindByUser200 = {
482
+ success?: boolean;
483
+ message?: ClientAssignment[];
484
+ };
485
+ export type ClientAssignmentsControllerFindByClient200 = {
486
+ success?: boolean;
487
+ message?: ClientAssignment[];
488
+ };
489
+ export type ClientAssignmentsControllerCheckPermission200Message = {
371
490
  hasPermission?: boolean;
372
491
  };
492
+ export type ClientAssignmentsControllerCheckPermission200 = {
493
+ success?: boolean;
494
+ message?: ClientAssignmentsControllerCheckPermission200Message;
495
+ };
496
+ export type ClientAssignmentsControllerFindOne200 = {
497
+ success?: boolean;
498
+ message?: ClientAssignment;
499
+ };
500
+ export type ClientAssignmentsControllerUpdate200 = {
501
+ success?: boolean;
502
+ message?: ClientAssignment;
503
+ };
504
+ export type ProviderClientAssignmentsControllerCreate201 = {
505
+ success?: boolean;
506
+ message?: ProviderClientAssignment;
507
+ };
373
508
  export type ProviderClientAssignmentsControllerFindAllParams = {
374
509
  page?: number;
375
510
  limit?: number;
@@ -383,46 +518,104 @@ export declare const ProviderClientAssignmentsControllerFindAllStatus: {
383
518
  readonly suspended: "suspended";
384
519
  readonly terminated: "terminated";
385
520
  };
386
- export type AuthControllerLogin200UserProfile = {
521
+ export type ProviderClientAssignmentsControllerFindAll200MessagePagination = {
522
+ page?: number;
523
+ limit?: number;
524
+ total?: number;
525
+ totalPages?: number;
526
+ };
527
+ export type ProviderClientAssignmentsControllerFindAll200Message = {
528
+ data?: ProviderClientAssignment[];
529
+ pagination?: ProviderClientAssignmentsControllerFindAll200MessagePagination;
530
+ };
531
+ export type ProviderClientAssignmentsControllerFindAll200 = {
532
+ success?: boolean;
533
+ message?: ProviderClientAssignmentsControllerFindAll200Message;
534
+ };
535
+ export type ProviderClientAssignmentsControllerFindByProvider200 = {
536
+ success?: boolean;
537
+ message?: ProviderClientAssignment[];
538
+ };
539
+ export type ProviderClientAssignmentsControllerFindByClient200 = {
540
+ success?: boolean;
541
+ message?: ProviderClientAssignment[];
542
+ };
543
+ export type ProviderClientAssignmentsControllerFindOne200 = {
544
+ success?: boolean;
545
+ message?: ProviderClientAssignment;
546
+ };
547
+ export type ProviderClientAssignmentsControllerUpdate200 = {
548
+ success?: boolean;
549
+ message?: ProviderClientAssignment;
550
+ };
551
+ export type AuthControllerLogin200MessageUserProfile = {
387
552
  [key: string]: unknown;
388
553
  };
389
- export type AuthControllerLogin200User = {
554
+ export type AuthControllerLogin200MessageUser = {
390
555
  id?: string;
391
556
  email?: string;
392
557
  role?: string;
393
558
  status?: string;
394
- profile?: AuthControllerLogin200UserProfile;
559
+ profile?: AuthControllerLogin200MessageUserProfile;
395
560
  };
396
- export type AuthControllerLogin200 = {
561
+ export type AuthControllerLogin200Message = {
397
562
  accessToken?: string;
398
563
  refreshToken?: string;
399
564
  expiresIn?: number;
400
- user?: AuthControllerLogin200User;
565
+ user?: AuthControllerLogin200MessageUser;
401
566
  };
402
- export type AuthControllerConfirmRegistration200User = {
567
+ export type AuthControllerLogin200 = {
568
+ success?: boolean;
569
+ message?: AuthControllerLogin200Message;
570
+ };
571
+ export type AuthControllerConfirmRegistration200MessageUser = {
403
572
  id?: string;
404
573
  email?: string;
405
574
  role?: string;
406
575
  status?: string;
407
576
  };
577
+ export type AuthControllerConfirmRegistration200Message = {
578
+ message?: string;
579
+ user?: AuthControllerConfirmRegistration200MessageUser;
580
+ };
408
581
  export type AuthControllerConfirmRegistration200 = {
582
+ success?: boolean;
583
+ message?: AuthControllerConfirmRegistration200Message;
584
+ };
585
+ export type AuthControllerForgotPassword200Message = {
409
586
  message?: string;
410
- user?: AuthControllerConfirmRegistration200User;
411
587
  };
412
588
  export type AuthControllerForgotPassword200 = {
589
+ success?: boolean;
590
+ message?: AuthControllerForgotPassword200Message;
591
+ };
592
+ export type AuthControllerResetPassword200Message = {
413
593
  message?: string;
414
594
  };
415
595
  export type AuthControllerResetPassword200 = {
416
- message?: string;
596
+ success?: boolean;
597
+ message?: AuthControllerResetPassword200Message;
417
598
  };
418
- export type AuthControllerRefreshToken200 = {
599
+ export type AuthControllerRefreshToken200Message = {
419
600
  accessToken?: string;
420
601
  refreshToken?: string;
421
602
  expiresIn?: number;
422
603
  };
604
+ export type AuthControllerRefreshToken200 = {
605
+ success?: boolean;
606
+ message?: AuthControllerRefreshToken200Message;
607
+ };
608
+ export type AuthControllerLogout200Message = {
609
+ message?: string;
610
+ };
423
611
  export type AuthControllerLogout200 = {
612
+ success?: boolean;
613
+ message?: AuthControllerLogout200Message;
614
+ };
615
+ export type AuthControllerChangePassword200Message = {
424
616
  message?: string;
425
617
  };
426
618
  export type AuthControllerChangePassword200 = {
427
- message?: string;
619
+ success?: boolean;
620
+ message?: AuthControllerChangePassword200Message;
428
621
  };
@@ -1,12 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProviderClientAssignmentsControllerFindAllStatus = exports.ClientAssignmentsControllerFindAllStatus = exports.ClientAssignmentsControllerFindAllPermission = exports.ProvidersControllerFindAllStatus = exports.UsersControllerFindAllStatus = exports.UsersControllerFindAllRole = exports.UpdateProviderClientAssignmentDtoStatus = exports.ProviderClientAssignmentStatus = exports.UpdateClientAssignmentDtoStatus = exports.UpdateClientAssignmentDtoPermission = exports.ClientAssignmentStatus = exports.ClientAssignmentPermission = exports.CreateClientAssignmentDtoPermission = exports.UpdateProviderDtoStatus = exports.ProviderStatus = exports.UpdateUserDtoStatus = exports.ChangeRoleDtoNewRole = exports.UserStatus = exports.UserRole = exports.CreateUserDtoRole = void 0;
4
- exports.CreateUserDtoRole = {
5
- root: 'root',
6
- admin: 'admin',
7
- dispatcher: 'dispatcher',
8
- technician: 'technician',
9
- };
3
+ exports.ProviderClientAssignmentsControllerFindAllStatus = exports.ClientAssignmentsControllerFindAllStatus = exports.ClientAssignmentsControllerFindAllPermission = exports.ProvidersControllerFindAllStatus = exports.UsersControllerFindAllStatus = exports.UsersControllerFindAllRole = exports.UpdateProviderClientAssignmentDtoStatus = exports.ProviderClientAssignmentStatus = exports.UpdateClientAssignmentDtoStatus = exports.UpdateClientAssignmentDtoPermission = exports.CreateClientAssignmentDtoPermission = exports.ClientAssignmentStatus = exports.ClientAssignmentPermission = exports.UpdateProviderDtoStatus = exports.ProviderStatus = exports.UpdateUserDtoStatus = exports.ChangeRoleDtoNewRole = exports.CreateUserDtoRole = exports.UserStatus = exports.UserRole = void 0;
10
4
  exports.UserRole = {
11
5
  root: 'root',
12
6
  admin: 'admin',
@@ -18,6 +12,12 @@ exports.UserStatus = {
18
12
  pending: 'pending',
19
13
  blocked: 'blocked',
20
14
  };
15
+ exports.CreateUserDtoRole = {
16
+ root: 'root',
17
+ admin: 'admin',
18
+ dispatcher: 'dispatcher',
19
+ technician: 'technician',
20
+ };
21
21
  exports.ChangeRoleDtoNewRole = {
22
22
  root: 'root',
23
23
  admin: 'admin',
@@ -37,11 +37,6 @@ exports.UpdateProviderDtoStatus = {
37
37
  active: 'active',
38
38
  suspended: 'suspended',
39
39
  };
40
- exports.CreateClientAssignmentDtoPermission = {
41
- read: 'read',
42
- write: 'write',
43
- admin: 'admin',
44
- };
45
40
  exports.ClientAssignmentPermission = {
46
41
  read: 'read',
47
42
  write: 'write',
@@ -52,6 +47,11 @@ exports.ClientAssignmentStatus = {
52
47
  suspended: 'suspended',
53
48
  expired: 'expired',
54
49
  };
50
+ exports.CreateClientAssignmentDtoPermission = {
51
+ read: 'read',
52
+ write: 'write',
53
+ admin: 'admin',
54
+ };
55
55
  exports.UpdateClientAssignmentDtoPermission = {
56
56
  read: 'read',
57
57
  write: 'write',
@@ -1 +1 @@
1
- {"version":3,"file":"stefaniniGoSecurityAPI.schemas.js","sourceRoot":"","sources":["../../src/generated/stefaniniGoSecurityAPI.schemas.ts"],"names":[],"mappings":";;;AAiFa,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;CAChB,CAAC;AAwDE,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;CAChB,CAAC;AASE,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAA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B,CAAC;AA2IE,QAAA,0BAA0B,GAAG;IACxC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;CAChB,CAAC;AAME,QAAA,4BAA4B,GAAG;IAC1C,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC;AA4DE,QAAA,gCAAgC,GAAG;IAC9C,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;CACd,CAAC;AAmCE,QAAA,4CAA4C,GAAG;IAC1D,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAC;AAME,QAAA,wCAAwC,GAAG;IACtD,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;CACV,CAAC;AAkBE,QAAA,gDAAgD,GAAG;IAC9D,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;CAChB,CAAC"}
1
+ {"version":3,"file":"stefaniniGoSecurityAPI.schemas.js","sourceRoot":"","sources":["../../src/generated/stefaniniGoSecurityAPI.schemas.ts"],"names":[],"mappings":";;;AAkDa,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;CAChB,CAAC;AASE,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC;AAmGE,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;CAChB,CAAC;AAoBE,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,MAAM;IACZ,KAAK,EA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xB,UAAU,EAAE,YAAY;CAChB,CAAC;AAME,QAAA,4BAA4B,GAAG;IAC1C,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC;AA2IE,QAAA,gCAAgC,GAAG;IAC9C,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;CACd,CAAC;AA6EE,QAAA,4CAA4C,GAAG;IAC1D,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAC;AAME,QAAA,wCAAwC,GAAG;IACtD,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;CACV,CAAC;AAiEE,QAAA,gDAAgD,GAAG;IAC9D,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;CAChB,CAAC"}
@@ -1,16 +1,16 @@
1
- import type { ChangeRoleDto, CreateUserDto, PaginatedResultDto, TransferRootDto, UpdateUserDto, User, UsersControllerFindAllParams, UsersControllerFindByProviderParams, UsersControllerFindByRoleParams, UsersControllerTransferRoot200 } from '../stefaniniGoSecurityAPI.schemas';
1
+ import type { ChangeRoleDto, CreateUserDto, TransferRootDto, UpdateUserDto, UsersControllerChangeRole200, UsersControllerCreate201, UsersControllerFindAll200, UsersControllerFindAllParams, UsersControllerFindByProvider200, UsersControllerFindByProviderParams, UsersControllerFindByRole200, UsersControllerFindByRoleParams, UsersControllerFindOne200, UsersControllerGetMyProfile200, UsersControllerTransferRoot200, UsersControllerUpdate200 } from '../stefaniniGoSecurityAPI.schemas';
2
2
  import { customInstance } from '../../utils/mutator';
3
3
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
4
4
  export declare const getUsers: () => {
5
- usersControllerCreate: (createUserDto: CreateUserDto, options?: SecondParameter<typeof customInstance<User>>) => Promise<User>;
6
- usersControllerFindAll: (params?: UsersControllerFindAllParams, options?: SecondParameter<typeof customInstance<PaginatedResultDto>>) => Promise<PaginatedResultDto>;
7
- usersControllerGetMyProfile: (options?: SecondParameter<typeof customInstance<User>>) => Promise<User>;
8
- usersControllerFindByProvider: (providerId: string, params?: UsersControllerFindByProviderParams, options?: SecondParameter<typeof customInstance<PaginatedResultDto>>) => Promise<PaginatedResultDto>;
9
- usersControllerFindByRole: (role: "root" | "admin" | "dispatcher" | "technician", params?: UsersControllerFindByRoleParams, options?: SecondParameter<typeof customInstance<PaginatedResultDto>>) => Promise<PaginatedResultDto>;
10
- usersControllerChangeRole: (id: string, changeRoleDto: ChangeRoleDto, options?: SecondParameter<typeof customInstance<User>>) => Promise<User>;
5
+ usersControllerCreate: (createUserDto: CreateUserDto, options?: SecondParameter<typeof customInstance<UsersControllerCreate201>>) => Promise<UsersControllerCreate201>;
6
+ usersControllerFindAll: (params?: UsersControllerFindAllParams, options?: SecondParameter<typeof customInstance<UsersControllerFindAll200>>) => Promise<UsersControllerFindAll200>;
7
+ usersControllerGetMyProfile: (options?: SecondParameter<typeof customInstance<UsersControllerGetMyProfile200>>) => Promise<UsersControllerGetMyProfile200>;
8
+ usersControllerFindByProvider: (providerId: string, params?: UsersControllerFindByProviderParams, options?: SecondParameter<typeof customInstance<UsersControllerFindByProvider200>>) => Promise<UsersControllerFindByProvider200>;
9
+ usersControllerFindByRole: (role: "root" | "admin" | "dispatcher" | "technician", params?: UsersControllerFindByRoleParams, options?: SecondParameter<typeof customInstance<UsersControllerFindByRole200>>) => Promise<UsersControllerFindByRole200>;
10
+ usersControllerChangeRole: (id: string, changeRoleDto: ChangeRoleDto, options?: SecondParameter<typeof customInstance<UsersControllerChangeRole200>>) => Promise<UsersControllerChangeRole200>;
11
11
  usersControllerTransferRoot: (id: string, transferRootDto: TransferRootDto, options?: SecondParameter<typeof customInstance<UsersControllerTransferRoot200>>) => Promise<UsersControllerTransferRoot200>;
12
- usersControllerFindOne: (id: string, options?: SecondParameter<typeof customInstance<User>>) => Promise<User>;
13
- usersControllerUpdate: (id: string, updateUserDto: UpdateUserDto, options?: SecondParameter<typeof customInstance<User>>) => Promise<User>;
12
+ usersControllerFindOne: (id: string, options?: SecondParameter<typeof customInstance<UsersControllerFindOne200>>) => Promise<UsersControllerFindOne200>;
13
+ usersControllerUpdate: (id: string, updateUserDto: UpdateUserDto, options?: SecondParameter<typeof customInstance<UsersControllerUpdate200>>) => Promise<UsersControllerUpdate200>;
14
14
  usersControllerRemove: (id: string, options?: SecondParameter<typeof customInstance<void>>) => Promise<void>;
15
15
  };
16
16
  export type UsersControllerCreateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getUsers>['usersControllerCreate']>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/generated/users/users.ts"],"names":[],"mappings":";;;AAoBA,iDAAqD;AAM5C,MAAM,QAAQ,GAAG,GAAG,EAAE;IAK/B,MAAM,qBAAqB,GAAG,CAC1B,aAA4B,EAC/B,OAAsD,EAAG,EAAE;QACtD,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM;YAC9B,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,GAAG;YAC/C,IAAI,EAAE,aAAa;SACpB,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,sBAAsB,GAAG,CAC3B,MAAqC,EACxC,OAAoE,EAAG,EAAE;QACpE,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK;YAC3B,MAAM;SACT,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,2BAA2B,GAAG,CAEnC,OAAsD,EAAG,EAAE;QACtD,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK;SACjC,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,6BAA6B,GAAG,CAClC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AAE,eAAe;SACtB,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,sBAAsB,GAAG,CAC3B,EAAU,EACb,OAA2E,EAAG,EAAE;QAC3E,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK;SACpC,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,qBAAqB,GAAG,CAC1B,EAAU,EACV,aAA4B,EAC/B,OAA0E,EAAG,EAAE;QAC1E,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO;YACrC,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,GAAG;YAC/C,IAAI,EAAE,aAAa;SACpB,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IAKL,MAAM,qBAAqB,GAAG,CAC1B,EAAU,EACb,OAAsD,EAAG,EAAE;QACtD,OAAO,IAAA,wBAAc,EACrB,EAAC,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ;SACvC,EACC,OAAO,CAAC,CAAC;IACX,CAAC,CAAA;IACH,OAAO,EAAC,qBAAqB,EAAC,sBAAsB,EAAC,2BAA2B,EAAC,6BAA6B,EAAC,yBAAyB,EAAC,yBAAyB,EAAC,2BAA2B,EAAC,sBAAsB,EAAC,qBAAqB,EAAC,qBAAqB,EAAC,CAAA;AAAA,CAAC,CAAC;AAnKvP,QAAA,QAAQ,YAmK+O"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stefaninigo/security-client",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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",