@instructure/platform-institutional-tagging 3.0.2 → 4.0.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.
Files changed (98) hide show
  1. package/dist/App.d.ts.map +1 -1
  2. package/dist/__tests__/helpers.d.ts +1 -0
  3. package/dist/__tests__/helpers.d.ts.map +1 -1
  4. package/dist/api/index.d.ts +2 -3
  5. package/dist/api/index.d.ts.map +1 -1
  6. package/dist/api/types.d.ts +8 -13
  7. package/dist/api/types.d.ts.map +1 -1
  8. package/dist/api/utils.d.ts +9 -1
  9. package/dist/api/utils.d.ts.map +1 -1
  10. package/dist/components/Alert/AlertProvider.d.ts.map +1 -1
  11. package/dist/components/Alert/AriaLiveContainer.d.ts +3 -0
  12. package/dist/components/Alert/AriaLiveContainer.d.ts.map +1 -0
  13. package/dist/components/Alert/constants.d.ts +3 -0
  14. package/dist/components/Alert/constants.d.ts.map +1 -0
  15. package/dist/components/AppContainer/GenericStoryWrapper.d.ts.map +1 -1
  16. package/dist/components/Category/BottomSection.d.ts.map +1 -1
  17. package/dist/components/Category/CategoryInfoPills.d.ts.map +1 -1
  18. package/dist/components/Category/CategoryList.d.ts.map +1 -1
  19. package/dist/components/Category/CategoryListItem.d.ts.map +1 -1
  20. package/dist/components/Category/TagArea.d.ts.map +1 -1
  21. package/dist/components/Category/types.d.ts +5 -4
  22. package/dist/components/Category/types.d.ts.map +1 -1
  23. package/dist/components/NewCategoryButton/NewCategoryButton.d.ts.map +1 -1
  24. package/dist/components/NewCategoryButton/styles.d.ts +0 -3
  25. package/dist/components/NewCategoryButton/styles.d.ts.map +1 -1
  26. package/dist/components/NewCategoryButton/useNewCategoryPopover.d.ts +1 -2
  27. package/dist/components/NewCategoryButton/useNewCategoryPopover.d.ts.map +1 -1
  28. package/dist/components/Tag/Tag.d.ts +4 -4
  29. package/dist/components/Tag/Tag.d.ts.map +1 -1
  30. package/dist/constants/app.d.ts +1 -0
  31. package/dist/constants/app.d.ts.map +1 -1
  32. package/dist/constants/i18n.d.ts +1 -0
  33. package/dist/constants/i18n.d.ts.map +1 -1
  34. package/dist/contexts/CategoryContext.d.ts +3 -3
  35. package/dist/graphql/mutations.d.ts +10 -0
  36. package/dist/graphql/mutations.d.ts.map +1 -0
  37. package/dist/graphql/queries.d.ts +7 -0
  38. package/dist/graphql/queries.d.ts.map +1 -0
  39. package/dist/hooks/useAccountTagsScreen.d.ts +4 -2
  40. package/dist/hooks/useAccountTagsScreen.d.ts.map +1 -1
  41. package/dist/hooks/useArchiveTag.d.ts +2 -2
  42. package/dist/hooks/useArchiveTag.d.ts.map +1 -1
  43. package/dist/hooks/useCreateCategory.d.ts +7 -2
  44. package/dist/hooks/useCreateCategory.d.ts.map +1 -1
  45. package/dist/hooks/useFetchTagsForCategory.d.ts +4 -2
  46. package/dist/hooks/useFetchTagsForCategory.d.ts.map +1 -1
  47. package/dist/hooks/useMoveTag.d.ts +2 -2
  48. package/dist/hooks/useMoveTag.d.ts.map +1 -1
  49. package/dist/hooks/usePlatformUiContext.d.ts +5 -0
  50. package/dist/hooks/usePlatformUiContext.d.ts.map +1 -0
  51. package/dist/index.js +8333 -10812
  52. package/dist/modals/MoveTagModal/MoveTagModal.d.ts +2 -2
  53. package/dist/modals/TagModal/CreateTagModal.d.ts +2 -2
  54. package/dist/modals/TagModal/CreateTagModal.d.ts.map +1 -1
  55. package/dist/modals/TagModal/EditTagModal.d.ts +1 -1
  56. package/dist/modals/TagModal/fields/CategoryField.d.ts +4 -3
  57. package/dist/modals/TagModal/fields/CategoryField.d.ts.map +1 -1
  58. package/dist/modals/TagModal/hooks/useCategoryFormFields.d.ts +8 -6
  59. package/dist/modals/TagModal/hooks/useCategoryFormFields.d.ts.map +1 -1
  60. package/dist/modals/TagModal/hooks/useCreateTagForm.d.ts +6 -4
  61. package/dist/modals/TagModal/hooks/useCreateTagForm.d.ts.map +1 -1
  62. package/dist/modals/TagModal/hooks/useEditTagForm.d.ts +4 -4
  63. package/dist/modals/TagModal/hooks/useEditTagForm.d.ts.map +1 -1
  64. package/dist/screens/AccountTags/AccountTags.d.ts.map +1 -1
  65. package/dist/stories/mocks/application.d.ts.map +1 -1
  66. package/dist/stories/mocks/category.d.ts.map +1 -1
  67. package/dist/stories/mocks/tag.d.ts.map +1 -1
  68. package/dist/types/application.d.ts +6 -9
  69. package/dist/types/application.d.ts.map +1 -1
  70. package/dist/types/category.d.ts +7 -11
  71. package/dist/types/category.d.ts.map +1 -1
  72. package/dist/types/context.d.ts +3 -7
  73. package/dist/types/context.d.ts.map +1 -1
  74. package/dist/types/index.d.ts +1 -0
  75. package/dist/types/index.d.ts.map +1 -1
  76. package/dist/types/tag.d.ts +8 -11
  77. package/dist/types/tag.d.ts.map +1 -1
  78. package/dist/types/user.d.ts +5 -0
  79. package/dist/types/user.d.ts.map +1 -0
  80. package/dist/utils/category.d.ts +1 -1
  81. package/locales/en.json +1 -0
  82. package/package.json +4 -5
  83. package/dist/api/constants.d.ts +0 -4
  84. package/dist/api/constants.d.ts.map +0 -1
  85. package/dist/api/schemas.d.ts +0 -349
  86. package/dist/api/schemas.d.ts.map +0 -1
  87. package/dist/services/association.d.ts +0 -6
  88. package/dist/services/association.d.ts.map +0 -1
  89. package/dist/services/category.d.ts +0 -15
  90. package/dist/services/category.d.ts.map +0 -1
  91. package/dist/services/tag.d.ts +0 -25
  92. package/dist/services/tag.d.ts.map +0 -1
  93. package/dist/services/users.d.ts +0 -12
  94. package/dist/services/users.d.ts.map +0 -1
  95. package/dist/types/pageable.d.ts +0 -8
  96. package/dist/types/pageable.d.ts.map +0 -1
  97. package/dist/utils/pagination.d.ts +0 -4
  98. package/dist/utils/pagination.d.ts.map +0 -1
