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