@transcommerce/cwm-shared 1.1.41 → 1.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,4 @@
1
1
  import { MsalInterceptorConfiguration } from '@azure/msal-angular';
2
- export declare function msalInterceptorConfigFactory(): MsalInterceptorConfiguration;
2
+ import { AuthConfig } from '../models/config/auth-config';
3
+ import { Injector } from "@angular/core";
4
+ export declare function msalInterceptorConfigFactory(authConfig: AuthConfig, injector: Injector): MsalInterceptorConfiguration;
@@ -1,2 +1,4 @@
1
1
  import { MsalGuardConfiguration } from "@azure/msal-angular";
2
- export declare function msalGuardConfigFactory(): MsalGuardConfiguration;
2
+ import { AuthConfig } from '../models/config/auth-config';
3
+ import { Injector } from "@angular/core";
4
+ export declare function msalGuardConfigFactory(authConfig: AuthConfig, injector: Injector): MsalGuardConfiguration;
@@ -1,2 +1,4 @@
1
1
  import { PublicClientApplication } from '@azure/msal-browser';
2
- export declare function msalInstanceFactory(): PublicClientApplication;
2
+ import { AuthConfig } from '../models/config/auth-config';
3
+ import { Injector } from "@angular/core";
4
+ export declare function msalInstanceFactory(authConfig: AuthConfig, injector: Injector): PublicClientApplication;
@@ -1,3 +1,4 @@
1
+ import { InjectionToken } from "@angular/core";
1
2
  export type AuthConfig = {
2
3
  logLevel: "None" | // No logging at all
3
4
  "Error" | // This will only contain Errors
@@ -21,3 +22,4 @@ export type AuthConfig = {
21
22
  configConnectString: string;
22
23
  };
23
24
  export declare const DEFAULT_AUTH_CONFIG: AuthConfig;
25
+ export declare const AUTH_CONFIG: InjectionToken<AuthConfig>;
@@ -3,12 +3,15 @@ import { MenuBoardConfig } from "./menu-board-config";
3
3
  import { CarouselConfig } from "./carousel-config";
4
4
  import { Slide } from "../slide";
5
5
  import { AuthConfig } from "./auth-config";
6
+ import { SubscriptionConfig } from './subscription-config';
6
7
  export type Configuration = {
7
8
  companyName: string;
8
9
  authConfig: AuthConfig;
9
10
  apiConfig: ApiConfig;
11
+ subscriptionConfig: SubscriptionConfig;
10
12
  menuBoardConfig: MenuBoardConfig;
11
13
  footerCarouselConfig: CarouselConfig;
12
14
  footerCarouselSlideConfig: Slide[];
13
15
  };
16
+ export declare const DEFAULT_COMPANY_NAME = "Test Weed Dispensary";
14
17
  export declare const DEFAULT_CONFIGURATION: Configuration;
@@ -1,8 +1,7 @@
1
1
  export interface SubscriptionConfig {
2
- id: string;
3
2
  amount: number;
4
3
  days: number;
5
4
  totalOccurrences: number;
6
5
  trialOccurrences: number;
7
6
  }
8
- export declare const DEFAULT_SUBSCRIPTION_CONFIG: Partial<SubscriptionConfig>;
7
+ export declare const DEFAULT_SUBSCRIPTION_CONFIG: SubscriptionConfig;
@@ -1,7 +1,4 @@
1
- export interface Subscription {
1
+ import { SubscriptionConfig } from './config/subscription-config';
2
+ export interface Subscription extends SubscriptionConfig {
2
3
  id: string;
3
- amount: number;
4
- days: number;
5
- totalOccurrences: number;
6
- trialOccurrences: number;
7
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transcommerce/cwm-shared",
3
- "version": "1.1.41",
3
+ "version": "1.1.42",
4
4
  "engines": {
5
5
  "node": ">=18.0.0 <21.0.0"
6
6
  },