@attraccess/database-entities 1.2.0 → 1.6.0

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 (102) hide show
  1. package/LICENSE.md +46 -0
  2. package/package.json +4 -4
  3. package/src/index.d.ts +2 -0
  4. package/src/index.js +5 -1
  5. package/src/index.js.map +1 -1
  6. package/src/lib/entities/attractap.entity.d.ts +9 -0
  7. package/src/lib/entities/attractap.entity.js +77 -0
  8. package/src/lib/entities/attractap.entity.js.map +1 -1
  9. package/src/lib/entities/authenticationDetail.entity.d.ts +6 -0
  10. package/src/lib/entities/authenticationDetail.entity.js +55 -1
  11. package/src/lib/entities/authenticationDetail.entity.js.map +1 -1
  12. package/src/lib/entities/billing-transaction.entity.js +5 -1
  13. package/src/lib/entities/billing-transaction.entity.js.map +1 -1
  14. package/src/lib/entities/email-template.entity.d.ts +5 -1
  15. package/src/lib/entities/email-template.entity.js +4 -1
  16. package/src/lib/entities/email-template.entity.js.map +1 -1
  17. package/src/lib/entities/form.d.ts +56 -0
  18. package/src/lib/entities/form.js +201 -0
  19. package/src/lib/entities/form.js.map +1 -0
  20. package/src/lib/entities/mqttServer.entity.js +3 -0
  21. package/src/lib/entities/mqttServer.entity.js.map +1 -1
  22. package/src/lib/entities/password-history.entity.d.ts +8 -0
  23. package/src/lib/entities/password-history.entity.js +44 -0
  24. package/src/lib/entities/password-history.entity.js.map +1 -0
  25. package/src/lib/entities/password-policy-audit.entity.d.ts +19 -0
  26. package/src/lib/entities/password-policy-audit.entity.js +83 -0
  27. package/src/lib/entities/password-policy-audit.entity.js.map +1 -0
  28. package/src/lib/entities/password-policy-override.entity.d.ts +22 -0
  29. package/src/lib/entities/password-policy-override.entity.js +100 -0
  30. package/src/lib/entities/password-policy-override.entity.js.map +1 -0
  31. package/src/lib/entities/password-policy.entity.d.ts +19 -0
  32. package/src/lib/entities/password-policy.entity.js +94 -0
  33. package/src/lib/entities/password-policy.entity.js.map +1 -0
  34. package/src/lib/entities/project-invitation.entity.d.ts +23 -0
  35. package/src/lib/entities/project-invitation.entity.js +98 -0
  36. package/src/lib/entities/project-invitation.entity.js.map +1 -0
  37. package/src/lib/entities/project-member.entity.d.ts +14 -0
  38. package/src/lib/entities/project-member.entity.js +61 -0
  39. package/src/lib/entities/project-member.entity.js.map +1 -0
  40. package/src/lib/entities/project.d.ts +17 -0
  41. package/src/lib/entities/project.js +89 -0
  42. package/src/lib/entities/project.js.map +1 -0
  43. package/src/lib/entities/resource-maintenance-schedule-time-interval-config.entity.d.ts +14 -0
  44. package/src/lib/entities/resource-maintenance-schedule-time-interval-config.entity.js +54 -0
  45. package/src/lib/entities/resource-maintenance-schedule-time-interval-config.entity.js.map +1 -0
  46. package/src/lib/entities/resource-maintenance-schedule-usage-count-config.entity.d.ts +11 -0
  47. package/src/lib/entities/resource-maintenance-schedule-usage-count-config.entity.js +40 -0
  48. package/src/lib/entities/resource-maintenance-schedule-usage-count-config.entity.js.map +1 -0
  49. package/src/lib/entities/resource-maintenance-schedule-usage-hours-config.entity.d.ts +13 -0
  50. package/src/lib/entities/resource-maintenance-schedule-usage-hours-config.entity.js +53 -0
  51. package/src/lib/entities/resource-maintenance-schedule-usage-hours-config.entity.js.map +1 -0
  52. package/src/lib/entities/resource-maintenance-schedule.entity.d.ts +23 -0
  53. package/src/lib/entities/resource-maintenance-schedule.entity.js +99 -0
  54. package/src/lib/entities/resource-maintenance-schedule.entity.js.map +1 -0
  55. package/src/lib/entities/resource.entity.d.ts +7 -0
  56. package/src/lib/entities/resource.entity.js +32 -0
  57. package/src/lib/entities/resource.entity.js.map +1 -1
  58. package/src/lib/entities/resource.maintenance.d.ts +6 -0
  59. package/src/lib/entities/resource.maintenance.js +37 -0
  60. package/src/lib/entities/resource.maintenance.js.map +1 -1
  61. package/src/lib/entities/resourceFlowLog.js +1 -0
  62. package/src/lib/entities/resourceFlowLog.js.map +1 -1
  63. package/src/lib/entities/resourceFlowNode.d.ts +65 -50
  64. package/src/lib/entities/resourceFlowNode.js +88 -3
  65. package/src/lib/entities/resourceFlowNode.js.map +1 -1
  66. package/src/lib/entities/resourceFlowVariable.d.ts +17 -0
  67. package/src/lib/entities/resourceFlowVariable.js +66 -0
  68. package/src/lib/entities/resourceFlowVariable.js.map +1 -0
  69. package/src/lib/entities/resourceHealthState.entity.d.ts +22 -0
  70. package/src/lib/entities/resourceHealthState.entity.js +114 -0
  71. package/src/lib/entities/resourceHealthState.entity.js.map +1 -0
  72. package/src/lib/entities/resourceIntroductionHistoryItem.entity.js +1 -0
  73. package/src/lib/entities/resourceIntroductionHistoryItem.entity.js.map +1 -1
  74. package/src/lib/entities/resourceUsage.entity.d.ts +6 -0
  75. package/src/lib/entities/resourceUsage.entity.js +36 -0
  76. package/src/lib/entities/resourceUsage.entity.js.map +1 -1
  77. package/src/lib/entities/session.entity.js +3 -0
  78. package/src/lib/entities/session.entity.js.map +1 -1
  79. package/src/lib/entities/ssoProvider.entity.d.ts +5 -2
  80. package/src/lib/entities/ssoProvider.entity.js +12 -0
  81. package/src/lib/entities/ssoProvider.entity.js.map +1 -1
  82. package/src/lib/entities/ssoProvider.oidc.d.ts +2 -0
  83. package/src/lib/entities/ssoProvider.oidc.js +17 -2
  84. package/src/lib/entities/ssoProvider.oidc.js.map +1 -1
  85. package/src/lib/entities/ssoProvider.saml.d.ts +23 -0
  86. package/src/lib/entities/ssoProvider.saml.js +177 -0
  87. package/src/lib/entities/ssoProvider.saml.js.map +1 -0
  88. package/src/lib/entities/user.entity.d.ts +16 -0
  89. package/src/lib/entities/user.entity.js +77 -0
  90. package/src/lib/entities/user.entity.js.map +1 -1
  91. package/src/lib/entities-index.d.ts +35 -4
  92. package/src/lib/entities-index.js +74 -4
  93. package/src/lib/entities-index.js.map +1 -1
  94. package/src/lib/types/authenticationType.enum.d.ts +2 -1
  95. package/src/lib/types/authenticationType.enum.js +1 -0
  96. package/src/lib/types/authenticationType.enum.js.map +1 -1
  97. package/src/lib/types/usageDurationUnit.enum.d.ts +5 -0
  98. package/src/lib/types/usageDurationUnit.enum.js +10 -0
  99. package/src/lib/types/usageDurationUnit.enum.js.map +1 -0
  100. package/src/lib/entities/revokedToken.entity.d.ts +0 -5
  101. package/src/lib/entities/revokedToken.entity.js +0 -35
  102. package/src/lib/entities/revokedToken.entity.js.map +0 -1
