@servicelabsco/slabs-access-manager 1.0.15 → 1.0.16

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.
@@ -4,5 +4,6 @@ export declare class GstStateController {
4
4
  protected readonly sqlService: SqlService;
5
5
  constructor(sqlService: SqlService);
6
6
  find(body: StringSearchDto): Promise<any>;
7
- getByState(identifier: string): Promise<GstStateEntity>;
7
+ getByState(gst_state_id: string): Promise<GstStateEntity>;
8
+ getByIdentifier(identifier: string): Promise<GstStateEntity>;
8
9
  }
@@ -15,8 +15,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.GstStateController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
18
- const gst_state_entity_1 = require("../entities/gst.state.entity");
19
18
  const process_db_find_1 = require("../../access/libraries/process.db.find");
19
+ const gst_state_entity_1 = require("../entities/gst.state.entity");
20
20
  let GstStateController = class GstStateController {
21
21
  constructor(sqlService) {
22
22
  this.sqlService = sqlService;
@@ -33,7 +33,10 @@ let GstStateController = class GstStateController {
33
33
  };
34
34
  return new process_db_find_1.ProcessDbFind(this.sqlService).process(config);
35
35
  }
36
- async getByState(identifier) {
36
+ async getByState(gst_state_id) {
37
+ return gst_state_entity_1.GstStateEntity.findOne({ where: { gst_state_id } });
38
+ }
39
+ async getByIdentifier(identifier) {
37
40
  return gst_state_entity_1.GstStateEntity.findOne({ where: { identifier } });
38
41
  }
39
42
  };
@@ -52,6 +55,13 @@ __decorate([
52
55
  __metadata("design:paramtypes", [String]),
53
56
  __metadata("design:returntype", Promise)
54
57
  ], GstStateController.prototype, "getByState", null);
58
+ __decorate([
59
+ (0, common_1.Get)(':id/identifier'),
60
+ __param(0, (0, common_1.Param)('id')),
61
+ __metadata("design:type", Function),
62
+ __metadata("design:paramtypes", [String]),
63
+ __metadata("design:returntype", Promise)
64
+ ], GstStateController.prototype, "getByIdentifier", null);
55
65
  exports.GstStateController = GstStateController = __decorate([
56
66
  (0, common_1.Controller)('api/b/gst-states'),
57
67
  __metadata("design:paramtypes", [nestjs_utility_services_1.SqlService])
@@ -1 +1 @@
1
- {"version":3,"file":"gst.state.controller.js","sourceRoot":"","sources":["../../../src/accessUtility/controllers/gst.state.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAAqF;AACrF,mEAA8D;AAE9D,4EAAuE;AAGhE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC3B,YAA+B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAGnD,AAAN,KAAK,CAAC,IAAI,CAAS,IAAqB;QACpC,MAAM,MAAM,GAAqB;YAC7B,SAAS,EAAE,kBAAkB;YAC7B,gBAAgB,EAAE,sBAAsB;YACxC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,cAAc,CAAC;YAC3D,OAAO,EAAE,CAAC,QAAQ,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,CAAC;YACzE,KAAK,EAAE,YAAY;YACnB,aAAa,EAAE,MAAM;YACrB,GAAG,IAAI;SACV,CAAC;QAEF,OAAO,IAAI,+BAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAc,UAAkB;QAC5C,OAAO,iCAAc,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;CACJ,CAAA;AAtBY,gDAAkB;AAIrB;IADL,IAAA,aAAI,EAAC,MAAM,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,yCAAe;;8CAYvC;AAGK;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACC,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;oD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AAE,CAAA;;qCAAO,yCAAe;;8CAYvC;AAGK;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACC,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;oDAE5B;AAGK;IADL,IAAA,YAAG,EAAC,gBAAgB,CAAC;IACC,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;yDAEjC;6BA1BQ,kBAAkB;IAD9B,IAAA,mBAAU,EAAC,kBAAkB,CAAC;qCAEgB,oCAAU;GAD5C,kBAAkB,CA2B9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/slabs-access-manager",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Support for application level menus and dashboards",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",