@inizioevoke/veeva-astroclm-core 1.4.5 → 1.4.6

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.
@@ -5,6 +5,7 @@ export default async function ({ config, rootDir, astroDistDir, deployDir }) {
5
5
  logger.info(`Copying files to ${deployDir.replace(rootDir, '')}`);
6
6
  const dirContent = await readdir(astroDistDir, { withFileTypes: true });
7
7
  for (const c of dirContent) {
8
+ //@ts-ignore
8
9
  if (c.isDirectory() && (c.name === 'shared' || config.presentation.slides.find(s => s.path === c.name))) {
9
10
  await cp(join(c.parentPath, c.name), join(deployDir, c.name), { recursive: true });
10
11
  if (c.name === 'shared') {
@@ -2,6 +2,7 @@ export type MediaType = "HTML" | "Image" | "Video" | "PPTX" | "PDF";
2
2
  export type iOSResolution = "Default For Device" | "Scale To 1024x768" | "Scale To Fit";
3
3
  export type Actions = "Swipe" | "Pinch to Exit" | "Zoom" | "Rotation Lock" | "History Buttons" | "Navigation Bar" | "Reactions";
4
4
  export type CrmTarget = 'Salesforce' | 'Vault';
5
+ export type DateStringYYYYMMDD = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
5
6
 
6
7
  export interface VeevaIdField<T = string> {
7
8
  id: T;
@@ -21,7 +22,7 @@ export interface IVeevaClmBinderFields {
21
22
  crmContentGroup?: VeevaIdField<string | string[]>;
22
23
  crmDetailGroup?: VeevaIdField;
23
24
  detailGroup?: string;
24
- expirationDate?: `${string}/${string}/${string}`;
25
+ expirationDate?: DateStringYYYYMMDD;
25
26
  }
26
27
 
27
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inizioevoke/veeva-astroclm-core",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -18,6 +18,7 @@ export default async function({ config, rootDir, astroDistDir, deployDir }: Para
18
18
 
19
19
  const dirContent = await readdir(astroDistDir, { withFileTypes: true });
20
20
  for(const c of dirContent) {
21
+ //@ts-ignore
21
22
  if (c.isDirectory() && (c.name === 'shared' || config.presentation.slides.find(s => s.path === c.name))) {
22
23
  await cp(join(c.parentPath, c.name), join(deployDir, c.name), { recursive: true });
23
24
 
@@ -56,12 +56,12 @@ export default async function({ config, deployDir, buildName, fieldsOnly = false
56
56
  const presentation = config.presentation;
57
57
 
58
58
  for (const [key, header] of Object.entries(BINDER_PRES_HEADERS)) {
59
- if (presentation[key as keyof IVeevaClmBinderFields]) {
59
+ if ((presentation as any)[key]) {
60
60
  headers.push(header);
61
61
  }
62
62
  }
63
63
  for (const [key, header] of Object.entries(BINDER_SLIDE_HEADERS)) {
64
- if (presentation.slideSettings?.[key as keyof IVeevaClmBinderFields] || config.slideSettings?.[key as keyof IVeevaClmBinderFields]) {
64
+ if ((presentation.slideSettings as any)?.[key] || (config.slideSettings as any)?.[key]) {
65
65
  headers.push(header);
66
66
  }
67
67
  }
@@ -2,6 +2,7 @@ export type MediaType = "HTML" | "Image" | "Video" | "PPTX" | "PDF";
2
2
  export type iOSResolution = "Default For Device" | "Scale To 1024x768" | "Scale To Fit";
3
3
  export type Actions = "Swipe" | "Pinch to Exit" | "Zoom" | "Rotation Lock" | "History Buttons" | "Navigation Bar" | "Reactions";
4
4
  export type CrmTarget = 'Salesforce' | 'Vault';
5
+ export type DateStringYYYYMMDD = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
5
6
 
6
7
  export interface VeevaIdField<T = string> {
7
8
  id: T;
@@ -21,7 +22,7 @@ export interface IVeevaClmBinderFields {
21
22
  crmContentGroup?: VeevaIdField<string | string[]>;
22
23
  crmDetailGroup?: VeevaIdField;
23
24
  detailGroup?: string;
24
- expirationDate?: `${string}/${string}/${string}`;
25
+ expirationDate?: DateStringYYYYMMDD;
25
26
  }
26
27
 
27
28