@magda/minion-sdk 2.0.0-alpha.0 → 2.0.0-alpha.1

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 (3) hide show
  1. package/dist/index.d.ts +12 -0
  2. package/dist/index.js +1484 -1631
  3. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -512,6 +512,17 @@ declare class RecordsApi {
512
512
  response: http.IncomingMessage;
513
513
  body: Record_2;
514
514
  }>;
515
+ /**
516
+ * Get a record in full by ID
517
+ * Get a record with all attached aspects data by the record ID.
518
+ * @param id ID of the record to be fetched.
519
+ * @param xMagdaTenantId 0
520
+ * @param xMagdaSession Magda internal session id
521
+ */
522
+ getByIdInFull(id: string, xMagdaTenantId: number, xMagdaSession?: string): Promise<{
523
+ response: http.IncomingMessage;
524
+ body: Record_2;
525
+ }>;
515
526
  /**
516
527
  * Get a summary record by ID
517
528
  * Gets a summary record, including all the aspect ids for which this record has data.
@@ -641,6 +652,7 @@ declare class RegistryClient {
641
652
  getAspectDefinitions(): Promise<AspectDefinition[] | Error>;
642
653
  getAspectDefinition(aspectId: string, jwtToken?: string): Promise<AspectDefinition>;
643
654
  getRecord(id: string, aspect?: Array<string>, optionalAspect?: Array<string>, dereference?: boolean): Promise<Record_2 | Error>;
655
+ getRecordInFull(id: string): Promise<Record_2>;
644
656
  getRecords<I extends Record_2>(aspect?: Array<string>, optionalAspect?: Array<string>, pageToken?: string, dereference?: boolean, limit?: number, aspectQueries?: string[], aspectOrQuery?: string[], orderBy?: string, orderByDir?: string, orderNullFirst?: boolean): Promise<RecordsPage<I> | Error>;
645
657
  getRecordsPageTokens(aspect?: Array<string>, limit?: number): Promise<string[] | Error>;
646
658
  }