dyno-table 1.3.1 → 1.5.0

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.
Files changed (83) hide show
  1. package/dist/builders/condition-check-builder.cjs +22 -0
  2. package/dist/builders/condition-check-builder.cjs.map +1 -1
  3. package/dist/builders/condition-check-builder.d.cts +1 -1
  4. package/dist/builders/condition-check-builder.d.ts +1 -1
  5. package/dist/builders/condition-check-builder.js +22 -0
  6. package/dist/builders/condition-check-builder.js.map +1 -1
  7. package/dist/builders/delete-builder.cjs +22 -0
  8. package/dist/builders/delete-builder.cjs.map +1 -1
  9. package/dist/builders/delete-builder.d.cts +1 -1
  10. package/dist/builders/delete-builder.d.ts +1 -1
  11. package/dist/builders/delete-builder.js +22 -0
  12. package/dist/builders/delete-builder.js.map +1 -1
  13. package/dist/builders/put-builder.cjs +22 -0
  14. package/dist/builders/put-builder.cjs.map +1 -1
  15. package/dist/builders/put-builder.d.cts +1 -1
  16. package/dist/builders/put-builder.d.ts +1 -1
  17. package/dist/builders/put-builder.js +22 -0
  18. package/dist/builders/put-builder.js.map +1 -1
  19. package/dist/builders/query-builder.cjs +6 -0
  20. package/dist/builders/query-builder.cjs.map +1 -1
  21. package/dist/builders/query-builder.d.cts +2 -2
  22. package/dist/builders/query-builder.d.ts +2 -2
  23. package/dist/builders/query-builder.js +6 -0
  24. package/dist/builders/query-builder.js.map +1 -1
  25. package/dist/builders/transaction-builder.cjs +16 -0
  26. package/dist/builders/transaction-builder.cjs.map +1 -1
  27. package/dist/builders/transaction-builder.d.cts +1 -1
  28. package/dist/builders/transaction-builder.d.ts +1 -1
  29. package/dist/builders/transaction-builder.js +16 -0
  30. package/dist/builders/transaction-builder.js.map +1 -1
  31. package/dist/builders/update-builder.cjs +22 -0
  32. package/dist/builders/update-builder.cjs.map +1 -1
  33. package/dist/builders/update-builder.d.cts +1 -1
  34. package/dist/builders/update-builder.d.ts +1 -1
  35. package/dist/builders/update-builder.js +22 -0
  36. package/dist/builders/update-builder.js.map +1 -1
  37. package/dist/conditions-3ae5znV_.d.cts +729 -0
  38. package/dist/conditions-BtynAviC.d.ts +729 -0
  39. package/dist/conditions.cjs +6 -0
  40. package/dist/conditions.cjs.map +1 -1
  41. package/dist/conditions.d.cts +1 -1
  42. package/dist/conditions.d.ts +1 -1
  43. package/dist/conditions.js +6 -1
  44. package/dist/conditions.js.map +1 -1
  45. package/dist/entity.cjs.map +1 -1
  46. package/dist/entity.d.cts +3 -3
  47. package/dist/entity.d.ts +3 -3
  48. package/dist/entity.js.map +1 -1
  49. package/dist/index.cjs +3657 -0
  50. package/dist/index.cjs.map +1 -0
  51. package/dist/index.d.cts +15 -0
  52. package/dist/index.d.ts +15 -0
  53. package/dist/index.js +3630 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/{query-builder-BehSUVpp.d.ts → query-builder-BhrR31oO.d.ts} +2 -2
  56. package/dist/{query-builder-DLY2lgjI.d.cts → query-builder-CbHvimBk.d.cts} +2 -2
  57. package/dist/{table-BAfnBHoH.d.cts → table-CY9byPEg.d.cts} +2 -2
  58. package/dist/{table-BcnNHdOb.d.ts → table-Des8C2od.d.ts} +2 -2
  59. package/dist/table.cjs +26 -0
  60. package/dist/table.cjs.map +1 -1
  61. package/dist/table.d.cts +3 -3
  62. package/dist/table.d.ts +3 -3
  63. package/dist/table.js +26 -0
  64. package/dist/table.js.map +1 -1
  65. package/dist/utils.cjs +34 -0
  66. package/dist/utils.cjs.map +1 -0
  67. package/dist/{utils/sort-key-template.d.cts → utils.d.cts} +32 -1
  68. package/dist/{utils/sort-key-template.d.ts → utils.d.ts} +32 -1
  69. package/dist/utils.js +31 -0
  70. package/dist/utils.js.map +1 -0
  71. package/package.json +114 -49
  72. package/dist/conditions--ld9a78i.d.ts +0 -331
  73. package/dist/conditions-ChhQWd6z.d.cts +0 -331
  74. package/dist/utils/partition-key-template.cjs +0 -19
  75. package/dist/utils/partition-key-template.cjs.map +0 -1
  76. package/dist/utils/partition-key-template.d.cts +0 -32
  77. package/dist/utils/partition-key-template.d.ts +0 -32
  78. package/dist/utils/partition-key-template.js +0 -17
  79. package/dist/utils/partition-key-template.js.map +0 -1
  80. package/dist/utils/sort-key-template.cjs +0 -19
  81. package/dist/utils/sort-key-template.cjs.map +0 -1
  82. package/dist/utils/sort-key-template.js +0 -17
  83. package/dist/utils/sort-key-template.js.map +0 -1
