@flusys/nestjs-auth 5.1.1 → 5.1.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.
- package/cjs/dtos/company-branch.dto.js +109 -14
- package/cjs/dtos/company.dto.js +107 -12
- package/cjs/dtos/user.dto.js +34 -0
- package/cjs/services/auth-datasource.provider.js +0 -47
- package/cjs/services/branch.service.js +4 -8
- package/cjs/services/company.service.js +4 -8
- package/cjs/services/user.service.js +10 -16
- package/controllers/authentication.controller.d.ts +1 -1
- package/controllers/branch.controller.d.ts +2 -2
- package/controllers/company.controller.d.ts +2 -2
- package/controllers/user.controller.d.ts +3 -3
- package/dtos/company-branch.dto.d.ts +13 -3
- package/dtos/company.dto.d.ts +13 -3
- package/fesm/dtos/company-branch.dto.js +109 -14
- package/fesm/dtos/company.dto.js +107 -12
- package/fesm/dtos/user.dto.js +34 -0
- package/fesm/services/auth-datasource.provider.js +2 -49
- package/fesm/services/branch.service.js +5 -9
- package/fesm/services/company.service.js +5 -9
- package/fesm/services/user.service.js +11 -17
- package/interceptors/clear-token.interceptor.d.ts +1 -1
- package/interceptors/set-token.interceptor.d.ts +1 -1
- package/package.json +15 -15
- package/services/auth-datasource.provider.d.ts +0 -2
- package/services/auth-email.service.d.ts +1 -1
- package/services/authentication.service.d.ts +1 -1
- package/services/branch.service.d.ts +3 -6
- package/services/company.service.d.ts +3 -6
- package/services/user.service.d.ts +5 -8
|
@@ -19,7 +19,9 @@ _export(exports, {
|
|
|
19
19
|
return UpdateCompanyBranchDto;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
+
const _dtos = require("@flusys/nestjs-shared/dtos");
|
|
22
23
|
const _swagger = require("@nestjs/swagger");
|
|
24
|
+
const _classtransformer = require("class-transformer");
|
|
23
25
|
const _classvalidator = require("class-validator");
|
|
24
26
|
function _define_property(obj, key, value) {
|
|
25
27
|
if (key in obj) {
|
|
@@ -59,6 +61,7 @@ let CreateCompanyBranchDto = class CreateCompanyBranchDto {
|
|
|
59
61
|
}
|
|
60
62
|
};
|
|
61
63
|
_ts_decorate([
|
|
64
|
+
(0, _classtransformer.Expose)(),
|
|
62
65
|
(0, _swagger.ApiProperty)({
|
|
63
66
|
example: 'Main Branch',
|
|
64
67
|
description: 'Branch name'
|
|
@@ -67,6 +70,7 @@ _ts_decorate([
|
|
|
67
70
|
_ts_metadata("design:type", String)
|
|
68
71
|
], CreateCompanyBranchDto.prototype, "name", void 0);
|
|
69
72
|
_ts_decorate([
|
|
73
|
+
(0, _classtransformer.Expose)(),
|
|
70
74
|
(0, _swagger.ApiProperty)({
|
|
71
75
|
example: 'main-branch',
|
|
72
76
|
description: 'URL-friendly slug'
|
|
@@ -75,6 +79,7 @@ _ts_decorate([
|
|
|
75
79
|
_ts_metadata("design:type", String)
|
|
76
80
|
], CreateCompanyBranchDto.prototype, "slug", void 0);
|
|
77
81
|
_ts_decorate([
|
|
82
|
+
(0, _classtransformer.Expose)(),
|
|
78
83
|
(0, _swagger.ApiProperty)({
|
|
79
84
|
example: '550e8400-e29b-41d4-a716-446655440001',
|
|
80
85
|
description: 'Parent company ID'
|
|
@@ -83,6 +88,7 @@ _ts_decorate([
|
|
|
83
88
|
_ts_metadata("design:type", String)
|
|
84
89
|
], CreateCompanyBranchDto.prototype, "companyId", void 0);
|
|
85
90
|
_ts_decorate([
|
|
91
|
+
(0, _classtransformer.Expose)(),
|
|
86
92
|
(0, _swagger.ApiPropertyOptional)({
|
|
87
93
|
example: '550e8400-e29b-41d4-a716-446655440003',
|
|
88
94
|
description: 'Parent branch ID (for hierarchical branches)'
|
|
@@ -92,6 +98,7 @@ _ts_decorate([
|
|
|
92
98
|
_ts_metadata("design:type", String)
|
|
93
99
|
], CreateCompanyBranchDto.prototype, "parentId", void 0);
|
|
94
100
|
_ts_decorate([
|
|
101
|
+
(0, _classtransformer.Expose)(),
|
|
95
102
|
(0, _swagger.ApiPropertyOptional)({
|
|
96
103
|
example: 'logo_xyz789',
|
|
97
104
|
description: 'Branch logo file ID'
|
|
@@ -101,6 +108,7 @@ _ts_decorate([
|
|
|
101
108
|
_ts_metadata("design:type", String)
|
|
102
109
|
], CreateCompanyBranchDto.prototype, "logoId", void 0);
|
|
103
110
|
_ts_decorate([
|
|
111
|
+
(0, _classtransformer.Expose)(),
|
|
104
112
|
(0, _swagger.ApiPropertyOptional)({
|
|
105
113
|
example: '456 Oak Ave, Los Angeles, CA 90001',
|
|
106
114
|
description: 'Branch address'
|
|
@@ -110,6 +118,7 @@ _ts_decorate([
|
|
|
110
118
|
_ts_metadata("design:type", String)
|
|
111
119
|
], CreateCompanyBranchDto.prototype, "address", void 0);
|
|
112
120
|
_ts_decorate([
|
|
121
|
+
(0, _classtransformer.Expose)(),
|
|
113
122
|
(0, _swagger.ApiPropertyOptional)({
|
|
114
123
|
example: '+1-555-987-6543',
|
|
115
124
|
description: 'Branch phone number'
|
|
@@ -119,6 +128,7 @@ _ts_decorate([
|
|
|
119
128
|
_ts_metadata("design:type", String)
|
|
120
129
|
], CreateCompanyBranchDto.prototype, "phone", void 0);
|
|
121
130
|
_ts_decorate([
|
|
131
|
+
(0, _classtransformer.Expose)(),
|
|
122
132
|
(0, _swagger.ApiPropertyOptional)({
|
|
123
133
|
example: 'branch@acme.com',
|
|
124
134
|
description: 'Branch email address'
|
|
@@ -128,6 +138,7 @@ _ts_decorate([
|
|
|
128
138
|
_ts_metadata("design:type", String)
|
|
129
139
|
], CreateCompanyBranchDto.prototype, "email", void 0);
|
|
130
140
|
_ts_decorate([
|
|
141
|
+
(0, _classtransformer.Expose)(),
|
|
131
142
|
(0, _swagger.ApiPropertyOptional)({
|
|
132
143
|
example: 1,
|
|
133
144
|
description: 'Sort order'
|
|
@@ -137,6 +148,7 @@ _ts_decorate([
|
|
|
137
148
|
_ts_metadata("design:type", Number)
|
|
138
149
|
], CreateCompanyBranchDto.prototype, "serial", void 0);
|
|
139
150
|
_ts_decorate([
|
|
151
|
+
(0, _classtransformer.Expose)(),
|
|
140
152
|
(0, _swagger.ApiPropertyOptional)({
|
|
141
153
|
example: true,
|
|
142
154
|
default: true,
|
|
@@ -147,6 +159,7 @@ _ts_decorate([
|
|
|
147
159
|
_ts_metadata("design:type", Boolean)
|
|
148
160
|
], CreateCompanyBranchDto.prototype, "isActive", void 0);
|
|
149
161
|
_ts_decorate([
|
|
162
|
+
(0, _classtransformer.Expose)(),
|
|
150
163
|
(0, _swagger.ApiPropertyOptional)({
|
|
151
164
|
example: {
|
|
152
165
|
timezone: 'America/Los_Angeles',
|
|
@@ -164,6 +177,7 @@ let UpdateCompanyBranchDto = class UpdateCompanyBranchDto extends (0, _swagger.P
|
|
|
164
177
|
}
|
|
165
178
|
};
|
|
166
179
|
_ts_decorate([
|
|
180
|
+
(0, _classtransformer.Expose)(),
|
|
167
181
|
(0, _swagger.ApiProperty)({
|
|
168
182
|
example: '550e8400-e29b-41d4-a716-446655440002',
|
|
169
183
|
description: 'Branch ID'
|
|
@@ -171,29 +185,110 @@ _ts_decorate([
|
|
|
171
185
|
(0, _classvalidator.IsString)(),
|
|
172
186
|
_ts_metadata("design:type", String)
|
|
173
187
|
], UpdateCompanyBranchDto.prototype, "id", void 0);
|
|
174
|
-
let CompanyBranchResponseDto = class CompanyBranchResponseDto extends
|
|
188
|
+
let CompanyBranchResponseDto = class CompanyBranchResponseDto extends _dtos.IdentityResponseDto {
|
|
175
189
|
constructor(...args){
|
|
176
|
-
super(...args), _define_property(this, "
|
|
190
|
+
super(...args), _define_property(this, "name", void 0), _define_property(this, "slug", void 0), _define_property(this, "companyId", void 0), _define_property(this, "parentId", void 0), _define_property(this, "logoId", void 0), _define_property(this, "address", void 0), _define_property(this, "phone", void 0), _define_property(this, "email", void 0), _define_property(this, "serial", void 0), _define_property(this, "isActive", void 0), _define_property(this, "readOnly", void 0), _define_property(this, "additionalFields", void 0);
|
|
177
191
|
}
|
|
178
192
|
};
|
|
179
193
|
_ts_decorate([
|
|
194
|
+
(0, _classtransformer.Expose)(),
|
|
180
195
|
(0, _swagger.ApiProperty)({
|
|
181
|
-
example:
|
|
182
|
-
description: '
|
|
196
|
+
example: 'Main Branch',
|
|
197
|
+
description: 'Branch name'
|
|
183
198
|
}),
|
|
184
|
-
_ts_metadata("design:type",
|
|
185
|
-
], CompanyBranchResponseDto.prototype, "
|
|
199
|
+
_ts_metadata("design:type", String)
|
|
200
|
+
], CompanyBranchResponseDto.prototype, "name", void 0);
|
|
186
201
|
_ts_decorate([
|
|
202
|
+
(0, _classtransformer.Expose)(),
|
|
187
203
|
(0, _swagger.ApiProperty)({
|
|
188
|
-
example: '
|
|
189
|
-
description: '
|
|
204
|
+
example: 'main-branch',
|
|
205
|
+
description: 'URL-friendly slug'
|
|
190
206
|
}),
|
|
191
|
-
_ts_metadata("design:type",
|
|
192
|
-
], CompanyBranchResponseDto.prototype, "
|
|
207
|
+
_ts_metadata("design:type", String)
|
|
208
|
+
], CompanyBranchResponseDto.prototype, "slug", void 0);
|
|
193
209
|
_ts_decorate([
|
|
210
|
+
(0, _classtransformer.Expose)(),
|
|
194
211
|
(0, _swagger.ApiProperty)({
|
|
195
|
-
example: '
|
|
196
|
-
description: '
|
|
212
|
+
example: '550e8400-e29b-41d4-a716-446655440001',
|
|
213
|
+
description: 'Parent company ID'
|
|
214
|
+
}),
|
|
215
|
+
_ts_metadata("design:type", String)
|
|
216
|
+
], CompanyBranchResponseDto.prototype, "companyId", void 0);
|
|
217
|
+
_ts_decorate([
|
|
218
|
+
(0, _classtransformer.Expose)(),
|
|
219
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
220
|
+
example: '550e8400-e29b-41d4-a716-446655440003',
|
|
221
|
+
description: 'Parent branch ID',
|
|
222
|
+
nullable: true
|
|
223
|
+
}),
|
|
224
|
+
_ts_metadata("design:type", Object)
|
|
225
|
+
], CompanyBranchResponseDto.prototype, "parentId", void 0);
|
|
226
|
+
_ts_decorate([
|
|
227
|
+
(0, _classtransformer.Expose)(),
|
|
228
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
229
|
+
example: 'logo_xyz789',
|
|
230
|
+
description: 'Branch logo file ID',
|
|
231
|
+
nullable: true
|
|
232
|
+
}),
|
|
233
|
+
_ts_metadata("design:type", Object)
|
|
234
|
+
], CompanyBranchResponseDto.prototype, "logoId", void 0);
|
|
235
|
+
_ts_decorate([
|
|
236
|
+
(0, _classtransformer.Expose)(),
|
|
237
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
238
|
+
example: '456 Oak Ave, Los Angeles, CA 90001',
|
|
239
|
+
description: 'Branch address',
|
|
240
|
+
nullable: true
|
|
241
|
+
}),
|
|
242
|
+
_ts_metadata("design:type", Object)
|
|
243
|
+
], CompanyBranchResponseDto.prototype, "address", void 0);
|
|
244
|
+
_ts_decorate([
|
|
245
|
+
(0, _classtransformer.Expose)(),
|
|
246
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
247
|
+
example: '+1-555-987-6543',
|
|
248
|
+
description: 'Branch phone number',
|
|
249
|
+
nullable: true
|
|
250
|
+
}),
|
|
251
|
+
_ts_metadata("design:type", Object)
|
|
252
|
+
], CompanyBranchResponseDto.prototype, "phone", void 0);
|
|
253
|
+
_ts_decorate([
|
|
254
|
+
(0, _classtransformer.Expose)(),
|
|
255
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
256
|
+
example: 'branch@acme.com',
|
|
257
|
+
description: 'Branch email address',
|
|
258
|
+
nullable: true
|
|
259
|
+
}),
|
|
260
|
+
_ts_metadata("design:type", Object)
|
|
261
|
+
], CompanyBranchResponseDto.prototype, "email", void 0);
|
|
262
|
+
_ts_decorate([
|
|
263
|
+
(0, _classtransformer.Expose)(),
|
|
264
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
265
|
+
example: 1,
|
|
266
|
+
description: 'Sort order',
|
|
267
|
+
nullable: true
|
|
268
|
+
}),
|
|
269
|
+
_ts_metadata("design:type", Object)
|
|
270
|
+
], CompanyBranchResponseDto.prototype, "serial", void 0);
|
|
271
|
+
_ts_decorate([
|
|
272
|
+
(0, _classtransformer.Expose)(),
|
|
273
|
+
(0, _swagger.ApiProperty)({
|
|
274
|
+
example: true,
|
|
275
|
+
description: 'Is branch active'
|
|
276
|
+
}),
|
|
277
|
+
_ts_metadata("design:type", Boolean)
|
|
278
|
+
], CompanyBranchResponseDto.prototype, "isActive", void 0);
|
|
279
|
+
_ts_decorate([
|
|
280
|
+
(0, _classtransformer.Expose)(),
|
|
281
|
+
(0, _swagger.ApiProperty)({
|
|
282
|
+
example: false,
|
|
283
|
+
description: 'Is read-only'
|
|
284
|
+
}),
|
|
285
|
+
_ts_metadata("design:type", Boolean)
|
|
286
|
+
], CompanyBranchResponseDto.prototype, "readOnly", void 0);
|
|
287
|
+
_ts_decorate([
|
|
288
|
+
(0, _classtransformer.Expose)(),
|
|
289
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
290
|
+
description: 'Additional custom fields',
|
|
291
|
+
nullable: true
|
|
197
292
|
}),
|
|
198
|
-
_ts_metadata("design:type",
|
|
199
|
-
], CompanyBranchResponseDto.prototype, "
|
|
293
|
+
_ts_metadata("design:type", Object)
|
|
294
|
+
], CompanyBranchResponseDto.prototype, "additionalFields", void 0);
|
package/cjs/dtos/company.dto.js
CHANGED
|
@@ -19,7 +19,9 @@ _export(exports, {
|
|
|
19
19
|
return UpdateCompanyDto;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
+
const _dtos = require("@flusys/nestjs-shared/dtos");
|
|
22
23
|
const _swagger = require("@nestjs/swagger");
|
|
24
|
+
const _classtransformer = require("class-transformer");
|
|
23
25
|
const _classvalidator = require("class-validator");
|
|
24
26
|
function _define_property(obj, key, value) {
|
|
25
27
|
if (key in obj) {
|
|
@@ -59,6 +61,7 @@ let CreateCompanyDto = class CreateCompanyDto {
|
|
|
59
61
|
}
|
|
60
62
|
};
|
|
61
63
|
_ts_decorate([
|
|
64
|
+
(0, _classtransformer.Expose)(),
|
|
62
65
|
(0, _swagger.ApiProperty)({
|
|
63
66
|
example: 'Acme Corporation',
|
|
64
67
|
description: 'Company name'
|
|
@@ -67,6 +70,7 @@ _ts_decorate([
|
|
|
67
70
|
_ts_metadata("design:type", String)
|
|
68
71
|
], CreateCompanyDto.prototype, "name", void 0);
|
|
69
72
|
_ts_decorate([
|
|
73
|
+
(0, _classtransformer.Expose)(),
|
|
70
74
|
(0, _swagger.ApiProperty)({
|
|
71
75
|
example: 'acme-corp',
|
|
72
76
|
description: 'URL-friendly slug'
|
|
@@ -75,6 +79,7 @@ _ts_decorate([
|
|
|
75
79
|
_ts_metadata("design:type", String)
|
|
76
80
|
], CreateCompanyDto.prototype, "slug", void 0);
|
|
77
81
|
_ts_decorate([
|
|
82
|
+
(0, _classtransformer.Expose)(),
|
|
78
83
|
(0, _swagger.ApiPropertyOptional)({
|
|
79
84
|
example: 'logo_abc123',
|
|
80
85
|
description: 'Logo file ID'
|
|
@@ -84,6 +89,7 @@ _ts_decorate([
|
|
|
84
89
|
_ts_metadata("design:type", String)
|
|
85
90
|
], CreateCompanyDto.prototype, "logoId", void 0);
|
|
86
91
|
_ts_decorate([
|
|
92
|
+
(0, _classtransformer.Expose)(),
|
|
87
93
|
(0, _swagger.ApiPropertyOptional)({
|
|
88
94
|
example: '123 Main St, New York, NY 10001',
|
|
89
95
|
description: 'Company address'
|
|
@@ -93,6 +99,7 @@ _ts_decorate([
|
|
|
93
99
|
_ts_metadata("design:type", String)
|
|
94
100
|
], CreateCompanyDto.prototype, "address", void 0);
|
|
95
101
|
_ts_decorate([
|
|
102
|
+
(0, _classtransformer.Expose)(),
|
|
96
103
|
(0, _swagger.ApiPropertyOptional)({
|
|
97
104
|
example: '+1-555-123-4567',
|
|
98
105
|
description: 'Contact phone number'
|
|
@@ -102,6 +109,7 @@ _ts_decorate([
|
|
|
102
109
|
_ts_metadata("design:type", String)
|
|
103
110
|
], CreateCompanyDto.prototype, "phone", void 0);
|
|
104
111
|
_ts_decorate([
|
|
112
|
+
(0, _classtransformer.Expose)(),
|
|
105
113
|
(0, _swagger.ApiPropertyOptional)({
|
|
106
114
|
example: 'contact@acme.com',
|
|
107
115
|
description: 'Contact email address'
|
|
@@ -111,6 +119,7 @@ _ts_decorate([
|
|
|
111
119
|
_ts_metadata("design:type", String)
|
|
112
120
|
], CreateCompanyDto.prototype, "email", void 0);
|
|
113
121
|
_ts_decorate([
|
|
122
|
+
(0, _classtransformer.Expose)(),
|
|
114
123
|
(0, _swagger.ApiPropertyOptional)({
|
|
115
124
|
example: 'https://www.acme.com',
|
|
116
125
|
description: 'Company website URL'
|
|
@@ -120,6 +129,7 @@ _ts_decorate([
|
|
|
120
129
|
_ts_metadata("design:type", String)
|
|
121
130
|
], CreateCompanyDto.prototype, "website", void 0);
|
|
122
131
|
_ts_decorate([
|
|
132
|
+
(0, _classtransformer.Expose)(),
|
|
123
133
|
(0, _swagger.ApiPropertyOptional)({
|
|
124
134
|
example: 1,
|
|
125
135
|
description: 'Sort order'
|
|
@@ -129,6 +139,7 @@ _ts_decorate([
|
|
|
129
139
|
_ts_metadata("design:type", Number)
|
|
130
140
|
], CreateCompanyDto.prototype, "serial", void 0);
|
|
131
141
|
_ts_decorate([
|
|
142
|
+
(0, _classtransformer.Expose)(),
|
|
132
143
|
(0, _swagger.ApiPropertyOptional)({
|
|
133
144
|
example: true,
|
|
134
145
|
default: true,
|
|
@@ -139,6 +150,7 @@ _ts_decorate([
|
|
|
139
150
|
_ts_metadata("design:type", Boolean)
|
|
140
151
|
], CreateCompanyDto.prototype, "isActive", void 0);
|
|
141
152
|
_ts_decorate([
|
|
153
|
+
(0, _classtransformer.Expose)(),
|
|
142
154
|
(0, _swagger.ApiPropertyOptional)({
|
|
143
155
|
example: {
|
|
144
156
|
theme: 'dark',
|
|
@@ -151,6 +163,7 @@ _ts_decorate([
|
|
|
151
163
|
_ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
|
|
152
164
|
], CreateCompanyDto.prototype, "settings", void 0);
|
|
153
165
|
_ts_decorate([
|
|
166
|
+
(0, _classtransformer.Expose)(),
|
|
154
167
|
(0, _swagger.ApiPropertyOptional)({
|
|
155
168
|
example: {
|
|
156
169
|
industry: 'Technology',
|
|
@@ -168,6 +181,7 @@ let UpdateCompanyDto = class UpdateCompanyDto extends (0, _swagger.PartialType)(
|
|
|
168
181
|
}
|
|
169
182
|
};
|
|
170
183
|
_ts_decorate([
|
|
184
|
+
(0, _classtransformer.Expose)(),
|
|
171
185
|
(0, _swagger.ApiProperty)({
|
|
172
186
|
example: '550e8400-e29b-41d4-a716-446655440001',
|
|
173
187
|
description: 'Company ID'
|
|
@@ -175,12 +189,91 @@ _ts_decorate([
|
|
|
175
189
|
(0, _classvalidator.IsString)(),
|
|
176
190
|
_ts_metadata("design:type", String)
|
|
177
191
|
], UpdateCompanyDto.prototype, "id", void 0);
|
|
178
|
-
let CompanyResponseDto = class CompanyResponseDto extends
|
|
192
|
+
let CompanyResponseDto = class CompanyResponseDto extends _dtos.IdentityResponseDto {
|
|
179
193
|
constructor(...args){
|
|
180
|
-
super(...args), _define_property(this, "readOnly", void 0), _define_property(this, "
|
|
194
|
+
super(...args), _define_property(this, "name", void 0), _define_property(this, "slug", void 0), _define_property(this, "logoId", void 0), _define_property(this, "address", void 0), _define_property(this, "phone", void 0), _define_property(this, "email", void 0), _define_property(this, "website", void 0), _define_property(this, "serial", void 0), _define_property(this, "isActive", void 0), _define_property(this, "readOnly", void 0), _define_property(this, "settings", void 0), _define_property(this, "additionalFields", void 0);
|
|
181
195
|
}
|
|
182
196
|
};
|
|
183
197
|
_ts_decorate([
|
|
198
|
+
(0, _classtransformer.Expose)(),
|
|
199
|
+
(0, _swagger.ApiProperty)({
|
|
200
|
+
example: 'Acme Corporation',
|
|
201
|
+
description: 'Company name'
|
|
202
|
+
}),
|
|
203
|
+
_ts_metadata("design:type", String)
|
|
204
|
+
], CompanyResponseDto.prototype, "name", void 0);
|
|
205
|
+
_ts_decorate([
|
|
206
|
+
(0, _classtransformer.Expose)(),
|
|
207
|
+
(0, _swagger.ApiProperty)({
|
|
208
|
+
example: 'acme-corp',
|
|
209
|
+
description: 'URL-friendly slug'
|
|
210
|
+
}),
|
|
211
|
+
_ts_metadata("design:type", String)
|
|
212
|
+
], CompanyResponseDto.prototype, "slug", void 0);
|
|
213
|
+
_ts_decorate([
|
|
214
|
+
(0, _classtransformer.Expose)(),
|
|
215
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
216
|
+
example: 'logo_abc123',
|
|
217
|
+
description: 'Logo file ID',
|
|
218
|
+
nullable: true
|
|
219
|
+
}),
|
|
220
|
+
_ts_metadata("design:type", Object)
|
|
221
|
+
], CompanyResponseDto.prototype, "logoId", void 0);
|
|
222
|
+
_ts_decorate([
|
|
223
|
+
(0, _classtransformer.Expose)(),
|
|
224
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
225
|
+
example: '123 Main St, New York, NY 10001',
|
|
226
|
+
description: 'Company address',
|
|
227
|
+
nullable: true
|
|
228
|
+
}),
|
|
229
|
+
_ts_metadata("design:type", Object)
|
|
230
|
+
], CompanyResponseDto.prototype, "address", void 0);
|
|
231
|
+
_ts_decorate([
|
|
232
|
+
(0, _classtransformer.Expose)(),
|
|
233
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
234
|
+
example: '+1-555-123-4567',
|
|
235
|
+
description: 'Contact phone number',
|
|
236
|
+
nullable: true
|
|
237
|
+
}),
|
|
238
|
+
_ts_metadata("design:type", Object)
|
|
239
|
+
], CompanyResponseDto.prototype, "phone", void 0);
|
|
240
|
+
_ts_decorate([
|
|
241
|
+
(0, _classtransformer.Expose)(),
|
|
242
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
243
|
+
example: 'contact@acme.com',
|
|
244
|
+
description: 'Contact email address',
|
|
245
|
+
nullable: true
|
|
246
|
+
}),
|
|
247
|
+
_ts_metadata("design:type", Object)
|
|
248
|
+
], CompanyResponseDto.prototype, "email", void 0);
|
|
249
|
+
_ts_decorate([
|
|
250
|
+
(0, _classtransformer.Expose)(),
|
|
251
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
252
|
+
example: 'https://www.acme.com',
|
|
253
|
+
description: 'Company website URL',
|
|
254
|
+
nullable: true
|
|
255
|
+
}),
|
|
256
|
+
_ts_metadata("design:type", Object)
|
|
257
|
+
], CompanyResponseDto.prototype, "website", void 0);
|
|
258
|
+
_ts_decorate([
|
|
259
|
+
(0, _classtransformer.Expose)(),
|
|
260
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
261
|
+
example: 1,
|
|
262
|
+
description: 'Sort order',
|
|
263
|
+
nullable: true
|
|
264
|
+
}),
|
|
265
|
+
_ts_metadata("design:type", Object)
|
|
266
|
+
], CompanyResponseDto.prototype, "serial", void 0);
|
|
267
|
+
_ts_decorate([
|
|
268
|
+
(0, _classtransformer.Expose)(),
|
|
269
|
+
(0, _swagger.ApiProperty)({
|
|
270
|
+
example: true,
|
|
271
|
+
description: 'Is company active'
|
|
272
|
+
}),
|
|
273
|
+
_ts_metadata("design:type", Boolean)
|
|
274
|
+
], CompanyResponseDto.prototype, "isActive", void 0);
|
|
275
|
+
_ts_decorate([
|
|
276
|
+
(0, _classtransformer.Expose)(),
|
|
184
277
|
(0, _swagger.ApiProperty)({
|
|
185
278
|
example: false,
|
|
186
279
|
description: 'Is read-only'
|
|
@@ -188,16 +281,18 @@ _ts_decorate([
|
|
|
188
281
|
_ts_metadata("design:type", Boolean)
|
|
189
282
|
], CompanyResponseDto.prototype, "readOnly", void 0);
|
|
190
283
|
_ts_decorate([
|
|
191
|
-
(0,
|
|
192
|
-
|
|
193
|
-
description: '
|
|
284
|
+
(0, _classtransformer.Expose)(),
|
|
285
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
286
|
+
description: 'Company settings',
|
|
287
|
+
nullable: true
|
|
194
288
|
}),
|
|
195
|
-
_ts_metadata("design:type",
|
|
196
|
-
], CompanyResponseDto.prototype, "
|
|
289
|
+
_ts_metadata("design:type", Object)
|
|
290
|
+
], CompanyResponseDto.prototype, "settings", void 0);
|
|
197
291
|
_ts_decorate([
|
|
198
|
-
(0,
|
|
199
|
-
|
|
200
|
-
description: '
|
|
292
|
+
(0, _classtransformer.Expose)(),
|
|
293
|
+
(0, _swagger.ApiPropertyOptional)({
|
|
294
|
+
description: 'Additional custom fields',
|
|
295
|
+
nullable: true
|
|
201
296
|
}),
|
|
202
|
-
_ts_metadata("design:type",
|
|
203
|
-
], CompanyResponseDto.prototype, "
|
|
297
|
+
_ts_metadata("design:type", Object)
|
|
298
|
+
], CompanyResponseDto.prototype, "additionalFields", void 0);
|