@@ -0,0 +1,201 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormSubmission = exports.FormField = exports.Form = exports.ResourceFormAction = exports.FormFieldType = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const swagger_1 = require("@nestjs/swagger");
6
+ const typeorm_1 = require("typeorm");
7
+ const resource_entity_1 = require("./resource.entity");
8
+ const user_entity_1 = require("./user.entity");
9
+ const resourceUsage_entity_1 = require("./resourceUsage.entity");
10
+ var FormFieldType;
11
+ (function (FormFieldType) {
12
+ FormFieldType["TEXT"] = "text";
13
+ FormFieldType["NUMBER"] = "number";
14
+ FormFieldType["BOOLEAN"] = "boolean";
15
+ FormFieldType["SELECT"] = "select";
16
+ })(FormFieldType || (exports.FormFieldType = FormFieldType = {}));
17
+ var ResourceFormAction;
18
+ (function (ResourceFormAction) {
19
+ ResourceFormAction["START"] = "start";
20
+ ResourceFormAction["TAKEOVER"] = "takeover";
21
+ ResourceFormAction["END"] = "end";
22
+ })(ResourceFormAction || (exports.ResourceFormAction = ResourceFormAction = {}));
23
+ let Form = class Form {
24
+ };
25
+ exports.Form = Form;
26
+ tslib_1.__decorate([
27
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
28
+ (0, swagger_1.ApiProperty)({ description: 'The ID of the form' }),
29
+ tslib_1.__metadata("design:type", Number)
30
+ ], Form.prototype, "id", void 0);
31
+ tslib_1.__decorate([
32
+ (0, typeorm_1.CreateDateColumn)(),
33
+ (0, swagger_1.ApiProperty)({ description: 'The date and time the form was created' }),
34
+ tslib_1.__metadata("design:type", Date)
35
+ ], Form.prototype, "createdAt", void 0);
36
+ tslib_1.__decorate([
37
+ (0, typeorm_1.UpdateDateColumn)(),
38
+ (0, swagger_1.ApiProperty)({ description: 'The date and time the form was last updated' }),
39
+ tslib_1.__metadata("design:type", Date)
40
+ ], Form.prototype, "updatedAt", void 0);
41
+ tslib_1.__decorate([
42
+ (0, typeorm_1.Column)({
43
+ type: 'text',
44
+ nullable: false,
45
+ }),
46
+ (0, swagger_1.ApiProperty)({ description: 'The name of the form' }),
47
+ tslib_1.__metadata("design:type", String)
48
+ ], Form.prototype, "name", void 0);
49
+ tslib_1.__decorate([
50
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
51
+ (0, swagger_1.ApiProperty)({ description: 'Whether the form is required on resource usage start' }),
52
+ tslib_1.__metadata("design:type", Boolean)
53
+ ], Form.prototype, "isRequiredOnResourceUsageStart", void 0);
54
+ tslib_1.__decorate([
55
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
56
+ (0, swagger_1.ApiProperty)({ description: 'Whether the form is required on resource usage take over' }),
57
+ tslib_1.__metadata("design:type", Boolean)
58
+ ], Form.prototype, "isRequiredOnResourceUsageTakeOver", void 0);
59
+ tslib_1.__decorate([
60
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
61
+ (0, swagger_1.ApiProperty)({ description: 'Whether the form is required on resource usage end' }),
62
+ tslib_1.__metadata("design:type", Boolean)
63
+ ], Form.prototype, "isRequiredOnResourceUsageEnd", void 0);
64
+ tslib_1.__decorate([
65
+ (0, typeorm_1.OneToMany)(() => FormField, (field) => field.form),
66
+ (0, swagger_1.ApiProperty)({ description: 'The fields of the form', type: () => FormField, isArray: true }),
67
+ tslib_1.__metadata("design:type", Array)
68
+ ], Form.prototype, "fields", void 0);
69
+ tslib_1.__decorate([
70
+ (0, typeorm_1.OneToMany)(() => FormSubmission, (submission) => submission.form),
71
+ (0, swagger_1.ApiProperty)({ description: 'The submissions of the form', type: () => FormSubmission, isArray: true }),
72
+ tslib_1.__metadata("design:type", Array)
73
+ ], Form.prototype, "submissions", void 0);
74
+ tslib_1.__decorate([
75
+ (0, typeorm_1.Column)({ type: 'integer' }),
76
+ (0, swagger_1.ApiProperty)({ description: 'The ID of the resource that the form belongs to' }),
77
+ tslib_1.__metadata("design:type", Number)
78
+ ], Form.prototype, "resourceId", void 0);
79
+ tslib_1.__decorate([
80
+ (0, typeorm_1.ManyToOne)(() => resource_entity_1.Resource, (resource) => resource.forms),
81
+ (0, typeorm_1.JoinColumn)({ name: 'resourceId' }),
82
+ (0, swagger_1.ApiProperty)({ description: 'The resource that the form belongs to', type: () => resource_entity_1.Resource }),
83
+ tslib_1.__metadata("design:type", resource_entity_1.Resource)
84
+ ], Form.prototype, "resource", void 0);
85
+ exports.Form = Form = tslib_1.__decorate([
86
+ (0, typeorm_1.Entity)()
87
+ ], Form);
88
+ let FormField = class FormField {
89
+ };
90
+ exports.FormField = FormField;
91
+ tslib_1.__decorate([
92
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
93
+ (0, swagger_1.ApiProperty)({ description: 'The ID of the form field' }),
94
+ tslib_1.__metadata("design:type", Number)
95
+ ], FormField.prototype, "id", void 0);
96
+ tslib_1.__decorate([
97
+ (0, typeorm_1.Column)({ type: 'integer' }),
98
+ (0, swagger_1.ApiProperty)({ description: 'The ID of the form that the field belongs to' }),
99
+ tslib_1.__metadata("design:type", Number)
100
+ ], FormField.prototype, "formId", void 0);
101
+ tslib_1.__decorate([
102
+ (0, typeorm_1.ManyToOne)(() => Form, (form) => form.fields),
103
+ (0, typeorm_1.JoinColumn)({ name: 'formId' }),
104
+ (0, swagger_1.ApiProperty)({ description: 'The form that the field belongs to', type: () => Form }),
105
+ tslib_1.__metadata("design:type", Form)
106
+ ], FormField.prototype, "form", void 0);
107
+ tslib_1.__decorate([
108
+ (0, typeorm_1.Column)({ type: 'text' }),
109
+ (0, swagger_1.ApiProperty)({ description: 'The name of the form field' }),
110
+ tslib_1.__metadata("design:type", String)
111
+ ], FormField.prototype, "name", void 0);
112
+ tslib_1.__decorate([
113
+ (0, typeorm_1.Column)({ type: 'simple-enum', enum: FormFieldType }),
114
+ (0, swagger_1.ApiProperty)({ description: 'The type of the form field', enum: FormFieldType, enumName: 'FormFieldType' }),
115
+ tslib_1.__metadata("design:type", String)
116
+ ], FormField.prototype, "type", void 0);
117
+ tslib_1.__decorate([
118
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
119
+ (0, swagger_1.ApiProperty)({ description: 'Whether the form field is required' }),
120
+ tslib_1.__metadata("design:type", Boolean)
121
+ ], FormField.prototype, "isRequired", void 0);
122
+ tslib_1.__decorate([
123
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
124
+ (0, swagger_1.ApiProperty)({ description: 'The description of the form field' }),
125
+ tslib_1.__metadata("design:type", String)
126
+ ], FormField.prototype, "description", void 0);
127
+ tslib_1.__decorate([
128
+ (0, typeorm_1.Column)({ type: 'json', nullable: true }),
129
+ (0, swagger_1.ApiProperty)({ description: 'The options of the form field' }),
130
+ tslib_1.__metadata("design:type", Object)
131
+ ], FormField.prototype, "options", void 0);
132
+ exports.FormField = FormField = tslib_1.__decorate([
133
+ (0, typeorm_1.Entity)()
134
+ ], FormField);
135
+ let FormSubmission = class FormSubmission {
136
+ };
137
+ exports.FormSubmission = FormSubmission;
138
+ tslib_1.__decorate([
139
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
140
+ (0, swagger_1.ApiProperty)({ description: 'The ID of the form submission' }),
141
+ tslib_1.__metadata("design:type", Number)
142
+ ], FormSubmission.prototype, "id", void 0);
143
+ tslib_1.__decorate([
144
+ (0, typeorm_1.Column)({ type: 'integer' }),
145
+ (0, swagger_1.ApiProperty)({ description: 'The ID of the form that the submission belongs to' }),
146
+ tslib_1.__metadata("design:type", Number)
147
+ ], FormSubmission.prototype, "formId", void 0);
148
+ tslib_1.__decorate([
149
+ (0, typeorm_1.ManyToOne)(() => Form, (form) => form.submissions),
150
+ (0, typeorm_1.JoinColumn)({ name: 'formId' }),
151
+ (0, swagger_1.ApiProperty)({ description: 'The form that the submission belongs to', type: () => Form }),
152
+ tslib_1.__metadata("design:type", Form)
153
+ ], FormSubmission.prototype, "form", void 0);
154
+ tslib_1.__decorate([
155
+ (0, typeorm_1.Column)({ type: 'json' }),
156
+ (0, swagger_1.ApiProperty)({
157
+ description: 'The data of the form submission',
158
+ }),
159
+ tslib_1.__metadata("design:type", Object)
160
+ ], FormSubmission.prototype, "data", void 0);
161
+ tslib_1.__decorate([
162
+ (0, typeorm_1.CreateDateColumn)(),
163
+ (0, swagger_1.ApiProperty)({ description: 'The date and time the submission was created' }),
164
+ tslib_1.__metadata("design:type", Date)
165
+ ], FormSubmission.prototype, "createdAt", void 0);
166
+ tslib_1.__decorate([
167
+ (0, typeorm_1.UpdateDateColumn)(),
168
+ (0, swagger_1.ApiProperty)({ description: 'The date and time the submission was last updated' }),
169
+ tslib_1.__metadata("design:type", Date)
170
+ ], FormSubmission.prototype, "updatedAt", void 0);
171
+ tslib_1.__decorate([
172
+ (0, typeorm_1.Column)({ type: 'integer' }),
173
+ (0, swagger_1.ApiProperty)({ description: 'The ID of the user that submitted the form' }),
174
+ tslib_1.__metadata("design:type", Number)
175
+ ], FormSubmission.prototype, "userId", void 0);
176
+ tslib_1.__decorate([
177
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.formSubmissions),
178
+ (0, typeorm_1.JoinColumn)({ name: 'userId' }),
179
+ (0, swagger_1.ApiProperty)({ description: 'The user that submitted the form', type: () => user_entity_1.User }),
180
+ tslib_1.__metadata("design:type", user_entity_1.User)
181
+ ], FormSubmission.prototype, "user", void 0);
182
+ tslib_1.__decorate([
183
+ (0, typeorm_1.Column)({ type: 'integer' }),
184
+ (0, swagger_1.ApiProperty)({ description: 'The ID of the resource usage that the submission belongs to' }),
185
+ tslib_1.__metadata("design:type", Number)
186
+ ], FormSubmission.prototype, "resourceUsageId", void 0);
187
+ tslib_1.__decorate([
188
+ (0, typeorm_1.ManyToOne)(() => resourceUsage_entity_1.ResourceUsage, (resourceUsage) => resourceUsage.formSubmissions),
189
+ (0, typeorm_1.JoinColumn)({ name: 'resourceUsageId' }),
190
+ (0, swagger_1.ApiProperty)({ description: 'The resource usage that the submission belongs to', type: () => resourceUsage_entity_1.ResourceUsage }),
191
+ tslib_1.__metadata("design:type", resourceUsage_entity_1.ResourceUsage)
192
+ ], FormSubmission.prototype, "resourceUsage", void 0);
193
+ tslib_1.__decorate([
194
+ (0, typeorm_1.Column)({ type: 'text', default: ResourceFormAction.START }),
195
+ (0, swagger_1.ApiProperty)({ description: 'The action that triggered the submission', enum: ResourceFormAction }),
196
+ tslib_1.__metadata("design:type", String)
197
+ ], FormSubmission.prototype, "action", void 0);
198
+ exports.FormSubmission = FormSubmission = tslib_1.__decorate([
199
+ (0, typeorm_1.Entity)()
200
+ ], FormSubmission);
201
+ //# sourceMappingURL=form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/form.ts"],"names":[],"mappings":";;;;AAAA,6CAA8C;AAC9C,qCASiB;AACjB,uDAA6C;AAC7C,+CAAqC;AACrC,iEAAuD;AAEvD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACnB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,iCAAW,CAAA;AACb,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAGM,IAAM,IAAI,GAAV,MAAM,IAAI;CAgDhB,CAAA;AAhDY,oBAAI;AAGf;IAFC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;;gCACvC;AAIZ;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC,EAAE,WAAW,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,EAAC,EAAE,WAAW,EAAE,6DAA6D,EAAE,CAAC;;uDACnE;AAKzB;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC;IAChF,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;IACvC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mDAAmD,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,oCAAa,EAAE,CAAC;sCAC7F,oCAAa;qDAAC;AAI9B;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,CAAC,KAAK,EAAE,CAAC;IAC3D,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,0CAA0C,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;;8CACvE;yBAhDjB,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAiD1B"}
@@ -4,6 +4,7 @@ exports.MqttServer = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const typeorm_1 = require("typeorm");
6
6
  const swagger_1 = require("@nestjs/swagger");
