@researchdatabox/redbox-core-types 1.0.5-beta → 1.0.6-beta

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.
@@ -0,0 +1,8 @@
1
+ export declare class APIHarvestResponse {
2
+ harvestId: string;
3
+ oid: string;
4
+ message: string;
5
+ details: string;
6
+ status: boolean;
7
+ constructor(harvestId: string, oid: string, status?: boolean, message?: string, details?: string);
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.APIHarvestResponse = void 0;
4
+ class APIHarvestResponse {
5
+ constructor(harvestId, oid, status = true, message = 'Harvested successfully', details = '') {
6
+ this.harvestId = harvestId;
7
+ this.message = message;
8
+ this.details = details;
9
+ this.oid = oid;
10
+ this.status = status;
11
+ }
12
+ }
13
+ exports.APIHarvestResponse = APIHarvestResponse;
@@ -1,6 +1,7 @@
1
1
  export { APIActionResponse } from "./APIActionResponse";
2
2
  export { APIErrorResponse } from "./APIErrorResponse";
3
3
  export { APIObjectActionResponse } from "./APIObjectActionResponse";
4
+ export { APIHarvestResponse } from "./APIHarvestResponse";
4
5
  export { ListAPIResponse } from "./ListAPIResponse";
5
6
  export { ListAPISummary } from "./ListAPISummary";
6
7
  export { RecordAuditModel } from "./RecordAuditModel";
@@ -10,13 +10,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.User = exports.RequestDetails = exports.RecordAuditModel = exports.ListAPISummary = exports.ListAPIResponse = exports.APIObjectActionResponse = exports.APIErrorResponse = exports.APIActionResponse = void 0;
13
+ exports.User = exports.RequestDetails = exports.RecordAuditModel = exports.ListAPISummary = exports.ListAPIResponse = exports.APIHarvestResponse = exports.APIObjectActionResponse = exports.APIErrorResponse = exports.APIActionResponse = void 0;
14
14
  var APIActionResponse_1 = require("./APIActionResponse");
15
15
  Object.defineProperty(exports, "APIActionResponse", { enumerable: true, get: function () { return APIActionResponse_1.APIActionResponse; } });
16
16
  var APIErrorResponse_1 = require("./APIErrorResponse");
17
17
  Object.defineProperty(exports, "APIErrorResponse", { enumerable: true, get: function () { return APIErrorResponse_1.APIErrorResponse; } });
18
18
  var APIObjectActionResponse_1 = require("./APIObjectActionResponse");
19
19
  Object.defineProperty(exports, "APIObjectActionResponse", { enumerable: true, get: function () { return APIObjectActionResponse_1.APIObjectActionResponse; } });
20
+ var APIHarvestResponse_1 = require("./APIHarvestResponse");
21
+ Object.defineProperty(exports, "APIHarvestResponse", { enumerable: true, get: function () { return APIHarvestResponse_1.APIHarvestResponse; } });
20
22
  var ListAPIResponse_1 = require("./ListAPIResponse");
21
23
  Object.defineProperty(exports, "ListAPIResponse", { enumerable: true, get: function () { return ListAPIResponse_1.ListAPIResponse; } });
22
24
  var ListAPISummary_1 = require("./ListAPISummary");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@researchdatabox/redbox-core-types",
3
- "version": "1.0.5-beta",
3
+ "version": "1.0.6-beta",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",