@studyportals/campaign-management-api-interface 0.2.0 → 0.4.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/index.d.ts CHANGED
@@ -2,4 +2,4 @@ import { AuditorCampaignManagementAPIClient } from "./src/auditor-campaign-manag
2
2
  import { AuditorEntityType } from "./src/domain/auditor/enums/auditor-entity-type.enum";
3
3
  import { AuditorOperation } from "./src/domain/auditor/enums/auditor-operation.enum";
4
4
  import { GetAuditorDto } from "./src/domain/auditor/get-auditor.dto";
5
- export { AuditorCampaignManagementAPIClient, AuditorEntityType, AuditorOperation, GetAuditorDto as GetAuditorEntity };
5
+ export { AuditorCampaignManagementAPIClient, AuditorEntityType, AuditorOperation, GetAuditorDto };
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetAuditorEntity = exports.AuditorOperation = exports.AuditorEntityType = exports.AuditorCampaignManagementAPIClient = void 0;
3
+ exports.GetAuditorDto = exports.AuditorOperation = exports.AuditorEntityType = exports.AuditorCampaignManagementAPIClient = void 0;
4
4
  const auditor_campaign_management_api_client_1 = require("./src/auditor-campaign-management-api.client");
5
5
  Object.defineProperty(exports, "AuditorCampaignManagementAPIClient", { enumerable: true, get: function () { return auditor_campaign_management_api_client_1.AuditorCampaignManagementAPIClient; } });
6
6
  const auditor_entity_type_enum_1 = require("./src/domain/auditor/enums/auditor-entity-type.enum");
@@ -8,5 +8,5 @@ Object.defineProperty(exports, "AuditorEntityType", { enumerable: true, get: fun
8
8
  const auditor_operation_enum_1 = require("./src/domain/auditor/enums/auditor-operation.enum");
9
9
  Object.defineProperty(exports, "AuditorOperation", { enumerable: true, get: function () { return auditor_operation_enum_1.AuditorOperation; } });
10
10
  const get_auditor_dto_1 = require("./src/domain/auditor/get-auditor.dto");
11
- Object.defineProperty(exports, "GetAuditorEntity", { enumerable: true, get: function () { return get_auditor_dto_1.GetAuditorDto; } });
11
+ Object.defineProperty(exports, "GetAuditorDto", { enumerable: true, get: function () { return get_auditor_dto_1.GetAuditorDto; } });
12
12
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,yGAAkG;AAO9F,mHAPK,2EAAkC,OAOL;AANtC,kGAAwF;AASpF,kGATK,4CAAiB,OASL;AARrB,8FAAqF;AASjF,iGATK,yCAAgB,OASL;AARpB,0EAAqE;AAWhD,iGAXZ,+BAAa,OAWe"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,yGAAkG;AAO9F,mHAPK,2EAAkC,OAOL;AANtC,kGAAwF;AASpF,kGATK,4CAAiB,OASL;AARrB,8FAAqF;AASjF,iGATK,yCAAgB,OASL;AARpB,0EAAqE;AAWjE,8FAXK,+BAAa,OAWL"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@studyportals/campaign-management-api-interface",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "scripts": {
5
5
  "compile": "rm -fR bin && npx tsc",
6
6
  "test-u": "jest -c jest.config.unit.json --silent --maxWorkers=1",
7
7
  "test-i": "nyc mocha src tests-i",
8
- "prepare-deployment": "npm run test-u && cp package.json bin/package.json && rm -fR bin/tests-u",
8
+ "prepare-deployment": "npm run test-u && npm run compile && cp package.json bin/package.json && rm -fR bin/tests-u",
9
9
  "deploy": "npm run prepare-deployment && npm publish bin --access=public",
10
10
  "deploy-patch": "npm version patch && npm run deploy",
11
11
  "deploy-minor": "npm version minor && npm run deploy",
@@ -31,7 +31,6 @@
31
31
  "@types/chai": "^4.3.4",
32
32
  "@types/jest": "^29.4.0",
33
33
  "@types/node": "^16.9.4",
34
- "class-transformer": "^0.5.1",
35
34
  "inversify": "^6.0.1",
36
35
  "typescript": "^4.9.5"
37
36
  }
@@ -1,18 +1,6 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.GetAuditorDto = void 0;
13
- const expose_decorator_1 = require("class-transformer/types/decorators/expose.decorator");
14
- const auditor_entity_type_enum_1 = require("./enums/auditor-entity-type.enum");
15
- const auditor_operation_enum_1 = require("./enums/auditor-operation.enum");
16
4
  class GetAuditorDto {
17
5
  constructor(id, auditTime, operation, entityID, entityType, username, isUserAction, data) {
18
6
  this.id = id;
@@ -25,37 +13,5 @@ class GetAuditorDto {
25
13
  this.data = data;
26
14
  }
27
15
  }
28
- __decorate([
29
- (0, expose_decorator_1.Expose)(),
30
- __metadata("design:type", Number)
31
- ], GetAuditorDto.prototype, "id", void 0);
32
- __decorate([
33
- (0, expose_decorator_1.Expose)(),
34
- __metadata("design:type", String)
35
- ], GetAuditorDto.prototype, "auditTime", void 0);
36
- __decorate([
37
- (0, expose_decorator_1.Expose)(),
38
- __metadata("design:type", String)
39
- ], GetAuditorDto.prototype, "operation", void 0);
40
- __decorate([
41
- (0, expose_decorator_1.Expose)(),
42
- __metadata("design:type", Number)
43
- ], GetAuditorDto.prototype, "entityID", void 0);
44
- __decorate([
45
- (0, expose_decorator_1.Expose)(),
46
- __metadata("design:type", String)
47
- ], GetAuditorDto.prototype, "entityType", void 0);
48
- __decorate([
49
- (0, expose_decorator_1.Expose)(),
50
- __metadata("design:type", String)
51
- ], GetAuditorDto.prototype, "username", void 0);
52
- __decorate([
53
- (0, expose_decorator_1.Expose)(),
54
- __metadata("design:type", Boolean)
55
- ], GetAuditorDto.prototype, "isUserAction", void 0);
56
- __decorate([
57
- (0, expose_decorator_1.Expose)(),
58
- __metadata("design:type", Object)
59
- ], GetAuditorDto.prototype, "data", void 0);
60
16
  exports.GetAuditorDto = GetAuditorDto;
61
17
  //# sourceMappingURL=get-auditor.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-auditor.dto.js","sourceRoot":"","sources":["../../../../src/domain/auditor/get-auditor.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0FAA6E;AAE7E,+EAAqE;AACrE,2EAAkE;AAElE,MAAa,aAAa;IAyBtB,YACI,EAAU,EACV,SAAiB,EACjB,SAA2B,EAC3B,QAAgB,EAChB,UAA6B,EAC7B,QAAgB,EAChB,YAAqB,EACrB,IAAS;QAET,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;CACJ;AA3CG;IAAC,IAAA,yBAAM,GAAE;;yCACkB;AAE3B;IAAC,IAAA,yBAAM,GAAE;;gDACwB;AAEjC;IAAC,IAAA,yBAAM,GAAE;;gDACkC;AAE3C;IAAC,IAAA,yBAAM,GAAE;;+CACuB;AAEhC;IAAC,IAAA,yBAAM,GAAE;;iDACoC;AAE7C;IAAC,IAAA,yBAAM,GAAE;;+CACuB;AAEhC;IA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