ag-common 0.0.284 → 0.0.285

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.
@@ -246,6 +246,12 @@ filterOperator = '=', }) => __awaiter(void 0, void 0, void 0, function* () {
246
246
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
247
247
  eav[`:${skName2}`] = sp1;
248
248
  }
249
+ else if (skOperator === 'BEGINS_WITH') {
250
+ kce += ` and ${skOperator.toLowerCase()}(#${skName.toLowerCase()}, :${skName.toLowerCase()})`;
251
+ ean[`#${skName.toLowerCase()}`] = skName;
252
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
253
+ eav[`:${skName.toLowerCase()}`] = skValue;
254
+ }
249
255
  else {
250
256
  kce += ` and #${skName.toLowerCase()} ${skOperator} :${skName.toLowerCase()}`;
251
257
  ean[`#${skName.toLowerCase()}`] = skName;
@@ -50,7 +50,7 @@ export interface ILambdaConfigs {
50
50
  default?: ILambdaConfig;
51
51
  };
52
52
  }
53
- export declare type TSkOperator = 'BETWEEN' | '<' | '<=' | '=' | '>=' | '>';
53
+ export declare type TSkOperator = 'BETWEEN' | '<' | '<=' | '=' | '>=' | '>' | 'BEGINS_WITH';
54
54
  export interface IQueryDynamo {
55
55
  pkName: string;
56
56
  pkValue: string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-common",
3
- "version": "0.0.284",
3
+ "version": "0.0.285",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Andrei Gec <@andreigec> (https://gec.dev/)",