@loopback/example-access-control-migration 5.0.0 → 5.0.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 (124) hide show
  1. package/.eslintrc.js +1 -1
  2. package/CHANGELOG.md +8 -0
  3. package/LICENSE +1 -1
  4. package/dist/__tests__/acceptance/project.acceptance.js +1 -1
  5. package/dist/__tests__/acceptance/project.acceptance.js.map +1 -1
  6. package/dist/application.d.ts +3 -3
  7. package/dist/application.js +1 -1
  8. package/dist/application.js.map +1 -1
  9. package/dist/components/casbin-authorization/casbin-authorization-component.js +1 -1
  10. package/dist/components/casbin-authorization/casbin-authorization-component.js.map +1 -1
  11. package/dist/components/casbin-authorization/index.js +1 -1
  12. package/dist/components/casbin-authorization/index.js.map +1 -1
  13. package/dist/components/casbin-authorization/services/assign-project-instance-id.voter.js +1 -1
  14. package/dist/components/casbin-authorization/services/assign-project-instance-id.voter.js.map +1 -1
  15. package/dist/components/casbin-authorization/services/casbin.authorizer.js +1 -1
  16. package/dist/components/casbin-authorization/services/casbin.authorizer.js.map +1 -1
  17. package/dist/components/casbin-authorization/services/casbin.enforcers.js +1 -1
  18. package/dist/components/casbin-authorization/services/casbin.enforcers.js.map +1 -1
  19. package/dist/components/casbin-authorization/services/index.js +1 -1
  20. package/dist/components/casbin-authorization/services/index.js.map +1 -1
  21. package/dist/components/jwt-authentication/index.js +1 -1
  22. package/dist/components/jwt-authentication/index.js.map +1 -1
  23. package/dist/components/jwt-authentication/jwt-authentication-component.js +1 -1
  24. package/dist/components/jwt-authentication/jwt-authentication-component.js.map +1 -1
  25. package/dist/components/jwt-authentication/keys.js +1 -1
  26. package/dist/components/jwt-authentication/keys.js.map +1 -1
  27. package/dist/components/jwt-authentication/services/index.js +1 -1
  28. package/dist/components/jwt-authentication/services/index.js.map +1 -1
  29. package/dist/components/jwt-authentication/services/jwt.auth.strategy.js +1 -1
  30. package/dist/components/jwt-authentication/services/jwt.auth.strategy.js.map +1 -1
  31. package/dist/components/jwt-authentication/services/jwt.service.js +1 -1
  32. package/dist/components/jwt-authentication/services/jwt.service.js.map +1 -1
  33. package/dist/components/jwt-authentication/services/security.spec.d.ts +1 -1
  34. package/dist/components/jwt-authentication/services/security.spec.js +1 -1
  35. package/dist/components/jwt-authentication/services/security.spec.js.map +1 -1
  36. package/dist/components/jwt-authentication/services/user.service.js +1 -1
  37. package/dist/components/jwt-authentication/services/user.service.js.map +1 -1
  38. package/dist/controllers/index.js +1 -1
  39. package/dist/controllers/index.js.map +1 -1
  40. package/dist/controllers/project.controller.js +1 -1
  41. package/dist/controllers/project.controller.js.map +1 -1
  42. package/dist/controllers/user.controller.js +1 -1
  43. package/dist/controllers/user.controller.js.map +1 -1
  44. package/dist/datasources/db.datasource.js +1 -1
  45. package/dist/datasources/db.datasource.js.map +1 -1
  46. package/dist/datasources/index.js +1 -1
  47. package/dist/datasources/index.js.map +1 -1
  48. package/dist/index.js +1 -1
  49. package/dist/index.js.map +1 -1
  50. package/dist/keys.js +1 -1
  51. package/dist/keys.js.map +1 -1
  52. package/dist/migrate.js +1 -1
  53. package/dist/migrate.js.map +1 -1
  54. package/dist/models/index.js +1 -1
  55. package/dist/models/index.js.map +1 -1
  56. package/dist/models/project.model.js +1 -1
  57. package/dist/models/project.model.js.map +1 -1
  58. package/dist/models/team.model.js +1 -1
  59. package/dist/models/team.model.js.map +1 -1
  60. package/dist/models/user-credentials.model.js +1 -1
  61. package/dist/models/user-credentials.model.js.map +1 -1
  62. package/dist/models/user.model.js +1 -1
  63. package/dist/models/user.model.js.map +1 -1
  64. package/dist/observers/index.js +1 -1
  65. package/dist/observers/index.js.map +1 -1
  66. package/dist/observers/sample.observer.d.ts +1 -2
  67. package/dist/observers/sample.observer.js +2 -2
  68. package/dist/observers/sample.observer.js.map +1 -1
  69. package/dist/openapi-spec.js +1 -1
  70. package/dist/openapi-spec.js.map +1 -1
  71. package/dist/repositories/index.d.ts +2 -2
  72. package/dist/repositories/index.js +3 -3
  73. package/dist/repositories/index.js.map +1 -1
  74. package/dist/repositories/project.repository.js +1 -1
  75. package/dist/repositories/project.repository.js.map +1 -1
  76. package/dist/repositories/team.repository.d.ts +1 -1
  77. package/dist/repositories/team.repository.js +3 -3
  78. package/dist/repositories/team.repository.js.map +1 -1
  79. package/dist/repositories/user-credentials.repository.d.ts +1 -1
  80. package/dist/repositories/user-credentials.repository.js +3 -3
  81. package/dist/repositories/user-credentials.repository.js.map +1 -1
  82. package/dist/repositories/user.repository.js +1 -1
  83. package/dist/repositories/user.repository.js.map +1 -1
  84. package/dist/sequence.js +1 -1
  85. package/dist/sequence.js.map +1 -1
  86. package/package.json +20 -20
  87. package/src/__tests__/acceptance/project.acceptance.ts +1 -1
  88. package/src/application.ts +1 -1
  89. package/src/components/casbin-authorization/casbin-authorization-component.ts +1 -1
  90. package/src/components/casbin-authorization/index.ts +1 -1
  91. package/src/components/casbin-authorization/services/assign-project-instance-id.voter.ts +1 -1
  92. package/src/components/casbin-authorization/services/casbin.authorizer.ts +1 -1
  93. package/src/components/casbin-authorization/services/casbin.enforcers.ts +1 -1
  94. package/src/components/casbin-authorization/services/index.ts +1 -1
  95. package/src/components/jwt-authentication/index.ts +1 -1
  96. package/src/components/jwt-authentication/jwt-authentication-component.ts +1 -1
  97. package/src/components/jwt-authentication/keys.ts +1 -1
  98. package/src/components/jwt-authentication/services/index.ts +1 -1
  99. package/src/components/jwt-authentication/services/jwt.auth.strategy.ts +1 -1
  100. package/src/components/jwt-authentication/services/jwt.service.ts +1 -1
  101. package/src/components/jwt-authentication/services/security.spec.ts +2 -2
  102. package/src/components/jwt-authentication/services/user.service.ts +1 -1
  103. package/src/controllers/index.ts +1 -1
  104. package/src/controllers/project.controller.ts +1 -1
  105. package/src/controllers/user.controller.ts +1 -1
  106. package/src/datasources/db.datasource.ts +1 -1
  107. package/src/datasources/index.ts +1 -1
  108. package/src/index.ts +1 -1
  109. package/src/keys.ts +1 -1
  110. package/src/migrate.ts +1 -1
  111. package/src/models/index.ts +1 -1
  112. package/src/models/project.model.ts +1 -1
  113. package/src/models/team.model.ts +1 -1
  114. package/src/models/user-credentials.model.ts +1 -1
  115. package/src/models/user.model.ts +1 -1
  116. package/src/observers/index.ts +1 -1
  117. package/src/observers/sample.observer.ts +3 -3
  118. package/src/openapi-spec.ts +1 -1
  119. package/src/repositories/index.ts +3 -3
  120. package/src/repositories/project.repository.ts +1 -1
  121. package/src/repositories/team.repository.ts +3 -3
  122. package/src/repositories/user-credentials.repository.ts +3 -3
  123. package/src/repositories/user.repository.ts +1 -1
  124. package/src/sequence.ts +1 -1
