@react-pakistan/util-functions 1.25.90 → 2.0.2
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 -266
- package/edu-pilot-pro/types/academics.js +1 -9
- package/edu-pilot-pro/types/admission.d.ts +803 -10
- package/edu-pilot-pro/types/admission.js +1 -7
- package/edu-pilot-pro/types/communication.d.ts +2 -165
- package/edu-pilot-pro/types/communication.js +1 -8
- package/edu-pilot-pro/types/enums.d.ts +30 -28
- package/edu-pilot-pro/types/enums.js +1 -445
- package/edu-pilot-pro/types/finance.d.ts +2 -128
- package/edu-pilot-pro/types/finance.js +1 -8
- package/edu-pilot-pro/types/index.d.ts +2 -12
- package/edu-pilot-pro/types/index.js +1 -28
- package/edu-pilot-pro/types/user-management.d.ts +2 -236
- package/edu-pilot-pro/types/user-management.js +1 -8
- 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 +21 -19
- package/{api/stellar-solutions → stellar-solution}/types/common.d.ts +4 -2
- package/stellar-solution/types/common.js +1 -0
- package/{api/stellar-solutions → stellar-solution}/types/erp.d.ts +36 -33
- package/stellar-solution/types/erp.js +1 -0
- package/stellar-solution/types/index.d.ts +3 -0
- package/stellar-solution/types/index.js +1 -0
- package/{api/stellar-solutions → stellar-solution}/types/pos.d.ts +27 -24
- package/stellar-solution/types/pos.js +1 -0
- 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.js +0 -22
- 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.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
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
50
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
51
|
-
if (ar || !(i in from)) {
|
|
52
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
53
|
-
ar[i] = from[i];
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
57
|
-
};
|
|
58
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
|
-
exports.deleteTax = exports.updateTax = exports.unitTaxById = exports.listTax = void 0;
|
|
60
|
-
var multi_part_search_1 = require("../../../general/multi-part-search");
|
|
61
|
-
/**
|
|
62
|
-
* Retrieves a paginated list of taxes
|
|
63
|
-
* @param {ListTaxArgs} args - Object containing prisma client, pagination, filtering, and ordering options
|
|
64
|
-
* @returns {Promise<[number, Array<TaxBE>]>} Tuple containing total count and array of taxes
|
|
65
|
-
*/
|
|
66
|
-
var listTax = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
67
|
-
var include, orderBy, idSearchQuery, taxNameSearchQuery, where, _c, count, items;
|
|
68
|
-
var _d;
|
|
69
|
-
var _e = _b.currentPage, currentPage = _e === void 0 ? 1 : _e, _f = _b.includePreference, includePreference = _f === void 0 ? false : _f, _g = _b.orderByColumn, orderByColumn = _g === void 0 ? 'createdAt' : _g, _h = _b.orderByDirection, orderByDirection = _h === void 0 ? 'desc' : _h, _j = _b.pageLimit, pageLimit = _j === void 0 ? Number(process.env.NEXT_PUBLIC_PAGE_LIMIT_TAX) : _j, prisma = _b.prisma, _k = _b.searchQuery, searchQuery = _k === void 0 ? '' : _k;
|
|
70
|
-
return __generator(this, function (_l) {
|
|
71
|
-
switch (_l.label) {
|
|
72
|
-
case 0:
|
|
73
|
-
if (!currentPage || currentPage < 1) {
|
|
74
|
-
throw new Error('Valid current page is required');
|
|
75
|
-
}
|
|
76
|
-
if (!pageLimit || pageLimit < 1) {
|
|
77
|
-
throw new Error('Valid page limit is required');
|
|
78
|
-
}
|
|
79
|
-
include = {
|
|
80
|
-
preference: includePreference,
|
|
81
|
-
};
|
|
82
|
-
orderBy = (_d = {},
|
|
83
|
-
_d[orderByColumn] = orderByDirection,
|
|
84
|
-
_d);
|
|
85
|
-
idSearchQuery = (0, multi_part_search_1.multiPartSearch)({
|
|
86
|
-
columnName: 'id',
|
|
87
|
-
fullText: searchQuery,
|
|
88
|
-
});
|
|
89
|
-
taxNameSearchQuery = (0, multi_part_search_1.multiPartSearch)({
|
|
90
|
-
columnName: 'taxName',
|
|
91
|
-
fullText: searchQuery,
|
|
92
|
-
});
|
|
93
|
-
where = {
|
|
94
|
-
OR: __spreadArray(__spreadArray([], idSearchQuery, true), taxNameSearchQuery, true),
|
|
95
|
-
};
|
|
96
|
-
return [4 /*yield*/, prisma.$transaction([
|
|
97
|
-
prisma.tax.count({
|
|
98
|
-
where: where,
|
|
99
|
-
}),
|
|
100
|
-
prisma.tax.findMany({
|
|
101
|
-
include: include,
|
|
102
|
-
orderBy: orderBy,
|
|
103
|
-
skip: (currentPage - 1) * pageLimit,
|
|
104
|
-
take: pageLimit,
|
|
105
|
-
where: where,
|
|
106
|
-
}),
|
|
107
|
-
])];
|
|
108
|
-
case 1:
|
|
109
|
-
_c = _l.sent(), count = _c[0], items = _c[1];
|
|
110
|
-
return [2 /*return*/, [count, items]];
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
}); };
|
|
114
|
-
exports.listTax = listTax;
|
|
115
|
-
/**
|
|
116
|
-
* Retrieves a single tax by its ID
|
|
117
|
-
* @param {UnitTaxByIdArgs} args - Object containing prisma client, tax ID, and optional query parameters
|
|
118
|
-
* @returns {Promise<TaxBE | null>} Tax or null if not found
|
|
119
|
-
*/
|
|
120
|
-
var unitTaxById = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
121
|
-
var include, where, tax;
|
|
122
|
-
var id = _b.id, _c = _b.includePreference, includePreference = _c === void 0 ? false : _c, prisma = _b.prisma;
|
|
123
|
-
return __generator(this, function (_d) {
|
|
124
|
-
switch (_d.label) {
|
|
125
|
-
case 0:
|
|
126
|
-
if (!id) {
|
|
127
|
-
throw new Error('Tax ID is required');
|
|
128
|
-
}
|
|
129
|
-
include = {
|
|
130
|
-
preference: includePreference,
|
|
131
|
-
};
|
|
132
|
-
where = {
|
|
133
|
-
id: id,
|
|
134
|
-
};
|
|
135
|
-
return [4 /*yield*/, prisma.tax.findUnique({
|
|
136
|
-
include: include,
|
|
137
|
-
where: where,
|
|
138
|
-
})];
|
|
139
|
-
case 1:
|
|
140
|
-
tax = _d.sent();
|
|
141
|
-
return [2 /*return*/, tax];
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
}); };
|
|
145
|
-
exports.unitTaxById = unitTaxById;
|
|
146
|
-
/**
|
|
147
|
-
* Creates or updates a tax
|
|
148
|
-
* @param {UpdateTaxArgs} args - Object containing prisma client, tax data, and optional query parameters
|
|
149
|
-
* @returns {Promise<TaxBE>} Created or updated tax
|
|
150
|
-
*/
|
|
151
|
-
var updateTax = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
152
|
-
var taxData, where, tax;
|
|
153
|
-
var description = _b.description, enabled = _b.enabled, id = _b.id, isDefault = _b.isDefault, preferenceId = _b.preferenceId, prisma = _b.prisma, taxName = _b.taxName, taxRate = _b.taxRate;
|
|
154
|
-
return __generator(this, function (_c) {
|
|
155
|
-
switch (_c.label) {
|
|
156
|
-
case 0:
|
|
157
|
-
if (!id) {
|
|
158
|
-
throw new Error('Tax ID is required');
|
|
159
|
-
}
|
|
160
|
-
if (!preferenceId) {
|
|
161
|
-
throw new Error('Preference ID is required');
|
|
162
|
-
}
|
|
163
|
-
if (!taxName) {
|
|
164
|
-
throw new Error('Tax name is required');
|
|
165
|
-
}
|
|
166
|
-
if (!taxRate) {
|
|
167
|
-
throw new Error('Tax rate is required');
|
|
168
|
-
}
|
|
169
|
-
if (typeof enabled !== 'boolean') {
|
|
170
|
-
throw new Error('Enabled must be a boolean');
|
|
171
|
-
}
|
|
172
|
-
if (typeof isDefault !== 'boolean') {
|
|
173
|
-
throw new Error('Is default must be a boolean');
|
|
174
|
-
}
|
|
175
|
-
taxData = {
|
|
176
|
-
description: description || null,
|
|
177
|
-
enabled: enabled,
|
|
178
|
-
isDefault: isDefault,
|
|
179
|
-
preferenceId: preferenceId,
|
|
180
|
-
taxName: taxName,
|
|
181
|
-
taxRate: taxRate,
|
|
182
|
-
};
|
|
183
|
-
where = {
|
|
184
|
-
id: id,
|
|
185
|
-
};
|
|
186
|
-
return [4 /*yield*/, prisma.tax.upsert({
|
|
187
|
-
create: __assign({ id: id }, taxData),
|
|
188
|
-
update: taxData,
|
|
189
|
-
where: where,
|
|
190
|
-
})];
|
|
191
|
-
case 1:
|
|
192
|
-
tax = _c.sent();
|
|
193
|
-
return [2 /*return*/, tax];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
}); };
|
|
197
|
-
exports.updateTax = updateTax;
|
|
198
|
-
/**
|
|
199
|
-
* Deletes a tax by ID
|
|
200
|
-
* @param {DeleteTaxArgs} args - Object containing prisma client, tax ID, and optional query parameters
|
|
201
|
-
* @returns {Promise<TaxBE>} Deleted tax
|
|
202
|
-
*/
|
|
203
|
-
var deleteTax = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
204
|
-
var where, tax;
|
|
205
|
-
var id = _b.id, prisma = _b.prisma;
|
|
206
|
-
return __generator(this, function (_c) {
|
|
207
|
-
switch (_c.label) {
|
|
208
|
-
case 0:
|
|
209
|
-
if (!id) {
|
|
210
|
-
throw new Error('Tax ID is required');
|
|
211
|
-
}
|
|
212
|
-
where = {
|
|
213
|
-
id: id,
|
|
214
|
-
};
|
|
215
|
-
return [4 /*yield*/, prisma.tax.delete({
|
|
216
|
-
where: where,
|
|
217
|
-
})];
|
|
218
|
-
case 1:
|
|
219
|
-
tax = _c.sent();
|
|
220
|
-
return [2 /*return*/, tax];
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
}); };
|
|
224
|
-
exports.deleteTax = deleteTax;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ============================================================================
|
|
3
|
-
// ENUMS
|
|
4
|
-
// ============================================================================
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LS_KEYS = void 0;
|
|
7
|
-
var LS_KEYS;
|
|
8
|
-
(function (LS_KEYS) {
|
|
9
|
-
LS_KEYS["BANKS"] = "stellar_banks_cache";
|
|
10
|
-
LS_KEYS["BRANCHES"] = "stellar_branches_cache";
|
|
11
|
-
LS_KEYS["COMPANIES"] = "stellar_companies_cache";
|
|
12
|
-
LS_KEYS["CONTACTS"] = "stellar_contacts_cache";
|
|
13
|
-
LS_KEYS["CURRENCIES"] = "stellar_currencies_cache";
|
|
14
|
-
LS_KEYS["CUSTOMERS"] = "stellar_customers_cache";
|
|
15
|
-
LS_KEYS["EXPENSE_CATEGORIES"] = "stellar_expense_categories_cache";
|
|
16
|
-
LS_KEYS["EXPENSES"] = "stellar_expenses_cache";
|
|
17
|
-
LS_KEYS["PAYMENT_MODES"] = "stellar_payment_modes_cache";
|
|
18
|
-
LS_KEYS["PREFERENCES"] = "stellar_preferences_cache";
|
|
19
|
-
LS_KEYS["PRODUCT_CATEGORIES"] = "stellar_product_categories_cache";
|
|
20
|
-
LS_KEYS["PRODUCTS"] = "stellar_products_cache";
|
|
21
|
-
LS_KEYS["TAXES"] = "stellar_taxes_cache";
|
|
22
|
-
})(LS_KEYS || (exports.LS_KEYS = LS_KEYS = {}));
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LEAD_STATUS = exports.LEAD_TYPE = exports.LEAD_SOURCE = exports.PAYMENT_TYPE = exports.QUOTE_STATUS = exports.INVOICE_STATUS = exports.DISCOUNT_UNIT = exports.QUOTE_INVOICE_MODE = exports.QUOTE_INVOICE_CATEGORY = exports.GENDER = void 0;
|
|
4
|
-
// ============================================================================
|
|
5
|
-
// ERP ENUMS
|
|
6
|
-
// ============================================================================
|
|
7
|
-
var GENDER;
|
|
8
|
-
(function (GENDER) {
|
|
9
|
-
GENDER["MALE"] = "MALE";
|
|
10
|
-
GENDER["FEMALE"] = "FEMALE";
|
|
11
|
-
})(GENDER || (exports.GENDER = GENDER = {}));
|
|
12
|
-
var QUOTE_INVOICE_CATEGORY;
|
|
13
|
-
(function (QUOTE_INVOICE_CATEGORY) {
|
|
14
|
-
QUOTE_INVOICE_CATEGORY["QUOTE"] = "QUOTE";
|
|
15
|
-
QUOTE_INVOICE_CATEGORY["INVOICE"] = "INVOICE";
|
|
16
|
-
})(QUOTE_INVOICE_CATEGORY || (exports.QUOTE_INVOICE_CATEGORY = QUOTE_INVOICE_CATEGORY = {}));
|
|
17
|
-
var QUOTE_INVOICE_MODE;
|
|
18
|
-
(function (QUOTE_INVOICE_MODE) {
|
|
19
|
-
QUOTE_INVOICE_MODE["COMPANY"] = "COMPANY";
|
|
20
|
-
QUOTE_INVOICE_MODE["CUSTOMER"] = "CUSTOMER";
|
|
21
|
-
})(QUOTE_INVOICE_MODE || (exports.QUOTE_INVOICE_MODE = QUOTE_INVOICE_MODE = {}));
|
|
22
|
-
var DISCOUNT_UNIT;
|
|
23
|
-
(function (DISCOUNT_UNIT) {
|
|
24
|
-
DISCOUNT_UNIT["FIXED_VALUE"] = "FIXED_VALUE";
|
|
25
|
-
DISCOUNT_UNIT["PERCENTAGE_VALUE"] = "PERCENTAGE_VALUE";
|
|
26
|
-
})(DISCOUNT_UNIT || (exports.DISCOUNT_UNIT = DISCOUNT_UNIT = {}));
|
|
27
|
-
var INVOICE_STATUS;
|
|
28
|
-
(function (INVOICE_STATUS) {
|
|
29
|
-
INVOICE_STATUS["UNPAID"] = "UNPAID";
|
|
30
|
-
INVOICE_STATUS["PAID"] = "PAID";
|
|
31
|
-
})(INVOICE_STATUS || (exports.INVOICE_STATUS = INVOICE_STATUS = {}));
|
|
32
|
-
var QUOTE_STATUS;
|
|
33
|
-
(function (QUOTE_STATUS) {
|
|
34
|
-
QUOTE_STATUS["DRAFT"] = "DRAFT";
|
|
35
|
-
QUOTE_STATUS["PENDING"] = "PENDING";
|
|
36
|
-
QUOTE_STATUS["SENT"] = "SENT";
|
|
37
|
-
QUOTE_STATUS["ACCEPTED"] = "ACCEPTED";
|
|
38
|
-
QUOTE_STATUS["DECLINED"] = "DECLINED";
|
|
39
|
-
})(QUOTE_STATUS || (exports.QUOTE_STATUS = QUOTE_STATUS = {}));
|
|
40
|
-
var PAYMENT_TYPE;
|
|
41
|
-
(function (PAYMENT_TYPE) {
|
|
42
|
-
PAYMENT_TYPE["FULL_AMOUNT"] = "FULL_AMOUNT";
|
|
43
|
-
PAYMENT_TYPE["PARTIAL_AMOUNT"] = "PARTIAL_AMOUNT";
|
|
44
|
-
})(PAYMENT_TYPE || (exports.PAYMENT_TYPE = PAYMENT_TYPE = {}));
|
|
45
|
-
var LEAD_SOURCE;
|
|
46
|
-
(function (LEAD_SOURCE) {
|
|
47
|
-
LEAD_SOURCE["WEBSITE"] = "WEBSITE";
|
|
48
|
-
LEAD_SOURCE["SOCIAL_MEDIA"] = "SOCIAL_MEDIA";
|
|
49
|
-
LEAD_SOURCE["LINKEDIN"] = "LINKEDIN";
|
|
50
|
-
LEAD_SOURCE["PROFESSIONAL_NETWORK"] = "PROFESSIONAL_NETWORK";
|
|
51
|
-
LEAD_SOURCE["CUSTOMER_REFERRAL"] = "CUSTOMER_REFERRAL";
|
|
52
|
-
LEAD_SOURCE["SALES"] = "SALES";
|
|
53
|
-
LEAD_SOURCE["ADVERTISING"] = "ADVERTISING";
|
|
54
|
-
LEAD_SOURCE["FRIEND"] = "FRIEND";
|
|
55
|
-
LEAD_SOURCE["OTHER"] = "OTHER";
|
|
56
|
-
})(LEAD_SOURCE || (exports.LEAD_SOURCE = LEAD_SOURCE = {}));
|
|
57
|
-
var LEAD_TYPE;
|
|
58
|
-
(function (LEAD_TYPE) {
|
|
59
|
-
LEAD_TYPE["COMPANY"] = "COMPANY";
|
|
60
|
-
LEAD_TYPE["CONTACT"] = "CONTACT";
|
|
61
|
-
})(LEAD_TYPE || (exports.LEAD_TYPE = LEAD_TYPE = {}));
|
|
62
|
-
var LEAD_STATUS;
|
|
63
|
-
(function (LEAD_STATUS) {
|
|
64
|
-
LEAD_STATUS["NEW"] = "NEW";
|
|
65
|
-
LEAD_STATUS["ASSIGNED"] = "ASSIGNED";
|
|
66
|
-
LEAD_STATUS["IN_NEGOTIATION"] = "IN_NEGOTIATION";
|
|
67
|
-
LEAD_STATUS["ON_HOLD"] = "ON_HOLD";
|
|
68
|
-
LEAD_STATUS["WON"] = "WON";
|
|
69
|
-
LEAD_STATUS["LOOSE"] = "LOOSE";
|
|
70
|
-
LEAD_STATUS["CANCELLED"] = "CANCELLED";
|
|
71
|
-
LEAD_STATUS["DRAFT"] = "DRAFT";
|
|
72
|
-
LEAD_STATUS["WAITING"] = "WAITING";
|
|
73
|
-
})(LEAD_STATUS || (exports.LEAD_STATUS = LEAD_STATUS = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./common"), exports);
|
|
18
|
-
__exportStar(require("./erp"), exports);
|
|
19
|
-
__exportStar(require("./pos"), exports);
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.POS_DISCOUNT_TYPE = exports.POS_SHIFT_STATUS = exports.POS_RESERVATION_STATUS = exports.POS_TABLE_STATUS = exports.POS_TAX_TYPE = exports.POS_REGISTER_STATUS = exports.POS_PAYMENT_METHOD_TYPE = exports.POS_PAYMENT_STATUS = exports.POS_ORDER_STATUS = void 0;
|
|
4
|
-
// ============================================================================
|
|
5
|
-
// POS ENUMS
|
|
6
|
-
// ============================================================================
|
|
7
|
-
var POS_ORDER_STATUS;
|
|
8
|
-
(function (POS_ORDER_STATUS) {
|
|
9
|
-
POS_ORDER_STATUS["OPEN"] = "OPEN";
|
|
10
|
-
POS_ORDER_STATUS["CLOSED"] = "CLOSED";
|
|
11
|
-
POS_ORDER_STATUS["CANCELLED"] = "CANCELLED";
|
|
12
|
-
POS_ORDER_STATUS["REFUNDED"] = "REFUNDED";
|
|
13
|
-
})(POS_ORDER_STATUS || (exports.POS_ORDER_STATUS = POS_ORDER_STATUS = {}));
|
|
14
|
-
var POS_PAYMENT_STATUS;
|
|
15
|
-
(function (POS_PAYMENT_STATUS) {
|
|
16
|
-
POS_PAYMENT_STATUS["PENDING"] = "PENDING";
|
|
17
|
-
POS_PAYMENT_STATUS["PAID"] = "PAID";
|
|
18
|
-
POS_PAYMENT_STATUS["FAILED"] = "FAILED";
|
|
19
|
-
POS_PAYMENT_STATUS["REFUNDED"] = "REFUNDED";
|
|
20
|
-
})(POS_PAYMENT_STATUS || (exports.POS_PAYMENT_STATUS = POS_PAYMENT_STATUS = {}));
|
|
21
|
-
var POS_PAYMENT_METHOD_TYPE;
|
|
22
|
-
(function (POS_PAYMENT_METHOD_TYPE) {
|
|
23
|
-
POS_PAYMENT_METHOD_TYPE["CASH"] = "CASH";
|
|
24
|
-
POS_PAYMENT_METHOD_TYPE["CARD"] = "CARD";
|
|
25
|
-
POS_PAYMENT_METHOD_TYPE["GIFT_CARD"] = "GIFT_CARD";
|
|
26
|
-
POS_PAYMENT_METHOD_TYPE["MOBILE_WALLET"] = "MOBILE_WALLET";
|
|
27
|
-
POS_PAYMENT_METHOD_TYPE["OTHER"] = "OTHER";
|
|
28
|
-
})(POS_PAYMENT_METHOD_TYPE || (exports.POS_PAYMENT_METHOD_TYPE = POS_PAYMENT_METHOD_TYPE = {}));
|
|
29
|
-
var POS_REGISTER_STATUS;
|
|
30
|
-
(function (POS_REGISTER_STATUS) {
|
|
31
|
-
POS_REGISTER_STATUS["ACTIVE"] = "ACTIVE";
|
|
32
|
-
POS_REGISTER_STATUS["INACTIVE"] = "INACTIVE";
|
|
33
|
-
})(POS_REGISTER_STATUS || (exports.POS_REGISTER_STATUS = POS_REGISTER_STATUS = {}));
|
|
34
|
-
var POS_TAX_TYPE;
|
|
35
|
-
(function (POS_TAX_TYPE) {
|
|
36
|
-
POS_TAX_TYPE["EXCLUSIVE"] = "EXCLUSIVE";
|
|
37
|
-
POS_TAX_TYPE["INCLUSIVE"] = "INCLUSIVE";
|
|
38
|
-
})(POS_TAX_TYPE || (exports.POS_TAX_TYPE = POS_TAX_TYPE = {}));
|
|
39
|
-
var POS_TABLE_STATUS;
|
|
40
|
-
(function (POS_TABLE_STATUS) {
|
|
41
|
-
POS_TABLE_STATUS["AVAILABLE"] = "AVAILABLE";
|
|
42
|
-
POS_TABLE_STATUS["OCCUPIED"] = "OCCUPIED";
|
|
43
|
-
POS_TABLE_STATUS["RESERVED"] = "RESERVED";
|
|
44
|
-
})(POS_TABLE_STATUS || (exports.POS_TABLE_STATUS = POS_TABLE_STATUS = {}));
|
|
45
|
-
var POS_RESERVATION_STATUS;
|
|
46
|
-
(function (POS_RESERVATION_STATUS) {
|
|
47
|
-
POS_RESERVATION_STATUS["PENDING"] = "PENDING";
|
|
48
|
-
POS_RESERVATION_STATUS["CONFIRMED"] = "CONFIRMED";
|
|
49
|
-
POS_RESERVATION_STATUS["CANCELLED"] = "CANCELLED";
|
|
50
|
-
POS_RESERVATION_STATUS["COMPLETED"] = "COMPLETED";
|
|
51
|
-
})(POS_RESERVATION_STATUS || (exports.POS_RESERVATION_STATUS = POS_RESERVATION_STATUS = {}));
|
|
52
|
-
var POS_SHIFT_STATUS;
|
|
53
|
-
(function (POS_SHIFT_STATUS) {
|
|
54
|
-
POS_SHIFT_STATUS["OPEN"] = "OPEN";
|
|
55
|
-
POS_SHIFT_STATUS["CLOSED"] = "CLOSED";
|
|
56
|
-
})(POS_SHIFT_STATUS || (exports.POS_SHIFT_STATUS = POS_SHIFT_STATUS = {}));
|
|
57
|
-
var POS_DISCOUNT_TYPE;
|
|
58
|
-
(function (POS_DISCOUNT_TYPE) {
|
|
59
|
-
POS_DISCOUNT_TYPE["FIXED"] = "FIXED";
|
|
60
|
-
POS_DISCOUNT_TYPE["PERCENTAGE"] = "PERCENTAGE";
|
|
61
|
-
})(POS_DISCOUNT_TYPE || (exports.POS_DISCOUNT_TYPE = POS_DISCOUNT_TYPE = {}));
|
package/constants/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './api-methods';
|
|
2
|
-
export * from './cache-time';
|
|
3
|
-
export * from './countries-timezones';
|
|
4
|
-
export * from './currencies';
|
|
5
|
-
export * from './dial-codes';
|
|
6
|
-
export * from './layout-direction';
|
|
7
|
-
export * from './react-pakistan-meta';
|
|
8
|
-
export * from './react-pakistan';
|
|
9
|
-
export * from './select-value-delimiter';
|
|
10
|
-
export * from './social-media-colors';
|
|
11
|
-
export * from './social-media-sizes';
|
|
12
|
-
export * from './user-roles';
|
package/constants/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./api-methods"), exports);
|
|
18
|
-
__exportStar(require("./cache-time"), exports);
|
|
19
|
-
__exportStar(require("./countries-timezones"), exports);
|
|
20
|
-
__exportStar(require("./currencies"), exports);
|
|
21
|
-
__exportStar(require("./dial-codes"), exports);
|
|
22
|
-
__exportStar(require("./layout-direction"), exports);
|
|
23
|
-
__exportStar(require("./react-pakistan-meta"), exports);
|
|
24
|
-
__exportStar(require("./react-pakistan"), exports);
|
|
25
|
-
__exportStar(require("./select-value-delimiter"), exports);
|
|
26
|
-
__exportStar(require("./social-media-colors"), exports);
|
|
27
|
-
__exportStar(require("./social-media-sizes"), exports);
|
|
28
|
-
__exportStar(require("./user-roles"), exports);
|
package/factory/index.d.ts
DELETED
package/factory/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./generic-component-factory"), exports);
|
|
18
|
-
__exportStar(require("./generic-module-factory"), exports);
|
package/general/index.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
export * from './basic-get';
|
|
2
|
-
export * from './basic-post';
|
|
3
|
-
export * from './calculate-pages';
|
|
4
|
-
export * from './camel-to-sentence-case';
|
|
5
|
-
export * from './check-even-odd-length';
|
|
6
|
-
export * from './countries';
|
|
7
|
-
export * from './delete-image-from-private-supabase';
|
|
8
|
-
export * from './delete-image-from-public-supabase';
|
|
9
|
-
export * from './download-from-url';
|
|
10
|
-
export * from './dynamic-page-limit';
|
|
11
|
-
export * from './enum-to-text';
|
|
12
|
-
export * from './fetch-data';
|
|
13
|
-
export * from './fetch-supabase-image';
|
|
14
|
-
export * from './fetch-supabase-private-assets';
|
|
15
|
-
export * from './format-date';
|
|
16
|
-
export * from './format-number';
|
|
17
|
-
export * from './format-pricing';
|
|
18
|
-
export * from './format-secs';
|
|
19
|
-
export * from './format-time';
|
|
20
|
-
export * from './full-month-range';
|
|
21
|
-
export * from './full-year-range';
|
|
22
|
-
export * from './generate-article-schema';
|
|
23
|
-
export * from './generate-blog-schema';
|
|
24
|
-
export * from './generate-book-schema';
|
|
25
|
-
export * from './generate-breadcrumb-schema';
|
|
26
|
-
export * from './generate-carousel-schema';
|
|
27
|
-
export * from './generate-course-schema';
|
|
28
|
-
export * from './generate-dataset-schema';
|
|
29
|
-
export * from './generate-discussion-forum-schema';
|
|
30
|
-
export * from './generate-education-schema';
|
|
31
|
-
export * from './generate-employer-aggregate-rating-schema';
|
|
32
|
-
export * from './generate-event-schema';
|
|
33
|
-
export * from './generate-faq-schema';
|
|
34
|
-
export * from './generate-grid';
|
|
35
|
-
export * from './generate-image-metadata-schema';
|
|
36
|
-
export * from './generate-job-posting-schema';
|
|
37
|
-
export * from './generate-local-business-schema';
|
|
38
|
-
export * from './generate-math-solver-schema';
|
|
39
|
-
export * from './generate-movie-carousel-schema';
|
|
40
|
-
export * from './generate-organization-schema';
|
|
41
|
-
export * from './generate-profile-page-schema';
|
|
42
|
-
export * from './generate-qa-page-schema';
|
|
43
|
-
export * from './generate-recipe-schema';
|
|
44
|
-
export * from './generate-ref';
|
|
45
|
-
export * from './generate-review-snippet-schema';
|
|
46
|
-
export * from './generate-shopping-loyalty-program-schema';
|
|
47
|
-
export * from './generate-shopping-merchant-listing-schema';
|
|
48
|
-
export * from './generate-shopping-merchant-return-policy-schema';
|
|
49
|
-
export * from './generate-shopping-merchant-shipping-policy-schema';
|
|
50
|
-
export * from './generate-shopping-overview-schema';
|
|
51
|
-
export * from './generate-shopping-product-snippet-schema';
|
|
52
|
-
export * from './generate-shopping-variants-schema';
|
|
53
|
-
export * from './generate-software-app-schema';
|
|
54
|
-
export * from './generate-speakable-schema';
|
|
55
|
-
export * from './generate-subscription-schema';
|
|
56
|
-
export * from './generate-vacation-rental-schema';
|
|
57
|
-
export * from './generate-video-schema';
|
|
58
|
-
export * from './generic-cache';
|
|
59
|
-
export * from './get-available-page-limit';
|
|
60
|
-
export * from './get-current-year';
|
|
61
|
-
export * from './get-day-name';
|
|
62
|
-
export * from './get-dial-code';
|
|
63
|
-
export * from './get-full-name';
|
|
64
|
-
export * from './get-href';
|
|
65
|
-
export * from './get-month-name';
|
|
66
|
-
export * from './get-month-number';
|
|
67
|
-
export * from './get-pathname';
|
|
68
|
-
export * from './image-url-to-base64';
|
|
69
|
-
export * from './is-created-or-updated';
|
|
70
|
-
export * from './is-next-button-disabled';
|
|
71
|
-
export * from './is-odd';
|
|
72
|
-
export * from './is-previous-button-disabled';
|
|
73
|
-
export * from './linear-gradients';
|
|
74
|
-
export * from './multi-part-search';
|
|
75
|
-
export * from './parse-frontmatter';
|
|
76
|
-
export * from './remove-data-image-prefix';
|
|
77
|
-
export * from './repeat-times';
|
|
78
|
-
export * from './resolve-anchor-link';
|
|
79
|
-
export * from './resolve-current-date';
|
|
80
|
-
export * from './resolve-grid';
|
|
81
|
-
export * from './resolve-initials';
|
|
82
|
-
export * from './slugify';
|
|
83
|
-
export * from './text-to-enum';
|
|
84
|
-
export * from './time-out';
|
|
85
|
-
export * from './truncate-text';
|
|
86
|
-
export * from './type';
|
|
87
|
-
export * from './upload-blob-to-private-supabase';
|
|
88
|
-
export * from './upload-blob-to-public-supabase';
|
|
89
|
-
export * from './upload-image-to-private-supabase';
|
|
90
|
-
export * from './upload-image-to-public-supabase';
|
|
91
|
-
export * from './url-to-sentence-case';
|
|
92
|
-
export * from './validate-comment';
|
|
93
|
-
export * from './validate-email';
|
|
94
|
-
export * from './validate-form';
|
|
95
|
-
export * from './validate-name';
|