7
+ const class_transformer_1 = require("class-transformer");
7
8
  let MqttServer = class MqttServer {
8
9
  };
9
10
  exports.MqttServer = MqttServer;
@@ -54,7 +55,9 @@ tslib_1.__decorate([
54
55
  description: 'Optional authentication password',
55
56
  example: 'password123',
56
57
  required: false,
58
+ writeOnly: true,
57
59
  }),
60
+ (0, class_transformer_1.Exclude)(),
58
61
  tslib_1.__metadata("design:type", String)
59
62
  ], MqttServer.prototype, "password", void 0);
60
63
  tslib_1.__decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"mqttServer.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/mqttServer.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAAqG;AACrG,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM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EAAE,qBAAqB;QAC9B,QAAQ,EAAE,KAAK;KAChB,CAAC;;4CACuB;AAOzB;IALC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,KAAK;KACf,CAAC;;0CACe;AAOjB;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACvC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE,CAAC;KACX,CAAC;;qDACyB;AAO3B;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE,KAAK;KACf,CAAC;;wDAC6B;AAO/B;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACvC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,CAAC;KACX,CAAC;;uDAC2B;AAM7B;IAJC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kCAAkC;KAChD,CAAC;sCACU,IAAI;6CAAC;AAMjB;IAJC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uCAAuC;KACrD,CAAC;sCACU,IAAI;6CAAC;qBA3FN,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CA4FtB"}
