@esposter/azure 3.0.0 → 3.2.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.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  import { z } from "zod";
2
2
  import { PropertyNames } from "@esposter/shared";
3
3
  import { TableEntity } from "@azure/data-tables";
4
- //#region src/models/BinaryOperator.d.ts
4
+ //#region src/models/search/SearchOperator.d.ts
5
+ export declare enum SearchOperator {
6
+ arrayAny = "arrayAny",
7
+ arrayContains = "arrayContains"
8
+ }
9
+ //#endregion
10
+ //#region src/models/shared/BinaryOperator.d.ts
5
11
  export declare enum BinaryOperator {
6
12
  eq = "eq",
7
13
  ge = "ge",
@@ -12,18 +18,12 @@ export declare enum BinaryOperator {
12
18
  }
13
19
  export declare const BinaryOperators: readonly BinaryOperator[];
14
20
  //#endregion
15
- //#region src/models/search/SearchOperator.d.ts
16
- export declare enum SearchOperator {
17
- arrayAny = "arrayAny",
18
- arrayContains = "arrayContains"
19
- }
20
- //#endregion
21
- //#region src/models/SerializableValue.d.ts
21
+ //#region src/models/shared/SerializableValue.d.ts
22
22
  export declare const SERIALIZABLE_VALUE_MAX_LENGTH = 100;
23
23
  export type SerializableValue = boolean | Date | null | number | string;
24
24
  export declare const serializableValueSchema: z.ZodType<SerializableValue, SerializableValue>;
25
25
  //#endregion
26
- //#region src/models/Clause.d.ts
26
+ //#region src/models/shared/Clause.d.ts
27
27
  export type Clause<T extends object> = {
28
28
  key: keyof T & string;
29
29
  not?: boolean;
@@ -37,19 +37,14 @@ export type Clause<T extends object> = {
37
37
  value: SerializableValue[];
38
38
  });
39
39
  //#endregion
40
- //#region src/models/UnaryOperator.d.ts
40
+ //#region src/models/shared/UnaryOperator.d.ts
41
41
  export declare enum UnaryOperator {
42
42
  and = "and",
43
43
  not = "not",
44
44
  or = "or"
45
45
  }
46
46
  //#endregion
47
- //#region src/services/constants.d.ts
48
- export declare const AZURE_MAX_BATCH_SIZE = 100;
49
- export declare const AZURE_MAX_PAGE_SIZE = 1e3;
50
- export declare const AZURE_MAX_QUEUE_VISIBILITY_TIMEOUT_MS: number;
51
- //#endregion
52
- //#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/omit-index-signature.d.ts
47
+ //#region ../../node_modules/.pnpm/type-fest@5.10.0/node_modules/type-fest/source/omit-index-signature.d.ts
53
48
  /**
54
49
  Omit any index signatures from the given object type, leaving only explicitly defined properties.
55
50
 
@@ -156,6 +151,11 @@ export declare const getSearchNonNullClause: <T extends object>(key: keyof T & s
156
151
  //#region src/services/search/getSearchNullClause.d.ts
157
152
  export declare const getSearchNullClause: <T extends object>(key: keyof T & string) => Clause<T>;
158
153
  //#endregion
154
+ //#region src/services/shared/constants.d.ts
155
+ export declare const AZURE_MAX_BATCH_SIZE = 100;
156
+ export declare const AZURE_MAX_PAGE_SIZE = 1e3;
157
+ export declare const AZURE_MAX_QUEUE_VISIBILITY_TIMEOUT_MS: number;
158
+ //#endregion
159
159
  //#region src/services/table/constants.d.ts
160
160
  export declare const KeysToCapitalize: Set<string>;
161
161
  export declare const KeysToUncapitalize: Set<string>;
package/dist/index.js CHANGED
@@ -1,6 +1,13 @@
1
1
  import { z } from "zod";
2
2
  import { ID_SEPARATOR, InvalidOperationError, NotFoundError, Operation, capitalize, getPropertyNames, normalizeString, takeOne, uncapitalize } from "@esposter/shared";
3
- //#region src/models/BinaryOperator.ts
3
+ //#region src/models/search/SearchOperator.ts
4
+ let SearchOperator = /* @__PURE__ */ function(SearchOperator) {
5
+ SearchOperator["arrayAny"] = "arrayAny";
6
+ SearchOperator["arrayContains"] = "arrayContains";
7
+ return SearchOperator;
8
+ }({});
9
+ //#endregion
10
+ //#region src/models/shared/BinaryOperator.ts
4
11
  let BinaryOperator = /* @__PURE__ */ function(BinaryOperator) {
5
12
  BinaryOperator["eq"] = "eq";
6
13
  BinaryOperator["ge"] = "ge";
@@ -12,7 +19,7 @@ let BinaryOperator = /* @__PURE__ */ function(BinaryOperator) {
12
19
  }({});
13
20
  const BinaryOperators = Object.values(BinaryOperator);
14
21
  //#endregion
15
- //#region src/models/SerializableValue.ts
22
+ //#region src/models/shared/SerializableValue.ts
16
23
  const SERIALIZABLE_VALUE_MAX_LENGTH = 100;
17
24
  const serializableValueSchema = z.union([
18
25
  z.boolean(),
@@ -22,7 +29,7 @@ const serializableValueSchema = z.union([
22
29
  z.string().min(1).max(100)
23
30
  ]);
24
31
  //#endregion
25
- //#region src/models/UnaryOperator.ts
32
+ //#region src/models/shared/UnaryOperator.ts
26
33
  let UnaryOperator = /* @__PURE__ */ function(UnaryOperator) {
27
34
  UnaryOperator["and"] = "and";
28
35
  UnaryOperator["not"] = "not";
@@ -30,18 +37,6 @@ let UnaryOperator = /* @__PURE__ */ function(UnaryOperator) {
30
37
  return UnaryOperator;
31
38
  }({});
32
39
  //#endregion
33
- //#region src/services/constants.ts
34
- const AZURE_MAX_BATCH_SIZE = 100;
35
- const AZURE_MAX_PAGE_SIZE = 1e3;
36
- const AZURE_MAX_QUEUE_VISIBILITY_TIMEOUT_MS = Temporal.Duration.from({ days: 7 }).total("milliseconds");
37
- //#endregion
38
- //#region src/models/search/SearchOperator.ts
39
- let SearchOperator = /* @__PURE__ */ function(SearchOperator) {
40
- SearchOperator["arrayAny"] = "arrayAny";
41
- SearchOperator["arrayContains"] = "arrayContains";
42
- return SearchOperator;
43
- }({});
44
- //#endregion
45
40
  //#region src/models/table/CompositeKey.ts
46
41
  var CompositeKey = class {};
47
42
  const CompositeKeyPropertyNames = getPropertyNames();
@@ -60,6 +55,11 @@ const getSearchNullClause = (key) => ({
60
55
  value: null
61
56
  });
62
57
  //#endregion
58
+ //#region src/services/shared/constants.ts
59
+ const AZURE_MAX_BATCH_SIZE = 100;
60
+ const AZURE_MAX_PAGE_SIZE = 1e3;
61
+ const AZURE_MAX_QUEUE_VISIBILITY_TIMEOUT_MS = Temporal.Duration.from({ days: 7 }).total("milliseconds");
62
+ //#endregion
63
63
  //#region src/services/table/constants.ts
64
64
  const KeysToCapitalize = /* @__PURE__ */ new Set([CompositeKeyPropertyNames.partitionKey, CompositeKeyPropertyNames.rowKey]);
65
65
  const KeysToUncapitalize = /* @__PURE__ */ new Set([capitalize(CompositeKeyPropertyNames.partitionKey), capitalize(CompositeKeyPropertyNames.rowKey)]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esposter/azure",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "The Azure wire conventions Esposter's clients and its mocks both speak — OData filter clauses, entity key casing, and service limits.",
5
5
  "keywords": [
6
6
  "azure",
@@ -47,22 +47,22 @@
47
47
  "typecheck": "tsc"
48
48
  },
49
49
  "dependencies": {
50
- "@esposter/shared": "3.0.0"
50
+ "@esposter/shared": "3.2.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@arethetypeswrong/core": "^0.18.5",
54
- "@esposter/configuration": "3.0.0",
54
+ "@esposter/configuration": "3.2.0",
55
55
  "publint": "^0.3.24",
56
56
  "tsdown": "^0.23.0",
57
- "type-fest": "^5.9.0",
58
- "vitest": "^5.0.0"
57
+ "type-fest": "^5.10.0",
58
+ "vitest": "^5.0.1"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@azure/data-tables": "^13.3.2",
62
- "zod": "^4.6.2"
62
+ "zod": "^4.6.5"
63
63
  },
64
64
  "inlinedDependencies": {
65
- "type-fest": "5.9.0"
65
+ "type-fest": "5.10.0"
66
66
  },
67
- "gitHead": "5ea72289bdd594e598aab8fefd5686df2a642a7e"
67
+ "gitHead": "bc055ed2f154eff219a355016a6b586962dbfa9c"
68
68
  }