package/dist/utils.cjs ADDED
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ // src/utils/partition-key-template.ts
4
+ function partitionKey(strings, ...keys) {
5
+ return (params) => {
6
+ let result = strings[0] ?? "";
7
+ for (let i = 0; i < keys.length; i++) {
8
+ const key = keys[i];
9
+ if (key) {
10
+ result += params[key] + (strings[i + 1] ?? "");
11
+ }
12
+ }
13
+ return result;
14
+ };
15
+ }
16
+
17
+ // src/utils/sort-key-template.ts
18
+ function sortKey(strings, ...keys) {
19
+ return (params) => {
20
+ let result = strings[0] ?? "";
21
+ for (let i = 0; i < keys.length; i++) {
22
+ const key = keys[i];
23
+ if (key && params && key in params) {
24
+ result += params[key] + (strings[i + 1] ?? "");
25
+ }
26
+ }
27
+ return result;
28
+ };
29
+ }
30
+
31
+ exports.partitionKey = partitionKey;
32
+ exports.sortKey = sortKey;
33
+ //# sourceMappingURL=utils.cjs.map
34
+ //# sourceMappingURL=utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/partition-key-template.ts","../src/utils/sort-key-template.ts"],"names":[],"mappings":";;;AA8BO,SAAS,YAAA,CACd,YACG,IACwC,EAAA;AAC3C,EAAA,OAAO,CAAC,MAAW,KAAA;AACjB,IAAI,IAAA,MAAA,GAAS,OAAQ,CAAA,CAAC,CAAK,IAAA,EAAA;AAE3B,IAAA,KAAA,IAAS,CAAI,GAAA,CAAA,EAAG,CAAI,GAAA,IAAA,CAAK,QAAQ,CAAK,EAAA,EAAA;AACpC,MAAM,MAAA,GAAA,GAAM,KAAK,CAAC,CAAA;AAClB,MAAA,IAAI,GAAK,EAAA;AACP,QAAA,MAAA,IAAU,OAAO,GAAgB,CAAA,IAAK,OAAQ,CAAA,CAAA,GAAI,CAAC,CAAK,IAAA,EAAA,CAAA;AAAA;AAC1D;AAGF,IAAO,OAAA,MAAA;AAAA,GACT;AACF;;;ACTO,SAAS,OAAA,CACd,YACG,IACkC,EAAA;AACrC,EAAA,OAAO,CAAC,MAAW,KAAA;AACjB,IAAI,IAAA,MAAA,GAAS,OAAQ,CAAA,CAAC,CAAK,IAAA,EAAA;AAE3B,IAAA,KAAA,IAAS,CAAI,GAAA,CAAA,EAAG,CAAI,GAAA,IAAA,CAAK,QAAQ,CAAK,EAAA,EAAA;AACpC,MAAM,MAAA,GAAA,GAAM,KAAK,CAAC,CAAA;AAElB,MAAI,IAAA,GAAA,IAAO,MAAU,IAAA,GAAA,IAAO,MAAQ,EAAA;AAClC,QAAA,MAAA,IAAU,OAAO,GAAG,CAAA,IAAK,OAAQ,CAAA,CAAA,GAAI,CAAC,CAAK,IAAA,EAAA,CAAA;AAAA;AAC7C;AAGF,IAAO,OAAA,MAAA;AAAA,GACT;AACF","file":"utils.cjs","sourcesContent":["export type StrictGenerateType<T extends readonly string[]> = {\n [K in T[number]]: string;\n};\n\n/**\n * Creates a template function for generating DynamoDB partition keys with dynamic values.\n * Use this function when you need to:\n * - Create consistent partition key patterns with variable parts\n * - Generate partition keys that follow a specific format\n * - Ensure type safety for partition key parameters\n * - Require all parameters to be provided\n *\n * @example\n * ```ts\n * // Define a partition key template\n * const pk = partitionKey`country#${\"country\"}#enclosure#${\"enclosure\"}`;\n *\n * // Generate a partition key (all parameters required)\n * const key = pk({ country: \"NZ\", enclosure: \"A1\" });\n * // Result: \"country#NZ#enclosure#A1\"\n *\n * // Type checking ensures all parameters are provided\n * const invalidKey = pk({ country: \"NZ\" }); // TypeScript error\n * ```\n *\n * @param strings - The static parts of the template string\n * @param keys - The dynamic parts of the template string that will be replaced with values\n *\n * @returns A function that accepts an object with the dynamic values and returns the formatted partition key\n */\nexport function partitionKey<T extends readonly string[]>(\n strings: TemplateStringsArray,\n ...keys: T\n): (params: StrictGenerateType<T>) => string {\n return (params) => {\n let result = strings[0] ?? \"\";\n\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (key) {\n result += params[key as T[number]] + (strings[i + 1] ?? \"\");\n }\n }\n\n return result;\n };\n}\n","export type GenerateType<T extends readonly string[], U extends string = never> = T extends [infer F, ...infer R]\n ? F extends string\n ? R extends string[]\n ? ({ [K in F | U]: string | number } & Partial<Record<Exclude<T[number], F | U>, never>>) | GenerateType<R, F | U>\n : never\n : never\n : never;\n\n/**\n * Creates a template function for generating DynamoDB sort keys with dynamic values.\n * Use this function when you need to:\n * - Create consistent sort key patterns with variable parts\n * - Generate sort keys that follow a specific format\n * - Ensure type safety for sort key parameters\n *\n * @example\n * ```ts\n * // Define a sort key template\n * const sk = sortKey`country#${\"country\"}#enclosure#${\"enclosure\"}#diet#${\"diet\"}`;\n *\n * // Generate a sort key with partial parameters\n * const templatedString = sk({ country: \"NZ\", enclosure: \"A1\" });\n * // Result: \"country#NZ#enclosure#A1#diet#\"\n *\n * // Generate a complete sort key\n * const fullKey = sk({ country: \"NZ\", enclosure: \"A1\", diet: \"carnivore\" });\n * // Result: \"country#NZ#enclosure#A1#diet#carnivore\"\n *\n * // Type checking ensures only valid parameters are used\n * const invalidKey = sk({ country: \"NZ\", invalid: \"value\" }); // TypeScript error\n * ```\n *\n * @param strings - The static parts of the template string\n * @param keys - The dynamic parts of the template string that will be replaced with values\n *\n * @returns A function that accepts an object with the dynamic values and returns the formatted sort key\n */\nexport function sortKey<T extends readonly string[]>(\n strings: TemplateStringsArray,\n ...keys: T\n): (params: GenerateType<T>) => string {\n return (params) => {\n let result = strings[0] ?? \"\";\n\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n\n if (key && params && key in params) {\n result += params[key] + (strings[i + 1] ?? \"\");\n }\n }\n\n return result;\n };\n}\n"]}
@@ -1,3 +1,34 @@
1
+ type StrictGenerateType<T extends readonly string[]> = {
2
+ [K in T[number]]: string;
3
+ };
4
+ /**
5
+ * Creates a template function for generating DynamoDB partition keys with dynamic values.
6
+ * Use this function when you need to:
7
+ * - Create consistent partition key patterns with variable parts
8
+ * - Generate partition keys that follow a specific format
9
+ * - Ensure type safety for partition key parameters
10
+ * - Require all parameters to be provided
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * // Define a partition key template
15
+ * const pk = partitionKey`country#${"country"}#enclosure#${"enclosure"}`;
16
+ *
17
+ * // Generate a partition key (all parameters required)
18
+ * const key = pk({ country: "NZ", enclosure: "A1" });
19
+ * // Result: "country#NZ#enclosure#A1"
20
+ *
21
+ * // Type checking ensures all parameters are provided
22
+ * const invalidKey = pk({ country: "NZ" }); // TypeScript error
23
+ * ```
24
+ *
25
+ * @param strings - The static parts of the template string
26
+ * @param keys - The dynamic parts of the template string that will be replaced with values
27
+ *
28
+ * @returns A function that accepts an object with the dynamic values and returns the formatted partition key
29
+ */
30
+ declare function partitionKey<T extends readonly string[]>(strings: TemplateStringsArray, ...keys: T): (params: StrictGenerateType<T>) => string;
31
+
1
32
  type GenerateType<T extends readonly string[], U extends string = never> = T extends [infer F, ...infer R] ? F extends string ? R extends string[] ? ({
2
33
  [K in F | U]: string | number;
3
34
  } & Partial<Record<Exclude<T[number], F | U>, never>>) | GenerateType<R, F | U> : never : never : never;
