graze-client 0.7.3 → 0.7.5

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.
@@ -114,8 +114,8 @@ declare const GrazeClient_base: Effect.Service.Class<GrazeClient, "GrazeClient",
114
114
  readonly $type: string;
115
115
  readonly createdAt: string;
116
116
  readonly tags: any;
117
- readonly langs: readonly string[];
118
- readonly facets: readonly any[];
117
+ readonly langs: readonly string[] | null;
118
+ readonly facets: readonly any[] | null;
119
119
  readonly entities: any;
120
120
  };
121
121
  readonly indexedAt: string;
@@ -165,8 +165,8 @@ declare const GrazeClient_base: Effect.Service.Class<GrazeClient, "GrazeClient",
165
165
  readonly $type: string;
166
166
  readonly createdAt: string;
167
167
  readonly tags: any;
168
- readonly langs: readonly string[];
169
- readonly facets: readonly any[];
168
+ readonly langs: readonly string[] | null;
169
+ readonly facets: readonly any[] | null;
170
170
  readonly entities: any;
171
171
  };
172
172
  readonly indexedAt: string;
@@ -19,9 +19,9 @@ export declare const Record: S.Struct<{
19
19
  text: typeof S.String;
20
20
  $type: typeof S.String;
21
21
  embed: typeof S.Any;
22
- langs: S.Array$<typeof S.String>;
22
+ langs: S.NullOr<S.Array$<typeof S.String>>;
23
23
  reply: S.Union<[typeof S.Null, typeof S.Any]>;
24
- facets: S.Array$<typeof S.Any>;
24
+ facets: S.NullOr<S.Array$<typeof S.Any>>;
25
25
  labels: S.Union<[typeof S.Null, typeof S.Any]>;
26
26
  entities: S.Union<[typeof S.Null, typeof S.Any]>;
27
27
  createdAt: typeof S.String;
@@ -49,9 +49,9 @@ export declare const Post: S.Struct<{
49
49
  text: typeof S.String;
50
50
  $type: typeof S.String;
51
51
  embed: typeof S.Any;
52
- langs: S.Array$<typeof S.String>;
52
+ langs: S.NullOr<S.Array$<typeof S.String>>;
53
53
  reply: S.Union<[typeof S.Null, typeof S.Any]>;
54
- facets: S.Array$<typeof S.Any>;
54
+ facets: S.NullOr<S.Array$<typeof S.Any>>;
55
55
  labels: S.Union<[typeof S.Null, typeof S.Any]>;
56
56
  entities: S.Union<[typeof S.Null, typeof S.Any]>;
57
57
  createdAt: typeof S.String;
@@ -47,9 +47,9 @@ export declare const GetStickyPostsBody: S.Struct<{
47
47
  text: typeof S.String;
48
48
  $type: typeof S.String;
49
49
  embed: typeof S.Any;
50
- langs: S.Array$<typeof S.String>;
50
+ langs: S.NullOr<S.Array$<typeof S.String>>;
51
51
  reply: S.Union<[typeof S.Null, typeof S.Any]>;
52
- facets: S.Array$<typeof S.Any>;
52
+ facets: S.NullOr<S.Array$<typeof S.Any>>;
53
53
  labels: S.Union<[typeof S.Null, typeof S.Any]>;
54
54
  entities: S.Union<[typeof S.Null, typeof S.Any]>;
55
55
  createdAt: typeof S.String;
@@ -42,8 +42,8 @@ export declare const StickyPostsApiGroup: HttpApiGroup.HttpApiGroup<"stickyposts
42
42
  readonly $type: string;
43
43
  readonly createdAt: string;
44
44
  readonly tags: any;
45
- readonly langs: readonly string[];
46
- readonly facets: readonly any[];
45
+ readonly langs: readonly string[] | null;
46
+ readonly facets: readonly any[] | null;
47
47
  readonly entities: any;
48
48
  };
49
49
  readonly indexedAt: string;
@@ -18,9 +18,9 @@ export const Record = S.Struct({
18
18
  text: S.String,
19
19
  $type: S.String,
20
20
  embed: S.Any,
21
- langs: S.Array(S.String),
21
+ langs: S.NullOr(S.Array(S.String)),
22
22
  reply: S.Union(S.Null, S.Any),
23
- facets: S.Array(S.Any),
23
+ facets: S.NullOr(S.Array(S.Any)),
24
24
  labels: S.Union(S.Null, S.Any),
25
25
  entities: S.Union(S.Null, S.Any),
26
26
  createdAt: S.String,
@@ -1 +1 @@
1
- {"version":3,"file":"Post.js","sourceRoot":"","sources":["../../../src/schema/Post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;AAErC;;GAEG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,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AAO,CAAC;IACtC,WAAW,EAAE,CAAC,CAAC,MAAM;CACtB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graze-client",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "A Typescript Graze API client.",
@@ -48,9 +48,10 @@
48
48
  "changeset-version": "changeset version",
49
49
  "changeset-publish": "bun run build && TEST_DIST= bun vitest --run && changeset publish"
50
50
  },
51
- "dependencies": {
52
- "@effect/platform": "^0.75.1",
53
- "effect": "latest"
51
+ "dependencies": {},
52
+ "peerDependencies": {
53
+ "@effect/platform": "^0.84.11",
54
+ "effect": "^3.16.7"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@babel/cli": "^7.24.8",
@@ -79,6 +80,8 @@
79
80
  "eslint-plugin-sort-destructure-keys": "^2.0.0",
80
81
  "tsx": "^4.17.0",
81
82
  "typescript": "^5.6.2",
82
- "vitest": "^2.0.5"
83
+ "vitest": "^2.0.5",
84
+ "@effect/platform": "latest",
85
+ "effect": "latest"
83
86
  }
84
87
  }
@@ -22,9 +22,9 @@ export const Record = S.Struct({
22
22
  text: S.String,
23
23
  $type: S.String,
24
24
  embed: S.Any,
25
- langs: S.Array(S.String),
25
+ langs: S.NullOr(S.Array(S.String)),
26
26
  reply: S.Union(S.Null, S.Any),
27
- facets: S.Array(S.Any),
27
+ facets: S.NullOr(S.Array(S.Any)),
28
28
  labels: S.Union(S.Null, S.Any),
29
29
  entities: S.Union(S.Null, S.Any),
30
30
  createdAt: S.String,