1
+ {"version":3,"file":"mqttServer.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/mqttServer.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAAqG;AACrG,6CAA8C;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+ export declare class PasswordHistory {
3
+ id: number;
4
+ userId: number;
5
+ passwordHash: string;
6
+ createdAt: Date;
7
+ user: User;
8
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PasswordHistory = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const swagger_1 = require("@nestjs/swagger");
7
+ const class_transformer_1 = require("class-transformer");
8
+ const user_entity_1 = require("./user.entity");
9
+ let PasswordHistory = class PasswordHistory {
10
+ };
11
+ exports.PasswordHistory = PasswordHistory;
12
+ tslib_1.__decorate([
13
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
14
+ (0, swagger_1.ApiProperty)({ description: 'Primary identifier', example: 1 }),
15
+ tslib_1.__metadata("design:type", Number)
16
+ ], PasswordHistory.prototype, "id", void 0);
17
+ tslib_1.__decorate([
18
+ (0, typeorm_1.Column)({ type: 'integer' }),
19
+ (0, swagger_1.ApiProperty)({ description: 'Owning user id', example: 1 }),
20
+ tslib_1.__metadata("design:type", Number)
21
+ ], PasswordHistory.prototype, "userId", void 0);
22
+ tslib_1.__decorate([
23
+ (0, typeorm_1.Column)({ type: 'text' }),
24
+ (0, class_transformer_1.Exclude)(),
25
+ (0, swagger_1.ApiProperty)({ description: 'Bcrypt hash of a previously used password', required: false }),
26
+ tslib_1.__metadata("design:type", String)
27
+ ], PasswordHistory.prototype, "passwordHash", void 0);
28
+ tslib_1.__decorate([
29
+ (0, typeorm_1.CreateDateColumn)(),
30
+ (0, swagger_1.ApiProperty)({ description: 'When this entry was recorded' }),
31
+ tslib_1.__metadata("design:type", Date)
32
+ ], PasswordHistory.prototype, "createdAt", void 0);
33
+ tslib_1.__decorate([
34
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
35
+ onDelete: 'CASCADE',
36
+ }),
37
+ (0, typeorm_1.JoinColumn)({ name: 'userId' }),
38
+ tslib_1.__metadata("design:type", user_entity_1.User)
39
+ ], PasswordHistory.prototype, "user", void 0);
40
+ exports.PasswordHistory = PasswordHistory = tslib_1.__decorate([
41
+ (0, typeorm_1.Entity)(),
42
+ (0, typeorm_1.Index)(['userId', 'createdAt'])
43
+ ], PasswordHistory);
44
+ //# sourceMappingURL=password-history.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-history.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/password-history.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAAiH;AACjH,6CAA8C;AAC9C,yDAA4C;AAC5C,+CAAqC;AAI9B,IAAM,eAAe,GAArB,MAAM,eAAe;CAuB3B,CAAA;AAvBY,0CAAe;AAG1B;IAFC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2CACnD;AAIZ;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+CAC3C;AAKhB;IAHC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,2BAAO,GAAE;IACT,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qDACrE;AAItB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;sCACjD,IAAI;kDAAC;AAMjB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;sCACxB,kBAAI;6CAAC;0BAtBD,eAAe;IAF3B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;GAClB,eAAe,CAuB3B"}
@@ -0,0 +1,19 @@
1
+ export declare enum PasswordPolicyAuditEvent {
2
+ GLOBAL_POLICY_UPDATED = "global_policy_updated",
3
+ OVERRIDE_UPSERTED = "override_upserted",
4
+ OVERRIDE_DELETED = "override_deleted"
5
+ }
6
+ export declare class PasswordPolicyAudit {
7
+ id: number;
8
+ at: Date;
9
+ event: PasswordPolicyAuditEvent;
10
+ actorId: number | null;
11
+ actorUsername: string | null;
12
+ ip: string | null;
13
+ userAgent: string | null;
14
+ requestId: string | null;
15
+ role: string | null;
16
+ before: string | null;
17
+ after: string | null;
18
+ changedFields: string | null;
19
+ }
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ // Append-only audit log for password policy admin mutations (global PATCH + per-role override CRUD)
3
+ // FEATURE: Password policy admin audit trail (DB-backed, queryable, retains actor + before/after diff)
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.PasswordPolicyAudit = exports.PasswordPolicyAuditEvent = void 0;
6
+ const tslib_1 = require("tslib");
7
+ const typeorm_1 = require("typeorm");
8
+ const swagger_1 = require("@nestjs/swagger");
9
+ var PasswordPolicyAuditEvent;
10
+ (function (PasswordPolicyAuditEvent) {
11
+ PasswordPolicyAuditEvent["GLOBAL_POLICY_UPDATED"] = "global_policy_updated";
12
+ PasswordPolicyAuditEvent["OVERRIDE_UPSERTED"] = "override_upserted";
13
+ PasswordPolicyAuditEvent["OVERRIDE_DELETED"] = "override_deleted";
14
+ })(PasswordPolicyAuditEvent || (exports.PasswordPolicyAuditEvent = PasswordPolicyAuditEvent = {}));
15
+ let PasswordPolicyAudit = class PasswordPolicyAudit {
16
+ };
17
+ exports.PasswordPolicyAudit = PasswordPolicyAudit;
18
+ tslib_1.__decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
20
+ (0, swagger_1.ApiProperty)({ description: 'Auto-incremented audit row id', example: 42 }),
21
+ tslib_1.__metadata("design:type", Number)
22
+ ], PasswordPolicyAudit.prototype, "id", void 0);
23
+ tslib_1.__decorate([
24
+ (0, typeorm_1.Index)(),
25
+ (0, typeorm_1.CreateDateColumn)(),
26
+ (0, swagger_1.ApiProperty)({ description: 'When the audited mutation happened' }),
27
+ tslib_1.__metadata("design:type", Date)
28
+ ], PasswordPolicyAudit.prototype, "at", void 0);
29
+ tslib_1.__decorate([
30
+ (0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
31
+ (0, swagger_1.ApiProperty)({ description: 'Which mutation was performed', enum: PasswordPolicyAuditEvent, enumName: 'PasswordPolicyAuditEvent' }),
32
+ tslib_1.__metadata("design:type", String)
33
+ ], PasswordPolicyAudit.prototype, "event", void 0);
34
+ tslib_1.__decorate([
35
+ (0, typeorm_1.Index)(),
36
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
37
+ (0, swagger_1.ApiProperty)({ description: 'User id of the admin who performed the change', nullable: true, example: 1 }),
38
+ tslib_1.__metadata("design:type", Number)
39
+ ], PasswordPolicyAudit.prototype, "actorId", void 0);
40
+ tslib_1.__decorate([
41
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
42
+ (0, swagger_1.ApiProperty)({ description: 'Username snapshot at the time of the change', nullable: true, example: 'root' }),
43
+ tslib_1.__metadata("design:type", String)
44
+ ], PasswordPolicyAudit.prototype, "actorUsername", void 0);
45
+ tslib_1.__decorate([
46
+ (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
47
+ (0, swagger_1.ApiProperty)({ description: 'Source IP address of the admin request', nullable: true, example: '203.0.113.4' }),
48
+ tslib_1.__metadata("design:type", String)
49
+ ], PasswordPolicyAudit.prototype, "ip", void 0);
50
+ tslib_1.__decorate([
51
+ (0, typeorm_1.Column)({ type: 'varchar', length: 512, nullable: true }),
52
+ (0, swagger_1.ApiProperty)({ description: 'User-agent of the admin request', nullable: true }),
53
+ tslib_1.__metadata("design:type", String)
54
+ ], PasswordPolicyAudit.prototype, "userAgent", void 0);
55
+ tslib_1.__decorate([
56
+ (0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
57
+ (0, swagger_1.ApiProperty)({ description: 'Optional request id for tracing', nullable: true }),
58
+ tslib_1.__metadata("design:type", String)
59
+ ], PasswordPolicyAudit.prototype, "requestId", void 0);
60
+ tslib_1.__decorate([
61
+ (0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: true }),
62
+ (0, swagger_1.ApiProperty)({ description: 'Role the change applied to (only set for override events)', nullable: true }),
63
+ tslib_1.__metadata("design:type", String)
64
+ ], PasswordPolicyAudit.prototype, "role", void 0);
65
+ tslib_1.__decorate([
66
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
67
+ (0, swagger_1.ApiProperty)({ description: 'JSON-encoded snapshot of the row before the change', nullable: true }),
68
+ tslib_1.__metadata("design:type", String)
69
+ ], PasswordPolicyAudit.prototype, "before", void 0);
70
+ tslib_1.__decorate([
71
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
72
+ (0, swagger_1.ApiProperty)({ description: 'JSON-encoded snapshot of the row after the change', nullable: true }),
73
+ tslib_1.__metadata("design:type", String)
74
+ ], PasswordPolicyAudit.prototype, "after", void 0);
75
+ tslib_1.__decorate([
76
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
77
+ (0, swagger_1.ApiProperty)({ description: 'JSON array of field names that changed', nullable: true }),
78
+ tslib_1.__metadata("design:type", String)
79
+ ], PasswordPolicyAudit.prototype, "changedFields", void 0);
80
+ exports.PasswordPolicyAudit = PasswordPolicyAudit = tslib_1.__decorate([
81
+ (0, typeorm_1.Entity)()
82
+ ], PasswordPolicyAudit);
83
+ //# sourceMappingURL=password-policy-audit.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-policy-audit.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/password-policy-audit.entity.ts"],"names":[],"mappings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,WAAW,EAAE,mDAAmD,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC5E;AAItB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wCAAwC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACzD;8BAjDnB,mBAAmB;IAD/B,IAAA,gBAAM,GAAE;GACI,mBAAmB,CAkD/B"}
@@ -0,0 +1,22 @@
1
+ export declare enum PasswordPolicyRole {
2
+ ADMIN = "admin"
3
+ }
4
+ export declare const PASSWORD_POLICY_ROLES: PasswordPolicyRole[];
5
+ export declare class PasswordPolicyOverride {
6
+ role: PasswordPolicyRole;
7
+ minLength: number | null;
8
+ maxLength: number | null;
9
+ allowAllUnicode: boolean | null;
10
+ requireUppercase: boolean | null;
11
+ requireLowercase: boolean | null;
12
+ requireDigit: boolean | null;
13
+ requireSpecial: boolean | null;
14
+ checkHIBP: boolean | null;
15
+ checkCommonPasswords: boolean | null;
16
+ minZxcvbnScore: number | null;
17
+ historySize: number | null;
18
+ rotationDays: number | null;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ version: number;
22
+ }
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ // Per-role password policy override; nullable columns inherit from global singleton policy
3
+ // FEATURE: Password policy per-role overrides (admin only; machine/api-token are future slices)
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.PasswordPolicyOverride = exports.PASSWORD_POLICY_ROLES = exports.PasswordPolicyRole = void 0;
6
+ const tslib_1 = require("tslib");
7
+ const typeorm_1 = require("typeorm");
8
+ const swagger_1 = require("@nestjs/swagger");
9
+ var PasswordPolicyRole;
10
+ (function (PasswordPolicyRole) {
11
+ PasswordPolicyRole["ADMIN"] = "admin";
12
+ })(PasswordPolicyRole || (exports.PasswordPolicyRole = PasswordPolicyRole = {}));
13
+ exports.PASSWORD_POLICY_ROLES = [PasswordPolicyRole.ADMIN];
14
+ let PasswordPolicyOverride = class PasswordPolicyOverride {
15
+ };
16
+ exports.PasswordPolicyOverride = PasswordPolicyOverride;
17
+ tslib_1.__decorate([
18
+ (0, typeorm_1.PrimaryColumn)({ type: 'simple-enum', enum: PasswordPolicyRole }),
19
+ (0, swagger_1.ApiProperty)({ description: 'Role this override applies to', enum: PasswordPolicyRole, enumName: 'PasswordPolicyRole' }),
20
+ tslib_1.__metadata("design:type", String)
21
+ ], PasswordPolicyOverride.prototype, "role", void 0);
22
+ tslib_1.__decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
24
+ (0, swagger_1.ApiProperty)({ description: 'Override minimum password length', example: 16, nullable: true, required: false }),
25
+ tslib_1.__metadata("design:type", Number)
26
+ ], PasswordPolicyOverride.prototype, "minLength", void 0);
27
+ tslib_1.__decorate([
28
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
29
+ (0, swagger_1.ApiProperty)({ description: 'Override maximum password length', example: 256, nullable: true, required: false }),
30
+ tslib_1.__metadata("design:type", Number)
31
+ ], PasswordPolicyOverride.prototype, "maxLength", void 0);
32
+ tslib_1.__decorate([
33
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
34
+ (0, swagger_1.ApiProperty)({ description: 'Override allow-all-unicode flag', nullable: true, required: false }),
35
+ tslib_1.__metadata("design:type", Boolean)
36
+ ], PasswordPolicyOverride.prototype, "allowAllUnicode", void 0);
37
+ tslib_1.__decorate([
38
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
39
+ (0, swagger_1.ApiProperty)({ description: 'Override require-uppercase flag', nullable: true, required: false }),
40
+ tslib_1.__metadata("design:type", Boolean)
41
+ ], PasswordPolicyOverride.prototype, "requireUppercase", void 0);
42
+ tslib_1.__decorate([
43
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
44
+ (0, swagger_1.ApiProperty)({ description: 'Override require-lowercase flag', nullable: true, required: false }),
45
+ tslib_1.__metadata("design:type", Boolean)
46
+ ], PasswordPolicyOverride.prototype, "requireLowercase", void 0);
47
+ tslib_1.__decorate([
48
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
49
+ (0, swagger_1.ApiProperty)({ description: 'Override require-digit flag', nullable: true, required: false }),
50
+ tslib_1.__metadata("design:type", Boolean)
51
+ ], PasswordPolicyOverride.prototype, "requireDigit", void 0);
52
+ tslib_1.__decorate([
53
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
54
+ (0, swagger_1.ApiProperty)({ description: 'Override require-special flag', nullable: true, required: false }),
55
+ tslib_1.__metadata("design:type", Boolean)
56
+ ], PasswordPolicyOverride.prototype, "requireSpecial", void 0);
57
+ tslib_1.__decorate([
58
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
59
+ (0, swagger_1.ApiProperty)({ description: 'Override HIBP breach check flag', nullable: true, required: false }),
60
+ tslib_1.__metadata("design:type", Boolean)
61
+ ], PasswordPolicyOverride.prototype, "checkHIBP", void 0);
62
+ tslib_1.__decorate([
63
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
64
+ (0, swagger_1.ApiProperty)({ description: 'Override common-password rejection flag', nullable: true, required: false }),
65
+ tslib_1.__metadata("design:type", Boolean)
66
+ ], PasswordPolicyOverride.prototype, "checkCommonPasswords", void 0);
67
+ tslib_1.__decorate([
68
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
69
+ (0, swagger_1.ApiProperty)({ description: 'Override minimum zxcvbn score (0-4)', example: 4, nullable: true, required: false }),
70
+ tslib_1.__metadata("design:type", Number)
71
+ ], PasswordPolicyOverride.prototype, "minZxcvbnScore", void 0);
72
+ tslib_1.__decorate([
73
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
74
+ (0, swagger_1.ApiProperty)({ description: 'Override password history size', example: 5, nullable: true, required: false }),
75
+ tslib_1.__metadata("design:type", Number)
76
+ ], PasswordPolicyOverride.prototype, "historySize", void 0);
77
+ tslib_1.__decorate([
78
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
79
+ (0, swagger_1.ApiProperty)({ description: 'Override forced rotation interval in days', example: 90, nullable: true, required: false }),
80
+ tslib_1.__metadata("design:type", Number)
81
+ ], PasswordPolicyOverride.prototype, "rotationDays", void 0);
82
+ tslib_1.__decorate([
83
+ (0, typeorm_1.CreateDateColumn)(),
84
+ (0, swagger_1.ApiProperty)({ description: 'When the override row was created' }),
85
+ tslib_1.__metadata("design:type", Date)
86
+ ], PasswordPolicyOverride.prototype, "createdAt", void 0);
87
+ tslib_1.__decorate([
88
+ (0, typeorm_1.UpdateDateColumn)(),
89
+ (0, swagger_1.ApiProperty)({ description: 'When the override row was last updated' }),
90
+ tslib_1.__metadata("design:type", Date)
91
+ ], PasswordPolicyOverride.prototype, "updatedAt", void 0);
92
+ tslib_1.__decorate([
93
+ (0, typeorm_1.VersionColumn)(),
94
+ (0, swagger_1.ApiProperty)({ description: 'Row version for optimistic concurrency control', example: 1 }),
95
+ tslib_1.__metadata("design:type", Number)
96
+ ], PasswordPolicyOverride.prototype, "version", void 0);
97
+ exports.PasswordPolicyOverride = PasswordPolicyOverride = tslib_1.__decorate([
98
+ (0, typeorm_1.Entity)()
99
+ ], PasswordPolicyOverride);
100
+ //# sourceMappingURL=password-policy-override.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-policy-override.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/password-policy-override.entity.ts"],"names":[],"mappings":";AAAA,2FAA2F;AAC3F,gGAAgG;;;;AAEhG,qCAA2G;AAC3G,6CAA8C;AAE9C,IAAY,kBAEX;AAFD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;AACjB,CAAC,EAFW,kBAAkB,kCAAlB,kBAAkB,QAE7B;AAEY,QAAA,qBAAqB,GAAyB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAG/E,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CA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AAQ,EAAE,KAAK,EAAE,CAAC;;8DAClF;AAI/B;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,gCAAgC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DAChF;AAI5B;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4DAC3F;AAI7B;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;sCACtD,IAAI;yDAAC;AAIjB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;sCAC3D,IAAI;yDAAC;AAIjB;IAFC,IAAA,uBAAa,GAAE;IACf,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,gDAAgD,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDAC1E;iCA/DN,sBAAsB;IADlC,IAAA,gBAAM,GAAE;GACI,sBAAsB,CAgElC"}
@@ -0,0 +1,19 @@
1
+ export declare const PASSWORD_POLICY_SINGLETON_ID = 1;
2
+ export declare class PasswordPolicy {
3
+ id: number;
4
+ minLength: number;
5
+ maxLength: number;
6
+ allowAllUnicode: boolean;
7
+ requireUppercase: boolean;
8
+ requireLowercase: boolean;
9
+ requireDigit: boolean;
10
+ requireSpecial: boolean;
11
+ checkHIBP: boolean;
12
+ checkCommonPasswords: boolean;
13
+ minZxcvbnScore: number;
14
+ historySize: number;
15
+ rotationDays: number;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ version: number;
19
+ }