@goweekdays/core 1.2.1 → 1.2.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/CHANGELOG.md +13 -0
- package/dist/index.d.ts +55 -4
- package/dist/index.js +2008 -1187
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2036 -1182
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @goweekdays/core
|
|
2
2
|
|
|
3
|
+
## 1.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4557407: Revise auth login, use session id instead of jsonwebtoken
|
|
8
|
+
|
|
9
|
+
## 1.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 14bdfa3: Platform utils - initial release
|
|
14
|
+
- fc6fd2d: Clean up
|
|
15
|
+
|
|
3
16
|
## 1.2.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -277,9 +277,8 @@ declare function useAuthService(): {
|
|
|
277
277
|
email: string;
|
|
278
278
|
password: string;
|
|
279
279
|
}) => Promise<{
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
id: bson.ObjectId | undefined;
|
|
280
|
+
sid: string;
|
|
281
|
+
user: string;
|
|
283
282
|
}>;
|
|
284
283
|
refreshToken: (token: string) => Promise<string>;
|
|
285
284
|
logout: (token: string) => Promise<string>;
|
|
@@ -2252,6 +2251,52 @@ declare function usePriceController(): {
|
|
|
2252
2251
|
getByNameType: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2253
2252
|
};
|
|
2254
2253
|
|
|
2254
|
+
type TProperty = {
|
|
2255
|
+
_id?: ObjectId;
|
|
2256
|
+
propertyName: string;
|
|
2257
|
+
propertyType: string;
|
|
2258
|
+
propertyDescription: string;
|
|
2259
|
+
streetAddress: string;
|
|
2260
|
+
barangay: string;
|
|
2261
|
+
city: string;
|
|
2262
|
+
province: string;
|
|
2263
|
+
region: string;
|
|
2264
|
+
zipCode?: string;
|
|
2265
|
+
latitude?: string;
|
|
2266
|
+
longitude?: string;
|
|
2267
|
+
ownerId?: string;
|
|
2268
|
+
managerName?: string;
|
|
2269
|
+
managerEmail?: string;
|
|
2270
|
+
managerPhone?: string;
|
|
2271
|
+
amenities?: Array<string>;
|
|
2272
|
+
numberOfFloors: string;
|
|
2273
|
+
floorLabels?: string;
|
|
2274
|
+
coverPhoto: object;
|
|
2275
|
+
photoGallery: Array<object>;
|
|
2276
|
+
stayType: string;
|
|
2277
|
+
createdAt?: Date;
|
|
2278
|
+
updatedAt?: Date;
|
|
2279
|
+
deletedAt?: Date;
|
|
2280
|
+
};
|
|
2281
|
+
declare const schemaProperty: Joi.ObjectSchema<any>;
|
|
2282
|
+
declare function modelProperty(value: TProperty): TProperty;
|
|
2283
|
+
|
|
2284
|
+
declare function usePropertyRepo(): {
|
|
2285
|
+
createIndex: () => Promise<void>;
|
|
2286
|
+
add: (value: TProperty, session?: ClientSession) => Promise<ObjectId>;
|
|
2287
|
+
deleteById: (_id: string | ObjectId) => Promise<mongodb.DeleteResult>;
|
|
2288
|
+
updateById: (_id: string | ObjectId, value: TProperty, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2289
|
+
getAll: () => Promise<mongodb.WithId<bson.Document>[] | TProperty[]>;
|
|
2290
|
+
getById: (_id: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | TProperty>;
|
|
2291
|
+
};
|
|
2292
|
+
|
|
2293
|
+
declare function usePropertyController(): {
|
|
2294
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2295
|
+
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2296
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2297
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2298
|
+
};
|
|
2299
|
+
|
|
2255
2300
|
declare function usePaypalService(): {
|
|
2256
2301
|
createInvoice: (data: {
|
|
2257
2302
|
invoiceNumber?: string | undefined;
|
|
@@ -2268,6 +2313,11 @@ declare function usePaypalService(): {
|
|
|
2268
2313
|
getInvoiceById: (invoiceId: string) => Promise<any>;
|
|
2269
2314
|
};
|
|
2270
2315
|
|
|
2316
|
+
declare function useUtilController(): {
|
|
2317
|
+
healthCheck: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2318
|
+
setGitHubVariables: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2319
|
+
};
|
|
2320
|
+
|
|
2271
2321
|
declare const MONGO_URI: string;
|
|
2272
2322
|
declare const MONGO_DB: string;
|
|
2273
2323
|
declare const PORT: number;
|
|
@@ -2303,5 +2353,6 @@ declare const PAYPAL_CLIENT_SECRET: string;
|
|
|
2303
2353
|
declare const PAYPAL_API_URL: string;
|
|
2304
2354
|
declare const XENDIT_SECRET_KEY: string;
|
|
2305
2355
|
declare const XENDIT_BASE_URL: string;
|
|
2356
|
+
declare const DOMAIN: string;
|
|
2306
2357
|
|
|
2307
|
-
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, CardPayment, CardPaymentSchema, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DirectDebit, DirectDebitSchema, EWalletPayment, EWalletPaymentSchema, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MAddress, MEntity, MFile, MMember, MONGO_DB, MONGO_URI, MOrder, MOrg, MPaymentMethod, MPromoCode, MRole, MSubscription, MToken, 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, TBillingRecipient, TCounter, TEntity, TFile, TInvoice, TMember, TMiniRole, TOrder, TOrderMetadata, TOrg, TPayment, TPaymentMethod$1 as TPaymentMethod, TPaymentMethodType, TPrice, TPriceType, TPromoCode, TPromoTier, TRole, TSubscription, TToken, TUser, TUserRole, TVerification, TVerificationMetadata, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, XENDIT_BASE_URL, XENDIT_SECRET_KEY, addressSchema, isDev, schema, useAddressController, useAddressRepo, useAuthController, useAuthService, useCounterModel, useCounterRepo, useEntityController, useEntityRepo, useFileController, useFileRepo, useFileService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useInvoiceService, useMemberController, useMemberRepo, useOrderController, useOrderRepo, useOrgController, useOrgRepo, useOrgService, usePaymentController, usePaymentMethodController, usePaymentMethodRepo, usePaymentMethodService, usePaymentModel, usePaymentRepo, usePaypalService, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRoleController, useRoleRepo, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useTokenRepo, useUserController, useUserRepo, useUserService, useVerificationController, useVerificationRepo, useVerificationService, useXenditService, validateCardPayment, validateDirectDebit, validateEWalletPayment };
|
|
2358
|
+
export { ACCESS_TOKEN_EXPIRY, ACCESS_TOKEN_SECRET, APP_ACCOUNT, APP_MAIN, CardPayment, CardPaymentSchema, DEFAULT_USER_EMAIL, DEFAULT_USER_FIRST_NAME, DEFAULT_USER_LAST_NAME, DEFAULT_USER_PASSWORD, DOMAIN, DirectDebit, DirectDebitSchema, EWalletPayment, EWalletPaymentSchema, MAILER_EMAIL, MAILER_PASSWORD, MAILER_TRANSPORT_HOST, MAILER_TRANSPORT_PORT, MAILER_TRANSPORT_SECURE, MAddress, MEntity, MFile, MMember, MONGO_DB, MONGO_URI, MOrder, MOrg, MPaymentMethod, MPromoCode, MRole, MSubscription, MToken, 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, TBillingRecipient, TCounter, TEntity, TFile, TInvoice, TMember, TMiniRole, TOrder, TOrderMetadata, TOrg, TPayment, TPaymentMethod$1 as TPaymentMethod, TPaymentMethodType, TPrice, TPriceType, TPromoCode, TPromoTier, TProperty, TRole, TSubscription, TToken, TUser, TUserRole, TVerification, TVerificationMetadata, VERIFICATION_FORGET_PASSWORD_DURATION, VERIFICATION_USER_INVITE_DURATION, XENDIT_BASE_URL, XENDIT_SECRET_KEY, addressSchema, isDev, modelProperty, schema, schemaProperty, useAddressController, useAddressRepo, useAuthController, useAuthService, useCounterModel, useCounterRepo, useEntityController, useEntityRepo, useFileController, useFileRepo, useFileService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useInvoiceService, useMemberController, useMemberRepo, useOrderController, useOrderRepo, useOrgController, useOrgRepo, useOrgService, usePaymentController, usePaymentMethodController, usePaymentMethodRepo, usePaymentMethodService, usePaymentModel, usePaymentRepo, usePaypalService, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, usePropertyController, usePropertyRepo, useRoleController, useRoleRepo, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useTokenRepo, useUserController, useUserRepo, useUserService, useUtilController, useVerificationController, useVerificationRepo, useVerificationService, useXenditService, validateCardPayment, validateDirectDebit, validateEWalletPayment };
|