@wf-financing/ui-assets 0.3.5 → 1.0.1

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.
@@ -4,6 +4,7 @@ export declare const GenericOfferSchema: z.ZodObject<{
4
4
  version: z.ZodString;
5
5
  language: z.ZodString;
6
6
  cohort: z.ZodString;
7
+ type: z.ZodString;
7
8
  } & {
8
9
  mainText: z.ZodString;
9
10
  bulletPoints: z.ZodArray<z.ZodString, "many">;
@@ -12,6 +13,7 @@ export declare const GenericOfferSchema: z.ZodObject<{
12
13
  version: string;
13
14
  language: string;
14
15
  cohort: string;
16
+ type: string;
15
17
  mainText: string;
16
18
  bulletPoints: string[];
17
19
  buttonText: string;
@@ -19,6 +21,7 @@ export declare const GenericOfferSchema: z.ZodObject<{
19
21
  version: string;
20
22
  language: string;
21
23
  cohort: string;
24
+ type: string;
22
25
  mainText: string;
23
26
  bulletPoints: string[];
24
27
  buttonText: string;
@@ -4,6 +4,7 @@ export declare const IndicativeOfferSchema: z.ZodObject<{
4
4
  version: z.ZodString;
5
5
  language: z.ZodString;
6
6
  cohort: z.ZodString;
7
+ type: z.ZodString;
7
8
  } & {
8
9
  mainText: z.ZodEffects<z.ZodString, string, string>;
9
10
  bulletPoints: z.ZodArray<z.ZodString, "many">;
@@ -12,6 +13,7 @@ export declare const IndicativeOfferSchema: z.ZodObject<{
12
13
  version: string;
13
14
  language: string;
14
15
  cohort: string;
16
+ type: string;
15
17
  mainText: string;
16
18
  bulletPoints: string[];
17
19
  buttonText: string;
@@ -19,6 +21,7 @@ export declare const IndicativeOfferSchema: z.ZodObject<{
19
21
  version: string;
20
22
  language: string;
21
23
  cohort: string;
24
+ type: string;
22
25
  mainText: string;
23
26
  bulletPoints: string[];
24
27
  buttonText: string;
@@ -4,23 +4,20 @@ export declare const PartnerTemplateSchema: z.ZodObject<{
4
4
  version: z.ZodString;
5
5
  language: z.ZodString;
6
6
  cohort: z.ZodString;
7
+ type: z.ZodString;
7
8
  } & {
8
- partnerName: z.ZodString;
9
- termsOfServiceTitle: z.ZodString;
10
- termsAndServiceUrl: z.ZodString;
9
+ partnerLogoUrl: z.ZodString;
11
10
  }, "strip", z.ZodTypeAny, {
12
11
  version: string;
13
12
  language: string;
14
13
  cohort: string;
15
- partnerName: string;
16
- termsOfServiceTitle: string;
17
- termsAndServiceUrl: string;
14
+ type: string;
15
+ partnerLogoUrl: string;
18
16
  }, {
19
17
  version: string;
20
18
  language: string;
21
19
  cohort: string;
22
- partnerName: string;
23
- termsOfServiceTitle: string;
24
- termsAndServiceUrl: string;
20
+ type: string;
21
+ partnerLogoUrl: string;
25
22
  }>;
26
23
  export type PartnerTemplate = z.infer<typeof PartnerTemplateSchema>;
@@ -4,6 +4,7 @@ export declare const ProvideAdditionalInfoSchema: z.ZodObject<{
4
4
  version: z.ZodString;
5
5
  language: z.ZodString;
6
6
  cohort: z.ZodString;
7
+ type: z.ZodString;
7
8
  } & {
8
9
  mainText: z.ZodString;
9
10
  buttonText: z.ZodString;
@@ -11,12 +12,14 @@ export declare const ProvideAdditionalInfoSchema: z.ZodObject<{
11
12
  version: string;
12
13
  language: string;
13
14
  cohort: string;
15
+ type: string;
14
16
  mainText: string;
15
17
  buttonText: string;
16
18
  }, {
17
19
  version: string;
18
20
  language: string;
19
21
  cohort: string;
22
+ type: string;
20
23
  mainText: string;
21
24
  buttonText: string;
22
25
  }>;
@@ -4,23 +4,23 @@ export declare const SelectOfferSchema: z.ZodObject<{
4
4
  version: z.ZodString;
5
5
  language: z.ZodString;
6
6
  cohort: z.ZodString;
7
+ type: z.ZodString;
7
8
  } & {
8
9
  mainText: z.ZodEffects<z.ZodString, string, string>;
9
- bulletPoints: z.ZodArray<z.ZodString, "many">;
10
10
  buttonText: z.ZodString;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  version: string;
13
13
  language: string;
14
14
  cohort: string;
15
+ type: string;
15
16
  mainText: string;
16
- bulletPoints: string[];
17
17
  buttonText: string;
18
18
  }, {
19
19
  version: string;
20
20
  language: string;
21
21
  cohort: string;
22
+ type: string;
22
23
  mainText: string;
23
- bulletPoints: string[];
24
24
  buttonText: string;
25
25
  }>;
26
26
  export type SelectOffer = z.infer<typeof SelectOfferSchema>;
@@ -4,6 +4,7 @@ export declare const SignContractSchema: z.ZodObject<{
4
4
  version: z.ZodString;
5
5
  language: z.ZodString;
6
6
  cohort: z.ZodString;
7
+ type: z.ZodString;
7
8
  } & {
8
9
  mainText: z.ZodString;
9
10
  buttonText: z.ZodString;
@@ -11,12 +12,14 @@ export declare const SignContractSchema: z.ZodObject<{
11
12
  version: string;
12
13
  language: string;
13
14
  cohort: string;
15
+ type: string;
14
16
  mainText: string;
15
17
  buttonText: string;
16
18
  }, {
17
19
  version: string;
18
20
  language: string;
19
21
  cohort: string;
22
+ type: string;
20
23
  mainText: string;
21
24
  buttonText: string;
22
25
  }>;
@@ -4,13 +4,16 @@ export declare const WayflyerDocumentSchema: z.ZodObject<{
4
4
  version: z.ZodString;
5
5
  language: z.ZodString;
6
6
  cohort: z.ZodString;
7
+ type: z.ZodString;
7
8
  }, "strip", z.ZodTypeAny, {
8
9
  version: string;
9
10
  language: string;
10
11
  cohort: string;
12
+ type: string;
11
13
  }, {
12
14
  version: string;
13
15
  language: string;
14
16
  cohort: string;
17
+ type: string;
15
18
  }>;
16
19
  export type WayflyerDocument = z.infer<typeof WayflyerDocumentSchema>;
@@ -1,10 +1,6 @@
1
- import { SdkOptionsType } from '@wf-financing/embedded-types';
1
+ import { UiSdkOptions } from '@wf-financing/embedded-types';
2
2
  import { CopyBundle, Copy } from '../schemas';
3
3
 
4
- type Options = SdkOptionsType & {
5
- language?: string;
6
- cohort?: string;
7
- };
8
- type FilterCopy = (copy: CopyBundle, options?: Options) => Copy;
4
+ type FilterCopy = (copy: CopyBundle, options?: UiSdkOptions) => Copy;
9
5
  export declare const filterCopy: FilterCopy;
10
6
  export {};
@@ -1,15 +1,11 @@
1
- import { SdkOptionsType } from '@wf-financing/embedded-types';
1
+ import { UiSdkOptions } from '@wf-financing/embedded-types';
2
2
  import { Copy } from '../schemas';
3
3
 
4
- type Options = SdkOptionsType & {
5
- language?: string;
6
- cohort?: string;
7
- };
8
4
  type LoadCopyParams = {
9
5
  partnerId: string;
10
6
  companyId?: string;
11
7
  version?: string;
12
- options?: Options;
8
+ options?: UiSdkOptions;
13
9
  };
14
10
  type LoadCopy = (params: LoadCopyParams) => Promise<Copy>;
15
11
  export declare const loadAndConfigureCopy: LoadCopy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wf-financing/ui-assets",
3
- "version": "0.3.5",
3
+ "version": "1.0.1",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "zod": "^3.23.8",
22
- "@wf-financing/embedded-types": "0.7.1",
23
- "@wf-financing/logger": "1.1.3"
22
+ "@wf-financing/embedded-types": "1.1.0",
23
+ "@wf-financing/logger": "2.1.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "dotenv": "^17.2.3"
@@ -1,5 +0,0 @@
1
- export type Options = {
2
- cohort?: string;
3
- language?: string;
4
- isSandbox?: boolean;
5
- };