@@ -1,5 +1,4 @@
1
- import { Application, // The decorator
2
- LifeCycleObserver } from '@loopback/core';
1
+ import { Application, LifeCycleObserver } from '@loopback/core';
3
2
  import { ProjectRepository } from '../repositories/project.repository';
4
3
  import { TeamRepository } from '../repositories/team.repository';
5
4
  import { UserRepository } from '../repositories/user.repository';
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/example-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.SampleObserver = void 0;
8
8
  const tslib_1 = require("tslib");
9
9
  const core_1 = require("@loopback/core");
10
+ const bcryptjs_1 = require("bcryptjs");
10
11
  const _ = tslib_1.__importStar(require("lodash"));
11
12
  const project_repository_1 = require("../repositories/project.repository");
12
13
  const team_repository_1 = require("../repositories/team.repository");
13
14
  const user_repository_1 = require("../repositories/user.repository");
14
- const bcryptjs_1 = require("bcryptjs");
15
15
  /**
16
16
  * This class will be bound to the application as a `LifeCycleObserver` during
17
17
  * `boot`
@@ -1 +1 @@
1
- {"version":3,"file":"sample.observer.js","sourceRoot":"","sources":["../../src/observers/sample.observer.ts"],"names":[],"mappings":";AAAA,iDA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M,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;SAClC;IACH,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,KAAK,GAAG;YACZ,EAAC,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAC;YACtC,EAAC,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAC;SACpC,CAAC;QAEF,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;YACrB,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;SAC/B;IACH,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,QAAgB,EAAE,MAAc;QACjD,MAAM,IAAI,GAAG,MAAM,IAAA,kBAAO,EAAC,MAAM,CAAC,CAAC;QACnC,OAAO,IAAA,eAAI,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF,CAAA;AArFY,cAAc;IAD1B,IAAA,wBAAiB,EAAC,EAAE,CAAC;IAGjB,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IACzC,mBAAA,IAAA,aAAM,EAAC,gCAAgC,CAAC,CAAA;IAExC,mBAAA,IAAA,aAAM,EAAC,6BAA6B,CAAC,CAAA;IACrC,mBAAA,IAAA,aAAM,EAAC,6BAA6B,CAAC,CAAA;6CAJkB,kBAAW;QAE9C,sCAAiB;QACmB,gCAAc;QACd,gCAAc;GAN9D,cAAc,CAqF1B;AArFY,wCAAc"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/example-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -1 +1 @@
1
- {"version":3,"file":"openapi-spec.js","sourceRoot":"","sources":["../src/openapi-spec.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;AAGhE,+CAAuD;AAEvD;;GAEG;AACH,KAAK,UAAU,iBAAiB;;IAC9B,MAAM,MAAM,GAAsB;QAChC,IAAI,EAAE;YACJ,IAAI,EAAE,CAAC,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,mCAAI,IAAI,CAAC;YACjC,IAAI,EAAE,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,mCAAI,WAAW;SACtC;KACF,CAAC;IACF,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,mCAAI,EAAE,CAAC;IACtC,MAAM,GAAG,GAAG,IAAI,sCAAwB,CAAC,MAAM,CAAC,CAAC;IACjD,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IACjB,MAAM,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;IAC9B,OAAO,CAAC,KAAK,CAAC,mDAAmD,EAAE,GAAG,CAAC,CAAC;IACxE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"openapi-spec.js","sourceRoot":"","sources":["../src/openapi-spec.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;AAGhE,+CAAuD;AAEvD;;GAEG;AACH,KAAK,UAAU,iBAAiB;;IAC9B,MAAM,MAAM,GAAsB;QAChC,IAAI,EAAE;YACJ,IAAI,EAAE,CAAC,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,mCAAI,IAAI,CAAC;YACjC,IAAI,EAAE,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,mCAAI,WAAW;SACtC;KACF,CAAC;IACF,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,mCAAI,EAAE,CAAC;IACtC,MAAM,GAAG,GAAG,IAAI,sCAAwB,CAAC,MAAM,CAAC,CAAC;IACjD,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IACjB,MAAM,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;IAC9B,OAAO,CAAC,KAAK,CAAC,mDAAmD,EAAE,GAAG,CAAC,CAAC;IACxE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- export * from './team.repository';
2
- export * from './user.repository';
3
1
  export * from './project.repository';
2
+ export * from './team.repository';
4
3
  export * from './user-credentials.repository';
4
+ export * from './user.repository';
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/example-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  const tslib_1 = require("tslib");
8
- tslib_1.__exportStar(require("./team.repository"), exports);
9
- tslib_1.__exportStar(require("./user.repository"), exports);
10
8
  tslib_1.__exportStar(require("./project.repository"), exports);
9
+ tslib_1.__exportStar(require("./team.repository"), exports);
11
10
  tslib_1.__exportStar(require("./user-credentials.repository"), exports);
11
+ tslib_1.__exportStar(require("./user.repository"), exports);
12
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;AAEhE,4DAAkC;AAClC,4DAAkC;AAClC,+DAAqC;AACrC,wEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;AAEhE,+DAAqC;AACrC,4DAAkC;AAClC,wEAA8C;AAC9C,4DAAkC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/example-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -1 +1 @@
1
- {"version":3,"file":"project.repository.js","sourceRoot":"","sources":["../../src/repositories/project.repository.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA8C;AAC9C,qDAI8B;AAC9B,gDAA4C;AAC5C,sCAA0D;AAG1D,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,kCAItC;IAGC,YAC4B,UAAwB,EAExC,oBAA4C;QAEtD,KAAK,CAAC,gBAAO,EAAE,UAAU,CAAC,CAAC;QAFjB,yBAAoB,GAApB,oBAAoB,CAAwB;QAGtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;QAC5E,IAAI,CAAC,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACxE,CAAC;CACF,CAAA;AAhBY,iBAAiB;IAQzB,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;IACxB,mBAAA,uBAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;6CADE,0BAAY;GARzC,iBAAiB,CAgB7B;AAhBY,8CAAiB"}
1
+ {"version":3,"file":"project.repository.js","sourceRoot":"","sources":["../../src/repositories/project.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA8C;AAC9C,qDAI8B;AAC9B,gDAA4C;AAC5C,sCAA0D;AAG1D,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,kCAItC;IAGC,YAC4B,UAAwB,EAExC,oBAA4C;QAEtD,KAAK,CAAC,gBAAO,EAAE,UAAU,CAAC,CAAC;QAFjB,yBAAoB,GAApB,oBAAoB,CAAwB;QAGtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;QAC5E,IAAI,CAAC,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACxE,CAAC;CACF,CAAA;AAhBY,iBAAiB;IAQzB,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;IACxB,mBAAA,uBAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;6CADE,0BAAY;GARzC,iBAAiB,CAgB7B;AAhBY,8CAAiB"}
@@ -1,6 +1,6 @@
1
1
  import { DefaultCrudRepository } from '@loopback/repository';
2
- import { Team, TeamRelations } from '../models';
3
2
  import { DbDataSource } from '../datasources';
3
+ import { Team, TeamRelations } from '../models';
4
4
  export declare class TeamRepository extends DefaultCrudRepository<Team, typeof Team.prototype.id, TeamRelations> {
5
5
  constructor(dataSource: DbDataSource);
6
6
  }
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/example-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.TeamRepository = void 0;
8
8
  const tslib_1 = require("tslib");
9
+ const core_1 = require("@loopback/core");
9
10
  const repository_1 = require("@loopback/repository");
10
- const models_1 = require("../models");
11
11
  const datasources_1 = require("../datasources");
12
- const core_1 = require("@loopback/core");
12
+ const models_1 = require("../models");
13
13
  let TeamRepository = class TeamRepository extends repository_1.DefaultCrudRepository {
14
14
  constructor(dataSource) {
15
15
  super(models_1.Team, dataSource);
@@ -1 +1 @@
1
- {"version":3,"file":"team.repository.js","sourceRoot":"","sources":["../../src/repositories/team.repository.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAA2D;AAC3D,sCAA8C;AAC9C,gDAA4C;AAC5C,yCAAsC;AAEtC,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,kCAInC;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,aAAI,EAAE,UAAU,CAAC,CAAC;IAC1B,CAAC;CACF,CAAA;AARY,cAAc;IAKZ,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;6CAAa,0BAAY;GALnD,cAAc,CAQ1B;AARY,wCAAc"}
1
+ {"version":3,"file":"team.repository.js","sourceRoot":"","sources":["../../src/repositories/team.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAA2D;AAC3D,gDAA4C;AAC5C,sCAA8C;AAE9C,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,kCAInC;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,aAAI,EAAE,UAAU,CAAC,CAAC;IAC1B,CAAC;CACF,CAAA;AARY,cAAc;IAKZ,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;6CAAa,0BAAY;GALnD,cAAc,CAQ1B;AARY,wCAAc"}
@@ -1,6 +1,6 @@
1
1
  import { DefaultCrudRepository } from '@loopback/repository';
2
- import { UserCredentials, UserCredentialsRelations } from '../models';
3
2
  import { DbDataSource } from '../datasources';
3
+ import { UserCredentials, UserCredentialsRelations } from '../models';
4
4
  export declare class UserCredentialsRepository extends DefaultCrudRepository<UserCredentials, typeof UserCredentials.prototype.id, UserCredentialsRelations> {
5
5
  constructor(dataSource: DbDataSource);
6
6
  }
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/example-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.UserCredentialsRepository = void 0;
8
8
  const tslib_1 = require("tslib");
9
+ const core_1 = require("@loopback/core");
9
10
  const repository_1 = require("@loopback/repository");
10
- const models_1 = require("../models");
11
11
  const datasources_1 = require("../datasources");
12
- const core_1 = require("@loopback/core");
12
+ const models_1 = require("../models");
13
13
  let UserCredentialsRepository = class UserCredentialsRepository extends repository_1.DefaultCrudRepository {
14
14
  constructor(dataSource) {
15
15
  super(models_1.UserCredentials, dataSource);
@@ -1 +1 @@
1
- {"version":3,"file":"user-credentials.repository.js","sourceRoot":"","sources":["../../src/repositories/user-credentials.repository.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAA2D;AAC3D,sCAAoE;AACpE,gDAA4C;AAC5C,yCAAsC;AAEtC,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,kCAI9C;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,wBAAe,EAAE,UAAU,CAAC,CAAC;IACrC,CAAC;CACF,CAAA;AARY,yBAAyB;IAKvB,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;6CAAa,0BAAY;GALnD,yBAAyB,CAQrC;AARY,8DAAyB"}
1
+ {"version":3,"file":"user-credentials.repository.js","sourceRoot":"","sources":["../../src/repositories/user-credentials.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAA2D;AAC3D,gDAA4C;AAC5C,sCAAoE;AAEpE,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,kCAI9C;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,wBAAe,EAAE,UAAU,CAAC,CAAC;IACrC,CAAC;CACF,CAAA;AARY,yBAAyB;IAKvB,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;6CAAa,0BAAY;GALnD,yBAAyB,CAQrC;AARY,8DAAyB"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/example-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -1 +1 @@
1
- {"version":3,"file":"user.repository.js","sourceRoot":"","sources":["../../src/repositories/user.repository.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA8C;AAC9C,qDAK8B;AAC9B,gDAA4C;AAC5C,sCAAqE;AAIrE,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,kCAInC;IAWC,YAC4B,UAAwB,EAExC,+BAAkE,EAElE,oBAA4C;QAEtD,KAAK,CAAC,aAAI,EAAE,UAAU,CAAC,CAAC;QAJd,oCAA+B,GAA/B,+BAA+B,CAAmC;QAElE,yBAAoB,GAApB,oBAAoB,CAAwB;QAGtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,iCAAiC,CAC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AAmC;QAElE,yBAAoB,GAApB,oBAAoB,CAAwB;QAGtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,iCAAiC,CACjD,OAAO,EACP,oBAAoB,CACrB,CAAC;QACF,IAAI,CAAC,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACtE,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,gCAAgC,CAC1D,iBAAiB,EACjB,+BAA+B,CAChC,CAAC;QACF,IAAI,CAAC,yBAAyB,CAC5B,iBAAiB,EACjB,IAAI,CAAC,eAAe,CAAC,iBAAiB,CACvC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,MAAgC;QAEhC,IAAI;YACF,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC;SACjD;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,CAAC,IAAI,KAAK,kBAAkB,EAAE;gBACnC,OAAO,SAAS,CAAC;aAClB;YACD,MAAM,GAAG,CAAC;SACX;IACH,CAAC;CACF,CAAA;AAlDY,cAAc;IAgBtB,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;IACxB,mBAAA,uBAAU,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAA;IAE9C,mBAAA,uBAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;6CAHE,0BAAY;GAhBzC,cAAc,CAkD1B;AAlDY,wCAAc"}
package/dist/sequence.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020. All Rights Reserved.
2
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
3
3
  // Node module: @loopback/example-access-control-migration
4
4
  // This file is licensed under the MIT License.
5
5
  // License text available at https://opensource.org/licenses/MIT
@@ -1 +1 @@
1
- {"version":3,"file":"sequence.js","sourceRoot":"","sources":["../src/sequence.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAAkD;AAElD,MAAa,UAAW,SAAQ,yBAAkB;CAAG;AAArD,gCAAqD"}
1
+ {"version":3,"file":"sequence.js","sourceRoot":"","sources":["../src/sequence.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0DAA0D;AAC1D,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAAkD;AAElD,MAAa,UAAW,SAAQ,yBAAkB;CAAG;AAArD,gCAAqD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loopback/example-access-control-migration",
3
3
  "description": "Tutorial example on how to migrate the access control example with LoopBack 4.",
4
- "version": "5.0.0",
4
+ "version": "5.0.1",
5
5
  "keywords": [
6
6
  "loopback",
7
7
  "LoopBack",
@@ -14,8 +14,8 @@
14
14
  "license": "MIT",
15
15
  "main": "dist/index.js",
16
16
  "types": "dist/index.d.ts",
17
- "author": "IBM Corp.",
18
- "copyright.owner": "IBM Corp.",
17
+ "author": "IBM Corp. and LoopBack contributors",
18
+ "copyright.owner": "IBM Corp. and LoopBack contributors",
19
19
  "repository": {
20
20
  "type": "git",
21
21
  "url": "https://github.com/loopbackio/loopback-next.git",
@@ -51,15 +51,15 @@
51
51
  "access": "public"
52
52
  },
53
53
  "dependencies": {
54
- "@loopback/authentication": "^9.0.0",
55
- "@loopback/authorization": "^0.12.0",
56
- "@loopback/boot": "^5.0.0",
57
- "@loopback/core": "^4.0.0",
58
- "@loopback/repository": "^5.0.0",
59
- "@loopback/rest": "^12.0.0",
60
- "@loopback/rest-explorer": "^5.0.0",
61
- "@loopback/security": "^0.8.0",
62
- "@loopback/service-proxy": "^5.0.0",
54
+ "@loopback/authentication": "^9.0.1",
55
+ "@loopback/authorization": "^0.12.1",
56
+ "@loopback/boot": "^5.0.1",
57
+ "@loopback/core": "^4.0.1",
58
+ "@loopback/repository": "^5.0.1",
59
+ "@loopback/rest": "^12.0.1",
60
+ "@loopback/rest-explorer": "^5.0.1",
61
+ "@loopback/security": "^0.8.1",
62
+ "@loopback/service-proxy": "^5.0.1",
63
63
  "@types/bcryptjs": "2.4.2",
64
64
  "bcryptjs": "^2.4.3",
65
65
  "casbin": "^5.15.1",
@@ -67,15 +67,15 @@
67
67
  "loopback-connector-rest": "^4.0.1"
68
68
  },
69
69
  "devDependencies": {
70
- "@loopback/build": "^9.0.0",
71
- "@loopback/eslint-config": "^13.0.0",
72
- "@loopback/http-caching-proxy": "^4.0.0",
73
- "@loopback/testlab": "^5.0.0",
70
+ "@loopback/build": "^9.0.1",
71
+ "@loopback/eslint-config": "^13.0.1",
72
+ "@loopback/http-caching-proxy": "^4.0.1",
73
+ "@loopback/testlab": "^5.0.1",
74
74
  "@types/lodash": "^4.14.182",
75
- "@types/node": "^12.20.50",
76
- "eslint": "^8.14.0",
75
+ "@types/node": "^14.18.21",
76
+ "eslint": "^8.17.0",
77
77
  "lodash": "^4.17.21",
78
- "typescript": "~4.6.4"
78
+ "typescript": "~4.7.3"
79
79
  },
80
- "gitHead": "61453a3d7a16f9f37875a3f2c2a071568eb3e3af"
80
+ "gitHead": "ccf7863d0639de966d6c6129b4aa94ba1dce2c33"
81
81
  }
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,9 +1,9 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
5
5
 
6
- import {SecuritySchemeObject, ReferenceObject} from '@loopback/rest';
6
+ import {ReferenceObject, SecuritySchemeObject} from '@loopback/rest';
7
7
 
8
8
  export const OPERATION_SECURITY_SPEC = [{jwt: []}];
9
9
  export type SecuritySchemeObjects = {
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
package/src/keys.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
package/src/migrate.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -7,14 +7,14 @@ import {
7
7
  Application,
8
8
  CoreBindings,
9
9
  inject,
10
- lifeCycleObserver, // The decorator
10
+ lifeCycleObserver,
11
11
  LifeCycleObserver,
12
12
  } from '@loopback/core';
13
+ import {genSalt, hash} from 'bcryptjs';
13
14
  import * as _ from 'lodash';
14
15
  import {ProjectRepository} from '../repositories/project.repository';
15
16
  import {TeamRepository} from '../repositories/team.repository';
16
17
  import {UserRepository} from '../repositories/user.repository';
17
- import {genSalt, hash} from 'bcryptjs';
18
18
 
19
19
  /**
20
20
  * This class will be bound to the application as a `LifeCycleObserver` during
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,9 +1,9 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
5
5
 
6
- export * from './team.repository';
7
- export * from './user.repository';
8
6
  export * from './project.repository';
7
+ export * from './team.repository';
9
8
  export * from './user-credentials.repository';
9
+ export * from './user.repository';
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
@@ -1,12 +1,12 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
5
5
 
6
+ import {inject} from '@loopback/core';
6
7
  import {DefaultCrudRepository} from '@loopback/repository';
7
- import {Team, TeamRelations} from '../models';
8
8
  import {DbDataSource} from '../datasources';
9
- import {inject} from '@loopback/core';
9
+ import {Team, TeamRelations} from '../models';
10
10
 
11
11
  export class TeamRepository extends DefaultCrudRepository<
12
12
  Team,
@@ -1,12 +1,12 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT
5
5
 
6
+ import {inject} from '@loopback/core';
6
7
  import {DefaultCrudRepository} from '@loopback/repository';
7
- import {UserCredentials, UserCredentialsRelations} from '../models';
8
8
  import {DbDataSource} from '../datasources';
9
- import {inject} from '@loopback/core';
9
+ import {UserCredentials, UserCredentialsRelations} from '../models';
10
10
 
11
11
  export class UserCredentialsRepository extends DefaultCrudRepository<
12
12
  UserCredentials,
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020. All Rights Reserved.
1
+ // Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
2
2
  // Node module: @loopback/example-access-control-migration
3
3
  // This file is licensed under the MIT License.
4
4
  // License text available at https://opensource.org/licenses/MIT