@makana-cl/portal-internal-client 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js/index.d.ts +6 -0
- package/dist/index.esm.js/index.d.ts.map +1 -1
- package/dist/index.esm.js/index.esm.js.tmp/index.d.ts +6 -0
- package/dist/index.esm.js/index.esm.js.tmp/index.d.ts.map +1 -1
- package/dist/index.esm.js/index.esm.js.tmp/index.js +4 -0
- package/dist/index.esm.js/index.esm.js.tmp/index.js.map +1 -1
- package/dist/index.esm.js/index.esm.js.tmp/queries/attentions.d.ts +60 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/attentions.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/attentions.js +114 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/attentions.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/attentionsLight.d.ts +60 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/attentionsLight.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/attentionsLight.js +92 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/attentionsLight.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/index.d.ts +2 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/index.d.ts.map +1 -1
- package/dist/index.esm.js/index.esm.js.tmp/queries/index.js +2 -0
- package/dist/index.esm.js/index.esm.js.tmp/queries/index.js.map +1 -1
- package/dist/index.esm.js/index.esm.js.tmp/types/attention.d.ts +37 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/attention.d.ts.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/attention.js +2 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/attention.js.map +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/index.d.ts +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/index.d.ts.map +1 -1
- package/dist/index.esm.js/index.esm.js.tmp/types/index.js +1 -0
- package/dist/index.esm.js/index.esm.js.tmp/types/index.js.map +1 -1
- package/dist/index.esm.js/index.js +4 -0
- package/dist/index.esm.js/index.js.map +1 -1
- package/dist/index.esm.js/queries/attentions.d.ts +60 -0
- package/dist/index.esm.js/queries/attentions.d.ts.map +1 -0
- package/dist/index.esm.js/queries/attentions.js +114 -0
- package/dist/index.esm.js/queries/attentions.js.map +1 -0
- package/dist/index.esm.js/queries/attentionsLight.d.ts +60 -0
- package/dist/index.esm.js/queries/attentionsLight.d.ts.map +1 -0
- package/dist/index.esm.js/queries/attentionsLight.js +92 -0
- package/dist/index.esm.js/queries/attentionsLight.js.map +1 -0
- package/dist/index.esm.js/queries/index.d.ts +2 -0
- package/dist/index.esm.js/queries/index.d.ts.map +1 -1
- package/dist/index.esm.js/queries/index.js +2 -0
- package/dist/index.esm.js/queries/index.js.map +1 -1
- package/dist/index.esm.js/types/attention.d.ts +37 -0
- package/dist/index.esm.js/types/attention.d.ts.map +1 -0
- package/dist/index.esm.js/types/attention.js +2 -0
- package/dist/index.esm.js/types/attention.js.map +1 -0
- package/dist/index.esm.js/types/index.d.ts +1 -0
- package/dist/index.esm.js/types/index.d.ts.map +1 -1
- package/dist/index.esm.js/types/index.js +1 -0
- package/dist/index.esm.js/types/index.js.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/queries/attentions.d.ts +60 -0
- package/dist/queries/attentions.d.ts.map +1 -0
- package/dist/queries/attentions.js +118 -0
- package/dist/queries/attentions.js.map +1 -0
- package/dist/queries/attentionsLight.d.ts +60 -0
- package/dist/queries/attentionsLight.d.ts.map +1 -0
- package/dist/queries/attentionsLight.js +96 -0
- package/dist/queries/attentionsLight.js.map +1 -0
- package/dist/queries/index.d.ts +2 -0
- package/dist/queries/index.d.ts.map +1 -1
- package/dist/queries/index.js +2 -0
- package/dist/queries/index.js.map +1 -1
- package/dist/types/attention.d.ts +37 -0
- package/dist/types/attention.d.ts.map +1 -0
- package/dist/types/attention.js +3 -0
- package/dist/types/attention.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,9 +14,15 @@ export { useGetBusinesses } from './queries/businesses';
|
|
|
14
14
|
export type { FetchBusinessesResponse } from './queries/businesses';
|
|
15
15
|
export { useSearchBusinesses } from './queries/searchBusinesses';
|
|
16
16
|
export type { SearchBusinessesVariables, SearchBusinessesResponse } from './queries/searchBusinesses';
|
|
17
|
+
export { useGetAttentions } from './queries/attentions';
|
|
18
|
+
export type { FetchAttentionsVariables, FetchAttentionsResponse } from './queries/attentions';
|
|
19
|
+
export { useGetAttentionsLight } from './queries/attentionsLight';
|
|
20
|
+
export type { FetchAttentionsLightVariables, FetchAttentionsLightResponse } from './queries/attentionsLight';
|
|
17
21
|
export { GET_USERS } from './queries/users';
|
|
18
22
|
export { GET_USERS_LIGHT } from './queries/usersLight';
|
|
19
23
|
export { GET_BUSINESSES } from './queries/businesses';
|
|
20
24
|
export { SEARCH_BUSINESSES } from './queries/searchBusinesses';
|
|
25
|
+
export { GET_ATTENTIONS } from './queries/attentions';
|
|
26
|
+
export { GET_ATTENTIONS_LIGHT } from './queries/attentionsLight';
|
|
21
27
|
export * from './types';
|
|
22
28
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAG7G,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,cAAc,SAAS,CAAC"}
|
|
@@ -14,9 +14,15 @@ export { useGetBusinesses } from './queries/businesses';
|
|
|
14
14
|
export type { FetchBusinessesResponse } from './queries/businesses';
|
|
15
15
|
export { useSearchBusinesses } from './queries/searchBusinesses';
|
|
16
16
|
export type { SearchBusinessesVariables, SearchBusinessesResponse } from './queries/searchBusinesses';
|
|
17
|
+
export { useGetAttentions } from './queries/attentions';
|
|
18
|
+
export type { FetchAttentionsVariables, FetchAttentionsResponse } from './queries/attentions';
|
|
19
|
+
export { useGetAttentionsLight } from './queries/attentionsLight';
|
|
20
|
+
export type { FetchAttentionsLightVariables, FetchAttentionsLightResponse } from './queries/attentionsLight';
|
|
17
21
|
export { GET_USERS } from './queries/users';
|
|
18
22
|
export { GET_USERS_LIGHT } from './queries/usersLight';
|
|
19
23
|
export { GET_BUSINESSES } from './queries/businesses';
|
|
20
24
|
export { SEARCH_BUSINESSES } from './queries/searchBusinesses';
|
|
25
|
+
export { GET_ATTENTIONS } from './queries/attentions';
|
|
26
|
+
export { GET_ATTENTIONS_LIGHT } from './queries/attentionsLight';
|
|
21
27
|
export * from './types';
|
|
22
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAG7G,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,cAAc,SAAS,CAAC"}
|
|
@@ -14,9 +14,15 @@ export { useGetBusinesses } from './queries/businesses';
|
|
|
14
14
|
export type { FetchBusinessesResponse } from './queries/businesses';
|
|
15
15
|
export { useSearchBusinesses } from './queries/searchBusinesses';
|
|
16
16
|
export type { SearchBusinessesVariables, SearchBusinessesResponse } from './queries/searchBusinesses';
|
|
17
|
+
export { useGetAttentions } from './queries/attentions';
|
|
18
|
+
export type { FetchAttentionsVariables, FetchAttentionsResponse } from './queries/attentions';
|
|
19
|
+
export { useGetAttentionsLight } from './queries/attentionsLight';
|
|
20
|
+
export type { FetchAttentionsLightVariables, FetchAttentionsLightResponse } from './queries/attentionsLight';
|
|
17
21
|
export { GET_USERS } from './queries/users';
|
|
18
22
|
export { GET_USERS_LIGHT } from './queries/usersLight';
|
|
19
23
|
export { GET_BUSINESSES } from './queries/businesses';
|
|
20
24
|
export { SEARCH_BUSINESSES } from './queries/searchBusinesses';
|
|
25
|
+
export { GET_ATTENTIONS } from './queries/attentions';
|
|
26
|
+
export { GET_ATTENTIONS_LIGHT } from './queries/attentionsLight';
|
|
21
27
|
export * from './types';
|
|
22
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAG7G,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,cAAc,SAAS,CAAC"}
|
|
@@ -11,11 +11,15 @@ export { useGetUsers } from './queries/users';
|
|
|
11
11
|
export { useGetUsersLight } from './queries/usersLight';
|
|
12
12
|
export { useGetBusinesses } from './queries/businesses';
|
|
13
13
|
export { useSearchBusinesses } from './queries/searchBusinesses';
|
|
14
|
+
export { useGetAttentions } from './queries/attentions';
|
|
15
|
+
export { useGetAttentionsLight } from './queries/attentionsLight';
|
|
14
16
|
// GraphQL queries (for advanced usage)
|
|
15
17
|
export { GET_USERS } from './queries/users';
|
|
16
18
|
export { GET_USERS_LIGHT } from './queries/usersLight';
|
|
17
19
|
export { GET_BUSINESSES } from './queries/businesses';
|
|
18
20
|
export { SEARCH_BUSINESSES } from './queries/searchBusinesses';
|
|
21
|
+
export { GET_ATTENTIONS } from './queries/attentions';
|
|
22
|
+
export { GET_ATTENTIONS_LIGHT } from './queries/attentionsLight';
|
|
19
23
|
// Types
|
|
20
24
|
export * from './types';
|
|
21
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,uCAAuC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,uCAAuC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,QAAQ;AACR,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { QueryHookOptions } from '@apollo/client';
|
|
2
|
+
import { Attention } from '../types/attention';
|
|
3
|
+
import { FilterInput, SortInput, DateEnum, Connection } from '../types/common';
|
|
4
|
+
export declare const GET_ATTENTIONS: import("@apollo/client").DocumentNode;
|
|
5
|
+
export interface FetchAttentionsVariables {
|
|
6
|
+
date?: DateEnum;
|
|
7
|
+
filters?: FilterInput;
|
|
8
|
+
sort?: SortInput;
|
|
9
|
+
first?: number;
|
|
10
|
+
last?: number;
|
|
11
|
+
after?: string | null;
|
|
12
|
+
before?: string | null;
|
|
13
|
+
skip?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface FetchAttentionsResponse {
|
|
16
|
+
fetchAttentions: Connection<Attention>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* React hook to fetch attentions from Makana GraphQL API
|
|
20
|
+
*
|
|
21
|
+
* @param variables - Query variables (filters, pagination, date, etc.)
|
|
22
|
+
* @param options - Additional Apollo Client query options
|
|
23
|
+
* @returns Object containing attentions data, loading state, error, and refetch function
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* // Filter by date enum
|
|
28
|
+
* const { attentions, loading } = useGetAttentions({
|
|
29
|
+
* date: 'CURRENT_MONTH',
|
|
30
|
+
* filters: { businessId: '123' },
|
|
31
|
+
* first: 10
|
|
32
|
+
* });
|
|
33
|
+
*
|
|
34
|
+
* // Filter by date range
|
|
35
|
+
* const { attentions } = useGetAttentions({
|
|
36
|
+
* filters: {
|
|
37
|
+
* businessId: '123',
|
|
38
|
+
* dateRange: {
|
|
39
|
+
* startDate: '2024-01-01',
|
|
40
|
+
* endDate: '2024-12-31'
|
|
41
|
+
* }
|
|
42
|
+
* }
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function useGetAttentions(variables?: FetchAttentionsVariables, options?: Omit<QueryHookOptions<FetchAttentionsResponse, FetchAttentionsVariables>, 'variables'>): {
|
|
47
|
+
attentions: Attention[];
|
|
48
|
+
totalCount: number;
|
|
49
|
+
pageInfo: import("../types/common").PageInfo | null;
|
|
50
|
+
loading: boolean;
|
|
51
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
52
|
+
fetchMore: <TFetchData = FetchAttentionsResponse, TFetchVars extends import("@apollo/client").OperationVariables = FetchAttentionsVariables>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
53
|
+
updateQuery?: ((previousQueryResult: FetchAttentionsResponse, options: {
|
|
54
|
+
fetchMoreResult: import("@apollo/client").Unmasked<TFetchData>;
|
|
55
|
+
variables: TFetchVars;
|
|
56
|
+
}) => FetchAttentionsResponse) | undefined;
|
|
57
|
+
}) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
|
|
58
|
+
refetch: (variables?: Partial<FetchAttentionsVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<FetchAttentionsResponse>>;
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=attentions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attentions.d.ts","sourceRoot":"","sources":["../../../src/queries/attentions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE/E,eAAO,MAAM,cAAc,uCA8D1B,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,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,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;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,114 @@
|
|
|
1
|
+
import { gql, useQuery } from '@apollo/client';
|
|
2
|
+
export const GET_ATTENTIONS = gql `
|
|
3
|
+
query FetchAttentions(
|
|
4
|
+
$date: DateEnum
|
|
5
|
+
$filters: FilterInput
|
|
6
|
+
$sort: SortInput
|
|
7
|
+
$first: Int
|
|
8
|
+
$last: Int
|
|
9
|
+
$after: String
|
|
10
|
+
$before: String
|
|
11
|
+
) {
|
|
12
|
+
fetchAttentions(
|
|
13
|
+
date: $date
|
|
14
|
+
filters: $filters
|
|
15
|
+
sort: $sort
|
|
16
|
+
first: $first
|
|
17
|
+
last: $last
|
|
18
|
+
after: $after
|
|
19
|
+
before: $before
|
|
20
|
+
) {
|
|
21
|
+
totalCount
|
|
22
|
+
edges {
|
|
23
|
+
node {
|
|
24
|
+
id
|
|
25
|
+
protocol
|
|
26
|
+
registerInMetrics
|
|
27
|
+
registerOutMetrics
|
|
28
|
+
date
|
|
29
|
+
user {
|
|
30
|
+
id
|
|
31
|
+
name
|
|
32
|
+
firstName
|
|
33
|
+
lastName
|
|
34
|
+
rut
|
|
35
|
+
disease
|
|
36
|
+
currentPlan {
|
|
37
|
+
plan
|
|
38
|
+
stats
|
|
39
|
+
}
|
|
40
|
+
department {
|
|
41
|
+
id
|
|
42
|
+
name
|
|
43
|
+
colorTag
|
|
44
|
+
}
|
|
45
|
+
business {
|
|
46
|
+
id
|
|
47
|
+
name
|
|
48
|
+
parentGroup {
|
|
49
|
+
id
|
|
50
|
+
name
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
pageInfo {
|
|
57
|
+
hasNextPage
|
|
58
|
+
hasPreviousPage
|
|
59
|
+
startCursor
|
|
60
|
+
endCursor
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
/**
|
|
66
|
+
* React hook to fetch attentions from Makana GraphQL API
|
|
67
|
+
*
|
|
68
|
+
* @param variables - Query variables (filters, pagination, date, etc.)
|
|
69
|
+
* @param options - Additional Apollo Client query options
|
|
70
|
+
* @returns Object containing attentions data, loading state, error, and refetch function
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* // Filter by date enum
|
|
75
|
+
* const { attentions, loading } = useGetAttentions({
|
|
76
|
+
* date: 'CURRENT_MONTH',
|
|
77
|
+
* filters: { businessId: '123' },
|
|
78
|
+
* first: 10
|
|
79
|
+
* });
|
|
80
|
+
*
|
|
81
|
+
* // Filter by date range
|
|
82
|
+
* const { attentions } = useGetAttentions({
|
|
83
|
+
* filters: {
|
|
84
|
+
* businessId: '123',
|
|
85
|
+
* dateRange: {
|
|
86
|
+
* startDate: '2024-01-01',
|
|
87
|
+
* endDate: '2024-12-31'
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
export function useGetAttentions(variables = {}, options) {
|
|
94
|
+
const { skip, ...queryVariables } = variables;
|
|
95
|
+
const { loading, error, data, fetchMore, refetch } = useQuery(GET_ATTENTIONS, {
|
|
96
|
+
variables: queryVariables,
|
|
97
|
+
fetchPolicy: 'cache-first',
|
|
98
|
+
skip: skip === true,
|
|
99
|
+
...options,
|
|
100
|
+
});
|
|
101
|
+
const attentions = data?.fetchAttentions?.edges.map((edge) => edge.node) || [];
|
|
102
|
+
const totalCount = data?.fetchAttentions?.totalCount || 0;
|
|
103
|
+
const pageInfo = data?.fetchAttentions?.pageInfo || null;
|
|
104
|
+
return {
|
|
105
|
+
attentions,
|
|
106
|
+
totalCount,
|
|
107
|
+
pageInfo,
|
|
108
|
+
loading,
|
|
109
|
+
error,
|
|
110
|
+
fetchMore,
|
|
111
|
+
refetch,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=attentions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attentions.js","sourceRoot":"","sources":["../../../src/queries/attentions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAoB,MAAM,gBAAgB,CAAC;AAIjE,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DhC,CAAC;AAiBF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,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,QAAQ,CAC3D,cAAc,EACd;QACE,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,IAAI,KAAK,IAAI;QACnB,GAAG,OAAO;KACX,CACF,CAAC;IAEF,MAAM,UAAU,GAAG,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAC/E,MAAM,UAAU,GAAG,IAAI,EAAE,eAAe,EAAE,UAAU,IAAI,CAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG,IAAI,EAAE,eAAe,EAAE,QAAQ,IAAI,IAAI,CAAC;IAEzD,OAAO;QACL,UAAU;QACV,UAAU;QACV,QAAQ;QACR,OAAO;QACP,KAAK;QACL,SAAS;QACT,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { QueryHookOptions } from '@apollo/client';
|
|
2
|
+
import { AttentionLight } from '../types/attention';
|
|
3
|
+
import { FilterInput, SortInput, DateEnum, Connection } from '../types/common';
|
|
4
|
+
export declare const GET_ATTENTIONS_LIGHT: import("@apollo/client").DocumentNode;
|
|
5
|
+
export interface FetchAttentionsLightVariables {
|
|
6
|
+
date?: DateEnum;
|
|
7
|
+
filters?: FilterInput;
|
|
8
|
+
sort?: SortInput;
|
|
9
|
+
first?: number;
|
|
10
|
+
last?: number;
|
|
11
|
+
after?: string | null;
|
|
12
|
+
before?: string | null;
|
|
13
|
+
skip?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface FetchAttentionsLightResponse {
|
|
16
|
+
fetchAttentions: Connection<AttentionLight>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* React hook to fetch attentions with minimal data from Makana GraphQL API
|
|
20
|
+
* This is a lightweight query that only returns user id and business id
|
|
21
|
+
*
|
|
22
|
+
* @param variables - Query variables (filters, pagination, date, etc.)
|
|
23
|
+
* @param options - Additional Apollo Client query options
|
|
24
|
+
* @returns Object containing attentions data, loading state, error, and refetch function
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* // Filter by date enum
|
|
29
|
+
* const { attentions, loading } = useGetAttentionsLight({
|
|
30
|
+
* date: 'CURRENT_MONTH',
|
|
31
|
+
* first: 100
|
|
32
|
+
* });
|
|
33
|
+
*
|
|
34
|
+
* // Filter by date range
|
|
35
|
+
* const { attentions } = useGetAttentionsLight({
|
|
36
|
+
* filters: {
|
|
37
|
+
* businessId: '123',
|
|
38
|
+
* dateRange: {
|
|
39
|
+
* startDate: '2024-01-01',
|
|
40
|
+
* endDate: '2024-12-31'
|
|
41
|
+
* }
|
|
42
|
+
* }
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function useGetAttentionsLight(variables?: FetchAttentionsLightVariables, options?: Omit<QueryHookOptions<FetchAttentionsLightResponse, FetchAttentionsLightVariables>, 'variables'>): {
|
|
47
|
+
attentions: AttentionLight[];
|
|
48
|
+
totalCount: number;
|
|
49
|
+
pageInfo: import("../types/common").PageInfo | null;
|
|
50
|
+
loading: boolean;
|
|
51
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
52
|
+
fetchMore: <TFetchData = FetchAttentionsLightResponse, TFetchVars extends import("@apollo/client").OperationVariables = FetchAttentionsLightVariables>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
53
|
+
updateQuery?: ((previousQueryResult: FetchAttentionsLightResponse, options: {
|
|
54
|
+
fetchMoreResult: import("@apollo/client").Unmasked<TFetchData>;
|
|
55
|
+
variables: TFetchVars;
|
|
56
|
+
}) => FetchAttentionsLightResponse) | undefined;
|
|
57
|
+
}) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
|
|
58
|
+
refetch: (variables?: Partial<FetchAttentionsLightVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<FetchAttentionsLightResponse>>;
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=attentionsLight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attentionsLight.d.ts","sourceRoot":"","sources":["../../../src/queries/attentionsLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE/E,eAAO,MAAM,oBAAoB,uCAwChC,CAAC;AAEF,MAAM,WAAW,6BAA6B;IAC5C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,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,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,4BAA4B;IAC3C,eAAe,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,GAAE,6BAAkC,EAC7C,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,CAAC,4BAA4B,EAAE,6BAA6B,CAAC,EAAE,WAAW,CAAC;;;;;;;;;;;;;EA2B3G"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { gql, useQuery } from '@apollo/client';
|
|
2
|
+
export const GET_ATTENTIONS_LIGHT = gql `
|
|
3
|
+
query FetchAttentions(
|
|
4
|
+
$date: DateEnum
|
|
5
|
+
$filters: FilterInput
|
|
6
|
+
$sort: SortInput
|
|
7
|
+
$first: Int
|
|
8
|
+
$last: Int
|
|
9
|
+
$after: String
|
|
10
|
+
$before: String
|
|
11
|
+
) {
|
|
12
|
+
fetchAttentions(
|
|
13
|
+
date: $date
|
|
14
|
+
filters: $filters
|
|
15
|
+
sort: $sort
|
|
16
|
+
first: $first
|
|
17
|
+
last: $last
|
|
18
|
+
after: $after
|
|
19
|
+
before: $before
|
|
20
|
+
) {
|
|
21
|
+
totalCount
|
|
22
|
+
edges {
|
|
23
|
+
node {
|
|
24
|
+
id
|
|
25
|
+
date
|
|
26
|
+
user {
|
|
27
|
+
id
|
|
28
|
+
business {
|
|
29
|
+
id
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
pageInfo {
|
|
35
|
+
hasNextPage
|
|
36
|
+
hasPreviousPage
|
|
37
|
+
startCursor
|
|
38
|
+
endCursor
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
/**
|
|
44
|
+
* React hook to fetch attentions with minimal data from Makana GraphQL API
|
|
45
|
+
* This is a lightweight query that only returns user id and business id
|
|
46
|
+
*
|
|
47
|
+
* @param variables - Query variables (filters, pagination, date, etc.)
|
|
48
|
+
* @param options - Additional Apollo Client query options
|
|
49
|
+
* @returns Object containing attentions data, loading state, error, and refetch function
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* // Filter by date enum
|
|
54
|
+
* const { attentions, loading } = useGetAttentionsLight({
|
|
55
|
+
* date: 'CURRENT_MONTH',
|
|
56
|
+
* first: 100
|
|
57
|
+
* });
|
|
58
|
+
*
|
|
59
|
+
* // Filter by date range
|
|
60
|
+
* const { attentions } = useGetAttentionsLight({
|
|
61
|
+
* filters: {
|
|
62
|
+
* businessId: '123',
|
|
63
|
+
* dateRange: {
|
|
64
|
+
* startDate: '2024-01-01',
|
|
65
|
+
* endDate: '2024-12-31'
|
|
66
|
+
* }
|
|
67
|
+
* }
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export function useGetAttentionsLight(variables = {}, options) {
|
|
72
|
+
const { skip, ...queryVariables } = variables;
|
|
73
|
+
const { loading, error, data, fetchMore, refetch } = useQuery(GET_ATTENTIONS_LIGHT, {
|
|
74
|
+
variables: queryVariables,
|
|
75
|
+
fetchPolicy: 'cache-first',
|
|
76
|
+
skip: skip === true,
|
|
77
|
+
...options,
|
|
78
|
+
});
|
|
79
|
+
const attentions = data?.fetchAttentions?.edges.map((edge) => edge.node) || [];
|
|
80
|
+
const totalCount = data?.fetchAttentions?.totalCount || 0;
|
|
81
|
+
const pageInfo = data?.fetchAttentions?.pageInfo || null;
|
|
82
|
+
return {
|
|
83
|
+
attentions,
|
|
84
|
+
totalCount,
|
|
85
|
+
pageInfo,
|
|
86
|
+
loading,
|
|
87
|
+
error,
|
|
88
|
+
fetchMore,
|
|
89
|
+
refetch,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=attentionsLight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attentionsLight.js","sourceRoot":"","sources":["../../../src/queries/attentionsLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAoB,MAAM,gBAAgB,CAAC;AAIjE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCtC,CAAC;AAiBF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,qBAAqB,CACnC,YAA2C,EAAE,EAC7C,OAA0G;IAE1G,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAG,SAAS,CAAC;IAE9C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,QAAQ,CAC3D,oBAAoB,EACpB;QACE,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,IAAI,KAAK,IAAI;QACnB,GAAG,OAAO;KACX,CACF,CAAC;IAEF,MAAM,UAAU,GAAG,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAC/E,MAAM,UAAU,GAAG,IAAI,EAAE,eAAe,EAAE,UAAU,IAAI,CAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG,IAAI,EAAE,eAAe,EAAE,QAAQ,IAAI,IAAI,CAAC;IAEzD,OAAO;QACL,UAAU;QACV,UAAU;QACV,QAAQ;QACR,OAAO;QACP,KAAK;QACL,SAAS;QACT,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Department } from './department';
|
|
2
|
+
import { Business } from './business';
|
|
3
|
+
export interface AttentionUser {
|
|
4
|
+
id?: number;
|
|
5
|
+
name?: string;
|
|
6
|
+
firstName?: string;
|
|
7
|
+
lastName?: string;
|
|
8
|
+
rut?: string;
|
|
9
|
+
disease?: boolean;
|
|
10
|
+
currentPlan?: {
|
|
11
|
+
plan: string;
|
|
12
|
+
stats: string;
|
|
13
|
+
} | null;
|
|
14
|
+
department?: Department;
|
|
15
|
+
business?: Business;
|
|
16
|
+
}
|
|
17
|
+
export interface Attention {
|
|
18
|
+
id?: number;
|
|
19
|
+
protocol?: string;
|
|
20
|
+
registerInMetrics?: any;
|
|
21
|
+
registerOutMetrics?: any;
|
|
22
|
+
date?: string;
|
|
23
|
+
user?: AttentionUser;
|
|
24
|
+
}
|
|
25
|
+
export interface AttentionLightUser {
|
|
26
|
+
id?: number;
|
|
27
|
+
business?: {
|
|
28
|
+
id: number;
|
|
29
|
+
name?: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface AttentionLight {
|
|
33
|
+
id?: number;
|
|
34
|
+
date?: string;
|
|
35
|
+
user?: AttentionLightUser;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=attention.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attention.d.ts","sourceRoot":"","sources":["../../../src/types/attention.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,IAAI,CAAC;IACT,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,kBAAkB,CAAC,EAAE,GAAG,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attention.js","sourceRoot":"","sources":["../../../src/types/attention.ts"],"names":[],"mappings":""}
|
|
@@ -1 +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"}
|
|
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;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","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"}
|
|
1
|
+
{"version":3,"file":"index.js","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;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -11,11 +11,15 @@ export { useGetUsers } from './queries/users';
|
|
|
11
11
|
export { useGetUsersLight } from './queries/usersLight';
|
|
12
12
|
export { useGetBusinesses } from './queries/businesses';
|
|
13
13
|
export { useSearchBusinesses } from './queries/searchBusinesses';
|
|
14
|
+
export { useGetAttentions } from './queries/attentions';
|
|
15
|
+
export { useGetAttentionsLight } from './queries/attentionsLight';
|
|
14
16
|
// GraphQL queries (for advanced usage)
|
|
15
17
|
export { GET_USERS } from './queries/users';
|
|
16
18
|
export { GET_USERS_LIGHT } from './queries/usersLight';
|
|
17
19
|
export { GET_BUSINESSES } from './queries/businesses';
|
|
18
20
|
export { SEARCH_BUSINESSES } from './queries/searchBusinesses';
|
|
21
|
+
export { GET_ATTENTIONS } from './queries/attentions';
|
|
22
|
+
export { GET_ATTENTIONS_LIGHT } from './queries/attentionsLight';
|
|
19
23
|
// Types
|
|
20
24
|
export * from './types';
|
|
21
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,uCAAuC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe;AACf,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,uCAAuC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,QAAQ;AACR,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { QueryHookOptions } from '@apollo/client';
|
|
2
|
+
import { Attention } from '../types/attention';
|
|
3
|
+
import { FilterInput, SortInput, DateEnum, Connection } from '../types/common';
|
|
4
|
+
export declare const GET_ATTENTIONS: import("@apollo/client").DocumentNode;
|
|
5
|
+
export interface FetchAttentionsVariables {
|
|
6
|
+
date?: DateEnum;
|
|
7
|
+
filters?: FilterInput;
|
|
8
|
+
sort?: SortInput;
|
|
9
|
+
first?: number;
|
|
10
|
+
last?: number;
|
|
11
|
+
after?: string | null;
|
|
12
|
+
before?: string | null;
|
|
13
|
+
skip?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface FetchAttentionsResponse {
|
|
16
|
+
fetchAttentions: Connection<Attention>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* React hook to fetch attentions from Makana GraphQL API
|
|
20
|
+
*
|
|
21
|
+
* @param variables - Query variables (filters, pagination, date, etc.)
|
|
22
|
+
* @param options - Additional Apollo Client query options
|
|
23
|
+
* @returns Object containing attentions data, loading state, error, and refetch function
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* // Filter by date enum
|
|
28
|
+
* const { attentions, loading } = useGetAttentions({
|
|
29
|
+
* date: 'CURRENT_MONTH',
|
|
30
|
+
* filters: { businessId: '123' },
|
|
31
|
+
* first: 10
|
|
32
|
+
* });
|
|
33
|
+
*
|
|
34
|
+
* // Filter by date range
|
|
35
|
+
* const { attentions } = useGetAttentions({
|
|
36
|
+
* filters: {
|
|
37
|
+
* businessId: '123',
|
|
38
|
+
* dateRange: {
|
|
39
|
+
* startDate: '2024-01-01',
|
|
40
|
+
* endDate: '2024-12-31'
|
|
41
|
+
* }
|
|
42
|
+
* }
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function useGetAttentions(variables?: FetchAttentionsVariables, options?: Omit<QueryHookOptions<FetchAttentionsResponse, FetchAttentionsVariables>, 'variables'>): {
|
|
47
|
+
attentions: Attention[];
|
|
48
|
+
totalCount: number;
|
|
49
|
+
pageInfo: import("../types/common").PageInfo | null;
|
|
50
|
+
loading: boolean;
|
|
51
|
+
error: import("@apollo/client").ApolloError | undefined;
|
|
52
|
+
fetchMore: <TFetchData = FetchAttentionsResponse, TFetchVars extends import("@apollo/client").OperationVariables = FetchAttentionsVariables>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
53
|
+
updateQuery?: ((previousQueryResult: FetchAttentionsResponse, options: {
|
|
54
|
+
fetchMoreResult: import("@apollo/client").Unmasked<TFetchData>;
|
|
55
|
+
variables: TFetchVars;
|
|
56
|
+
}) => FetchAttentionsResponse) | undefined;
|
|
57
|
+
}) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
|
|
58
|
+
refetch: (variables?: Partial<FetchAttentionsVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<FetchAttentionsResponse>>;
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=attentions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attentions.d.ts","sourceRoot":"","sources":["../../../src/queries/attentions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE/E,eAAO,MAAM,cAAc,uCA8D1B,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,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,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,GAAE,wBAA6B,EACxC,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,wBAAwB,CAAC,EAAE,WAAW,CAAC;;;;;;;;;;;;;EA2BjG"}
|