@aspan-corporation/ac-shared 1.2.23 → 1.2.25

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.
@@ -10,6 +10,7 @@ type ExtractMetadataParams = {
10
10
  locationService: LocationService;
11
11
  dynamoDBService: DynamoDBService;
12
12
  metaTableName: string;
13
+ placeIndexName: string;
13
14
  size: number;
14
15
  };
15
16
  /**
@@ -19,5 +20,5 @@ type ExtractMetadataParams = {
19
20
  * 4. add all old tags that are not present in new tags,
20
21
  *
21
22
  */
22
- export declare const processMeta: ({ id, meta, metaTableName, size, logger, locationService, dynamoDBService }: ExtractMetadataParams) => Promise<void>;
23
+ export declare const processMeta: ({ id, meta, metaTableName, placeIndexName, size, logger, locationService, dynamoDBService }: ExtractMetadataParams) => Promise<void>;
23
24
  export {};
@@ -7,7 +7,7 @@ import { getKeyExtension } from "./thumbsKey.js";
7
7
  * 4. add all old tags that are not present in new tags,
8
8
  *
9
9
  */
10
- export const processMeta = async ({ id, meta, metaTableName, size, logger, locationService, dynamoDBService }) => {
10
+ export const processMeta = async ({ id, meta, metaTableName, placeIndexName, size, logger, locationService, dynamoDBService }) => {
11
11
  // expand location data
12
12
  const latitude = Number(meta.find((tag) => tag.key === "latitude")?.value);
13
13
  const longitude = Number(meta.find((tag) => tag.key === "longitude")?.value);
@@ -15,7 +15,7 @@ export const processMeta = async ({ id, meta, metaTableName, size, logger, locat
15
15
  if (!Number.isNaN(longitude) && !Number.isNaN(latitude)) {
16
16
  try {
17
17
  const res = await locationService.searchPlaceIndexForPositionCommand({
18
- IndexName: "TauPlaceIndex",
18
+ IndexName: placeIndexName,
19
19
  Position: [longitude, latitude]
20
20
  });
21
21
  if (res?.Results && res?.Results?.length > 0) {
@@ -3,6 +3,7 @@ export declare const EXTENSION_JPG = "jpg";
3
3
  export declare const EXTENSION_WEBP = "webp";
4
4
  export declare const EXTENSION_HEIC = "heic";
5
5
  export declare const EXTENSION_MOV = "mov";
6
+ export declare const EXTENSION_MP4 = "mp4";
6
7
  export declare const EXTENSION_THUMBS = "webp";
7
8
  export declare const EXTENSION_ENCODED_VIDEO = "mp4";
8
9
  export declare const ALLOWED_EXTENSIONS: string[];
@@ -3,14 +3,15 @@ export const EXTENSION_JPG = "jpg";
3
3
  export const EXTENSION_WEBP = "webp";
4
4
  export const EXTENSION_HEIC = "heic";
5
5
  export const EXTENSION_MOV = "mov";
6
+ export const EXTENSION_MP4 = "mp4";
6
7
  export const EXTENSION_THUMBS = EXTENSION_WEBP;
7
- export const EXTENSION_ENCODED_VIDEO = "mp4";
8
+ export const EXTENSION_ENCODED_VIDEO = EXTENSION_MP4;
8
9
  export const ALLOWED_EXTENSIONS = [
9
10
  EXTENSION_JPEG,
10
11
  EXTENSION_JPG,
11
12
  EXTENSION_HEIC
12
13
  ];
13
- export const ALLOWED_VIDEO_EXTENSIONS = [EXTENSION_MOV];
14
+ export const ALLOWED_VIDEO_EXTENSIONS = [EXTENSION_MOV, EXTENSION_MP4];
14
15
  export const DIM_THUMBNAIL_WIDTH = 320;
15
16
  export const DIM_THUMBNAIL_HEIGHT = 320;
16
17
  export const DIM_DETAIL_WIDTH = 1180;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspan-corporation/ac-shared",
3
- "version": "1.2.23",
3
+ "version": "1.2.25",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "exports": {