@loopback/sequelize 0.5.1 → 0.5.3

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 (56) hide show
  1. package/dist/component.js +2 -1
  2. package/dist/component.js.map +1 -1
  3. package/dist/sequelize/sequelize.repository.base.d.ts +19 -4
  4. package/dist/sequelize/sequelize.repository.base.js +10 -1
  5. package/dist/sequelize/sequelize.repository.base.js.map +1 -1
  6. package/package.json +15 -14
  7. package/src/sequelize/sequelize.repository.base.ts +37 -8
  8. package/dist/.sandbox/52958FChNfK/application.js +0 -15
  9. package/dist/.sandbox/52958FChNfK/controllers/book-category.controller.js +0 -40
  10. package/dist/.sandbox/52958FChNfK/controllers/book.controller.js +0 -209
  11. package/dist/.sandbox/52958FChNfK/controllers/category.controller.js +0 -197
  12. package/dist/.sandbox/52958FChNfK/controllers/developer.controller.js +0 -176
  13. package/dist/.sandbox/52958FChNfK/controllers/doctor-patient.controller.js +0 -111
  14. package/dist/.sandbox/52958FChNfK/controllers/doctor.controller.js +0 -176
  15. package/dist/.sandbox/52958FChNfK/controllers/index.js +0 -23
  16. package/dist/.sandbox/52958FChNfK/controllers/patient.controller.js +0 -164
  17. package/dist/.sandbox/52958FChNfK/controllers/product.controller.js +0 -176
  18. package/dist/.sandbox/52958FChNfK/controllers/programming-languange.controller.js +0 -203
  19. package/dist/.sandbox/52958FChNfK/controllers/task.controller.js +0 -209
  20. package/dist/.sandbox/52958FChNfK/controllers/test.controller.base.js +0 -27
  21. package/dist/.sandbox/52958FChNfK/controllers/todo-list-todo.controller.js +0 -112
  22. package/dist/.sandbox/52958FChNfK/controllers/todo-list.controller.js +0 -176
  23. package/dist/.sandbox/52958FChNfK/controllers/todo-todo-list.controller.js +0 -40
  24. package/dist/.sandbox/52958FChNfK/controllers/todo.controller.js +0 -176
  25. package/dist/.sandbox/52958FChNfK/controllers/transaction.controller.js +0 -156
  26. package/dist/.sandbox/52958FChNfK/controllers/user-todo-list.controller.js +0 -112
  27. package/dist/.sandbox/52958FChNfK/controllers/user.controller.js +0 -209
  28. package/dist/.sandbox/52958FChNfK/datasources/config.js +0 -65
  29. package/dist/.sandbox/52958FChNfK/datasources/primary.datasource.js +0 -27
  30. package/dist/.sandbox/52958FChNfK/datasources/secondary.datasource.js +0 -27
  31. package/dist/.sandbox/52958FChNfK/models/appointment.model.js +0 -36
  32. package/dist/.sandbox/52958FChNfK/models/book.model.js +0 -47
  33. package/dist/.sandbox/52958FChNfK/models/category.model.js +0 -31
  34. package/dist/.sandbox/52958FChNfK/models/developer.model.js +0 -46
  35. package/dist/.sandbox/52958FChNfK/models/doctor.model.js +0 -43
  36. package/dist/.sandbox/52958FChNfK/models/index.js +0 -17
  37. package/dist/.sandbox/52958FChNfK/models/patient.model.js +0 -31
  38. package/dist/.sandbox/52958FChNfK/models/product.model.js +0 -40
  39. package/dist/.sandbox/52958FChNfK/models/programming-language.model.js +0 -38
  40. package/dist/.sandbox/52958FChNfK/models/task.model.js +0 -73
  41. package/dist/.sandbox/52958FChNfK/models/todo-list.model.js +0 -44
  42. package/dist/.sandbox/52958FChNfK/models/todo.model.js +0 -43
  43. package/dist/.sandbox/52958FChNfK/models/user.model.js +0 -90
  44. package/dist/.sandbox/52958FChNfK/repositories/appointment.repository.js +0 -19
  45. package/dist/.sandbox/52958FChNfK/repositories/book.repository.js +0 -24
  46. package/dist/.sandbox/52958FChNfK/repositories/category.repository.js +0 -19
  47. package/dist/.sandbox/52958FChNfK/repositories/developer.repository.js +0 -24
  48. package/dist/.sandbox/52958FChNfK/repositories/doctor.repository.js +0 -26
  49. package/dist/.sandbox/52958FChNfK/repositories/index.js +0 -17
  50. package/dist/.sandbox/52958FChNfK/repositories/patient.repository.js +0 -19
  51. package/dist/.sandbox/52958FChNfK/repositories/product.repository.js +0 -19
  52. package/dist/.sandbox/52958FChNfK/repositories/programming-language.repository.js +0 -19
  53. package/dist/.sandbox/52958FChNfK/repositories/task.repository.js +0 -25
  54. package/dist/.sandbox/52958FChNfK/repositories/todo-list.repository.js +0 -24
  55. package/dist/.sandbox/52958FChNfK/repositories/todo.repository.js +0 -24
  56. package/dist/.sandbox/52958FChNfK/repositories/user.repository.js +0 -24
