graphlit-client 1.0.20250531003 → 1.0.20250531004

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/client.d.ts CHANGED
@@ -50,7 +50,8 @@ declare class Graphlit {
50
50
  ingestUri(uri: string, name?: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: Types.EntityReferenceInput[], observations?: Types.ObservationReferenceInput[], correlationId?: string): Promise<Types.IngestUriMutation>;
51
51
  ingestText(text: string, name?: string, textType?: Types.TextTypes, uri?: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: Types.EntityReferenceInput[], observations?: Types.ObservationReferenceInput[], correlationId?: string): Promise<Types.IngestTextMutation>;
52
52
  ingestMemory(text: string, name?: string, textType?: Types.TextTypes, collections?: Types.EntityReferenceInput[], correlationId?: string): Promise<Types.IngestMemoryMutation>;
53
- ingestEncodedFile(name: string, data: string, mimeType: string, id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: Types.EntityReferenceInput[], observations?: Types.ObservationReferenceInput[], correlationId?: string): Promise<Types.IngestEncodedFileMutation>;
53
+ ingestEvent(markdown: string, name?: string, description?: string, eventDate?: Types.Scalars["DateTime"]["input"], collections?: Types.EntityReferenceInput[], correlationId?: string): Promise<Types.IngestEventMutation>;
54
+ ingestEncodedFile(name: string, data: string, mimeType: string, fileCreationDate?: Types.Scalars["DateTime"]["input"], fileModifiedDate?: Types.Scalars["DateTime"]["input"], id?: string, isSynchronous?: boolean, workflow?: Types.EntityReferenceInput, collections?: Types.EntityReferenceInput[], observations?: Types.ObservationReferenceInput[], correlationId?: string): Promise<Types.IngestEncodedFileMutation>;
54
55
  updateContent(content: Types.ContentUpdateInput): Promise<Types.UpdateContentMutation>;
55
56
  deleteContent(id: string): Promise<Types.DeleteContentMutation>;
56
57
  deleteContents(ids: string[], isSynchronous?: boolean): Promise<Types.DeleteContentsMutation>;
package/dist/client.js CHANGED
@@ -407,12 +407,26 @@ class Graphlit {
407
407
  });
408
408
  });
409
409
  }
410
- ingestEncodedFile(name, data, mimeType, id, isSynchronous, workflow, collections, observations, correlationId) {
410
+ ingestEvent(markdown, name, description, eventDate, collections, correlationId) {
411
+ return __awaiter(this, void 0, void 0, function* () {
412
+ return this.mutateAndCheckError(Documents.IngestEvent, {
413
+ name: name,
414
+ markdown: markdown,
415
+ description: description,
416
+ eventDate: eventDate,
417
+ collections: collections,
418
+ correlationId: correlationId,
419
+ });
420
+ });
421
+ }
422
+ ingestEncodedFile(name, data, mimeType, fileCreationDate, fileModifiedDate, id, isSynchronous, workflow, collections, observations, correlationId) {
411
423
  return __awaiter(this, void 0, void 0, function* () {
412
424
  return this.mutateAndCheckError(Documents.IngestEncodedFile, {
413
425
  name: name,
414
426
  data: data,
415
427
  mimeType: mimeType,
428
+ fileCreationDate: fileCreationDate,
429
+ fileModifiedDate: fileModifiedDate,
416
430
  id: id,
417
431
  isSynchronous: isSynchronous,
418
432
  workflow: workflow,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20250531003",
3
+ "version": "1.0.20250531004",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",