@shisyamo4131/air-guard-v2-schemas 2.2.3-dev.1 → 2.2.3-dev.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/package.json +1 -1
- package/src/User.js +4 -2
package/package.json
CHANGED
package/src/User.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* User Model
|
|
3
3
|
* @version 1.1.0
|
|
4
4
|
* @author shisyamo4131
|
|
5
|
-
* @update 2025-11-
|
|
5
|
+
* @update 2025-11-24 Added `companyId`, `isAdmin`, `isTemporary` property.
|
|
6
6
|
*
|
|
7
7
|
* @prop {string} email - User's email address.
|
|
8
8
|
* @prop {string} displayName - User's display name.
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* @prop {Array<string>} roles - User roles/permissions.
|
|
11
11
|
* @prop {boolean} disabled - Indicates if the user is disabled.
|
|
12
12
|
* @prop {string} companyId - ID of the associated company.
|
|
13
|
+
* @prop {boolean} isTemporary - Indicates if the user is temporary.
|
|
13
14
|
*/
|
|
14
15
|
import FireModel from "@shisyamo4131/air-firebase-v2";
|
|
15
16
|
import { defField } from "./parts/fieldDefinitions.js";
|
|
@@ -32,12 +33,13 @@ const classProps = {
|
|
|
32
33
|
hidden: true,
|
|
33
34
|
}),
|
|
34
35
|
companyId: defField("oneLine", { hidden: true, required: true }),
|
|
36
|
+
isAdmin: defField("check", { hidden: true, default: false }),
|
|
37
|
+
isTemporary: defField("check", { hidden: true, default: true }),
|
|
35
38
|
};
|
|
36
39
|
|
|
37
40
|
export default class User extends FireModel {
|
|
38
41
|
static className = "ユーザー";
|
|
39
42
|
static collectionPath = "Users";
|
|
40
|
-
static usePrefix = false;
|
|
41
43
|
static classProps = classProps;
|
|
42
44
|
|
|
43
45
|
static headers = [
|