@@ -32,4 +63,4 @@ type GenerateType<T extends readonly string[], U extends string = never> = T ext
32
63
  */
33
64
  declare function sortKey<T extends readonly string[]>(strings: TemplateStringsArray, ...keys: T): (params: GenerateType<T>) => string;
34
65
 
35
- export { type GenerateType, sortKey };
66
+ export { partitionKey, sortKey };
@@ -1,3 +1,34 @@
1
+ type StrictGenerateType<T extends readonly string[]> = {
2
+ [K in T[number]]: string;
3
+ };
4
+ /**
5
+ * Creates a template function for generating DynamoDB partition keys with dynamic values.
6
+ * Use this function when you need to:
7
+ * - Create consistent partition key patterns with variable parts
8
+ * - Generate partition keys that follow a specific format
9
+ * - Ensure type safety for partition key parameters
10
+ * - Require all parameters to be provided
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * // Define a partition key template
15
+ * const pk = partitionKey`country#${"country"}#enclosure#${"enclosure"}`;
16
+ *
17
+ * // Generate a partition key (all parameters required)
18
+ * const key = pk({ country: "NZ", enclosure: "A1" });
19
+ * // Result: "country#NZ#enclosure#A1"
20
+ *
21
+ * // Type checking ensures all parameters are provided
22
+ * const invalidKey = pk({ country: "NZ" }); // TypeScript error
23
+ * ```
24
+ *
25
+ * @param strings - The static parts of the template string
26
+ * @param keys - The dynamic parts of the template string that will be replaced with values
27
+ *
28
+ * @returns A function that accepts an object with the dynamic values and returns the formatted partition key
29
+ */
30
+ declare function partitionKey<T extends readonly string[]>(strings: TemplateStringsArray, ...keys: T): (params: StrictGenerateType<T>) => string;
31
+
1
32
  type GenerateType<T extends readonly string[], U extends string = never> = T extends [infer F, ...infer R] ? F extends string ? R extends string[] ? ({
2
33
  [K in F | U]: string | number;
3
34
  } & Partial<Record<Exclude<T[number], F | U>, never>>) | GenerateType<R, F | U> : never : never : never;
