@react-pakistan/util-functions 1.25.89 → 2.0.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.
- package/README.md +74 -315
- package/constants/api-methods.d.ts +3 -1
- package/constants/api-methods.js +1 -15
- package/constants/cache-time.d.ts +7 -5
- package/constants/cache-time.js +1 -8
- package/constants/countries-timezones.d.ts +4 -2
- package/constants/countries-timezones.js +1 -1411
- package/constants/currencies.d.ts +4 -2
- package/constants/currencies.js +1 -1076
- package/constants/dial-codes.d.ts +5 -3
- package/constants/dial-codes.js +1 -1216
- package/constants/layout-direction.d.ts +3 -1
- package/constants/layout-direction.js +1 -8
- package/constants/react-pakistan-meta.d.ts +4 -2
- package/constants/react-pakistan-meta.js +1 -35
- package/constants/react-pakistan.d.ts +5 -3
- package/constants/react-pakistan.js +12 -104
- package/constants/select-value-delimiter.d.ts +3 -1
- package/constants/select-value-delimiter.js +1 -13
- package/constants/social-media-colors.d.ts +3 -1
- package/constants/social-media-colors.js +1 -42
- package/constants/social-media-sizes.d.ts +6 -4
- package/constants/social-media-sizes.js +1 -327
- package/constants/user-roles.d.ts +3 -1
- package/constants/user-roles.js +1 -9
- package/edu-pilot-pro/types/academics.d.ts +2 -0
- package/edu-pilot-pro/types/academics.js +1 -0
- package/edu-pilot-pro/types/admission.d.ts +878 -0
- package/edu-pilot-pro/types/admission.js +1 -0
- package/edu-pilot-pro/types/communication.d.ts +2 -0
- package/edu-pilot-pro/types/communication.js +1 -0
- package/edu-pilot-pro/types/enums.d.ts +413 -0
- package/edu-pilot-pro/types/enums.js +1 -0
- package/edu-pilot-pro/types/finance.d.ts +2 -0
- package/edu-pilot-pro/types/finance.js +1 -0
- package/edu-pilot-pro/types/index.d.ts +2 -0
- package/edu-pilot-pro/types/index.js +1 -0
- package/edu-pilot-pro/types/user-management.d.ts +2 -0
- package/edu-pilot-pro/types/user-management.js +1 -0
- package/factory/generic-component-factory.d.ts +12 -9
- package/factory/generic-component-factory.js +1 -131
- package/factory/generic-module-factory.d.ts +14 -10
- package/factory/generic-module-factory.js +1 -190
- package/general/basic-get.d.ts +8 -1
- package/general/basic-get.js +1 -83
- package/general/basic-post.d.ts +8 -1
- package/general/basic-post.js +1 -70
- package/general/calculate-pages.d.ts +9 -1
- package/general/calculate-pages.js +1 -7
- package/general/camel-to-sentence-case.d.ts +3 -1
- package/general/camel-to-sentence-case.js +1 -20
- package/general/check-even-odd-length.d.ts +3 -1
- package/general/check-even-odd-length.js +1 -17
- package/general/clear-cache.d.ts +7 -2
- package/general/clear-cache.js +1 -12
- package/general/cnic-formatter.d.ts +16 -3
- package/general/cnic-formatter.js +1 -53
- package/general/convert-url-to-base64.d.ts +8 -6
- package/general/convert-url-to-base64.js +1 -231
- package/general/countries.d.ts +5 -3
- package/general/countries.js +1 -514
- package/general/create-date.d.ts +3 -1
- package/general/create-date.js +1 -22
- package/general/crypto.d.ts +4 -2
- package/general/crypto.js +1 -45
- package/general/currencies.d.ts +2 -0
- package/general/currencies.js +0 -1077
- package/general/delete-image-from-private-supabase.d.ts +10 -2
- package/general/delete-image-from-private-supabase.js +1 -66
- package/general/delete-image-from-public-supabase.d.ts +10 -2
- package/general/delete-image-from-public-supabase.js +1 -66
- package/general/download-from-url.d.ts +8 -1
- package/general/download-from-url.js +1 -82
- package/general/dynamic-page-limit.d.ts +9 -3
- package/general/dynamic-page-limit.js +1 -7
- package/general/enum-to-text.d.ts +8 -1
- package/general/enum-to-text.js +1 -11
- package/general/fetch-data.d.ts +16 -4
- package/general/fetch-data.js +1 -95
- package/general/fetch-supabase-image.d.ts +11 -2
- package/general/fetch-supabase-image.js +1 -67
- package/general/fetch-supabase-private-assets.d.ts +11 -2
- package/general/fetch-supabase-private-assets.js +1 -69
- package/general/format-date.d.ts +10 -2
- package/general/format-date.js +1 -49
- package/general/format-number.d.ts +12 -2
- package/general/format-number.js +1 -35
- package/general/format-phone-display.d.ts +9 -1
- package/general/format-phone-display.js +1 -32
- package/general/format-phone.d.ts +10 -2
- package/general/format-phone.js +1 -20
- package/general/format-pricing.d.ts +8 -1
- package/general/format-pricing.js +1 -23
- package/general/format-secs.d.ts +8 -1
- package/general/format-secs.js +1 -21
- package/general/format-time.d.ts +8 -2
- package/general/format-time.js +1 -38
- package/general/format-value.d.ts +8 -1
- package/general/format-value.js +1 -7
- package/general/full-month-range.d.ts +3 -2
- package/general/full-month-range.js +1 -24
- package/general/full-year-range.d.ts +3 -2
- package/general/full-year-range.js +1 -20
- package/general/generate-article-schema.d.ts +3 -2
- package/general/generate-article-schema.js +1 -100
- package/general/generate-blog-schema.d.ts +3 -2
- package/general/generate-blog-schema.js +1 -32
- package/general/generate-book-schema.d.ts +3 -2
- package/general/generate-book-schema.js +1 -109
- package/general/generate-breadcrumb-schema.d.ts +3 -2
- package/general/generate-breadcrumb-schema.js +1 -34
- package/general/generate-carousel-schema.d.ts +3 -2
- package/general/generate-carousel-schema.js +1 -172
- package/general/generate-course-schema.d.ts +3 -2
- package/general/generate-course-schema.js +1 -124
- package/general/generate-dataset-schema.d.ts +3 -2
- package/general/generate-dataset-schema.js +1 -156
- package/general/generate-discussion-forum-schema.d.ts +3 -2
- package/general/generate-discussion-forum-schema.js +1 -67
- package/general/generate-education-schema.d.ts +3 -2
- package/general/generate-education-schema.js +1 -137
- package/general/generate-employer-aggregate-rating-schema.d.ts +3 -2
- package/general/generate-employer-aggregate-rating-schema.js +1 -64
- package/general/generate-event-schema.d.ts +3 -2
- package/general/generate-event-schema.js +1 -214
- package/general/generate-faq-schema.d.ts +3 -2
- package/general/generate-faq-schema.js +1 -43
- package/general/generate-grid.d.ts +3 -2
- package/general/generate-grid.js +1 -55
- package/general/generate-image-metadata-schema.d.ts +3 -2
- package/general/generate-image-metadata-schema.js +1 -73
- package/general/generate-job-posting-schema.d.ts +3 -2
- package/general/generate-job-posting-schema.js +1 -120
- package/general/generate-local-business-schema.d.ts +3 -2
- package/general/generate-local-business-schema.js +1 -75
- package/general/generate-math-solver-schema.d.ts +3 -2
- package/general/generate-math-solver-schema.js +1 -83
- package/general/generate-movie-carousel-schema.d.ts +3 -2
- package/general/generate-movie-carousel-schema.js +1 -160
- package/general/generate-organization-schema.d.ts +3 -2
- package/general/generate-organization-schema.js +1 -39
- package/general/generate-profile-page-schema.d.ts +3 -2
- package/general/generate-profile-page-schema.js +1 -82
- package/general/generate-qa-page-schema.d.ts +3 -2
- package/general/generate-qa-page-schema.js +1 -67
- package/general/generate-recipe-schema.d.ts +3 -2
- package/general/generate-recipe-schema.js +1 -104
- package/general/generate-ref.d.ts +8 -2
- package/general/generate-ref.js +1 -12
- package/general/generate-review-snippet-schema.d.ts +3 -2
- package/general/generate-review-snippet-schema.js +1 -137
- package/general/generate-shopping-loyalty-program-schema.d.ts +3 -2
- package/general/generate-shopping-loyalty-program-schema.js +1 -59
- package/general/generate-shopping-merchant-listing-schema.d.ts +3 -2
- package/general/generate-shopping-merchant-listing-schema.js +1 -153
- package/general/generate-shopping-merchant-return-policy-schema.d.ts +3 -2
- package/general/generate-shopping-merchant-return-policy-schema.js +1 -68
- package/general/generate-shopping-merchant-shipping-policy-schema.d.ts +3 -2
- package/general/generate-shopping-merchant-shipping-policy-schema.js +1 -74
- package/general/generate-shopping-overview-schema.d.ts +3 -2
- package/general/generate-shopping-overview-schema.js +1 -157
- package/general/generate-shopping-product-snippet-schema.d.ts +3 -2
- package/general/generate-shopping-product-snippet-schema.js +1 -167
- package/general/generate-shopping-variants-schema.d.ts +3 -2
- package/general/generate-shopping-variants-schema.js +1 -143
- package/general/generate-software-app-schema.d.ts +3 -2
- package/general/generate-software-app-schema.js +1 -143
- package/general/generate-speakable-schema.d.ts +3 -2
- package/general/generate-speakable-schema.js +1 -139
- package/general/generate-subscription-schema.d.ts +3 -2
- package/general/generate-subscription-schema.js +1 -133
- package/general/generate-vacation-rental-schema.d.ts +3 -2
- package/general/generate-vacation-rental-schema.js +1 -135
- package/general/generate-video-schema.d.ts +3 -2
- package/general/generate-video-schema.js +1 -163
- package/general/generic-cache.d.ts +17 -15
- package/general/generic-cache.js +1 -659
- package/general/get-available-page-limit.d.ts +8 -2
- package/general/get-available-page-limit.js +1 -31
- package/general/get-calendar-current-month.d.ts +11 -3
- package/general/get-calendar-current-month.js +1 -31
- package/general/get-calendar-dates.d.ts +11 -3
- package/general/get-calendar-dates.js +1 -42
- package/general/get-calendar-next-month.d.ts +12 -3
- package/general/get-calendar-next-month.js +1 -32
- package/general/get-calendar-previous-month.d.ts +12 -3
- package/general/get-calendar-previous-month.js +1 -36
- package/general/get-current-year.d.ts +7 -1
- package/general/get-current-year.js +1 -5
- package/general/get-day-name.d.ts +5 -3
- package/general/get-day-name.js +1 -14
- package/general/get-dial-code.d.ts +8 -1
- package/general/get-dial-code.js +1 -8
- package/general/get-full-name.d.ts +9 -2
- package/general/get-full-name.js +1 -8
- package/general/get-href.d.ts +3 -1
- package/general/get-href.js +1 -13
- package/general/get-month-name.d.ts +5 -3
- package/general/get-month-name.js +1 -19
- package/general/get-month-number.d.ts +5 -3
- package/general/get-month-number.js +1 -29
- package/general/get-number-of-days-in-month.d.ts +9 -2
- package/general/get-number-of-days-in-month.js +1 -12
- package/general/get-pathname.d.ts +3 -1
- package/general/get-pathname.js +1 -16
- package/general/get-week-day.d.ts +8 -1
- package/general/get-week-day.js +1 -9
- package/general/image-url-to-base64.d.ts +3 -1
- package/general/image-url-to-base64.js +1 -80
- package/general/is-created-or-updated.d.ts +3 -1
- package/general/is-created-or-updated.js +1 -26
- package/general/is-next-button-disabled.d.ts +9 -1
- package/general/is-next-button-disabled.js +1 -5
- package/general/is-odd.d.ts +3 -1
- package/general/is-odd.js +1 -13
- package/general/is-previous-button-disabled.d.ts +8 -1
- package/general/is-previous-button-disabled.js +1 -7
- package/general/linear-gradients.d.ts +4 -2
- package/general/linear-gradients.js +1 -52
- package/general/multi-part-search.d.ts +10 -2
- package/general/multi-part-search.js +1 -16
- package/general/normalize-phone.d.ts +15 -2
- package/general/normalize-phone.js +1 -40
- package/general/parse-frontmatter.d.ts +11 -4
- package/general/parse-frontmatter.js +2 -35
- package/general/remove-data-image-prefix.d.ts +8 -1
- package/general/remove-data-image-prefix.js +1 -7
- package/general/repeat-times.d.ts +3 -1
- package/general/repeat-times.js +1 -21
- package/general/resolve-anchor-link.d.ts +3 -1
- package/general/resolve-anchor-link.js +1 -26
- package/general/resolve-current-date.d.ts +3 -1
- package/general/resolve-current-date.js +1 -22
- package/general/resolve-grid.d.ts +3 -1
- package/general/resolve-grid.js +1 -18
- package/general/resolve-initials.d.ts +3 -1
- package/general/resolve-initials.js +1 -17
- package/general/set-timezone.d.ts +11 -1
- package/general/set-timezone.js +1 -12
- package/general/slugify.d.ts +3 -1
- package/general/slugify.js +1 -24
- package/general/text-to-enum.d.ts +8 -1
- package/general/text-to-enum.js +1 -10
- package/general/text-to-sentence-case.d.ts +3 -1
- package/general/text-to-sentence-case.js +1 -16
- package/general/time-out.d.ts +3 -1
- package/general/time-out.js +1 -16
- package/general/time-zones.d.ts +3 -1
- package/general/time-zones.js +1 -437
- package/general/truncate-text.d.ts +3 -1
- package/general/truncate-text.js +1 -18
- package/general/type.d.ts +3 -1
- package/general/type.js +1 -2
- package/general/upload-blob-to-private-supabase.d.ts +14 -2
- package/general/upload-blob-to-private-supabase.js +1 -62
- package/general/upload-blob-to-public-supabase.d.ts +14 -2
- package/general/upload-blob-to-public-supabase.js +1 -62
- package/general/upload-image-to-private-supabase.d.ts +15 -3
- package/general/upload-image-to-private-supabase.js +1 -66
- package/general/upload-image-to-public-supabase.d.ts +15 -3
- package/general/upload-image-to-public-supabase.js +1 -66
- package/general/url-to-sentence-case.d.ts +3 -1
- package/general/url-to-sentence-case.js +1 -19
- package/general/validate-comment.d.ts +3 -1
- package/general/validate-comment.js +1 -21
- package/general/validate-email.d.ts +3 -1
- package/general/validate-email.js +1 -24
- package/general/validate-form.d.ts +12 -3
- package/general/validate-form.js +1 -29
- package/general/validate-name.d.ts +3 -1
- package/general/validate-name.js +1 -21
- package/hooks/use-change.d.ts +11 -2
- package/hooks/use-change.js +1 -23
- package/hooks/use-debounce.d.ts +10 -1
- package/hooks/use-debounce.js +1 -14
- package/hooks/use-fetch.d.ts +7 -5
- package/hooks/use-fetch.js +1 -239
- package/hooks/use-force-render.d.ts +6 -2
- package/hooks/use-force-render.js +1 -17
- package/hooks/use-ip-geo-location.d.ts +8 -1
- package/hooks/use-ip-geo-location.js +1 -79
- package/hooks/use-is-mobile.d.ts +8 -1
- package/hooks/use-is-mobile.js +1 -22
- package/hooks/use-module-entity-v2.d.ts +7 -4
- package/hooks/use-module-entity-v2.js +1 -188
- package/hooks/use-module-entity.d.ts +7 -4
- package/hooks/use-module-entity.js +1 -177
- package/hooks/use-phone-formatter.d.ts +10 -2
- package/hooks/use-phone-formatter.js +1 -23
- package/hooks/use-position.d.ts +6 -3
- package/hooks/use-position.js +1 -43
- package/hooks/use-rtl.d.ts +4 -2
- package/hooks/use-rtl.js +1 -84
- package/hooks/use-sticky.d.ts +3 -1
- package/hooks/use-sticky.js +1 -39
- package/hooks/use-toggle-state.d.ts +3 -2
- package/hooks/use-toggle-state.js +1 -26
- package/hooks/use-window-event-listener.d.ts +9 -1
- package/hooks/use-window-event-listener.js +1 -11
- package/hooks/with-seo.d.ts +11 -2
- package/hooks/with-seo.js +1 -37
- package/local-storage/get-storage-value.d.ts +5 -2
- package/local-storage/get-storage-value.js +1 -20
- package/local-storage/remove-storage-value.d.ts +3 -1
- package/local-storage/remove-storage-value.js +1 -14
- package/local-storage/set-storage-value.d.ts +3 -1
- package/local-storage/set-storage-value.js +1 -14
- package/local-storage/type.d.ts +3 -1
- package/local-storage/type.js +1 -2
- package/npm.d.d.ts +2 -0
- package/npm.d.js +0 -0
- package/package.json +20 -18
- package/storybook/generate-sitemap.d.ts +3 -1
- package/storybook/generate-sitemap.js +17 -26
- package/storybook/preview.d.ts +4 -2
- package/storybook/preview.js +1 -62
- package/storybook/react-design-story-script.d.ts +3 -1
- package/storybook/react-design-story-script.js +5 -27
- package/storybook/react-emoji-collection.d.ts +3 -1
- package/storybook/react-emoji-collection.js +10 -55
- package/storybook/react-emoji-story-script.d.ts +3 -1
- package/storybook/react-emoji-story-script.js +5 -31
- package/storybook/react-emoji-story-template.d.ts +3 -1
- package/storybook/react-emoji-story-template.js +45 -15
- package/storybook/react-icon-collection.d.ts +3 -1
- package/storybook/react-icon-collection.js +10 -42
- package/storybook/react-icon-story-script.d.ts +3 -1
- package/storybook/react-icon-story-script.js +5 -27
- package/storybook/react-icon-story-template.d.ts +3 -1
- package/storybook/react-icon-story-template.js +45 -14
- package/storybook/react-logo-collection.d.ts +3 -1
- package/storybook/react-logo-collection.js +10 -42
- package/storybook/react-logo-story-script.d.ts +3 -1
- package/storybook/react-logo-story-script.js +5 -27
- package/storybook/react-logo-story-template.d.ts +3 -1
- package/storybook/react-logo-story-template.js +45 -14
- package/storybook/react-pakistan-theme.d.ts +3 -1
- package/storybook/react-pakistan-theme.js +1 -31
- package/storybook/responsive-args.d.ts +11 -10
- package/storybook/responsive-args.js +1 -19
- package/storybook/responsive-component.d.ts +4 -2
- package/storybook/responsive-component.js +37 -23
- package/storybook/responsive-screens.d.ts +3 -1
- package/storybook/responsive-screens.js +1 -109
- package/storybook/theme.d.ts +17 -15
- package/storybook/theme.js +1 -1022
- package/api/stellar-solutions/app-user/index.d.ts +0 -51
- package/api/stellar-solutions/app-user/index.js +0 -210
- package/api/stellar-solutions/bank/index.d.ts +0 -59
- package/api/stellar-solutions/bank/index.js +0 -210
- package/api/stellar-solutions/branch/index.d.ts +0 -58
- package/api/stellar-solutions/branch/index.js +0 -220
- package/api/stellar-solutions/company/index.d.ts +0 -57
- package/api/stellar-solutions/company/index.js +0 -218
- package/api/stellar-solutions/company-report/index.d.ts +0 -15
- package/api/stellar-solutions/company-report/index.js +0 -74
- package/api/stellar-solutions/constants.d.ts +0 -19
- package/api/stellar-solutions/constants.js +0 -22
- package/api/stellar-solutions/contact/index.d.ts +0 -56
- package/api/stellar-solutions/contact/index.js +0 -217
- package/api/stellar-solutions/currency/index.d.ts +0 -55
- package/api/stellar-solutions/currency/index.js +0 -212
- package/api/stellar-solutions/customer/index.d.ts +0 -68
- package/api/stellar-solutions/customer/index.js +0 -249
- package/api/stellar-solutions/expense/index.d.ts +0 -58
- package/api/stellar-solutions/expense/index.js +0 -229
- package/api/stellar-solutions/expense-category/index.d.ts +0 -53
- package/api/stellar-solutions/expense-category/index.js +0 -214
- package/api/stellar-solutions/lead/index.d.ts +0 -51
- package/api/stellar-solutions/lead/index.js +0 -206
- package/api/stellar-solutions/menu-order/index.d.ts +0 -53
- package/api/stellar-solutions/menu-order/index.js +0 -202
- package/api/stellar-solutions/payment/index.d.ts +0 -65
- package/api/stellar-solutions/payment/index.js +0 -230
- package/api/stellar-solutions/payment-mode/index.d.ts +0 -53
- package/api/stellar-solutions/payment-mode/index.js +0 -191
- package/api/stellar-solutions/preference/index.d.ts +0 -25
- package/api/stellar-solutions/preference/index.js +0 -114
- package/api/stellar-solutions/product/index.d.ts +0 -64
- package/api/stellar-solutions/product/index.js +0 -235
- package/api/stellar-solutions/product-category/index.d.ts +0 -51
- package/api/stellar-solutions/product-category/index.js +0 -212
- package/api/stellar-solutions/profile/index.d.ts +0 -78
- package/api/stellar-solutions/profile/index.js +0 -234
- package/api/stellar-solutions/quote-invoice/index.d.ts +0 -97
- package/api/stellar-solutions/quote-invoice/index.js +0 -369
- package/api/stellar-solutions/quote-invoice-report/index.d.ts +0 -15
- package/api/stellar-solutions/quote-invoice-report/index.js +0 -74
- package/api/stellar-solutions/tax/index.d.ts +0 -55
- package/api/stellar-solutions/tax/index.js +0 -224
- package/api/stellar-solutions/types/common.d.ts +0 -24
- package/api/stellar-solutions/types/common.js +0 -22
- package/api/stellar-solutions/types/erp.d.ts +0 -302
- package/api/stellar-solutions/types/erp.js +0 -73
- package/api/stellar-solutions/types/index.d.ts +0 -3
- package/api/stellar-solutions/types/index.js +0 -19
- package/api/stellar-solutions/types/pos.d.ts +0 -176
- package/api/stellar-solutions/types/pos.js +0 -61
- package/constants/index.d.ts +0 -12
- package/constants/index.js +0 -28
- package/factory/index.d.ts +0 -2
- package/factory/index.js +0 -18
- package/general/index.d.ts +0 -95
- package/general/index.js +0 -111
- package/index.d.ts +0 -28
- package/index.js +0 -44
- package/local-storage/index.d.ts +0 -4
- package/local-storage/index.js +0 -20
- package/setupTests.d.ts +0 -1
- package/setupTests.js +0 -52
- package/storybook/index.d.ts +0 -17
- package/storybook/index.js +0 -33
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var g=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of a(t))!l.call(e,s)&&s!==n&&r(e,s,{get:()=>t[s],enumerable:!(i=o(t,s))||i.enumerable});return e};var d=e=>g(r({},"__esModule",{value:!0}),e);var m={};module.exports=d(m);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var g=(n,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of l(t))!a.call(n,e)&&e!==o&&s(n,e,{get:()=>t[e],enumerable:!(r=i(t,e))||r.enumerable});return n};var d=n=>g(s({},"__esModule",{value:!0}),n);var u={};module.exports=d(u);
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript Enums Generated from Prisma Schema
|
|
3
|
+
*
|
|
4
|
+
* This file contains TypeScript enums for all database enums
|
|
5
|
+
* following the naming convention SCREAMING_SNAKE_CASE (e.g., USER_ROLE).
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* User roles across the multi-tenant system
|
|
9
|
+
*/
|
|
10
|
+
declare enum USER_ROLE {
|
|
11
|
+
SUPER_ADMIN = "SUPER_ADMIN",
|
|
12
|
+
SCHOOL_ADMIN = "SCHOOL_ADMIN",
|
|
13
|
+
TEACHER = "TEACHER",
|
|
14
|
+
STUDENT = "STUDENT",
|
|
15
|
+
PARENT = "PARENT",
|
|
16
|
+
STAFF = "STAFF"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Student enrollment status
|
|
20
|
+
*/
|
|
21
|
+
declare enum STUDENT_STATUS {
|
|
22
|
+
ACTIVE = "ACTIVE",
|
|
23
|
+
INACTIVE = "INACTIVE",
|
|
24
|
+
GRADUATED = "GRADUATED",
|
|
25
|
+
TRANSFERRED = "TRANSFERRED",
|
|
26
|
+
DROPPED = "DROPPED"
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Family member roles within a household
|
|
30
|
+
*/
|
|
31
|
+
declare enum FAMILY_MEMBER_ROLE {
|
|
32
|
+
FATHER = "FATHER",
|
|
33
|
+
MOTHER = "MOTHER",
|
|
34
|
+
GUARDIAN = "GUARDIAN",
|
|
35
|
+
STUDENT = "STUDENT"
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Gender options
|
|
39
|
+
*/
|
|
40
|
+
declare enum GENDER {
|
|
41
|
+
MALE = "MALE",
|
|
42
|
+
FEMALE = "FEMALE",
|
|
43
|
+
OTHER = "OTHER",
|
|
44
|
+
PREFER_NOT_TO_SAY = "PREFER_NOT_TO_SAY"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Day of the week for scheduling
|
|
48
|
+
*/
|
|
49
|
+
declare enum DAY_OF_WEEK {
|
|
50
|
+
MONDAY = "MONDAY",
|
|
51
|
+
TUESDAY = "TUESDAY",
|
|
52
|
+
WEDNESDAY = "WEDNESDAY",
|
|
53
|
+
THURSDAY = "THURSDAY",
|
|
54
|
+
FRIDAY = "FRIDAY",
|
|
55
|
+
SATURDAY = "SATURDAY",
|
|
56
|
+
SUNDAY = "SUNDAY"
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Attendance status
|
|
60
|
+
*/
|
|
61
|
+
declare enum ATTENDANCE_STATUS {
|
|
62
|
+
PRESENT = "PRESENT",
|
|
63
|
+
ABSENT = "ABSENT",
|
|
64
|
+
LATE = "LATE",
|
|
65
|
+
EXCUSED = "EXCUSED",
|
|
66
|
+
HALF_DAY = "HALF_DAY"
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Grade type for assessments
|
|
70
|
+
*/
|
|
71
|
+
declare enum GRADE_TYPE {
|
|
72
|
+
EXAM = "EXAM",
|
|
73
|
+
QUIZ = "QUIZ",
|
|
74
|
+
ASSIGNMENT = "ASSIGNMENT",
|
|
75
|
+
PARTICIPATION = "PARTICIPATION",
|
|
76
|
+
PRACTICAL = "PRACTICAL",
|
|
77
|
+
PROJECT = "PROJECT"
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Fee type categories
|
|
81
|
+
*/
|
|
82
|
+
declare enum FEE_TYPE {
|
|
83
|
+
TUITION = "TUITION",
|
|
84
|
+
ADMISSION = "ADMISSION",
|
|
85
|
+
EXAM = "EXAM",
|
|
86
|
+
LIBRARY = "LIBRARY",
|
|
87
|
+
LABORATORY = "LABORATORY",
|
|
88
|
+
TRANSPORT = "TRANSPORT",
|
|
89
|
+
SPORTS = "SPORTS",
|
|
90
|
+
MISCELLANEOUS = "MISCELLANEOUS",
|
|
91
|
+
LATE = "LATE"
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Discount type for fee reductions
|
|
95
|
+
*/
|
|
96
|
+
declare enum DISCOUNT_TYPE {
|
|
97
|
+
PERCENTAGE = "PERCENTAGE",
|
|
98
|
+
FIXED = "FIXED"
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Payment status
|
|
102
|
+
*/
|
|
103
|
+
declare enum PAYMENT_STATUS {
|
|
104
|
+
PENDING = "PENDING",
|
|
105
|
+
PARTIAL = "PARTIAL",
|
|
106
|
+
PAID = "PAID",
|
|
107
|
+
OVERDUE = "OVERDUE",
|
|
108
|
+
CANCELLED = "CANCELLED",
|
|
109
|
+
REFUNDED = "REFUNDED"
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Payment method
|
|
113
|
+
*/
|
|
114
|
+
declare enum PAYMENT_METHOD {
|
|
115
|
+
CASH = "CASH",
|
|
116
|
+
BANK_TRANSFER = "BANK_TRANSFER",
|
|
117
|
+
CREDIT_CARD = "CREDIT_CARD",
|
|
118
|
+
DEBIT_CARD = "DEBIT_CARD",
|
|
119
|
+
CHEQUE = "CHEQUE",
|
|
120
|
+
ONLINE = "ONLINE",
|
|
121
|
+
MOBILE_WALLET = "MOBILE_WALLET"
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Expense category types
|
|
125
|
+
*/
|
|
126
|
+
declare enum EXPENSE_CATEGORY {
|
|
127
|
+
SALARY = "SALARY",
|
|
128
|
+
UTILITIES = "UTILITIES",
|
|
129
|
+
MAINTENANCE = "MAINTENANCE",
|
|
130
|
+
SUPPLIES = "SUPPLIES",
|
|
131
|
+
TRANSPORT = "TRANSPORT",
|
|
132
|
+
MARKETING = "MARKETING",
|
|
133
|
+
INSURANCE = "INSURANCE",
|
|
134
|
+
RENT = "RENT",
|
|
135
|
+
TECHNOLOGY = "TECHNOLOGY",
|
|
136
|
+
PROFESSIONAL = "PROFESSIONAL",
|
|
137
|
+
TRAINING = "TRAINING",
|
|
138
|
+
EVENTS = "EVENTS",
|
|
139
|
+
FOOD = "FOOD",
|
|
140
|
+
MISCELLANEOUS = "MISCELLANEOUS"
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Expense payment status
|
|
144
|
+
*/
|
|
145
|
+
declare enum EXPENSE_STATUS {
|
|
146
|
+
PENDING = "PENDING",
|
|
147
|
+
APPROVED = "APPROVED",
|
|
148
|
+
PAID = "PAID",
|
|
149
|
+
REJECTED = "REJECTED",
|
|
150
|
+
CANCELLED = "CANCELLED"
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Currency options (ISO 4217 codes)
|
|
154
|
+
*/
|
|
155
|
+
declare enum CURRENCY {
|
|
156
|
+
AED = "AED",
|
|
157
|
+
AFN = "AFN",
|
|
158
|
+
ALL = "ALL",
|
|
159
|
+
AMD = "AMD",
|
|
160
|
+
ANG = "ANG",
|
|
161
|
+
AOA = "AOA",
|
|
162
|
+
ARS = "ARS",
|
|
163
|
+
AUD = "AUD",
|
|
164
|
+
AWG = "AWG",
|
|
165
|
+
AZN = "AZN",
|
|
166
|
+
BAM = "BAM",
|
|
167
|
+
BBD = "BBD",
|
|
168
|
+
BDT = "BDT",
|
|
169
|
+
BGN = "BGN",
|
|
170
|
+
BHD = "BHD",
|
|
171
|
+
BIF = "BIF",
|
|
172
|
+
BMD = "BMD",
|
|
173
|
+
BND = "BND",
|
|
174
|
+
BOB = "BOB",
|
|
175
|
+
BRL = "BRL",
|
|
176
|
+
BSD = "BSD",
|
|
177
|
+
BTN = "BTN",
|
|
178
|
+
BWP = "BWP",
|
|
179
|
+
BYN = "BYN",
|
|
180
|
+
BZD = "BZD",
|
|
181
|
+
CAD = "CAD",
|
|
182
|
+
CDF = "CDF",
|
|
183
|
+
CHF = "CHF",
|
|
184
|
+
CLP = "CLP",
|
|
185
|
+
CNY = "CNY",
|
|
186
|
+
COP = "COP",
|
|
187
|
+
CRC = "CRC",
|
|
188
|
+
CVE = "CVE",
|
|
189
|
+
CZK = "CZK",
|
|
190
|
+
DJF = "DJF",
|
|
191
|
+
DKK = "DKK",
|
|
192
|
+
DOP = "DOP",
|
|
193
|
+
DZD = "DZD",
|
|
194
|
+
EGP = "EGP",
|
|
195
|
+
ERN = "ERN",
|
|
196
|
+
ETB = "ETB",
|
|
197
|
+
EUR = "EUR",
|
|
198
|
+
FJD = "FJD",
|
|
199
|
+
FKP = "FKP",
|
|
200
|
+
GBP = "GBP",
|
|
201
|
+
GEL = "GEL",
|
|
202
|
+
GHS = "GHS",
|
|
203
|
+
GIP = "GIP",
|
|
204
|
+
GMD = "GMD",
|
|
205
|
+
GNF = "GNF",
|
|
206
|
+
GTQ = "GTQ",
|
|
207
|
+
GYD = "GYD",
|
|
208
|
+
HKD = "HKD",
|
|
209
|
+
HNL = "HNL",
|
|
210
|
+
HTG = "HTG",
|
|
211
|
+
HUF = "HUF",
|
|
212
|
+
IDR = "IDR",
|
|
213
|
+
ILS = "ILS",
|
|
214
|
+
INR = "INR",
|
|
215
|
+
IQD = "IQD",
|
|
216
|
+
IRR = "IRR",
|
|
217
|
+
ISK = "ISK",
|
|
218
|
+
JMD = "JMD",
|
|
219
|
+
JOD = "JOD",
|
|
220
|
+
JPY = "JPY",
|
|
221
|
+
KES = "KES",
|
|
222
|
+
KGS = "KGS",
|
|
223
|
+
KHR = "KHR",
|
|
224
|
+
KMF = "KMF",
|
|
225
|
+
KPW = "KPW",
|
|
226
|
+
KRW = "KRW",
|
|
227
|
+
KWD = "KWD",
|
|
228
|
+
KYD = "KYD",
|
|
229
|
+
KZT = "KZT",
|
|
230
|
+
LAK = "LAK",
|
|
231
|
+
LBP = "LBP",
|
|
232
|
+
LKR = "LKR",
|
|
233
|
+
LSL = "LSL",
|
|
234
|
+
LYD = "LYD",
|
|
235
|
+
MAD = "MAD",
|
|
236
|
+
MDL = "MDL",
|
|
237
|
+
MGA = "MGA",
|
|
238
|
+
MKD = "MKD",
|
|
239
|
+
MMK = "MMK",
|
|
240
|
+
MNT = "MNT",
|
|
241
|
+
MOP = "MOP",
|
|
242
|
+
MRU = "MRU",
|
|
243
|
+
MUR = "MUR",
|
|
244
|
+
MWK = "MWK",
|
|
245
|
+
MXN = "MXN",
|
|
246
|
+
MYR = "MYR",
|
|
247
|
+
MZN = "MZN",
|
|
248
|
+
NAD = "NAD",
|
|
249
|
+
NGN = "NGN",
|
|
250
|
+
NIO = "NIO",
|
|
251
|
+
NOK = "NOK",
|
|
252
|
+
NPR = "NPR",
|
|
253
|
+
NZD = "NZD",
|
|
254
|
+
OMR = "OMR",
|
|
255
|
+
PAB = "PAB",
|
|
256
|
+
PEN = "PEN",
|
|
257
|
+
PGK = "PGK",
|
|
258
|
+
PHP = "PHP",
|
|
259
|
+
PKR = "PKR",
|
|
260
|
+
PLN = "PLN",
|
|
261
|
+
PYG = "PYG",
|
|
262
|
+
QAR = "QAR",
|
|
263
|
+
RON = "RON",
|
|
264
|
+
RSD = "RSD",
|
|
265
|
+
RUB = "RUB",
|
|
266
|
+
RWF = "RWF",
|
|
267
|
+
SAR = "SAR",
|
|
268
|
+
SBD = "SBD",
|
|
269
|
+
SCR = "SCR",
|
|
270
|
+
SDG = "SDG",
|
|
271
|
+
SEK = "SEK",
|
|
272
|
+
SGD = "SGD",
|
|
273
|
+
SHP = "SHP",
|
|
274
|
+
SLL = "SLL",
|
|
275
|
+
SOS = "SOS",
|
|
276
|
+
SRD = "SRD",
|
|
277
|
+
SYP = "SYP",
|
|
278
|
+
SZL = "SZL",
|
|
279
|
+
THB = "THB",
|
|
280
|
+
TJS = "TJS",
|
|
281
|
+
TMT = "TMT",
|
|
282
|
+
TND = "TND",
|
|
283
|
+
TOP = "TOP",
|
|
284
|
+
TRY = "TRY",
|
|
285
|
+
TTD = "TTD",
|
|
286
|
+
TWD = "TWD",
|
|
287
|
+
TZS = "TZS",
|
|
288
|
+
UAH = "UAH",
|
|
289
|
+
UGX = "UGX",
|
|
290
|
+
USD = "USD",
|
|
291
|
+
UYU = "UYU",
|
|
292
|
+
UZS = "UZS",
|
|
293
|
+
VES = "VES",
|
|
294
|
+
VND = "VND",
|
|
295
|
+
VUV = "VUV",
|
|
296
|
+
WST = "WST",
|
|
297
|
+
XAF = "XAF",
|
|
298
|
+
XCD = "XCD",
|
|
299
|
+
XOF = "XOF",
|
|
300
|
+
XPF = "XPF",
|
|
301
|
+
YER = "YER",
|
|
302
|
+
ZAR = "ZAR",
|
|
303
|
+
ZMW = "ZMW",
|
|
304
|
+
ZWL = "ZWL"
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Access level for module-scoped permission grants
|
|
308
|
+
*/
|
|
309
|
+
declare enum ACCESS_LEVEL {
|
|
310
|
+
READ = "READ",
|
|
311
|
+
READ_WRITE = "READ_WRITE"
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Plan types for subscription tiers
|
|
315
|
+
*/
|
|
316
|
+
declare enum PLAN_TYPE {
|
|
317
|
+
BASIC = "BASIC",
|
|
318
|
+
PRO = "PRO",
|
|
319
|
+
ENTERPRISE = "ENTERPRISE"
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Billing interval used for charging (monthly or yearly)
|
|
323
|
+
*/
|
|
324
|
+
declare enum BILLING_INTERVAL {
|
|
325
|
+
MONTHLY = "MONTHLY",
|
|
326
|
+
YEARLY = "YEARLY"
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Admission status for student applications
|
|
330
|
+
*/
|
|
331
|
+
declare enum ADMISSION_STATUS {
|
|
332
|
+
PENDING = "PENDING",
|
|
333
|
+
APPROVED = "APPROVED",
|
|
334
|
+
REJECTED = "REJECTED",
|
|
335
|
+
ENROLLED = "ENROLLED",
|
|
336
|
+
CANCELLED = "CANCELLED"
|
|
337
|
+
}
|
|
338
|
+
declare enum FEE_RISK_LEVEL {
|
|
339
|
+
LOW = "LOW",
|
|
340
|
+
MEDIUM = "MEDIUM",
|
|
341
|
+
HIGH = "HIGH"
|
|
342
|
+
}
|
|
343
|
+
declare enum FEE_AGENT_ACTION_TYPE {
|
|
344
|
+
ANALYSIS = "ANALYSIS",
|
|
345
|
+
MESSAGE = "MESSAGE",
|
|
346
|
+
FOLLOW_UP = "FOLLOW_UP",
|
|
347
|
+
RESPONSE = "RESPONSE"
|
|
348
|
+
}
|
|
349
|
+
declare enum FEE_CONVERSATION_SENDER {
|
|
350
|
+
AGENT = "AGENT",
|
|
351
|
+
PARENT = "PARENT"
|
|
352
|
+
}
|
|
353
|
+
declare enum FEE_CONVERSATION_INTENT {
|
|
354
|
+
PROMISE = "PROMISE",
|
|
355
|
+
PAID = "PAID",
|
|
356
|
+
DISPUTE = "DISPUTE",
|
|
357
|
+
UNKNOWN = "UNKNOWN"
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Platform of the mobile device registering a push token
|
|
361
|
+
*/
|
|
362
|
+
declare enum DEVICE_PLATFORM {
|
|
363
|
+
IOS = "IOS",
|
|
364
|
+
ANDROID = "ANDROID",
|
|
365
|
+
WEB = "WEB"
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Category of a mobile push notification
|
|
369
|
+
*/
|
|
370
|
+
declare enum NOTIFICATION_TYPE {
|
|
371
|
+
ASSIGNMENT = "ASSIGNMENT",
|
|
372
|
+
ATTENDANCE = "ATTENDANCE",
|
|
373
|
+
PAYMENT = "PAYMENT",
|
|
374
|
+
ALERT = "ALERT",
|
|
375
|
+
GENERAL = "GENERAL"
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* WhatsApp broadcast campaign status
|
|
379
|
+
*/
|
|
380
|
+
declare enum CAMPAIGN_STATUS {
|
|
381
|
+
DRAFT = "DRAFT",
|
|
382
|
+
RUNNING = "RUNNING",
|
|
383
|
+
COMPLETED = "COMPLETED",
|
|
384
|
+
FAILED = "FAILED",
|
|
385
|
+
PAUSED = "PAUSED"
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Delivery status for an individual campaign contact
|
|
389
|
+
*/
|
|
390
|
+
declare enum CAMPAIGN_CONTACT_STATUS {
|
|
391
|
+
PENDING = "PENDING",
|
|
392
|
+
SENT = "SENT",
|
|
393
|
+
FAILED = "FAILED",
|
|
394
|
+
SKIPPED = "SKIPPED"
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Channel through which a referral invite was sent
|
|
398
|
+
*/
|
|
399
|
+
declare enum REFERRAL_CHANNEL {
|
|
400
|
+
EMAIL = "EMAIL",
|
|
401
|
+
WHATSAPP = "WHATSAPP",
|
|
402
|
+
BOTH = "BOTH"
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Status of a school referral invite
|
|
406
|
+
*/
|
|
407
|
+
declare enum REFERRAL_STATUS {
|
|
408
|
+
PENDING = "PENDING",
|
|
409
|
+
SENT = "SENT",
|
|
410
|
+
FAILED = "FAILED"
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export { ACCESS_LEVEL, ADMISSION_STATUS, ATTENDANCE_STATUS, BILLING_INTERVAL, CAMPAIGN_CONTACT_STATUS, CAMPAIGN_STATUS, CURRENCY, DAY_OF_WEEK, DEVICE_PLATFORM, DISCOUNT_TYPE, EXPENSE_CATEGORY, EXPENSE_STATUS, FAMILY_MEMBER_ROLE, FEE_AGENT_ACTION_TYPE, FEE_CONVERSATION_INTENT, FEE_CONVERSATION_SENDER, FEE_RISK_LEVEL, FEE_TYPE, GENDER, GRADE_TYPE, NOTIFICATION_TYPE, PAYMENT_METHOD, PAYMENT_STATUS, PLAN_TYPE, REFERRAL_CHANNEL, REFERRAL_STATUS, STUDENT_STATUS, USER_ROLE };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var O=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var w=Object.prototype.hasOwnProperty;var y=(G,M)=>{for(var B in M)O(G,B,{get:M[B],enumerable:!0})},z=(G,M,B,I)=>{if(M&&typeof M=="object"||typeof M=="function")for(let A of v(M))!w.call(G,A)&&A!==B&&O(G,A,{get:()=>M[A],enumerable:!(I=s(M,A))||I.enumerable});return G};var $=G=>z(O({},"__esModule",{value:!0}),G);var T={};y(T,{ACCESS_LEVEL:()=>V,ADMISSION_STATUS:()=>b,ATTENDANCE_STATUS:()=>p,BILLING_INTERVAL:()=>a,CAMPAIGN_CONTACT_STATUS:()=>k,CAMPAIGN_STATUS:()=>j,CURRENCY:()=>Q,DAY_OF_WEEK:()=>o,DEVICE_PLATFORM:()=>h,DISCOUNT_TYPE:()=>u,EXPENSE_CATEGORY:()=>J,EXPENSE_STATUS:()=>F,FAMILY_MEMBER_ROLE:()=>m,FEE_AGENT_ACTION_TYPE:()=>d,FEE_CONVERSATION_INTENT:()=>g,FEE_CONVERSATION_SENDER:()=>f,FEE_RISK_LEVEL:()=>c,FEE_TYPE:()=>t,GENDER:()=>n,GRADE_TYPE:()=>r,NOTIFICATION_TYPE:()=>i,PAYMENT_METHOD:()=>Z,PAYMENT_STATUS:()=>x,PLAN_TYPE:()=>X,REFERRAL_CHANNEL:()=>l,REFERRAL_STATUS:()=>q,STUDENT_STATUS:()=>W,USER_ROLE:()=>S});module.exports=$(T);var S=(P=>(P.SUPER_ADMIN="SUPER_ADMIN",P.SCHOOL_ADMIN="SCHOOL_ADMIN",P.TEACHER="TEACHER",P.STUDENT="STUDENT",P.PARENT="PARENT",P.STAFF="STAFF",P))(S||{}),W=(L=>(L.ACTIVE="ACTIVE",L.INACTIVE="INACTIVE",L.GRADUATED="GRADUATED",L.TRANSFERRED="TRANSFERRED",L.DROPPED="DROPPED",L))(W||{}),m=(A=>(A.FATHER="FATHER",A.MOTHER="MOTHER",A.GUARDIAN="GUARDIAN",A.STUDENT="STUDENT",A))(m||{}),n=(A=>(A.MALE="MALE",A.FEMALE="FEMALE",A.OTHER="OTHER",A.PREFER_NOT_TO_SAY="PREFER_NOT_TO_SAY",A))(n||{}),o=(e=>(e.MONDAY="MONDAY",e.TUESDAY="TUESDAY",e.WEDNESDAY="WEDNESDAY",e.THURSDAY="THURSDAY",e.FRIDAY="FRIDAY",e.SATURDAY="SATURDAY",e.SUNDAY="SUNDAY",e))(o||{}),p=(L=>(L.PRESENT="PRESENT",L.ABSENT="ABSENT",L.LATE="LATE",L.EXCUSED="EXCUSED",L.HALF_DAY="HALF_DAY",L))(p||{}),r=(P=>(P.EXAM="EXAM",P.QUIZ="QUIZ",P.ASSIGNMENT="ASSIGNMENT",P.PARTICIPATION="PARTICIPATION",P.PRACTICAL="PRACTICAL",P.PROJECT="PROJECT",P))(r||{}),t=(H=>(H.TUITION="TUITION",H.ADMISSION="ADMISSION",H.EXAM="EXAM",H.LIBRARY="LIBRARY",H.LABORATORY="LABORATORY",H.TRANSPORT="TRANSPORT",H.SPORTS="SPORTS",H.MISCELLANEOUS="MISCELLANEOUS",H.LATE="LATE",H))(t||{}),u=(B=>(B.PERCENTAGE="PERCENTAGE",B.FIXED="FIXED",B))(u||{}),x=(P=>(P.PENDING="PENDING",P.PARTIAL="PARTIAL",P.PAID="PAID",P.OVERDUE="OVERDUE",P.CANCELLED="CANCELLED",P.REFUNDED="REFUNDED",P))(x||{}),Z=(e=>(e.CASH="CASH",e.BANK_TRANSFER="BANK_TRANSFER",e.CREDIT_CARD="CREDIT_CARD",e.DEBIT_CARD="DEBIT_CARD",e.CHEQUE="CHEQUE",e.ONLINE="ONLINE",e.MOBILE_WALLET="MOBILE_WALLET",e))(Z||{}),J=(K=>(K.SALARY="SALARY",K.UTILITIES="UTILITIES",K.MAINTENANCE="MAINTENANCE",K.SUPPLIES="SUPPLIES",K.TRANSPORT="TRANSPORT",K.MARKETING="MARKETING",K.INSURANCE="INSURANCE",K.RENT="RENT",K.TECHNOLOGY="TECHNOLOGY",K.PROFESSIONAL="PROFESSIONAL",K.TRAINING="TRAINING",K.EVENTS="EVENTS",K.FOOD="FOOD",K.MISCELLANEOUS="MISCELLANEOUS",K))(J||{}),F=(L=>(L.PENDING="PENDING",L.APPROVED="APPROVED",L.PAID="PAID",L.REJECTED="REJECTED",L.CANCELLED="CANCELLED",L))(F||{}),Q=(D=>(D.AED="AED",D.AFN="AFN",D.ALL="ALL",D.AMD="AMD",D.ANG="ANG",D.AOA="AOA",D.ARS="ARS",D.AUD="AUD",D.AWG="AWG",D.AZN="AZN",D.BAM="BAM",D.BBD="BBD",D.BDT="BDT",D.BGN="BGN",D.BHD="BHD",D.BIF="BIF",D.BMD="BMD",D.BND="BND",D.BOB="BOB",D.BRL="BRL",D.BSD="BSD",D.BTN="BTN",D.BWP="BWP",D.BYN="BYN",D.BZD="BZD",D.CAD="CAD",D.CDF="CDF",D.CHF="CHF",D.CLP="CLP",D.CNY="CNY",D.COP="COP",D.CRC="CRC",D.CVE="CVE",D.CZK="CZK",D.DJF="DJF",D.DKK="DKK",D.DOP="DOP",D.DZD="DZD",D.EGP="EGP",D.ERN="ERN",D.ETB="ETB",D.EUR="EUR",D.FJD="FJD",D.FKP="FKP",D.GBP="GBP",D.GEL="GEL",D.GHS="GHS",D.GIP="GIP",D.GMD="GMD",D.GNF="GNF",D.GTQ="GTQ",D.GYD="GYD",D.HKD="HKD",D.HNL="HNL",D.HTG="HTG",D.HUF="HUF",D.IDR="IDR",D.ILS="ILS",D.INR="INR",D.IQD="IQD",D.IRR="IRR",D.ISK="ISK",D.JMD="JMD",D.JOD="JOD",D.JPY="JPY",D.KES="KES",D.KGS="KGS",D.KHR="KHR",D.KMF="KMF",D.KPW="KPW",D.KRW="KRW",D.KWD="KWD",D.KYD="KYD",D.KZT="KZT",D.LAK="LAK",D.LBP="LBP",D.LKR="LKR",D.LSL="LSL",D.LYD="LYD",D.MAD="MAD",D.MDL="MDL",D.MGA="MGA",D.MKD="MKD",D.MMK="MMK",D.MNT="MNT",D.MOP="MOP",D.MRU="MRU",D.MUR="MUR",D.MWK="MWK",D.MXN="MXN",D.MYR="MYR",D.MZN="MZN",D.NAD="NAD",D.NGN="NGN",D.NIO="NIO",D.NOK="NOK",D.NPR="NPR",D.NZD="NZD",D.OMR="OMR",D.PAB="PAB",D.PEN="PEN",D.PGK="PGK",D.PHP="PHP",D.PKR="PKR",D.PLN="PLN",D.PYG="PYG",D.QAR="QAR",D.RON="RON",D.RSD="RSD",D.RUB="RUB",D.RWF="RWF",D.SAR="SAR",D.SBD="SBD",D.SCR="SCR",D.SDG="SDG",D.SEK="SEK",D.SGD="SGD",D.SHP="SHP",D.SLL="SLL",D.SOS="SOS",D.SRD="SRD",D.SYP="SYP",D.SZL="SZL",D.THB="THB",D.TJS="TJS",D.TMT="TMT",D.TND="TND",D.TOP="TOP",D.TRY="TRY",D.TTD="TTD",D.TWD="TWD",D.TZS="TZS",D.UAH="UAH",D.UGX="UGX",D.USD="USD",D.UYU="UYU",D.UZS="UZS",D.VES="VES",D.VND="VND",D.VUV="VUV",D.WST="WST",D.XAF="XAF",D.XCD="XCD",D.XOF="XOF",D.XPF="XPF",D.YER="YER",D.ZAR="ZAR",D.ZMW="ZMW",D.ZWL="ZWL",D))(Q||{}),V=(B=>(B.READ="READ",B.READ_WRITE="READ_WRITE",B))(V||{}),X=(I=>(I.BASIC="BASIC",I.PRO="PRO",I.ENTERPRISE="ENTERPRISE",I))(X||{}),a=(B=>(B.MONTHLY="MONTHLY",B.YEARLY="YEARLY",B))(a||{}),b=(L=>(L.PENDING="PENDING",L.APPROVED="APPROVED",L.REJECTED="REJECTED",L.ENROLLED="ENROLLED",L.CANCELLED="CANCELLED",L))(b||{}),c=(I=>(I.LOW="LOW",I.MEDIUM="MEDIUM",I.HIGH="HIGH",I))(c||{}),d=(A=>(A.ANALYSIS="ANALYSIS",A.MESSAGE="MESSAGE",A.FOLLOW_UP="FOLLOW_UP",A.RESPONSE="RESPONSE",A))(d||{}),f=(B=>(B.AGENT="AGENT",B.PARENT="PARENT",B))(f||{}),g=(A=>(A.PROMISE="PROMISE",A.PAID="PAID",A.DISPUTE="DISPUTE",A.UNKNOWN="UNKNOWN",A))(g||{}),h=(I=>(I.IOS="IOS",I.ANDROID="ANDROID",I.WEB="WEB",I))(h||{}),i=(L=>(L.ASSIGNMENT="ASSIGNMENT",L.ATTENDANCE="ATTENDANCE",L.PAYMENT="PAYMENT",L.ALERT="ALERT",L.GENERAL="GENERAL",L))(i||{}),j=(L=>(L.DRAFT="DRAFT",L.RUNNING="RUNNING",L.COMPLETED="COMPLETED",L.FAILED="FAILED",L.PAUSED="PAUSED",L))(j||{}),k=(A=>(A.PENDING="PENDING",A.SENT="SENT",A.FAILED="FAILED",A.SKIPPED="SKIPPED",A))(k||{}),l=(I=>(I.EMAIL="EMAIL",I.WHATSAPP="WHATSAPP",I.BOTH="BOTH",I))(l||{}),q=(I=>(I.PENDING="PENDING",I.SENT="SENT",I.FAILED="FAILED",I))(q||{});0&&(module.exports={ACCESS_LEVEL,ADMISSION_STATUS,ATTENDANCE_STATUS,BILLING_INTERVAL,CAMPAIGN_CONTACT_STATUS,CAMPAIGN_STATUS,CURRENCY,DAY_OF_WEEK,DEVICE_PLATFORM,DISCOUNT_TYPE,EXPENSE_CATEGORY,EXPENSE_STATUS,FAMILY_MEMBER_ROLE,FEE_AGENT_ACTION_TYPE,FEE_CONVERSATION_INTENT,FEE_CONVERSATION_SENDER,FEE_RISK_LEVEL,FEE_TYPE,GENDER,GRADE_TYPE,NOTIFICATION_TYPE,PAYMENT_METHOD,PAYMENT_STATUS,PLAN_TYPE,REFERRAL_CHANNEL,REFERRAL_STATUS,STUDENT_STATUS,USER_ROLE});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var a=(e,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of l(t))!E.call(e,n)&&n!==s&&i(e,n,{get:()=>t[n],enumerable:!(r=o(t,n))||r.enumerable});return e};var u=e=>a(i({},"__esModule",{value:!0}),e);var d={};module.exports=u(d);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ACCESS_LEVEL, ADMISSION_STATUS, ATTENDANCE_STATUS, BILLING_INTERVAL, CAMPAIGN_CONTACT_STATUS, CAMPAIGN_STATUS, CURRENCY, DAY_OF_WEEK, DEVICE_PLATFORM, DISCOUNT_TYPE, EXPENSE_CATEGORY, EXPENSE_STATUS, FAMILY_MEMBER_ROLE, FEE_AGENT_ACTION_TYPE, FEE_CONVERSATION_INTENT, FEE_CONVERSATION_SENDER, FEE_RISK_LEVEL, FEE_TYPE, GENDER, GRADE_TYPE, NOTIFICATION_TYPE, PAYMENT_METHOD, PAYMENT_STATUS, PLAN_TYPE, REFERRAL_CHANNEL, REFERRAL_STATUS, STUDENT_STATUS, USER_ROLE } from './enums.js';
|
|
2
|
+
export { AdmissionAIBE, AdmissionBE, AdmissionDetails, A as AttendanceBE, B as BlogCommentBE, c as BlogCommentClapBE, d as BlogPostBE, e as BlogPostClapBE, C as CampaignBE, f as CampaignContactBE, g as CampusBE, o as ClassBE, p as CourseBE, D as DiscountCodeBE, q as EnrollmentBE, E as ExpenseBE, r as FamilyBE, s as FamilyMemberBE, FatherDetails, F as FeeAgentActivityBE, a as FeeConversationBE, b as FeeStructureBE, G as GradeBE, HomeDetails, M as MobileNotificationBE, MotherDetails, N as NotificationPreferenceBE, OfficeUse, P as PermissionBE, h as PlanBE, R as ReferralBE, i as RoleBE, j as RolePermissionBE, t as ScheduleBE, k as SchoolBE, u as SectionBE, StudentDetails, S as StudentFeeBE, v as StudentProfileBE, w as SubjectBE, T as TeacherBE, l as UserBE, U as UserPushTokenBE, W as WorkspaceBE, m as WorkspaceUserBE, n as WorkspaceUserPermissionBE } from './admission.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,e,p,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of c(e))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>e[m],enumerable:!(x=b(e,m))||x.enumerable});return f},r=(f,e,p)=>(t(f,e,"default"),p&&t(p,e,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);r(o,require("./enums"),module.exports);r(o,require("./admission"),module.exports);r(o,require("./user-management"),module.exports);r(o,require("./academics"),module.exports);r(o,require("./finance"),module.exports);r(o,require("./communication"),module.exports);0&&(module.exports={...require("./enums"),...require("./admission"),...require("./user-management"),...require("./academics"),...require("./finance"),...require("./communication")});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(s,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of a(e))!l.call(s,r)&&r!==o&&t(s,r,{get:()=>e[r],enumerable:!(n=i(e,r))||n.enumerable});return s};var u=s=>c(t({},"__esModule",{value:!0}),s);var d={};module.exports=u(d);
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { TableColumn, HeaderAction, COMPONENT_TYPE, RowAction } from '@appcorp/shadcn/components/enhanced-table';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Generic Component Factory
|
|
3
6
|
*
|
|
4
7
|
* Reusable UI components for CRUD modules with customizable configuration.
|
|
5
8
|
* Generates tables, forms, drawers, and other common UI patterns.
|
|
6
9
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const DRAWER_TYPES: {
|
|
10
|
+
|
|
11
|
+
declare const DRAWER_TYPES: {
|
|
10
12
|
FORM_DRAWER: string;
|
|
11
13
|
FILTER_DRAWER: string;
|
|
12
14
|
VIEW_DRAWER: string;
|
|
13
15
|
MORE_ACTIONS_DRAWER: string;
|
|
14
16
|
};
|
|
15
|
-
|
|
17
|
+
interface ComponentConfig {
|
|
16
18
|
cancelLabel?: string;
|
|
17
19
|
drawerDescription?: string;
|
|
18
20
|
drawerFormTitle: string;
|
|
@@ -40,7 +42,7 @@ export interface ComponentConfig {
|
|
|
40
42
|
viewContent: React.ReactNode;
|
|
41
43
|
viewDrawerValue?: string;
|
|
42
44
|
}
|
|
43
|
-
|
|
45
|
+
interface TableBodyCol {
|
|
44
46
|
key?: string | string[];
|
|
45
47
|
componentType: COMPONENT_TYPE | string;
|
|
46
48
|
textFormatter?: (value: unknown, row: unknown) => React.ReactNode;
|
|
@@ -53,7 +55,7 @@ interface GenericTableProps {
|
|
|
53
55
|
rowActions?: any[];
|
|
54
56
|
tableBodyCols: TableBodyCol[];
|
|
55
57
|
}
|
|
56
|
-
|
|
58
|
+
declare const GenericTable: FC<GenericTableProps>;
|
|
57
59
|
interface GenericDrawerProps {
|
|
58
60
|
config: ComponentConfig;
|
|
59
61
|
context: any;
|
|
@@ -62,7 +64,7 @@ interface GenericDrawerProps {
|
|
|
62
64
|
filterContent?: React.ReactNode;
|
|
63
65
|
moreActionsContent?: React.ReactNode;
|
|
64
66
|
}
|
|
65
|
-
|
|
67
|
+
declare const GenericDrawer: FC<GenericDrawerProps>;
|
|
66
68
|
interface GenericModulePageProps {
|
|
67
69
|
context: any;
|
|
68
70
|
headerActions?: HeaderAction[];
|
|
@@ -71,5 +73,6 @@ interface GenericModulePageProps {
|
|
|
71
73
|
rowActions?: RowAction[];
|
|
72
74
|
tableBodyCols: TableBodyCol[];
|
|
73
75
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
declare const createGenericModulePage: () => React.FC<GenericModulePageProps>;
|
|
77
|
+
|
|
78
|
+
export { type ComponentConfig, DRAWER_TYPES, GenericDrawer, GenericTable, type TableBodyCol, createGenericModulePage };
|