@flarehr/apollo-super-selection 4.9.20170 → 4.10.22178

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 (20) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  3. package/dist/lib/apollo-super-selection/p-c7663dc0.system.entry.js +69 -0
  4. package/dist/lib/apollo-super-selection/{p-41ab9fa2.entry.js → p-c9778916.entry.js} +1 -1
  5. package/dist/lib/cjs/sss-button_29.cjs.entry.js +54 -36
  6. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +13 -7
  7. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +1 -1
  8. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +16 -8
  9. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.js +21 -6
  10. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +5 -16
  11. package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +1 -1
  12. package/dist/lib/esm/sss-button_29.entry.js +54 -36
  13. package/dist/lib/esm-es5/sss-button_29.entry.js +3 -3
  14. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +2 -5
  15. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +4 -1
  16. package/dist/lib/types/components/super-selection-app/misc/dropdown-async.d.ts +9 -1
  17. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +3 -4
  18. package/dist/lib/types/components.d.ts +3 -3
  19. package/package.json +2 -1
  20. package/dist/lib/apollo-super-selection/p-936e27f1.system.entry.js +0 -69
@@ -1,14 +1,11 @@
1
- import { AppStateDto, AustralianFundsLookupResponseDto } from './super-selection.api.dto';
1
+ import { AppStateDto, AustralianFundDto, AustralianFundsLookupResponseDto } from './super-selection.api.dto';
2
2
  export declare type SuperFundSearchFilter = {
3
- type: 'partialMatch';
4
3
  searchString: string;
5
4
  maxRecordCount: number;
6
- } | {
7
- type: 'usiMatch';
8
- usi: string;
9
5
  };
10
6
  export declare class SuperSelectionApi {
11
7
  getAustralianFundsAsync(searchFilter: SuperFundSearchFilter, includeInactive?: boolean): Promise<AustralianFundsLookupResponseDto>;
8
+ getAustralianFundAsync(usi: string, includeInactive: boolean): Promise<AustralianFundDto>;
12
9
  getAppStateAsync(): Promise<AppStateDto>;
13
10
  private toSearchFilterQueryString;
14
11
  private toQueryString;
@@ -112,7 +112,10 @@ export declare type AustralianFundDto = {
112
112
  dateTo: string;
113
113
  isActive: boolean;
114
114
  };
115
- export declare type AustralianFundsLookupResponseDto = Array<AustralianFundDto>;
115
+ export declare type AustralianFundsLookupResponseDto = {
116
+ result: string;
117
+ data: Array<AustralianFundDto>;
118
+ };
116
119
  export declare type AppStateDto = {
117
120
  superBuyer: SuperBuyerDto;
118
121
  accountConfiguration: AccountConfigurationDto;
@@ -3,9 +3,17 @@ export declare type SelectInputOption<T> = {
3
3
  label: string;
4
4
  value: T;
5
5
  };
6
+ export declare type TooManyResults = {
7
+ kind: 'too-many-results';
8
+ };
9
+ export declare type Success<T> = {
10
+ kind: 'success';
11
+ value: SelectInputOption<T>[];
12
+ };
13
+ export declare type SearchResult<T> = Success<T> | TooManyResults;
6
14
  export declare class SelectInputAsync {
7
15
  placeholder?: string;
8
- searchFunction?: (query: string) => Promise<SelectInputOption<unknown>[]>;
16
+ searchFunction?: (query: string) => Promise<SearchResult<unknown>>;
9
17
  value?: SelectInputOption<unknown>;
10
18
  required: boolean;
11
19
  requiredValidationMessage?: string;
@@ -1,9 +1,8 @@
1
1
  import { Option } from 'fp-ts/lib/Option';
2
- import { AustralianFundDto } from '../api/super-selection.api.dto';
2
+ import { AustralianFundDto, AustralianFundsLookupResponseDto } from '../api/super-selection.api.dto';
3
3
  export declare class AustralianFundLookupService {
4
- searchFundsAsync(searchString: string, maxRecordCount: number): Promise<AustralianFundDto[]>;
5
- getActiveFundByUsiAsync(usi: string): Promise<Option<AustralianFundDto>>;
6
- getFundByUsiAsync(usi: string): Promise<Option<AustralianFundDto>>;
4
+ searchFundsAsync(searchString: string, maxRecordCount: number): Promise<AustralianFundsLookupResponseDto>;
5
+ getFundAsync(usi: string, includeInactive: boolean): Promise<Option<AustralianFundDto>>;
7
6
  }
8
7
  declare const _default: AustralianFundLookupService;
9
8
  export default _default;
@@ -7,7 +7,7 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { ButtonSize, ButtonVariant } from "./components/super-selection-app/misc/button";
9
9
  import { LocationSegments, RouterHistory } from "@stencil/router";
10
- import { SelectInputOption } from "./components/super-selection-app/misc/dropdown-async";
10
+ import { SearchResult, SelectInputOption } from "./components/super-selection-app/misc/dropdown-async";
11
11
  import { MyOwnFundFormState } from "./components/super-selection-app/funds/custom-fund/custom-fund.store";
12
12
  import { SelfManagedFundForm } from "./components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form";
13
13
  import { FormChangedEvent } from "./components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs";
@@ -37,7 +37,7 @@ export namespace Components {
37
37
  "placeholder"?: string;
38
38
  "required": boolean;
39
39
  "requiredValidationMessage"?: string;
40
- "searchFunction"?: (query: string) => Promise<SelectInputOption<unknown>[]>;
40
+ "searchFunction"?: (query: string) => Promise<SearchResult<unknown>>;
41
41
  "showValidationErrors": boolean;
42
42
  "value"?: SelectInputOption<unknown>;
43
43
  }
@@ -316,7 +316,7 @@ declare namespace LocalJSX {
316
316
  "placeholder"?: string;
317
317
  "required"?: boolean;
318
318
  "requiredValidationMessage"?: string;
319
- "searchFunction"?: (query: string) => Promise<SelectInputOption<unknown>[]>;
319
+ "searchFunction"?: (query: string) => Promise<SearchResult<unknown>>;
320
320
  "showValidationErrors"?: boolean;
321
321
  "value"?: SelectInputOption<unknown>;
322
322
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-super-selection",
3
- "version": "4.9.20170",
3
+ "version": "4.10.22178",
4
4
  "description": "Apollo Super Selection",
5
5
  "main": "dist/lib/index.cjs.js",
6
6
  "module": "dist/lib/index.js",
@@ -62,6 +62,7 @@
62
62
  "@juggle/resize-observer": "^3.3.0",
63
63
  "@microsoft/applicationinsights-web": "^2.5.10",
64
64
  "@stencil/router": "1.0.1",
65
+ "caniuse-lite": "^1.0.30001504",
65
66
  "date-fns": "^2.16.1",
66
67
  "fp-ts": "^2.9.3",
67
68
  "jwt-decode": "^3.1.2",