@goweekdays/core 2.2.0 → 2.2.1
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +9 -10
- package/dist/index.js +637 -583
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +367 -313
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -307,11 +307,13 @@ type TMember = {
|
|
|
307
307
|
roleName?: string;
|
|
308
308
|
type: string;
|
|
309
309
|
status?: string;
|
|
310
|
-
createdAt?: string;
|
|
311
|
-
updatedAt?: string;
|
|
312
|
-
deletedAt?: string;
|
|
310
|
+
createdAt?: string | Date;
|
|
311
|
+
updatedAt?: string | Date;
|
|
312
|
+
deletedAt?: string | Date;
|
|
313
313
|
};
|
|
314
314
|
declare function MMember(value: TMember): TMember;
|
|
315
|
+
declare const schemaMember: Joi.ObjectSchema<any>;
|
|
316
|
+
declare function modelMember(value: TMember): TMember;
|
|
315
317
|
|
|
316
318
|
declare function useMemberRepo(): {
|
|
317
319
|
createIndex: () => Promise<void>;
|
|
@@ -376,8 +378,7 @@ declare function useMemberController(): {
|
|
|
376
378
|
type TOrg = {
|
|
377
379
|
_id?: ObjectId;
|
|
378
380
|
name: string;
|
|
379
|
-
description
|
|
380
|
-
type?: string;
|
|
381
|
+
description?: string;
|
|
381
382
|
email?: string;
|
|
382
383
|
contact?: string;
|
|
383
384
|
createdBy: string | ObjectId;
|
|
@@ -386,9 +387,8 @@ type TOrg = {
|
|
|
386
387
|
updatedAt?: string | Date;
|
|
387
388
|
deletedAt?: string | Date;
|
|
388
389
|
};
|
|
389
|
-
declare const OrgTypes: string[];
|
|
390
390
|
declare const schemaOrg: Joi.ObjectSchema<any>;
|
|
391
|
-
declare function
|
|
391
|
+
declare function modelOrg(value: TOrg): TOrg;
|
|
392
392
|
|
|
393
393
|
declare function useOrgRepo(): {
|
|
394
394
|
createIndexes: () => Promise<void>;
|
|
@@ -415,7 +415,7 @@ declare function useOrgService(): {
|
|
|
415
415
|
};
|
|
416
416
|
|
|
417
417
|
declare function useOrgController(): {
|
|
418
|
-
|
|
418
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
419
419
|
getOrgsByUserId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
420
420
|
getByName: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
421
421
|
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
@@ -475,7 +475,6 @@ type TRole = {
|
|
|
475
475
|
name?: string;
|
|
476
476
|
description?: string;
|
|
477
477
|
permissions?: Array<string>;
|
|
478
|
-
type?: string;
|
|
479
478
|
org?: string | ObjectId;
|
|
480
479
|
status?: string;
|
|
481
480
|
default?: boolean;
|
|
@@ -970,4 +969,4 @@ declare const XENDIT_SECRET_KEY: string;
|
|
|
970
969
|
declare const XENDIT_BASE_URL: string;
|
|
971
970
|
declare const DOMAIN: string;
|
|
972
971
|
|
|
973
|
-
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DOMAIN, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MAddress, MBuilding, MBuildingUnit, MFile, MMember, MONGO_DB, MONGO_URI,
|
|
972
|
+
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DOMAIN, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MAddress, MBuilding, MBuildingUnit, MFile, MMember, MONGO_DB, MONGO_URI, MUser, MUserRole, MVerification, PAYPAL_API_URL, PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PORT, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT, REFRESH_TOKEN_EXPIRY, REFRESH_TOKEN_SECRET, SECRET_KEY, SPACES_ACCESS_KEY, SPACES_BUCKET, SPACES_ENDPOINT, SPACES_REGION, SPACES_SECRET_KEY, TAddress, TApp, TBuilding, TBuildingUnit, TCounter, TFile, TMember, TMiniRole, TOrg, TPSGC, TPermission, TPermissionGroup, TRole, TUser, TUserRole, TVerification, TVerificationMetadata, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, XENDIT_BASE_URL, XENDIT_SECRET_KEY, addressSchema, isDev, modelApp, modelMember, modelOrg, modelPSGC, modelPermission, modelPermissionGroup, modelRole, schemaApp, schemaAppUpdate, schemaBuilding, schemaBuildingUnit, schemaMember, schemaOrg, schemaPSGC, schemaPermission, schemaPermissionGroup, schemaPermissionGroupUpdate, schemaPermissionUpdate, schemaRole, schemaUpdateOptions, transactionSchema, useAddressController, useAddressRepo, useAppController, useAppRepo, useAppService, useAuthController, useAuthService, useBuildingController, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useCounterModel, useCounterRepo, useFileController, useFileRepo, useFileService, useGitHubService, useMemberController, useMemberRepo, useOrgController, useOrgRepo, useOrgService, usePSGCController, usePSGCRepo, usePermissionController, usePermissionGroupController, usePermissionGroupRepo, usePermissionGroupService, usePermissionRepo, usePermissionService, useRoleController, useRoleRepo, useRoleService, useUserController, useUserRepo, useUserService, useUtilController, useVerificationController, useVerificationRepo, useVerificationService };
|