@cool-digital-solutions/interferir-models 1.5.7 → 1.5.9
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.
|
@@ -11,6 +11,7 @@ const companySsoConfigSchema = new mongoose_1.Schema({
|
|
|
11
11
|
spEntityId: { type: String, required: [true, 'spEntityId is required'] },
|
|
12
12
|
ssoLoginUrl: { type: String, required: [true, 'ssoLoginUrl is required'] },
|
|
13
13
|
idpCertificate: { type: String, required: [true, 'idpCertificate is required'] },
|
|
14
|
+
domains: { type: [String], default: [] },
|
|
14
15
|
createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
15
16
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
|
|
16
17
|
createdDate: { type: Number, index: -1 },
|
|
@@ -22,14 +22,15 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import type {
|
|
25
|
+
import type { Types } from 'mongoose';
|
|
26
26
|
import type { ICompany } from './';
|
|
27
|
-
import { BaseSchema } from '../config';
|
|
27
|
+
import { BaseModel, BaseSchema } from '../config';
|
|
28
28
|
export interface ICompanySsoConfig extends BaseSchema {
|
|
29
29
|
company: Types.ObjectId | ICompany;
|
|
30
30
|
spEntityId: string;
|
|
31
31
|
ssoLoginUrl: string;
|
|
32
32
|
idpCertificate: string;
|
|
33
|
+
domains: string[];
|
|
33
34
|
}
|
|
34
|
-
export interface ICompanySsoConfigModel extends
|
|
35
|
+
export interface ICompanySsoConfigModel extends BaseModel<ICompanySsoConfig> {
|
|
35
36
|
}
|