@@ -32,4 +63,4 @@ type GenerateType<T extends readonly string[], U extends string = never> = T ext
32
63
  */
33
64
  declare function sortKey<T extends readonly string[]>(strings: TemplateStringsArray, ...keys: T): (params: GenerateType<T>) => string;
34
65
 
35
- export { type GenerateType, sortKey };
66
+ export { partitionKey, sortKey };
package/dist/utils.js ADDED
@@ -0,0 +1,31 @@
1
+ // src/utils/partition-key-template.ts
2
+ function partitionKey(strings, ...keys) {
3
+ return (params) => {
4
+ let result = strings[0] ?? "";
5
+ for (let i = 0; i < keys.length; i++) {
6
+ const key = keys[i];
7
+ if (key) {
8
+ result += params[key] + (strings[i + 1] ?? "");
9
+ }
10
+ }
11
+ return result;
12
+ };
13
+ }
14
+
15
+ // src/utils/sort-key-template.ts
16
+ function sortKey(strings, ...keys) {
17
+ return (params) => {
18
+ let result = strings[0] ?? "";
19
+ for (let i = 0; i < keys.length; i++) {
20
+ const key = keys[i];
21
+ if (key && params && key in params) {
22
+ result += params[key] + (strings[i + 1] ?? "");
23
+ }
24
+ }
25
+ return result;
26
+ };
27
+ }
28
+
29
+ export { partitionKey, sortKey };
30
+ //# sourceMappingURL=utils.js.map
31
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/partition-key-template.ts","../src/utils/sort-key-template.ts"],"names":[],"mappings":";AA8BO,SAAS,YAAA,CACd,YACG,IACwC,EAAA;AAC3C,EAAA,OAAO,CAAC,MAAW,KAAA;AACjB,IAAI,IAAA,MAAA,GAAS,OAAQ,CAAA,CAAC,CAAK,IAAA,EAAA;AAE3B,IAAA,KAAA,IAAS,CAAI,GAAA,CAAA,EAAG,CAAI,GAAA,IAAA,CAAK,QAAQ,CAAK,EAAA,EAAA;AACpC,MAAM,MAAA,GAAA,GAAM,KAAK,CAAC,CAAA;AAClB,MAAA,IAAI,GAAK,EAAA;AACP,QAAA,MAAA,IAAU,OAAO,GAAgB,CAAA,IAAK,OAAQ,CAAA,CAAA,GAAI,CAAC,CAAK,IAAA,EAAA,CAAA;AAAA;AAC1D;AAGF,IAAO,OAAA,MAAA;AAAA,GACT;AACF;;;ACTO,SAAS,OAAA,CACd,YACG,IACkC,EAAA;AACrC,EAAA,OAAO,CAAC,MAAW,KAAA;AACjB,IAAI,IAAA,MAAA,GAAS,OAAQ,CAAA,CAAC,CAAK,IAAA,EAAA;AAE3B,IAAA,KAAA,IAAS,CAAI,GAAA,CAAA,EAAG,CAAI,GAAA,IAAA,CAAK,QAAQ,CAAK,EAAA,EAAA;AACpC,MAAM,MAAA,GAAA,GAAM,KAAK,CAAC,CAAA;AAElB,MAAI,IAAA,GAAA,IAAO,MAAU,IAAA,GAAA,IAAO,MAAQ,EAAA;AAClC,QAAA,MAAA,IAAU,OAAO,GAAG,CAAA,IAAK,OAAQ,CAAA,CAAA,GAAI,CAAC,CAAK,IAAA,EAAA,CAAA;AAAA;AAC7C;AAGF,IAAO,OAAA,MAAA;AAAA,GACT;AACF","file":"utils.js","sourcesContent":["export type StrictGenerateType<T extends readonly string[]> = {\n [K in T[number]]: string;\n};\n\n/**\n * Creates a template function for generating DynamoDB partition keys with dynamic values.\n * Use this function when you need to:\n * - Create consistent partition key patterns with variable parts\n * - Generate partition keys that follow a specific format\n * - Ensure type safety for partition key parameters\n * - Require all parameters to be provided\n *\n * @example\n * ```ts\n * // Define a partition key template\n * const pk = partitionKey`country#${\"country\"}#enclosure#${\"enclosure\"}`;\n *\n * // Generate a partition key (all parameters required)\n * const key = pk({ country: \"NZ\", enclosure: \"A1\" });\n * // Result: \"country#NZ#enclosure#A1\"\n *\n * // Type checking ensures all parameters are provided\n * const invalidKey = pk({ country: \"NZ\" }); // TypeScript error\n * ```\n *\n * @param strings - The static parts of the template string\n * @param keys - The dynamic parts of the template string that will be replaced with values\n *\n * @returns A function that accepts an object with the dynamic values and returns the formatted partition key\n */\nexport function partitionKey<T extends readonly string[]>(\n strings: TemplateStringsArray,\n ...keys: T\n): (params: StrictGenerateType<T>) => string {\n return (params) => {\n let result = strings[0] ?? \"\";\n\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (key) {\n result += params[key as T[number]] + (strings[i + 1] ?? \"\");\n }\n }\n\n return result;\n };\n}\n","export type GenerateType<T extends readonly string[], U extends string = never> = T extends [infer F, ...infer R]\n ? F extends string\n ? R extends string[]\n ? ({ [K in F | U]: string | number } & Partial<Record<Exclude<T[number], F | U>, never>>) | GenerateType<R, F | U>\n : never\n : never\n : never;\n\n/**\n * Creates a template function for generating DynamoDB sort keys with dynamic values.\n * Use this function when you need to:\n * - Create consistent sort key patterns with variable parts\n * - Generate sort keys that follow a specific format\n * - Ensure type safety for sort key parameters\n *\n * @example\n * ```ts\n * // Define a sort key template\n * const sk = sortKey`country#${\"country\"}#enclosure#${\"enclosure\"}#diet#${\"diet\"}`;\n *\n * // Generate a sort key with partial parameters\n * const templatedString = sk({ country: \"NZ\", enclosure: \"A1\" });\n * // Result: \"country#NZ#enclosure#A1#diet#\"\n *\n * // Generate a complete sort key\n * const fullKey = sk({ country: \"NZ\", enclosure: \"A1\", diet: \"carnivore\" });\n * // Result: \"country#NZ#enclosure#A1#diet#carnivore\"\n *\n * // Type checking ensures only valid parameters are used\n * const invalidKey = sk({ country: \"NZ\", invalid: \"value\" }); // TypeScript error\n * ```\n *\n * @param strings - The static parts of the template string\n * @param keys - The dynamic parts of the template string that will be replaced with values\n *\n * @returns A function that accepts an object with the dynamic values and returns the formatted sort key\n */\nexport function sortKey<T extends readonly string[]>(\n strings: TemplateStringsArray,\n ...keys: T\n): (params: GenerateType<T>) => string {\n return (params) => {\n let result = strings[0] ?? \"\";\n\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n\n if (key && params && key in params) {\n result += params[key] + (strings[i + 1] ?? \"\");\n }\n }\n\n return result;\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dyno-table",
3
- "version": "1.3.1",
3
+ "version": "1.5.0",
4
4
  "description": "A TypeScript library to simplify working with DynamoDB",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -8,79 +8,144 @@
8
8
  "type": "module",
9
9
  "exports": {
10
10
  ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js",
13
- "require": "./dist/index.cjs"
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
14
19
  },
15
20
  "./table": {
16
- "types": "./dist/table.d.ts",
17
- "import": "./dist/table.js",
18
- "require": "./dist/table.cjs"
21
+ "import": {
22
+ "types": "./dist/table.d.ts",
23
+ "default": "./dist/table.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/table.d.cts",
27
+ "default": "./dist/table.cjs"
28
+ }
19
29
  },
20
30
  "./entity": {
21
- "types": "./dist/entity.d.ts",
22
- "import": "./dist/entity.js",
23
- "require": "./dist/entity.cjs"
31
+ "import": {
32
+ "types": "./dist/entity.d.ts",
33
+ "default": "./dist/entity.js"
34
+ },
35
+ "require": {
36
+ "types": "./dist/entity.d.cts",
37
+ "default": "./dist/entity.cjs"
38
+ }
24
39
  },
25
40
  "./conditions": {
26
- "types": "./dist/conditions.d.ts",
27
- "import": "./dist/conditions.js",
28
- "require": "./dist/conditions.cjs"
41
+ "import": {
42
+ "types": "./dist/conditions.d.ts",
43
+ "default": "./dist/conditions.js"
44
+ },
45
+ "require": {
46
+ "types": "./dist/conditions.d.cts",
47
+ "default": "./dist/conditions.cjs"
48
+ }
29
49
  },
30
50
  "./types": {
31
- "types": "./dist/types.d.ts",
32
- "import": "./dist/types.js",
33
- "require": "./dist/types.cjs"
51
+ "import": {
52
+ "types": "./dist/types.d.ts",
53
+ "default": "./dist/types.js"
54
+ },
55
+ "require": {
56
+ "types": "./dist/types.d.cts",
57
+ "default": "./dist/types.cjs"
58
+ }
34
59
  },
35
60
  "./standard-schema": {
36
- "types": "./dist/standard-schema.d.ts",
37
- "import": "./dist/standard-schema.js",
38
- "require": "./dist/standard-schema.cjs"
61
+ "import": {
62
+ "types": "./dist/standard-schema.d.ts",
63
+ "default": "./dist/standard-schema.js"
64
+ },
65
+ "require": {
66
+ "types": "./dist/standard-schema.d.cts",
67
+ "default": "./dist/standard-schema.cjs"
68
+ }
39
69
  },
40
- "./utils/partition-key-template": {
41
- "types": "./dist/utils/partition-key-template.d.ts",
42
- "import": "./dist/utils/partition-key-template.js",
43
- "require": "./dist/utils/partition-key-template.cjs"
44
- },
45
- "./utils/sort-key-template": {
46
- "types": "./dist/utils/sort-key-template.d.ts",
47
- "import": "./dist/utils/sort-key-template.js",
48
- "require": "./dist/utils/sort-key-template.cjs"
70
+ "./utils": {
71
+ "import": {
72
+ "types": "./dist/utils.d.ts",
73
+ "default": "./dist/utils.js"
74
+ },
75
+ "require": {
76
+ "types": "./dist/utils.d.cts",
77
+ "default": "./dist/utils.cjs"
78
+ }
49
79
  },
50
80
  "./builders/query-builder": {
51
- "types": "./dist/builders/query-builder.d.ts",
52
- "import": "./dist/builders/query-builder.js",
53
- "require": "./dist/builders/query-builder.cjs"
81
+ "import": {
82
+ "types": "./dist/builders/query-builder.d.ts",
83
+ "default": "./dist/builders/query-builder.js"
84
+ },
85
+ "require": {
86
+ "types": "./dist/builders/query-builder.d.cts",
87
+ "default": "./dist/builders/query-builder.cjs"
88
+ }
54
89
  },
55
90
  "./builders/paginator": {
56
- "types": "./dist/builders/paginator.d.ts",
57
- "import": "./dist/builders/paginator.js",
58
- "require": "./dist/builders/paginator.cjs"
91
+ "import": {
92
+ "types": "./dist/builders/paginator.d.ts",
93
+ "default": "./dist/builders/paginator.js"
94
+ },
95
+ "require": {
96
+ "types": "./dist/builders/paginator.d.cts",
97
+ "default": "./dist/builders/paginator.cjs"
98
+ }
59
99
  },
60
100
  "./builders/put-builder": {
61
- "types": "./dist/builders/put-builder.d.ts",
62
- "import": "./dist/builders/put-builder.js",
63
- "require": "./dist/builders/put-builder.cjs"
101
+ "import": {
102
+ "types": "./dist/builders/put-builder.d.ts",
103
+ "default": "./dist/builders/put-builder.js"
104
+ },
105
+ "require": {
106
+ "types": "./dist/builders/put-builder.d.cts",
107
+ "default": "./dist/builders/put-builder.cjs"
108
+ }
64
109
  },
65
110
  "./builders/update-builder": {
66
- "types": "./dist/builders/update-builder.d.ts",
67
- "import": "./dist/builders/update-builder.js",
68
- "require": "./dist/builders/update-builder.cjs"
111
+ "import": {
112
+ "types": "./dist/builders/update-builder.d.ts",
113
+ "default": "./dist/builders/update-builder.js"
114
+ },
115
+ "require": {
116
+ "types": "./dist/builders/update-builder.d.cts",
117
+ "default": "./dist/builders/update-builder.cjs"
118
+ }
69
119
  },
70
120
  "./builders/delete-builder": {
71
- "types": "./dist/builders/delete-builder.d.ts",
72
- "import": "./dist/builders/delete-builder.js",
73
- "require": "./dist/builders/delete-builder.cjs"
121
+ "import": {
122
+ "types": "./dist/builders/delete-builder.d.ts",
123
+ "default": "./dist/builders/delete-builder.js"
124
+ },
125
+ "require": {
126
+ "types": "./dist/builders/delete-builder.d.cts",
127
+ "default": "./dist/builders/delete-builder.cjs"
128
+ }
74
129
  },
75
130
  "./builders/transaction-builder": {
76
- "types": "./dist/builders/transaction-builder.d.ts",
77
- "import": "./dist/builders/transaction-builder.js",
78
- "require": "./dist/builders/transaction-builder.cjs"
131
+ "import": {
132
+ "types": "./dist/builders/transaction-builder.d.ts",
133
+ "default": "./dist/builders/transaction-builder.js"
134
+ },
135
+ "require": {
136
+ "types": "./dist/builders/transaction-builder.d.cts",
137
+ "default": "./dist/builders/transaction-builder.cjs"
138
+ }
79
139
  },
80
140
  "./builders/condition-check-builder": {
81
- "types": "./dist/builders/condition-check-builder.d.ts",
82
- "import": "./dist/builders/condition-check-builder.js",
83
- "require": "./dist/builders/condition-check-builder.cjs"
141
+ "import": {
142
+ "types": "./dist/builders/condition-check-builder.d.ts",
143
+ "default": "./dist/builders/condition-check-builder.js"
144
+ },
145
+ "require": {
146
+ "types": "./dist/builders/condition-check-builder.d.cts",
147
+ "default": "./dist/builders/condition-check-builder.cjs"
148
+ }
84
149
  }
85
150
  },
86
151
  "scripts": {