@@ -1,164 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PatientController = void 0;
4
- const tslib_1 = require("tslib");
5
- const repository_1 = require("@loopback/repository");
6
- const rest_1 = require("@loopback/rest");
7
- const models_1 = require("../models");
8
- const repositories_1 = require("../repositories");
9
- let PatientController = exports.PatientController = class PatientController {
10
- constructor(patientRepository) {
11
- this.patientRepository = patientRepository;
12
- }
13
- async create(patient) {
14
- return this.patientRepository.create(patient);
15
- }
16
- async count(where) {
17
- return this.patientRepository.count(where);
18
- }
19
- async find(filter) {
20
- return this.patientRepository.find(filter);
21
- }
22
- async updateAll(patient, where) {
23
- return this.patientRepository.updateAll(patient, where);
24
- }
25
- async findById(id, filter) {
26
- return this.patientRepository.findById(id, filter);
27
- }
28
- async updateById(id, patient) {
29
- await this.patientRepository.updateById(id, patient);
30
- }
31
- async replaceById(id, patient) {
32
- await this.patientRepository.replaceById(id, patient);
33
- }
34
- async deleteById(id) {
35
- await this.patientRepository.deleteById(id);
36
- }
37
- };
38
- tslib_1.__decorate([
39
- (0, rest_1.post)('/patients'),
40
- (0, rest_1.response)(200, {
41
- description: 'Patient model instance',
42
- content: { 'application/json': { schema: (0, rest_1.getModelSchemaRef)(models_1.Patient) } },
43
- }),
44
- tslib_1.__param(0, (0, rest_1.requestBody)({
45
- content: {
46
- 'application/json': {
47
- schema: (0, rest_1.getModelSchemaRef)(models_1.Patient, {
48
- title: 'NewPatient',
49
- exclude: ['id'],
50
- }),
51
- },
52
- },
53
- })),
54
- tslib_1.__metadata("design:type", Function),
55
- tslib_1.__metadata("design:paramtypes", [Object]),
56
- tslib_1.__metadata("design:returntype", Promise)
57
- ], PatientController.prototype, "create", null);
58
- tslib_1.__decorate([
59
- (0, rest_1.get)('/patients/count'),
60
- (0, rest_1.response)(200, {
61
- description: 'Patient model count',
62
- content: { 'application/json': { schema: repository_1.CountSchema } },
63
- }),
64
- tslib_1.__param(0, rest_1.param.where(models_1.Patient)),
65
- tslib_1.__metadata("design:type", Function),
66
- tslib_1.__metadata("design:paramtypes", [Object]),
67
- tslib_1.__metadata("design:returntype", Promise)
68
- ], PatientController.prototype, "count", null);
69
- tslib_1.__decorate([
70
- (0, rest_1.get)('/patients'),
71
- (0, rest_1.response)(200, {
72
- description: 'Array of Patient model instances',
73
- content: {
74
- 'application/json': {
75
- schema: {
76
- type: 'array',
77
- items: (0, rest_1.getModelSchemaRef)(models_1.Patient, { includeRelations: true }),
78
- },
79
- },
80
- },
81
- }),
82
- tslib_1.__param(0, rest_1.param.filter(models_1.Patient)),
83
- tslib_1.__metadata("design:type", Function),
84
- tslib_1.__metadata("design:paramtypes", [Object]),
85
- tslib_1.__metadata("design:returntype", Promise)
86
- ], PatientController.prototype, "find", null);
87
- tslib_1.__decorate([
88
- (0, rest_1.patch)('/patients'),
89
- (0, rest_1.response)(200, {
90
- description: 'Patient PATCH success count',
91
- content: { 'application/json': { schema: repository_1.CountSchema } },
92
- }),
93
- tslib_1.__param(0, (0, rest_1.requestBody)({
94
- content: {
95
- 'application/json': {
96
- schema: (0, rest_1.getModelSchemaRef)(models_1.Patient, { partial: true }),
97
- },
98
- },
99
- })),
100
- tslib_1.__param(1, rest_1.param.where(models_1.Patient)),
101
- tslib_1.__metadata("design:type", Function),
102
- tslib_1.__metadata("design:paramtypes", [models_1.Patient, Object]),
103
- tslib_1.__metadata("design:returntype", Promise)
104
- ], PatientController.prototype, "updateAll", null);
105
- tslib_1.__decorate([
106
- (0, rest_1.get)('/patients/{id}'),
107
- (0, rest_1.response)(200, {
108
- description: 'Patient model instance',
109
- content: {
110
- 'application/json': {
111
- schema: (0, rest_1.getModelSchemaRef)(models_1.Patient, { includeRelations: true }),
112
- },
113
- },
114
- }),
115
- tslib_1.__param(0, rest_1.param.path.number('id')),
116
- tslib_1.__param(1, rest_1.param.filter(models_1.Patient, { exclude: 'where' })),
117
- tslib_1.__metadata("design:type", Function),
118
- tslib_1.__metadata("design:paramtypes", [Number, Object]),
119
- tslib_1.__metadata("design:returntype", Promise)
120
- ], PatientController.prototype, "findById", null);
121
- tslib_1.__decorate([
122
- (0, rest_1.patch)('/patients/{id}'),
123
- (0, rest_1.response)(204, {
124
- description: 'Patient PATCH success',
125
- }),
126
- tslib_1.__param(0, rest_1.param.path.number('id')),
127
- tslib_1.__param(1, (0, rest_1.requestBody)({
128
- content: {
129
- 'application/json': {
130
- schema: (0, rest_1.getModelSchemaRef)(models_1.Patient, { partial: true }),
131
- },
132
- },
133
- })),
134
- tslib_1.__metadata("design:type", Function),
135
- tslib_1.__metadata("design:paramtypes", [Number, models_1.Patient]),
136
- tslib_1.__metadata("design:returntype", Promise)
137
- ], PatientController.prototype, "updateById", null);
138
- tslib_1.__decorate([
139
- (0, rest_1.put)('/patients/{id}'),
140
- (0, rest_1.response)(204, {
141
- description: 'Patient PUT success',
142
- }),
143
- tslib_1.__param(0, rest_1.param.path.number('id')),
144
- tslib_1.__param(1, (0, rest_1.requestBody)()),
145
- tslib_1.__metadata("design:type", Function),
146
- tslib_1.__metadata("design:paramtypes", [Number, models_1.Patient]),
147
- tslib_1.__metadata("design:returntype", Promise)
148
- ], PatientController.prototype, "replaceById", null);
149
- tslib_1.__decorate([
150
- (0, rest_1.del)('/patients/{id}'),
151
- (0, rest_1.response)(204, {
152
- description: 'Patient DELETE success',
153
- }),
154
- tslib_1.__param(0, rest_1.param.path.number('id')),
155
- tslib_1.__metadata("design:type", Function),
156
- tslib_1.__metadata("design:paramtypes", [Number]),
157
- tslib_1.__metadata("design:returntype", Promise)
158
- ], PatientController.prototype, "deleteById", null);
159
- exports.PatientController = PatientController = tslib_1.__decorate([
160
- tslib_1.__param(0, (0, repository_1.repository)(repositories_1.PatientRepository)),
161
- tslib_1.__metadata("design:paramtypes", [repositories_1.PatientRepository])
162
- ], PatientController);
163
- //# sourceMappingURL=patient.controller.js.map
164
- //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/extensions/sequelize/dist/__tests__/fixtures/controllers/patient.controller.js.map
@@ -1,176 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductController = void 0;
4
- const tslib_1 = require("tslib");
5
- const repository_1 = require("@loopback/repository");
6
- const rest_1 = require("@loopback/rest");
7
- const models_1 = require("../models");
8
- const repositories_1 = require("../repositories");
9
- const test_controller_base_1 = require("./test.controller.base");
10
- let ProductController = exports.ProductController = class ProductController extends test_controller_base_1.TestControllerBase {
11
- constructor(productRepository) {
12
- super(productRepository);
13
- this.productRepository = productRepository;
14
- }
15
- async create(product) {
16
- return this.productRepository.create(product);
17
- }
18
- async count(where) {
19
- return this.productRepository.count(where);
20
- }
21
- async find(filter) {
22
- return this.productRepository.find(filter);
23
- }
24
- async updateAll(product, where) {
25
- return this.productRepository.updateAll(product, where);
26
- }
27
- async findById(id, filter) {
28
- return this.productRepository.findById(id, filter);
29
- }
30
- async updateById(id, product) {
31
- await this.productRepository.updateById(id, product);
32
- }
33
- async replaceById(id, product) {
34
- await this.productRepository.replaceById(id, product);
35
- }
36
- async deleteById(id) {
37
- await this.productRepository.deleteById(id);
38
- }
39
- async syncSequelizeModel() {
40
- await this.beforeEach();
41
- }
42
- };
43
- tslib_1.__decorate([
44
- (0, rest_1.post)('/products'),
45
- (0, rest_1.response)(200, {
46
- description: 'Product model instance',
47
- content: { 'application/json': { schema: (0, rest_1.getModelSchemaRef)(models_1.Product) } },
48
- }),
49
- tslib_1.__param(0, (0, rest_1.requestBody)({
50
- content: {
51
- 'application/json': {
52
- schema: (0, rest_1.getModelSchemaRef)(models_1.Product, {
53
- title: 'NewProduct',
54
- exclude: ['id'],
55
- }),
56
- },
57
- },
58
- })),
59
- tslib_1.__metadata("design:type", Function),
60
- tslib_1.__metadata("design:paramtypes", [Object]),
61
- tslib_1.__metadata("design:returntype", Promise)
62
- ], ProductController.prototype, "create", null);
63
- tslib_1.__decorate([
64
- (0, rest_1.get)('/products/count'),
65
- (0, rest_1.response)(200, {
66
- description: 'Product model count',
67
- content: { 'application/json': { schema: repository_1.CountSchema } },
68
- }),
69
- tslib_1.__param(0, rest_1.param.where(models_1.Product)),
70
- tslib_1.__metadata("design:type", Function),
71
- tslib_1.__metadata("design:paramtypes", [Object]),
72
- tslib_1.__metadata("design:returntype", Promise)
73
- ], ProductController.prototype, "count", null);
74
- tslib_1.__decorate([
75
- (0, rest_1.get)('/products'),
76
- (0, rest_1.response)(200, {
77
- description: 'Array of Product model instances',
78
- content: {
79
- 'application/json': {
80
- schema: {
81
- type: 'array',
82
- items: (0, rest_1.getModelSchemaRef)(models_1.Product, { includeRelations: true }),
83
- },
84
- },
85
- },
86
- }),
87
- tslib_1.__param(0, rest_1.param.filter(models_1.Product)),
88
- tslib_1.__metadata("design:type", Function),
89
- tslib_1.__metadata("design:paramtypes", [Object]),
90
- tslib_1.__metadata("design:returntype", Promise)
91
- ], ProductController.prototype, "find", null);
92
- tslib_1.__decorate([
93
- (0, rest_1.patch)('/products'),
94
- (0, rest_1.response)(200, {
95
- description: 'Product PATCH success count',
96
- content: { 'application/json': { schema: repository_1.CountSchema } },
97
- }),
98
- tslib_1.__param(0, (0, rest_1.requestBody)({
99
- content: {
100
- 'application/json': {
101
- schema: (0, rest_1.getModelSchemaRef)(models_1.Product, { partial: true }),
102
- },
103
- },
104
- })),
105
- tslib_1.__param(1, rest_1.param.where(models_1.Product)),
106
- tslib_1.__metadata("design:type", Function),
107
- tslib_1.__metadata("design:paramtypes", [models_1.Product, Object]),
108
- tslib_1.__metadata("design:returntype", Promise)
109
- ], ProductController.prototype, "updateAll", null);
110
- tslib_1.__decorate([
111
- (0, rest_1.get)('/products/{id}'),
112
- (0, rest_1.response)(200, {
113
- description: 'Product model instance',
114
- content: {
115
- 'application/json': {
116
- schema: (0, rest_1.getModelSchemaRef)(models_1.Product, { includeRelations: true }),
117
- },
118
- },
119
- }),
120
- tslib_1.__param(0, rest_1.param.path.number('id')),
121
- tslib_1.__param(1, rest_1.param.filter(models_1.Product, { exclude: 'where' })),
122
- tslib_1.__metadata("design:type", Function),
123
- tslib_1.__metadata("design:paramtypes", [Number, Object]),
124
- tslib_1.__metadata("design:returntype", Promise)
125
- ], ProductController.prototype, "findById", null);
126
- tslib_1.__decorate([
127
- (0, rest_1.patch)('/products/{id}'),
128
- (0, rest_1.response)(204, {
129
- description: 'Product PATCH success',
130
- }),
131
- tslib_1.__param(0, rest_1.param.path.number('id')),
132
- tslib_1.__param(1, (0, rest_1.requestBody)({
133
- content: {
134
- 'application/json': {
135
- schema: (0, rest_1.getModelSchemaRef)(models_1.Product, { partial: true }),
136
- },
137
- },
138
- })),
139
- tslib_1.__metadata("design:type", Function),
140
- tslib_1.__metadata("design:paramtypes", [Number, models_1.Product]),
141
- tslib_1.__metadata("design:returntype", Promise)
142
- ], ProductController.prototype, "updateById", null);
143
- tslib_1.__decorate([
144
- (0, rest_1.put)('/products/{id}'),
145
- (0, rest_1.response)(204, {
146
- description: 'Product PUT success',
147
- }),
148
- tslib_1.__param(0, rest_1.param.path.number('id')),
149
- tslib_1.__param(1, (0, rest_1.requestBody)()),
150
- tslib_1.__metadata("design:type", Function),
151
- tslib_1.__metadata("design:paramtypes", [Number, models_1.Product]),
152
- tslib_1.__metadata("design:returntype", Promise)
153
- ], ProductController.prototype, "replaceById", null);
154
- tslib_1.__decorate([
155
- (0, rest_1.del)('/products/{id}'),
156
- (0, rest_1.response)(204, {
157
- description: 'Product DELETE success',
158
- }),
159
- tslib_1.__param(0, rest_1.param.path.number('id')),
160
- tslib_1.__metadata("design:type", Function),
161
- tslib_1.__metadata("design:paramtypes", [Number]),
162
- tslib_1.__metadata("design:returntype", Promise)
163
- ], ProductController.prototype, "deleteById", null);
164
- tslib_1.__decorate([
165
- (0, rest_1.get)('/products/sync-sequelize-model'),
166
- (0, rest_1.response)(200),
167
- tslib_1.__metadata("design:type", Function),
168
- tslib_1.__metadata("design:paramtypes", []),
169
- tslib_1.__metadata("design:returntype", Promise)
170
- ], ProductController.prototype, "syncSequelizeModel", null);
171
- exports.ProductController = ProductController = tslib_1.__decorate([
172
- tslib_1.__param(0, (0, repository_1.repository)(repositories_1.ProductRepository)),
173
- tslib_1.__metadata("design:paramtypes", [repositories_1.ProductRepository])
174
- ], ProductController);
175
- //# sourceMappingURL=product.controller.js.map
176
- //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/extensions/sequelize/dist/__tests__/fixtures/controllers/product.controller.js.map
@@ -1,203 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProgrammingLanguangeController = void 0;
4
- const tslib_1 = require("tslib");
5
- const repository_1 = require("@loopback/repository");
6
- const rest_1 = require("@loopback/rest");
7
- const models_1 = require("../models");
8
- const repositories_1 = require("../repositories");
9
- let ProgrammingLanguangeController = exports.ProgrammingLanguangeController = class ProgrammingLanguangeController {
10
- constructor(programmingLanguageRepository) {
11
- this.programmingLanguageRepository = programmingLanguageRepository;
12
- }
13
- async create(programmingLanguage) {
14
- return this.programmingLanguageRepository.create(programmingLanguage);
15
- }
16
- async createAll(programmingLanguages) {
17
- return this.programmingLanguageRepository.createAll(programmingLanguages);
18
- }
19
- async count(where) {
20
- return this.programmingLanguageRepository.count(where);
21
- }
22
- async find(filter) {
23
- return this.programmingLanguageRepository.find(filter);
24
- }
25
- async updateAll(programmingLanguage, where) {
26
- return this.programmingLanguageRepository.updateAll(programmingLanguage, where);
27
- }
28
- async findById(id, filter) {
29
- return this.programmingLanguageRepository.findById(id, filter);
30
- }
31
- async updateById(id, programmingLanguage) {
32
- await this.programmingLanguageRepository.updateById(id, programmingLanguage);
33
- }
34
- async replaceById(id, programmingLanguage) {
35
- await this.programmingLanguageRepository.replaceById(id, programmingLanguage);
36
- }
37
- async deleteById(id) {
38
- await this.programmingLanguageRepository.deleteById(id);
39
- }
40
- };
41
- tslib_1.__decorate([
42
- (0, rest_1.post)('/programming-languages'),
43
- (0, rest_1.response)(200, {
44
- description: 'ProgrammingLanguage model instance',
45
- content: {
46
- 'application/json': { schema: (0, rest_1.getModelSchemaRef)(models_1.ProgrammingLanguage) },
47
- },
48
- }),
49
- tslib_1.__param(0, (0, rest_1.requestBody)({
50
- content: {
51
- 'application/json': {
52
- schema: (0, rest_1.getModelSchemaRef)(models_1.ProgrammingLanguage, {
53
- title: 'NewProgrammingLanguage',
54
- exclude: ['id'],
55
- }),
56
- },
57
- },
58
- })),
59
- tslib_1.__metadata("design:type", Function),
60
- tslib_1.__metadata("design:paramtypes", [Object]),
61
- tslib_1.__metadata("design:returntype", Promise)
62
- ], ProgrammingLanguangeController.prototype, "create", null);
63
- tslib_1.__decorate([
64
- (0, rest_1.post)('/programming-languages-bulk'),
65
- (0, rest_1.response)(200, {
66
- description: 'ProgrammingLanguage model instances',
67
- content: {
68
- 'application/json': {
69
- schema: {
70
- type: 'array',
71
- items: (0, rest_1.getModelSchemaRef)(models_1.ProgrammingLanguage),
72
- },
73
- },
74
- },
75
- }),
76
- tslib_1.__param(0, (0, rest_1.requestBody)({
77
- content: {
78
- 'application/json': {
79
- schema: {
80
- type: 'array',
81
- items: (0, rest_1.getModelSchemaRef)(models_1.ProgrammingLanguage, {
82
- title: 'NewProgrammingLanguage',
83
- exclude: ['id'],
84
- }),
85
- },
86
- },
87
- },
88
- })),
89
- tslib_1.__metadata("design:type", Function),
90
- tslib_1.__metadata("design:paramtypes", [Array]),
91
- tslib_1.__metadata("design:returntype", Promise)
92
- ], ProgrammingLanguangeController.prototype, "createAll", null);
93
- tslib_1.__decorate([
94
- (0, rest_1.get)('/programming-languages/count'),
95
- (0, rest_1.response)(200, {
96
- description: 'ProgrammingLanguage model count',
97
- content: { 'application/json': { schema: repository_1.CountSchema } },
98
- }),
99
- tslib_1.__param(0, rest_1.param.where(models_1.ProgrammingLanguage)),
100
- tslib_1.__metadata("design:type", Function),
101
- tslib_1.__metadata("design:paramtypes", [Object]),
102
- tslib_1.__metadata("design:returntype", Promise)
103
- ], ProgrammingLanguangeController.prototype, "count", null);
104
- tslib_1.__decorate([
105
- (0, rest_1.get)('/programming-languages'),
106
- (0, rest_1.response)(200, {
107
- description: 'Array of ProgrammingLanguage model instances',
108
- content: {
109
- 'application/json': {
110
- schema: {
111
- type: 'array',
112
- items: (0, rest_1.getModelSchemaRef)(models_1.ProgrammingLanguage, {
113
- includeRelations: true,
114
- }),
115
- },
116
- },
117
- },
118
- }),
119
- tslib_1.__param(0, rest_1.param.filter(models_1.ProgrammingLanguage)),
120
- tslib_1.__metadata("design:type", Function),
121
- tslib_1.__metadata("design:paramtypes", [Object]),
122
- tslib_1.__metadata("design:returntype", Promise)
123
- ], ProgrammingLanguangeController.prototype, "find", null);
124
- tslib_1.__decorate([
125
- (0, rest_1.patch)('/programming-languages'),
126
- (0, rest_1.response)(200, {
127
- description: 'ProgrammingLanguage PATCH success count',
128
- content: { 'application/json': { schema: repository_1.CountSchema } },
129
- }),
130
- tslib_1.__param(0, (0, rest_1.requestBody)({
131
- content: {
132
- 'application/json': {
133
- schema: (0, rest_1.getModelSchemaRef)(models_1.ProgrammingLanguage, { partial: true }),
134
- },
135
- },
136
- })),
137
- tslib_1.__param(1, rest_1.param.where(models_1.ProgrammingLanguage)),
138
- tslib_1.__metadata("design:type", Function),
139
- tslib_1.__metadata("design:paramtypes", [models_1.ProgrammingLanguage, Object]),
140
- tslib_1.__metadata("design:returntype", Promise)
141
- ], ProgrammingLanguangeController.prototype, "updateAll", null);
142
- tslib_1.__decorate([
143
- (0, rest_1.get)('/programming-languages/{id}'),
144
- (0, rest_1.response)(200, {
145
- description: 'ProgrammingLanguage model instance',
146
- content: {
147
- 'application/json': {
148
- schema: (0, rest_1.getModelSchemaRef)(models_1.ProgrammingLanguage, {
149
- includeRelations: true,
150
- }),
151
- },
152
- },
153
- }),
154
- tslib_1.__param(0, rest_1.param.path.number('id')),
155
- tslib_1.__param(1, rest_1.param.filter(models_1.ProgrammingLanguage, { exclude: 'where' })),
156
- tslib_1.__metadata("design:type", Function),
157
- tslib_1.__metadata("design:paramtypes", [Number, Object]),
158
- tslib_1.__metadata("design:returntype", Promise)
159
- ], ProgrammingLanguangeController.prototype, "findById", null);
160
- tslib_1.__decorate([
161
- (0, rest_1.patch)('/programming-languages/{id}'),
162
- (0, rest_1.response)(204, {
163
- description: 'ProgrammingLanguage PATCH success',
164
- }),
165
- tslib_1.__param(0, rest_1.param.path.number('id')),
166
- tslib_1.__param(1, (0, rest_1.requestBody)({
167
- content: {
168
- 'application/json': {
169
- schema: (0, rest_1.getModelSchemaRef)(models_1.ProgrammingLanguage, { partial: true }),
170
- },
171
- },
172
- })),
173
- tslib_1.__metadata("design:type", Function),
174
- tslib_1.__metadata("design:paramtypes", [Number, models_1.ProgrammingLanguage]),
175
- tslib_1.__metadata("design:returntype", Promise)
176
- ], ProgrammingLanguangeController.prototype, "updateById", null);
177
- tslib_1.__decorate([
178
- (0, rest_1.put)('/programming-languages/{id}'),
179
- (0, rest_1.response)(204, {
180
- description: 'ProgrammingLanguage PUT success',
181
- }),
182
- tslib_1.__param(0, rest_1.param.path.number('id')),
183
- tslib_1.__param(1, (0, rest_1.requestBody)()),
184
- tslib_1.__metadata("design:type", Function),
185
- tslib_1.__metadata("design:paramtypes", [Number, models_1.ProgrammingLanguage]),
186
- tslib_1.__metadata("design:returntype", Promise)
187
- ], ProgrammingLanguangeController.prototype, "replaceById", null);
188
- tslib_1.__decorate([
189
- (0, rest_1.del)('/programming-languages/{id}'),
190
- (0, rest_1.response)(204, {
191
- description: 'ProgrammingLanguage DELETE success',
192
- }),
193
- tslib_1.__param(0, rest_1.param.path.number('id')),
194
- tslib_1.__metadata("design:type", Function),
195
- tslib_1.__metadata("design:paramtypes", [Number]),
196
- tslib_1.__metadata("design:returntype", Promise)
197
- ], ProgrammingLanguangeController.prototype, "deleteById", null);
198
- exports.ProgrammingLanguangeController = ProgrammingLanguangeController = tslib_1.__decorate([
199
- tslib_1.__param(0, (0, repository_1.repository)(repositories_1.ProgrammingLanguageRepository)),
200
- tslib_1.__metadata("design:paramtypes", [repositories_1.ProgrammingLanguageRepository])
201
- ], ProgrammingLanguangeController);
202
- //# sourceMappingURL=programming-languange.controller.js.map
203
- //# sourceMappingURL=/Users/dianalau/code/loopback/loopback-next/extensions/sequelize/dist/__tests__/fixtures/controllers/programming-languange.controller.js.map