package/dist/App.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAkBvB,CAAA"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAkBvB,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { QueryClient } from '@tanstack/react-query';
2
2
  import { AlertConfig } from '../contexts/AlertContext';
3
3
  import { default as React } from 'react';
4
+ export declare const createGqlHandler: (operationName: string, mockData: unknown) => import('msw').HttpHandler;
4
5
  export declare const createWrapper: (queryClient: QueryClient, showAlert?: (config: AlertConfig) => void) => ({ children }: {
5
6
  children: React.ReactNode;
6
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/__tests__/helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAA;AAExE,OAAO,EAAE,WAAW,EAAgB,MAAM,wBAAwB,CAAA;AAElE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,aAAa,GACvB,aAAa,WAAW,EAAE,YAAW,CAAC,MAAM,EAAE,WAAW,KAAK,IAAe,MAC7E,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CAM3C,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/__tests__/helpers.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,WAAW,EAAgB,MAAM,wBAAwB,CAAA;AAKlE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,gBAAgB,GAAI,eAAe,MAAM,EAAE,UAAU,OAAO,8BAKrE,CAAA;AAeJ,eAAO,MAAM,aAAa,GACvB,aAAa,WAAW,EAAE,YAAW,CAAC,MAAM,EAAE,WAAW,KAAK,IAAe,MAC7E,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CAW3C,CAAA"}
@@ -1,4 +1,3 @@
1
- export { ACCOUNT_ID, accountBase } from './constants';
2
- export { HttpStatus } from './types';
3
- export { isApiError } from './utils';
1
+ export type { CursorPagedResponse } from './types';
2
+ export { hasGqlConflict, isGqlError } from './utils';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA"}
@@ -1,15 +1,10 @@
1
- import { ParsedLinks } from '@instructure/platform-canvas-fetch';
2
- export interface PagedResponse<T> {
3
- data: T[];
4
- link?: ParsedLinks;
5
- total: number;
6
- }
7
- export declare enum HttpStatus {
8
- BadRequest = 400,
9
- Unauthorized = 401,
10
- Forbidden = 403,
11
- NotFound = 404,
12
- Conflict = 409,
13
- UnprocessableEntity = 422
1
+ export interface CursorPagedResponse<T> {
2
+ nodes: T[];
3
+ pageInfo: {
4
+ hasNextPage: boolean;
5
+ hasPreviousPage: boolean;
6
+ endCursor: string | null;
7
+ startCursor: string | null;
8
+ };
14
9
  }
15
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAErE,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,IAAI,EAAE,CAAC,EAAE,CAAA;IACT,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,oBAAY,UAAU;IACpB,UAAU,MAAM;IAChB,YAAY,MAAM;IAClB,SAAS,MAAM;IACf,QAAQ,MAAM;IACd,QAAQ,MAAM;IACd,mBAAmB,MAAM;CAC1B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,KAAK,EAAE,CAAC,EAAE,CAAA;IACV,QAAQ,EAAE;QACR,WAAW,EAAE,OAAO,CAAA;QACpB,eAAe,EAAE,OAAO,CAAA;QACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;QACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAC3B,CAAA;CACF"}
@@ -1,2 +1,10 @@
1
- export declare const isApiError: (error: unknown, status: number) => boolean;
1
+ interface GqlPayload {
2
+ errors?: Array<{
3
+ attribute?: string | null;
4
+ message: string;
5
+ } | null> | null;
6
+ }
7
+ export declare function isGqlError(payload: GqlPayload | null | undefined): boolean;
8
+ export declare function hasGqlConflict(payload: GqlPayload | null | undefined): boolean;
9
+ export {};
2
10
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/api/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,EAAE,QAAQ,MAAM,KAAG,OACE,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/api/utils.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAA;CAC7E;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAE1E;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAQ9E"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlertProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/AlertProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAmCjE,CAAA"}
1
+ {"version":3,"file":"AlertProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/AlertProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAwBzB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAsCjE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const AriaLiveContainer: React.FC;
3
+ //# sourceMappingURL=AriaLiveContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AriaLiveContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/AriaLiveContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAWnC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const POLITE_SR_IDS: readonly ["inst-tagging-sr-polite-0", "inst-tagging-sr-polite-1"];
2
+ export declare const ASSERTIVE_SR_IDS: readonly ["inst-tagging-sr-assertive-0", "inst-tagging-sr-assertive-1"];
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,mEAAoE,CAAA;AAC9F,eAAO,MAAM,gBAAgB,yEAGnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"GenericStoryWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/GenericStoryWrapper.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,wBAAwB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAYlE,CAAA"}
1
+ {"version":3,"file":"GenericStoryWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/GenericStoryWrapper.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,UAAU,wBAAwB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAkBlE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSection.d.ts","sourceRoot":"","sources":["../../../src/components/Category/BottomSection.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA2GlD,CAAA"}
1
+ {"version":3,"file":"BottomSection.d.ts","sourceRoot":"","sources":["../../../src/components/Category/BottomSection.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8GlD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CategoryInfoPills.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryInfoPills.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAoC9D,CAAA"}
1
+ {"version":3,"file":"CategoryInfoPills.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryInfoPills.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA4C9D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CategoryList.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryList.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmDpD,CAAA"}
1
+ {"version":3,"file":"CategoryList.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryList.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqDpD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CategoryListItem.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryListItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiB5D,CAAA"}
1
+ {"version":3,"file":"CategoryListItem.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryListItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAe5D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"TagArea.d.ts","sourceRoot":"","sources":["../../../src/components/Category/TagArea.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAsJ1C,CAAA"}
1
+ {"version":3,"file":"TagArea.d.ts","sourceRoot":"","sources":["../../../src/components/Category/TagArea.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAqJ1C,CAAA"}
@@ -20,6 +20,7 @@ export interface CategoryListItemProps {
20
20
  export interface CategoryListProps {
21
21
  categories: CategoryType[];
22
22
  isPending: boolean;
23
+ isFetching: boolean;
23
24
  isError: boolean;
24
25
  error: Error | null;
25
26
  currentPage: number;
@@ -34,12 +35,12 @@ export interface CategoryProps {
34
35
  currentPage?: number;
35
36
  totalPages?: number;
36
37
  onPageChange?: (page: number) => void;
37
- editHandler?: (categoryId: number) => void;
38
- viewAllPeopleHandler?: (categoryId: number) => void;
39
- archiveHandler?: (categoryId: number) => void;
38
+ editHandler?: (categoryId: string) => void;
39
+ viewAllPeopleHandler?: (categoryId: string) => void;
40
+ archiveHandler?: (categoryId: string) => void;
40
41
  }
41
42
  export interface TagAreaProps {
42
- categoryId: number;
43
+ categoryId: string;
43
44
  tags?: TagType[];
44
45
  isLoadingTags?: boolean;
45
46
  currentPage?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Category/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,YAAY,CAAA;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,YAAY,EAAE,CAAA;IAC1B,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9C;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,UAAU,EAAE,OAAO,CAAA;CACpB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Category/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,YAAY,CAAA;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,YAAY,EAAE,CAAA;IAC1B,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9C;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,UAAU,EAAE,OAAO,CAAA;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewCategoryButton.d.ts","sourceRoot":"","sources":["../../../src/components/NewCategoryButton/NewCategoryButton.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAiErC,CAAA"}
1
+ {"version":3,"file":"NewCategoryButton.d.ts","sourceRoot":"","sources":["../../../src/components/NewCategoryButton/NewCategoryButton.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAoErC,CAAA"}
@@ -1,7 +1,4 @@
1
1
  export declare const PopoverContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
2
  export declare const FormWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
- export declare const NewCategoryButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
4
3
  export declare const ButtonRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
- export declare const CancelButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
6
- export declare const SaveButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
7
4
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/NewCategoryButton/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,6NAQ1B,CAAA;AAED,eAAO,MAAM,WAAW,6NAEvB,CAAA;AAED,eAAO,MAAM,wBAAwB,+NAEpC,CAAA;AAED,eAAO,MAAM,SAAS,6NAIrB,CAAA;AAED,eAAO,MAAM,mBAAmB,+NAE/B,CAAA;AAED,eAAO,MAAM,iBAAiB,+NAE7B,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/NewCategoryButton/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,6NAI1B,CAAA;AAED,eAAO,MAAM,WAAW,6NAIvB,CAAA;AAED,eAAO,MAAM,SAAS,6NAKrB,CAAA"}
@@ -4,8 +4,7 @@ export declare const useNewCategoryPopover: () => {
4
4
  isOpen: boolean;
5
5
  name: string;
6
6
  description: string;
7
- nameMessages: FormMessage[];
8
- formMessages: FormMessage[];
7
+ nameErrors: FormMessage[];
9
8
  onOpen: () => void;
10
9
  onClose: () => void;
11
10
  onNameChange: (value: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useNewCategoryPopover.d.ts","sourceRoot":"","sources":["../../../src/components/NewCategoryButton/useNewCategoryPopover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAK7D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,qBAAqB;;;;;;;;0BA2BC,MAAM;;;CA8BxC,CAAA"}
1
+ {"version":3,"file":"useNewCategoryPopover.d.ts","sourceRoot":"","sources":["../../../src/components/NewCategoryButton/useNewCategoryPopover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAK7D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,qBAAqB;;;;;;;0BA0BC,MAAM;;;CA4BxC,CAAA"}
@@ -4,11 +4,11 @@ export interface TagProps {
4
4
  tag: TagType;
5
5
  isSelected: boolean;
6
6
  editHandler: (tag: TagType) => void;
7
- viewAllPeopleHandler: (tagId: number) => void;
8
- archiveHandler: (tagId: number) => void;
9
- restoreHandler: (tagId: number) => void;
7
+ viewAllPeopleHandler: (tagId: string) => void;
8
+ archiveHandler: (tagId: string) => void;
9
+ restoreHandler: (tagId: string) => void;
10
10
  moveToHandler: () => void;
11
- onSelectHandler: (tagId: number) => void;
11
+ onSelectHandler: (tagId: string) => void;
12
12
  }
13
13
  export declare const Tag: React.FC<TagProps>;
14
14
  //# sourceMappingURL=Tag.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACzC;AAiHD,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAKlC,CAAA"}
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACzC;AAmHD,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAKlC,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export declare const AppContainerName = "institutional-tagging-app-container";
2
+ export declare const NEW_CATEGORY_SENTINEL = "new";
2
3
  //# sourceMappingURL=app.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,wCAAwC,CAAA"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,wCAAwC,CAAA;AACrE,eAAO,MAAM,qBAAqB,QAAQ,CAAA"}
@@ -44,6 +44,7 @@ export declare const i18nKeys: {
44
44
  readonly other: "%{count} tags selected";
45
45
  };
46
46
  readonly viewTagDetails: "View tag details";
47
+ readonly categoryCreated: "Category created";
47
48
  readonly tagArchived: "Tag archived";
48
49
  readonly tagDeleted: "Tag deleted";
49
50
  readonly tagMoved: {
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/constants/i18n.ts"],"names":[],"mappings":"AAmGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAA"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/constants/i18n.ts"],"names":[],"mappings":"AAoGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAA"}
@@ -2,9 +2,9 @@ import { CategoryContextValue } from '../types/context';
2
2
  import { default as React } from 'react';
3
3
  interface CategoryProviderProps {
4
4
  children: React.ReactNode;
5
- editHandler?: (id: number) => void;
6
- viewAllPeopleHandler?: (id: number) => void;
7
- archiveHandler?: (id: number) => void;
5
+ editHandler?: (id: string) => void;
6
+ viewAllPeopleHandler?: (id: string) => void;
7
+ archiveHandler?: (id: string) => void;
8
8
  }
9
9
  export declare const CategoryProvider: React.FC<CategoryProviderProps>;
10
10
  export declare const useCategoryContext: () => CategoryContextValue;
@@ -0,0 +1,10 @@
1
+ import { DocumentNode } from 'graphql';
2
+ export declare const CREATE_INSTITUTIONAL_TAG_CATEGORY: DocumentNode;
3
+ export declare const UPDATE_INSTITUTIONAL_TAG_CATEGORY: DocumentNode;
4
+ export declare const ARCHIVE_INSTITUTIONAL_TAG_CATEGORY: DocumentNode;
5
+ export declare const CREATE_INSTITUTIONAL_TAG: DocumentNode;
6
+ export declare const UPDATE_INSTITUTIONAL_TAG: DocumentNode;
7
+ export declare const ARCHIVE_INSTITUTIONAL_TAG: DocumentNode;
8
+ export declare const APPLY_INSTITUTIONAL_TAG: DocumentNode;
9
+ export declare const REMOVE_INSTITUTIONAL_TAG: DocumentNode;
10
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/graphql/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,eAAO,MAAM,iCAAiC,EAAE,YAiB/C,CAAA;AAED,eAAO,MAAM,iCAAiC,EAAE,YAiB/C,CAAA;AAED,eAAO,MAAM,kCAAkC,EAAE,YAahD,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,YAsBtC,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,YAsBtC,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,YAavC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,YAoBrC,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,YAYtC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { DocumentNode } from 'graphql';
2
+ export declare const GET_INSTITUTIONAL_TAG_CATEGORIES: DocumentNode;
3
+ export declare const GET_INSTITUTIONAL_TAGS_FOR_CATEGORY: DocumentNode;
4
+ export declare const GET_INSTITUTIONAL_TAG: DocumentNode;
5
+ export declare const GET_INSTITUTIONAL_TAG_CATEGORY: DocumentNode;
6
+ export declare const GET_INSTITUTIONAL_TAG_CATEGORY_WITH_TAGS: DocumentNode;
7
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/graphql/queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,eAAO,MAAM,gCAAgC,EAAE,YAkC9C,CAAA;AAED,eAAO,MAAM,mCAAmC,EAAE,YAuCjD,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,YAcnC,CAAA;AAED,eAAO,MAAM,8BAA8B,EAAE,YAS5C,CAAA;AAED,eAAO,MAAM,wCAAwC,EAAE,YAiCtD,CAAA"}
@@ -1,7 +1,9 @@
1
+ import { CategoryType } from '../types/category';
1
2
  import { ViewType } from '../types/state';
2
3
  export declare const useAccountTagsScreen: () => {
3
- shownCategories: import('../types').CategoryType[];
4
+ shownCategories: CategoryType[];
4
5
  isPending: boolean;
6
+ isFetching: boolean;
5
7
  isError: boolean;
6
8
  error: Error | null;
7
9
  currentPage: number;
@@ -10,6 +12,6 @@ export declare const useAccountTagsScreen: () => {
10
12
  handleSearchQueryChange: (query: string) => void;
11
13
  handleViewTypeChange: (view: ViewType) => void;
12
14
  selectedView: ViewType;
13
- searchResultCount: number;
15
+ searchResultCount: any;
14
16
  };
15
17
  //# sourceMappingURL=useAccountTagsScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAccountTagsScreen.d.ts","sourceRoot":"","sources":["../../src/hooks/useAccountTagsScreen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAWtD,eAAO,MAAM,oBAAoB;;;;WA8Cb,KAAK,GAAG,IAAI;;;;qCAhCU,MAAM;iCAIV,QAAQ;;;CAqC7C,CAAA"}
1
+ {"version":3,"file":"useAccountTagsScreen.d.ts","sourceRoot":"","sources":["../../src/hooks/useAccountTagsScreen.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAUtD,eAAO,MAAM,oBAAoB;qBA+DxB,YAAY,EAAE;;;;WAIH,KAAK,GAAG,IAAI;;;6BAjBE,MAAM;qCA5BE,MAAM;iCAIV,QAAQ;;;CAkD7C,CAAA"}
@@ -1,4 +1,4 @@
1
- export declare const useArchiveTag: (categoryId: number) => {
2
- archive: import('@tanstack/react-query').UseMutateFunction<import('../types').TagType, unknown, number, unknown>;
1
+ export declare const useArchiveTag: (categoryId: string) => {
2
+ archive: import('@tanstack/react-query').UseMutateFunction<ArchiveInstitutionalTagMutation, Error, string, unknown>;
3
3
  };
4
4
  //# sourceMappingURL=useArchiveTag.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useArchiveTag.d.ts","sourceRoot":"","sources":["../../src/hooks/useArchiveTag.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM;;CAuB/C,CAAA"}
1
+ {"version":3,"file":"useArchiveTag.d.ts","sourceRoot":"","sources":["../../src/hooks/useArchiveTag.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM;;CA0B/C,CAAA"}
@@ -4,10 +4,15 @@ type CreateCategoryPayload = {
4
4
  };
5
5
  type UseCreateCategoryOptions = {
6
6
  onSuccess: () => void;
7
- onError: (error: unknown) => void;
7
+ onError: (payload: {
8
+ errors?: Array<{
9
+ attribute?: string | null;
10
+ message: string;
11
+ }> | null;
12
+ }) => void;
8
13
  };
9
14
  export declare const useCreateCategory: ({ onSuccess, onError }: UseCreateCategoryOptions) => {
10
- create: import('@tanstack/react-query').UseMutateFunction<import('../types').CategoryType, unknown, CreateCategoryPayload, unknown>;
15
+ create: import('@tanstack/react-query').UseMutateFunction<CreateInstitutionalTagCategoryMutation, Error, CreateCategoryPayload, unknown>;
11
16
  isPending: boolean;
12
17
  };
13
18
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateCategory.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreateCategory.ts"],"names":[],"mappings":"AAGA,KAAK,qBAAqB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnE,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,wBAAwB,wBAAwB;;;CAajF,CAAA"}
1
+ {"version":3,"file":"useCreateCategory.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreateCategory.ts"],"names":[],"mappings":"AAWA,KAAK,qBAAqB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnE,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,OAAO,EAAE,CAAC,OAAO,EAAE;QACjB,MAAM,CAAC,EAAE,KAAK,CAAC;YAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,GAAG,IAAI,CAAA;KACtE,KAAK,IAAI,CAAA;CACX,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,wBAAwB,wBAAwB;;;CA2BjF,CAAA"}
@@ -1,8 +1,10 @@
1
- export declare const useFetchTagsForCategory: (categoryId: number, workflowState?: string) => {
2
- tags: import('../types').TagType[];
1
+ import { TagType } from '../types/tag';
2
+ export declare const useFetchTagsForCategory: (categoryId: string, workflowState?: string) => {
3
+ tags: TagType[];
3
4
  isPending: boolean;
4
5
  currentPage: number;
5
6
  totalPages: number;
7
+ totalTagCount: any;
6
8
  handlePageChange: (page: number) => void;
7
9
  };
8
10
  //# sourceMappingURL=useFetchTagsForCategory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchTagsForCategory.d.ts","sourceRoot":"","sources":["../../src/hooks/useFetchTagsForCategory.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,uBAAuB,GAAI,YAAY,MAAM,EAAE,gBAAgB,MAAM;;;;;;CAiBjF,CAAA"}
1
+ {"version":3,"file":"useFetchTagsForCategory.d.ts","sourceRoot":"","sources":["../../src/hooks/useFetchTagsForCategory.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,eAAO,MAAM,uBAAuB,GAAI,YAAY,MAAM,EAAE,gBAAgB,MAAM;UAoCI,OAAO,EAAE;;;;;6BAX7D,MAAM;CAkBvC,CAAA"}
@@ -2,9 +2,9 @@ import { TagType } from '../types/tag';
2
2
  import { default as React } from 'react';
3
3
  export declare const useMoveTag: () => {
4
4
  handleMoveTag: (tag: TagType) => void;
5
- handleMoveTags: (tags: TagType[], sourceCategoryId: number) => void;
5
+ handleMoveTags: (tags: TagType[], sourceCategoryId: string) => void;
6
6
  validateRef: React.MutableRefObject<(() => boolean) | undefined>;
7
- selectedCategoryRef: React.MutableRefObject<number | undefined>;
7
+ selectedCategoryRef: React.MutableRefObject<string | undefined>;
8
8
  selectedCategoryNameRef: React.MutableRefObject<string>;
9
9
  };
10
10
  //# sourceMappingURL=useMoveTag.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMoveTag.d.ts","sourceRoot":"","sources":["../../src/hooks/useMoveTag.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,eAAO,MAAM,UAAU;yBAkEO,OAAO;2BAWL,OAAO,EAAE,oBAAoB,MAAM;+CAzEzB,OAAO;;;CAsFhD,CAAA"}
1
+ {"version":3,"file":"useMoveTag.d.ts","sourceRoot":"","sources":["../../src/hooks/useMoveTag.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,eAAO,MAAM,UAAU;yBAoEO,OAAO;2BAWL,OAAO,EAAE,oBAAoB,MAAM;+CA1EzB,OAAO;;;CAuFhD,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare function usePlatformUiContext(): {
2
+ accountId: string;
3
+ executeQuery: <TResult, TVariables = Record<string, unknown>>(query: unknown, variables: TVariables) => Promise<TResult>;
4
+ };
5
+ //# sourceMappingURL=usePlatformUiContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePlatformUiContext.d.ts","sourceRoot":"","sources":["../../src/hooks/usePlatformUiContext.ts"],"names":[],"mappings":"AAEA,wBAAgB,oBAAoB;;;EAGnC"}