@makana-cl/portal-internal-client 1.2.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.
- package/README.md +404 -0
- package/dist/client/apollo-client.d.ts +25 -0
- package/dist/client/apollo-client.d.ts.map +1 -0
- package/dist/client/apollo-client.js +93 -0
- package/dist/client/apollo-client.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js/client/apollo-client.d.ts +25 -0
- package/dist/index.esm.js/client/apollo-client.d.ts.map +1 -0
- package/dist/index.esm.js/client/apollo-client.js +90 -0
- package/dist/index.esm.js/client/apollo-client.js.map +1 -0
- package/dist/index.esm.js/index.d.ts +22 -0
- package/dist/index.esm.js/index.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/client/apollo-client.d.ts +25 -0
- package/dist/index.esm.js/index.esm.js.tmp/client/apollo-client.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/client/apollo-client.js +90 -0
- package/dist/index.esm.js/index.esm.js.tmp/client/apollo-client.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/index.d.ts +22 -0
- package/dist/index.esm.js/index.esm.js.tmp/index.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/index.js +21 -0
- package/dist/index.esm.js/index.esm.js.tmp/index.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/businesses.d.ts +37 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/businesses.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/businesses.js +82 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/businesses.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/index.d.ts +5 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/index.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/index.js +5 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/index.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/searchBusinesses.d.ts +64 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/searchBusinesses.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/searchBusinesses.js +97 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/searchBusinesses.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/users.d.ts +51 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/users.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/users.js +138 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/users.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/usersLight.d.ts +63 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/usersLight.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/usersLight.js +90 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/usersLight.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/business.d.ts +20 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/business.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/business.js +2 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/business.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/common.d.ts +45 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/common.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/common.js +2 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/common.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/department.d.ts +6 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/department.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/department.js +2 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/department.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/group.d.ts +9 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/group.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/group.js +2 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/group.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/index.d.ts +6 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/index.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/index.js +6 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/index.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/user.d.ts +61 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/user.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/user.js +7 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/user.js.map +1 -0
- package/dist/index.esm.js/index.js +21 -0
- package/dist/index.esm.js/index.js.map +1 -0
- package/dist/index.esm.js/queries/businesses.d.ts +37 -0
- package/dist/index.esm.js/queries/businesses.d.ts.map +1 -0
- package/dist/index.esm.js/queries/businesses.js +82 -0
- package/dist/index.esm.js/queries/businesses.js.map +1 -0
- package/dist/index.esm.js/queries/index.d.ts +5 -0
- package/dist/index.esm.js/queries/index.d.ts.map +1 -0
- package/dist/index.esm.js/queries/index.js +5 -0
- package/dist/index.esm.js/queries/index.js.map +1 -0
- package/dist/index.esm.js/queries/searchBusinesses.d.ts +64 -0
- package/dist/index.esm.js/queries/searchBusinesses.d.ts.map +1 -0
- package/dist/index.esm.js/queries/searchBusinesses.js +97 -0
- package/dist/index.esm.js/queries/searchBusinesses.js.map +1 -0
- package/dist/index.esm.js/queries/users.d.ts +51 -0
- package/dist/index.esm.js/queries/users.d.ts.map +1 -0
- package/dist/index.esm.js/queries/users.js +138 -0
- package/dist/index.esm.js/queries/users.js.map +1 -0
- package/dist/index.esm.js/queries/usersLight.d.ts +63 -0
- package/dist/index.esm.js/queries/usersLight.d.ts.map +1 -0
- package/dist/index.esm.js/queries/usersLight.js +90 -0
- package/dist/index.esm.js/queries/usersLight.js.map +1 -0
- package/dist/index.esm.js/types/business.d.ts +20 -0
- package/dist/index.esm.js/types/business.d.ts.map +1 -0
- package/dist/index.esm.js/types/business.js +2 -0
- package/dist/index.esm.js/types/business.js.map +1 -0
- package/dist/index.esm.js/types/common.d.ts +45 -0
- package/dist/index.esm.js/types/common.d.ts.map +1 -0
- package/dist/index.esm.js/types/common.js +2 -0
- package/dist/index.esm.js/types/common.js.map +1 -0
- package/dist/index.esm.js/types/department.d.ts +6 -0
- package/dist/index.esm.js/types/department.d.ts.map +1 -0
- package/dist/index.esm.js/types/department.js +2 -0
- package/dist/index.esm.js/types/department.js.map +1 -0
- package/dist/index.esm.js/types/group.d.ts +9 -0
- package/dist/index.esm.js/types/group.d.ts.map +1 -0
- package/dist/index.esm.js/types/group.js +2 -0
- package/dist/index.esm.js/types/group.js.map +1 -0
- package/dist/index.esm.js/types/index.d.ts +6 -0
- package/dist/index.esm.js/types/index.d.ts.map +1 -0
- package/dist/index.esm.js/types/index.js +6 -0
- package/dist/index.esm.js/types/index.js.map +1 -0
- package/dist/index.esm.js/types/user.d.ts +61 -0
- package/dist/index.esm.js/types/user.d.ts.map +1 -0
- package/dist/index.esm.js/types/user.js +7 -0
- package/dist/index.esm.js/types/user.js.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/dist/queries/businesses.d.ts +37 -0
- package/dist/queries/businesses.d.ts.map +1 -0
- package/dist/queries/businesses.js +86 -0
- package/dist/queries/businesses.js.map +1 -0
- package/dist/queries/index.d.ts +5 -0
- package/dist/queries/index.d.ts.map +1 -0
- package/dist/queries/index.js +21 -0
- package/dist/queries/index.js.map +1 -0
- package/dist/queries/searchBusinesses.d.ts +64 -0
- package/dist/queries/searchBusinesses.d.ts.map +1 -0
- package/dist/queries/searchBusinesses.js +101 -0
- package/dist/queries/searchBusinesses.js.map +1 -0
- package/dist/queries/users.d.ts +51 -0
- package/dist/queries/users.d.ts.map +1 -0
- package/dist/queries/users.js +142 -0
- package/dist/queries/users.js.map +1 -0
- package/dist/queries/usersLight.d.ts +63 -0
- package/dist/queries/usersLight.d.ts.map +1 -0
- package/dist/queries/usersLight.js +94 -0
- package/dist/queries/usersLight.js.map +1 -0
- package/dist/types/business.d.ts +20 -0
- package/dist/types/business.d.ts.map +1 -0
- package/dist/types/business.js +3 -0
- package/dist/types/business.js.map +1 -0
- package/dist/types/common.d.ts +45 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +3 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/department.d.ts +6 -0
- package/dist/types/department.d.ts.map +1 -0
- package/dist/types/department.js +3 -0
- package/dist/types/department.js.map +1 -0
- package/dist/types/group.d.ts +9 -0
- package/dist/types/group.d.ts.map +1 -0
- package/dist/types/group.js +3 -0
- package/dist/types/group.js.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +22 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/user.d.ts +61 -0
- package/dist/types/user.d.ts.map +1 -0
- package/dist/types/user.js +10 -0
- package/dist/types/user.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/queries/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAErE,eAAO,MAAM,SAAS,uCAmGrB,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CACzB,SAAS,GAAE,mBAAwB,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,EAAE,WAAW,CAAC;;;;;;;;;;;;;EA2BvF"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_USERS = void 0;
|
|
4
|
+
exports.useGetUsers = useGetUsers;
|
|
5
|
+
const client_1 = require("@apollo/client");
|
|
6
|
+
exports.GET_USERS = (0, client_1.gql) `
|
|
7
|
+
query FetchUsers(
|
|
8
|
+
$userId: String
|
|
9
|
+
$name: String
|
|
10
|
+
$rut: String
|
|
11
|
+
$phone: String
|
|
12
|
+
$filters: FilterInput
|
|
13
|
+
$sort: SortInput
|
|
14
|
+
$first: Int
|
|
15
|
+
$last: Int
|
|
16
|
+
$after: String
|
|
17
|
+
$before: String
|
|
18
|
+
$includeInactive: Boolean
|
|
19
|
+
) {
|
|
20
|
+
fetchUsers(
|
|
21
|
+
userId: $userId
|
|
22
|
+
name: $name
|
|
23
|
+
rut: $rut
|
|
24
|
+
phone: $phone
|
|
25
|
+
filters: $filters
|
|
26
|
+
sort: $sort
|
|
27
|
+
first: $first
|
|
28
|
+
last: $last
|
|
29
|
+
after: $after
|
|
30
|
+
before: $before
|
|
31
|
+
includeInactive: $includeInactive
|
|
32
|
+
) {
|
|
33
|
+
totalCount
|
|
34
|
+
edges {
|
|
35
|
+
node {
|
|
36
|
+
id
|
|
37
|
+
name
|
|
38
|
+
firstName
|
|
39
|
+
lastName
|
|
40
|
+
phone
|
|
41
|
+
rut
|
|
42
|
+
sex
|
|
43
|
+
email
|
|
44
|
+
status
|
|
45
|
+
height
|
|
46
|
+
weight
|
|
47
|
+
birthday
|
|
48
|
+
medicals
|
|
49
|
+
disease
|
|
50
|
+
createdAt
|
|
51
|
+
currentPlan {
|
|
52
|
+
id
|
|
53
|
+
plan
|
|
54
|
+
planName
|
|
55
|
+
riskLevel
|
|
56
|
+
expectedSessions
|
|
57
|
+
stats
|
|
58
|
+
summary {
|
|
59
|
+
plan
|
|
60
|
+
priority1
|
|
61
|
+
priority2
|
|
62
|
+
priority1Name
|
|
63
|
+
priority2Name
|
|
64
|
+
}
|
|
65
|
+
x
|
|
66
|
+
y
|
|
67
|
+
z
|
|
68
|
+
createdAt
|
|
69
|
+
updatedAt
|
|
70
|
+
priorityPart1 {
|
|
71
|
+
id
|
|
72
|
+
name
|
|
73
|
+
}
|
|
74
|
+
priorityPart2 {
|
|
75
|
+
id
|
|
76
|
+
name
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
department {
|
|
80
|
+
id
|
|
81
|
+
name
|
|
82
|
+
colorTag
|
|
83
|
+
}
|
|
84
|
+
business {
|
|
85
|
+
id
|
|
86
|
+
name
|
|
87
|
+
createdAt
|
|
88
|
+
updatedAt
|
|
89
|
+
parentGroup {
|
|
90
|
+
id
|
|
91
|
+
name
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
adminLevel
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
pageInfo {
|
|
98
|
+
hasNextPage
|
|
99
|
+
hasPreviousPage
|
|
100
|
+
startCursor
|
|
101
|
+
endCursor
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
106
|
+
/**
|
|
107
|
+
* React hook to fetch users from Makana GraphQL API
|
|
108
|
+
*
|
|
109
|
+
* @param variables - Query variables (filters, pagination, etc.)
|
|
110
|
+
* @param options - Additional Apollo Client query options
|
|
111
|
+
* @returns Object containing users data, loading state, error, and refetch function
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```typescript
|
|
115
|
+
* const { users, loading, error, refetch } = useGetUsers({
|
|
116
|
+
* filters: { businessId: '123' },
|
|
117
|
+
* first: 10
|
|
118
|
+
* });
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
function useGetUsers(variables = {}, options) {
|
|
122
|
+
const { skip, ...queryVariables } = variables;
|
|
123
|
+
const { loading, error, data, fetchMore, refetch } = (0, client_1.useQuery)(exports.GET_USERS, {
|
|
124
|
+
variables: queryVariables,
|
|
125
|
+
fetchPolicy: 'cache-first',
|
|
126
|
+
skip: skip === true,
|
|
127
|
+
...options,
|
|
128
|
+
});
|
|
129
|
+
const users = data?.fetchUsers?.edges.map((edge) => edge.node) || [];
|
|
130
|
+
const totalCount = data?.fetchUsers?.totalCount || 0;
|
|
131
|
+
const pageInfo = data?.fetchUsers?.pageInfo || null;
|
|
132
|
+
return {
|
|
133
|
+
users,
|
|
134
|
+
totalCount,
|
|
135
|
+
pageInfo,
|
|
136
|
+
loading,
|
|
137
|
+
error,
|
|
138
|
+
fetchMore,
|
|
139
|
+
refetch,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/queries/users.ts"],"names":[],"mappings":";;;AA2IA,kCA6BC;AAxKD,2CAAiE;AAIpD,QAAA,SAAS,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmG3B,CAAC;AAqBF;;;;;;;;;;;;;;GAcG;AACH,SAAgB,WAAW,CACzB,YAAiC,EAAE,EACnC,OAAsF;IAEtF,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAG,SAAS,CAAC;IAE9C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAA,iBAAQ,EAC3D,iBAAS,EACT;QACE,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,IAAI,KAAK,IAAI;QACnB,GAAG,OAAO;KACX,CACF,CAAC;IAEF,MAAM,KAAK,GAAG,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACrE,MAAM,UAAU,GAAG,IAAI,EAAE,UAAU,EAAE,UAAU,IAAI,CAAC,CAAC;IACrD,MAAM,QAAQ,GAAG,IAAI,EAAE,UAAU,EAAE,QAAQ,IAAI,IAAI,CAAC;IAEpD,OAAO;QACL,KAAK;QACL,UAAU;QACV,QAAQ;QACR,OAAO;QACP,KAAK;QACL,SAAS;QACT,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { QueryHookOptions } from '@apollo/client';
|
|
2
|
+
import { FilterInput, SortInput, Connection } from '../types/common';
|
|
3
|
+
export declare const GET_USERS_LIGHT: import("@apollo/client").DocumentNode;
|
|
4
|
+
export interface FetchUsersLightVariables {
|
|
5
|
+
userId?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
rut?: string;
|
|
8
|
+
phone?: string;
|
|
9
|
+
filters?: FilterInput;
|
|
10
|
+
sort?: SortInput;
|
|
11
|
+
first?: number;
|
|
12
|
+
last?: number;
|
|
13
|
+
after?: string | null;
|
|
14
|
+
before?: string | null;
|
|
15
|
+
includeInactive?: boolean;
|
|
16
|
+
skip?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface UserLightNode {
|
|
19
|
+
id?: number;
|
|
20
|
+
name?: string;
|
|
21
|
+
rut?: string;
|
|
22
|
+
phone?: string;
|
|
23
|
+
email?: string;
|
|
24
|
+
status?: string;
|
|
25
|
+
business?: {
|
|
26
|
+
id: number;
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface FetchUsersLightResponse {
|
|
31
|
+
fetchUsers: Connection<UserLightNode>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* React hook to fetch users with basic info from Makana GraphQL API
|
|
35
|
+
* This is a lightweight query compared to useGetUsers
|
|
36
|
+
*
|
|
37
|
+
* @param variables - Query variables (filters, pagination, etc.)
|
|
38
|
+
* @param options - Additional Apollo Client query options
|
|
39
|
+
* @returns Object containing users data, loading state, error, and refetch function
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```typescript
|
|
43
|
+
* const { users, loading, error, refetch } = useGetUsersLight({
|
|
44
|
+
* filters: { businessId: '123' },
|
|
45
|
+
* first: 10
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare function useGetUsersLight(variables?: FetchUsersLightVariables, options?: Omit<QueryHookOptions<FetchUsersLightResponse, FetchUsersLightVariables>, 'variables'>): {
|
|
50
|
+
users: UserLightNode[];
|
|
51
|
+
totalCount: number;
|
|
52
|
+
pageInfo: import("../types/common").PageInfo | null;
|
|
53
|
+
loading: boolean;
|
|
54
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
55
|
+
fetchMore: <TFetchData = FetchUsersLightResponse, TFetchVars extends import("@apollo/client").OperationVariables = FetchUsersLightVariables>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
56
|
+
updateQuery?: ((previousQueryResult: FetchUsersLightResponse, options: {
|
|
57
|
+
fetchMoreResult: import("@apollo/client").Unmasked<TFetchData>;
|
|
58
|
+
variables: TFetchVars;
|
|
59
|
+
}) => FetchUsersLightResponse) | undefined;
|
|
60
|
+
}) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
|
|
61
|
+
refetch: (variables?: Partial<FetchUsersLightVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<FetchUsersLightResponse>>;
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=usersLight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usersLight.d.ts","sourceRoot":"","sources":["../../src/queries/usersLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAErE,eAAO,MAAM,eAAe,uCAkD3B,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;CACvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,GAAE,wBAA6B,EACxC,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,wBAAwB,CAAC,EAAE,WAAW,CAAC;;;;;;;;;;;;;EA2BjG"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_USERS_LIGHT = void 0;
|
|
4
|
+
exports.useGetUsersLight = useGetUsersLight;
|
|
5
|
+
const client_1 = require("@apollo/client");
|
|
6
|
+
exports.GET_USERS_LIGHT = (0, client_1.gql) `
|
|
7
|
+
query FetchUsers(
|
|
8
|
+
$userId: String
|
|
9
|
+
$name: String
|
|
10
|
+
$rut: String
|
|
11
|
+
$phone: String
|
|
12
|
+
$filters: FilterInput
|
|
13
|
+
$sort: SortInput
|
|
14
|
+
$first: Int
|
|
15
|
+
$last: Int
|
|
16
|
+
$after: String
|
|
17
|
+
$before: String
|
|
18
|
+
$includeInactive: Boolean
|
|
19
|
+
) {
|
|
20
|
+
fetchUsers(
|
|
21
|
+
userId: $userId
|
|
22
|
+
name: $name
|
|
23
|
+
rut: $rut
|
|
24
|
+
phone: $phone
|
|
25
|
+
filters: $filters
|
|
26
|
+
sort: $sort
|
|
27
|
+
first: $first
|
|
28
|
+
last: $last
|
|
29
|
+
after: $after
|
|
30
|
+
before: $before
|
|
31
|
+
includeInactive: $includeInactive
|
|
32
|
+
) {
|
|
33
|
+
totalCount
|
|
34
|
+
edges {
|
|
35
|
+
node {
|
|
36
|
+
id
|
|
37
|
+
name
|
|
38
|
+
rut
|
|
39
|
+
phone
|
|
40
|
+
email
|
|
41
|
+
status
|
|
42
|
+
business {
|
|
43
|
+
id
|
|
44
|
+
name
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
pageInfo {
|
|
49
|
+
hasNextPage
|
|
50
|
+
hasPreviousPage
|
|
51
|
+
startCursor
|
|
52
|
+
endCursor
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
/**
|
|
58
|
+
* React hook to fetch users with basic info from Makana GraphQL API
|
|
59
|
+
* This is a lightweight query compared to useGetUsers
|
|
60
|
+
*
|
|
61
|
+
* @param variables - Query variables (filters, pagination, etc.)
|
|
62
|
+
* @param options - Additional Apollo Client query options
|
|
63
|
+
* @returns Object containing users data, loading state, error, and refetch function
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* const { users, loading, error, refetch } = useGetUsersLight({
|
|
68
|
+
* filters: { businessId: '123' },
|
|
69
|
+
* first: 10
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
function useGetUsersLight(variables = {}, options) {
|
|
74
|
+
const { skip, ...queryVariables } = variables;
|
|
75
|
+
const { loading, error, data, fetchMore, refetch } = (0, client_1.useQuery)(exports.GET_USERS_LIGHT, {
|
|
76
|
+
variables: queryVariables,
|
|
77
|
+
fetchPolicy: 'cache-first',
|
|
78
|
+
skip: skip === true,
|
|
79
|
+
...options,
|
|
80
|
+
});
|
|
81
|
+
const users = data?.fetchUsers?.edges.map((edge) => edge.node) || [];
|
|
82
|
+
const totalCount = data?.fetchUsers?.totalCount || 0;
|
|
83
|
+
const pageInfo = data?.fetchUsers?.pageInfo || null;
|
|
84
|
+
return {
|
|
85
|
+
users,
|
|
86
|
+
totalCount,
|
|
87
|
+
pageInfo,
|
|
88
|
+
loading,
|
|
89
|
+
error,
|
|
90
|
+
fetchMore,
|
|
91
|
+
refetch,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=usersLight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usersLight.js","sourceRoot":"","sources":["../../src/queries/usersLight.ts"],"names":[],"mappings":";;;AAwGA,4CA6BC;AArID,2CAAiE;AAIpD,QAAA,eAAe,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDjC,CAAC;AAkCF;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,gBAAgB,CAC9B,YAAsC,EAAE,EACxC,OAAgG;IAEhG,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAG,SAAS,CAAC;IAE9C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAA,iBAAQ,EAC3D,uBAAe,EACf;QACE,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,IAAI,KAAK,IAAI;QACnB,GAAG,OAAO;KACX,CACF,CAAC;IAEF,MAAM,KAAK,GAAG,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACrE,MAAM,UAAU,GAAG,IAAI,EAAE,UAAU,EAAE,UAAU,IAAI,CAAC,CAAC;IACrD,MAAM,QAAQ,GAAG,IAAI,EAAE,UAAU,EAAE,QAAQ,IAAI,IAAI,CAAC;IAEpD,OAAO;QACL,KAAK;QACL,UAAU;QACV,QAAQ;QACR,OAAO;QACP,KAAK;QACL,SAAS;QACT,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Group } from './group';
|
|
2
|
+
export interface Business {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
reservationLimit?: number;
|
|
6
|
+
reservationDuration?: number;
|
|
7
|
+
defaultDepartment?: string;
|
|
8
|
+
schedule?: string;
|
|
9
|
+
status?: 'inactivo' | 'activo' | 'evento';
|
|
10
|
+
totalUsers?: number;
|
|
11
|
+
totalAttentions?: number;
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
updatedAt?: string;
|
|
14
|
+
parentGroup?: Group | null;
|
|
15
|
+
dailyStaff?: number;
|
|
16
|
+
totalStaff?: number;
|
|
17
|
+
monthlyRecurrentRevenewUf?: number;
|
|
18
|
+
subdomain?: string;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=business.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business.d.ts","sourceRoot":"","sources":["../../src/types/business.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business.js","sourceRoot":"","sources":["../../src/types/business.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type DateEnum = 'TODAY' | 'LAST_WEEK' | 'CURRENT_MONTH' | 'LAST_MONTH' | 'CURRENT_YEAR' | 'LAST_YEAR';
|
|
2
|
+
export type SortOrder = 'ASC' | 'DESC';
|
|
3
|
+
export interface DateRangeInput {
|
|
4
|
+
startDate: string;
|
|
5
|
+
endDate: string;
|
|
6
|
+
}
|
|
7
|
+
export interface FilterInput {
|
|
8
|
+
plan?: string;
|
|
9
|
+
userId?: string;
|
|
10
|
+
patientId?: string;
|
|
11
|
+
professionalId?: string;
|
|
12
|
+
departmentId?: string;
|
|
13
|
+
businessId?: string;
|
|
14
|
+
groupId?: string;
|
|
15
|
+
protocolId?: string;
|
|
16
|
+
dateRange?: DateRangeInput;
|
|
17
|
+
}
|
|
18
|
+
export interface SortInput {
|
|
19
|
+
sortBy?: string;
|
|
20
|
+
sortOrder?: SortOrder;
|
|
21
|
+
}
|
|
22
|
+
export interface PageInfo {
|
|
23
|
+
hasNextPage: boolean;
|
|
24
|
+
hasPreviousPage: boolean;
|
|
25
|
+
startCursor: string;
|
|
26
|
+
endCursor: string;
|
|
27
|
+
}
|
|
28
|
+
export interface Edge<T> {
|
|
29
|
+
node: T;
|
|
30
|
+
}
|
|
31
|
+
export interface Connection<T> {
|
|
32
|
+
totalCount: number;
|
|
33
|
+
edges: Edge<T>[];
|
|
34
|
+
pageInfo: PageInfo;
|
|
35
|
+
}
|
|
36
|
+
export interface BaseQueryVariables {
|
|
37
|
+
filters?: FilterInput;
|
|
38
|
+
sort?: SortInput;
|
|
39
|
+
date?: DateEnum;
|
|
40
|
+
first?: number;
|
|
41
|
+
last?: number;
|
|
42
|
+
after?: string;
|
|
43
|
+
before?: string;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,WAAW,GACX,eAAe,GACf,YAAY,GACZ,cAAc,GACd,WAAW,CAAC;AAEhB,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,IAAI,CAAC,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC;CACT;AAED,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"department.d.ts","sourceRoot":"","sources":["../../src/types/department.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"department.js","sourceRoot":"","sources":["../../src/types/department.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../src/types/group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../src/types/group.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./common"), exports);
|
|
18
|
+
__exportStar(require("./business"), exports);
|
|
19
|
+
__exportStar(require("./group"), exports);
|
|
20
|
+
__exportStar(require("./user"), exports);
|
|
21
|
+
__exportStar(require("./department"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB;AACxB,yCAAuB;AACvB,+CAA6B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Department } from './department';
|
|
2
|
+
import { Business } from './business';
|
|
3
|
+
interface CurrentPlan {
|
|
4
|
+
id?: number;
|
|
5
|
+
adminLevel?: number;
|
|
6
|
+
plan: string;
|
|
7
|
+
planName?: string;
|
|
8
|
+
riskLevel?: string;
|
|
9
|
+
expectedSessions?: number;
|
|
10
|
+
stats: string;
|
|
11
|
+
summary?: {
|
|
12
|
+
plan?: string;
|
|
13
|
+
priority1?: string;
|
|
14
|
+
priority2?: string;
|
|
15
|
+
priority1Name?: string;
|
|
16
|
+
priority2Name?: string;
|
|
17
|
+
};
|
|
18
|
+
x?: number;
|
|
19
|
+
y?: number;
|
|
20
|
+
z?: number;
|
|
21
|
+
createdAt?: string;
|
|
22
|
+
updatedAt?: string;
|
|
23
|
+
priorityPart1?: {
|
|
24
|
+
id: number;
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
priorityPart2?: {
|
|
28
|
+
id: number;
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface User {
|
|
33
|
+
id?: number;
|
|
34
|
+
name?: string;
|
|
35
|
+
firstName?: string;
|
|
36
|
+
lastName?: string;
|
|
37
|
+
phone?: string;
|
|
38
|
+
rut?: string;
|
|
39
|
+
sex?: string;
|
|
40
|
+
email?: string;
|
|
41
|
+
height?: number;
|
|
42
|
+
weight?: number;
|
|
43
|
+
birthday?: string;
|
|
44
|
+
medicals?: any;
|
|
45
|
+
disease?: boolean;
|
|
46
|
+
createdAt?: string;
|
|
47
|
+
currentPlan?: CurrentPlan | null;
|
|
48
|
+
nordicBases?: any[];
|
|
49
|
+
cohens?: any[];
|
|
50
|
+
department?: Department;
|
|
51
|
+
business?: Business;
|
|
52
|
+
adminLevel?: number;
|
|
53
|
+
status?: UserStatusEnum;
|
|
54
|
+
}
|
|
55
|
+
export declare enum UserStatusEnum {
|
|
56
|
+
ACTIVE = "ACTIVE",
|
|
57
|
+
INACTIVE = "INACTIVE",
|
|
58
|
+
ANONYMIZED = "ANONYMIZED"
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,UAAU,WAAW;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE;QACd,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,aAAa,CAAC,EAAE;QACd,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserStatusEnum = void 0;
|
|
4
|
+
var UserStatusEnum;
|
|
5
|
+
(function (UserStatusEnum) {
|
|
6
|
+
UserStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
UserStatusEnum["INACTIVE"] = "INACTIVE";
|
|
8
|
+
UserStatusEnum["ANONYMIZED"] = "ANONYMIZED";
|
|
9
|
+
})(UserStatusEnum || (exports.UserStatusEnum = UserStatusEnum = {}));
|
|
10
|
+
//# sourceMappingURL=user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":";;;AAyDA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,2CAAyB,CAAA;AAC3B,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@makana-cl/portal-internal-client",
|
|
3
|
+
"version": "1.2.3",
|
|
4
|
+
"description": "GraphQL client library for Makana Portal internal applications",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"module": "dist/index.esm.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc && npm run build:esm",
|
|
14
|
+
"build:esm": "tsc --module esnext --outDir dist/esm && mv dist/esm dist/index.esm.js.tmp && rm -rf dist/esm && mv dist/index.esm.js.tmp dist/index.esm.js",
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"test": "echo \"Error: no test specified\" && exit 0",
|
|
17
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
18
|
+
"type-check": "tsc --noEmit"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"makana",
|
|
22
|
+
"graphql",
|
|
23
|
+
"apollo",
|
|
24
|
+
"client",
|
|
25
|
+
"react"
|
|
26
|
+
],
|
|
27
|
+
"author": "Makana",
|
|
28
|
+
"license": "UNLICENSED",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/makana-cl/makana-portal-internal-client.git"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@apollo/client": "^3.8.0",
|
|
38
|
+
"react": "^18.0.0",
|
|
39
|
+
"graphql": "^16.0.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@apollo/client": "^3.13.8",
|
|
43
|
+
"@types/node": "^20.0.0",
|
|
44
|
+
"@types/react": "^18.2.0",
|
|
45
|
+
"graphql": "^16.8.1",
|
|
46
|
+
"react": "^18.2.0",
|
|
47
|
+
"typescript": "^5.3.0"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {}
|
|
50
|
+
}
|