@vritti/api-sdk 0.3.2 → 0.3.5
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/dist/auth.cjs +942 -0
- package/dist/auth.cjs.map +1 -0
- package/dist/auth.d.cts +95 -0
- package/dist/auth.d.ts +95 -0
- package/dist/auth.js +884 -0
- package/dist/auth.js.map +1 -0
- package/dist/cache.cjs +182 -14
- package/dist/cache.cjs.map +1 -1
- package/dist/cache.d.cts +48 -4
- package/dist/cache.d.ts +48 -4
- package/dist/cache.js +177 -12
- package/dist/cache.js.map +1 -1
- package/dist/catalog-resolver.cjs +226 -51
- package/dist/catalog-resolver.cjs.map +1 -1
- package/dist/catalog-resolver.d.cts +41 -19
- package/dist/catalog-resolver.d.ts +41 -19
- package/dist/catalog-resolver.js +212 -46
- package/dist/catalog-resolver.js.map +1 -1
- package/dist/code-pattern-BP4zkNtT.d.cts +12 -0
- package/dist/code-pattern-BP4zkNtT.d.ts +12 -0
- package/dist/context.cjs +93 -0
- package/dist/context.cjs.map +1 -0
- package/dist/context.d.cts +19 -0
- package/dist/context.d.ts +19 -0
- package/dist/context.js +64 -0
- package/dist/context.js.map +1 -0
- package/dist/countries.cjs +1559 -0
- package/dist/countries.cjs.map +1 -0
- package/dist/countries.d.cts +13 -0
- package/dist/countries.d.ts +13 -0
- package/dist/countries.js +1532 -0
- package/dist/countries.js.map +1 -0
- package/dist/data-table.cjs +1280 -0
- package/dist/data-table.cjs.map +1 -0
- package/dist/data-table.d.cts +123 -0
- package/dist/data-table.d.ts +123 -0
- package/dist/data-table.js +1260 -0
- package/dist/data-table.js.map +1 -0
- package/dist/database.cjs +1510 -0
- package/dist/database.cjs.map +1 -0
- package/dist/database.d.cts +287 -0
- package/dist/database.d.ts +287 -0
- package/dist/database.js +1469 -0
- package/dist/database.js.map +1 -0
- package/dist/decimal.d.cts +0 -1
- package/dist/decimal.d.ts +0 -1
- package/dist/decorators.cjs +1817 -0
- package/dist/decorators.cjs.map +1 -0
- package/dist/decorators.d.cts +24 -0
- package/dist/decorators.d.ts +24 -0
- package/dist/decorators.js +1780 -0
- package/dist/decorators.js.map +1 -0
- package/dist/document-BoS0NIbf.d.cts +12 -0
- package/dist/document-BoS0NIbf.d.ts +12 -0
- package/dist/drizzle-pg-core.cjs +25 -0
- package/dist/drizzle-pg-core.cjs.map +1 -1
- package/dist/drizzle-pg-core.d.cts +7 -0
- package/dist/drizzle-pg-core.d.ts +7 -0
- package/dist/drizzle-pg-core.js +22 -0
- package/dist/drizzle-pg-core.js.map +1 -1
- package/dist/exceptions.cjs +301 -0
- package/dist/exceptions.cjs.map +1 -0
- package/dist/exceptions.d.cts +90 -0
- package/dist/exceptions.d.ts +90 -0
- package/dist/exceptions.js +257 -0
- package/dist/exceptions.js.map +1 -0
- package/dist/filter.types-PuARU9XD.d.cts +50 -0
- package/dist/filter.types-PuARU9XD.d.ts +50 -0
- package/dist/filters.cjs +407 -0
- package/dist/filters.cjs.map +1 -0
- package/dist/filters.d.cts +55 -0
- package/dist/filters.d.ts +55 -0
- package/dist/filters.js +377 -0
- package/dist/filters.js.map +1 -0
- package/dist/index.cjs +0 -5423
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +93 -854
- package/dist/index.d.ts +93 -854
- package/dist/index.js +0 -5301
- package/dist/index.js.map +1 -1
- package/dist/is-country.decorator-CcNwSSr5.d.cts +5 -0
- package/dist/is-country.decorator-CcNwSSr5.d.ts +5 -0
- package/dist/license.cjs +9 -56
- package/dist/license.cjs.map +1 -1
- package/dist/license.d.cts +3 -14
- package/dist/license.d.ts +3 -14
- package/dist/license.js +8 -51
- package/dist/license.js.map +1 -1
- package/dist/lodash.cjs.map +1 -1
- package/dist/lodash.js.map +1 -1
- package/dist/logger.cjs +862 -0
- package/dist/logger.cjs.map +1 -0
- package/dist/logger.d.cts +118 -0
- package/dist/logger.d.ts +118 -0
- package/dist/logger.js +816 -0
- package/dist/logger.js.map +1 -0
- package/dist/migrate.cjs +2 -2
- package/dist/migrate.cjs.map +1 -1
- package/dist/migrate.d.cts +2 -0
- package/dist/migrate.d.ts +2 -0
- package/dist/migrate.js +2 -2
- package/dist/migrate.js.map +1 -1
- package/dist/money.cjs +18 -3
- package/dist/money.cjs.map +1 -1
- package/dist/money.d.cts +13 -13
- package/dist/money.d.ts +13 -13
- package/dist/money.js +18 -3
- package/dist/money.js.map +1 -1
- package/dist/nats.cjs +34 -35
- package/dist/nats.cjs.map +1 -1
- package/dist/nats.d.cts +14 -14
- package/dist/nats.d.ts +14 -14
- package/dist/nats.js +32 -33
- package/dist/nats.js.map +1 -1
- package/dist/root.cjs +225 -0
- package/dist/root.cjs.map +1 -0
- package/dist/root.d.cts +4 -0
- package/dist/root.d.ts +4 -0
- package/dist/root.js +200 -0
- package/dist/root.js.map +1 -0
- package/dist/signing.cjs +159 -0
- package/dist/signing.cjs.map +1 -0
- package/dist/signing.d.cts +35 -0
- package/dist/signing.d.ts +35 -0
- package/dist/signing.js +128 -0
- package/dist/signing.js.map +1 -0
- package/dist/{types-DQRwj5rr.d.cts → types-C9jPdQqH.d.cts} +32 -6
- package/dist/{types-DQRwj5rr.d.ts → types-C9jPdQqH.d.ts} +32 -6
- package/dist/types.cjs +19 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +17 -0
- package/dist/types.d.ts +17 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.cjs +273 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +8 -0
- package/dist/utils.d.ts +8 -0
- package/dist/utils.js +245 -0
- package/dist/utils.js.map +1 -0
- package/package.json +132 -1
- package/dist/cache.service-_SuJIcNA.d.cts +0 -20
- package/dist/cache.service-_SuJIcNA.d.ts +0 -20
- package/dist/fastify-augmentation-CQPBNS5a.d.cts +0 -105
- package/dist/fastify-augmentation-CQPBNS5a.d.ts +0 -105
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/countries/is-country.decorator.ts","../src/countries/iso-countries.ts","../src/decorators/code-pattern.ts","../src/decorators/is-code.decorator.ts","../src/decorators/is-date-time.decorator.ts","../src/decorators/trim.decorator.ts","../src/decorators/uploaded-file.decorator.ts","../src/exceptions/bad-gateway.exception.ts","../src/exceptions/base-field.exception.ts","../src/exceptions/bad-request.exception.ts","../src/exceptions/conflict.exception.ts","../src/exceptions/forbidden.exception.ts","../src/exceptions/gone.exception.ts","../src/exceptions/internal-server-error.exception.ts","../src/exceptions/method-not-allowed.exception.ts","../src/exceptions/not-acceptable.exception.ts","../src/exceptions/not-found.exception.ts","../src/exceptions/not-implemented.exception.ts","../src/exceptions/payload-too-large.exception.ts","../src/exceptions/request-timeout.exception.ts","../src/exceptions/service-unavailable.exception.ts","../src/exceptions/too-many-requests.exception.ts","../src/exceptions/unauthorized.exception.ts","../src/exceptions/unprocessable-entity.exception.ts","../src/exceptions/unsupported-media-type.exception.ts","../src/exceptions/validation.exception.ts"],"sourcesContent":["import { registerDecorator, type ValidationArguments, type ValidationOptions } from 'class-validator';\nimport { ISO_COUNTRY_CODES } from './iso-countries';\n\nexport function IsCountry(validationOptions?: ValidationOptions): PropertyDecorator {\n return (target: object, propertyName: string | symbol) => {\n registerDecorator({\n name: 'isCountry',\n target: target.constructor,\n propertyName: String(propertyName),\n options: validationOptions,\n validator: {\n validate(value: unknown): boolean {\n if (typeof value !== 'string') return false;\n return ISO_COUNTRY_CODES.has(value.toUpperCase());\n },\n defaultMessage(args: ValidationArguments): string {\n return `${args.property} must be a valid ISO 3166-1 alpha-2 country code.`;\n },\n },\n });\n };\n}\n","export interface IsoCountry {\n code: string;\n name: string;\n defaultCurrency: string;\n callingCode: string;\n}\n\nexport const ISO_COUNTRIES: readonly IsoCountry[] = [\n { code: 'AD', name: 'Andorra', defaultCurrency: 'EUR', callingCode: '+376' },\n { code: 'AE', name: 'United Arab Emirates', defaultCurrency: 'AED', callingCode: '+971' },\n { code: 'AF', name: 'Afghanistan', defaultCurrency: 'AFN', callingCode: '+93' },\n { code: 'AG', name: 'Antigua and Barbuda', defaultCurrency: 'XCD', callingCode: '+1268' },\n { code: 'AI', name: 'Anguilla', defaultCurrency: 'XCD', callingCode: '+1264' },\n { code: 'AL', name: 'Albania', defaultCurrency: 'ALL', callingCode: '+355' },\n { code: 'AM', name: 'Armenia', defaultCurrency: 'AMD', callingCode: '+374' },\n { code: 'AO', name: 'Angola', defaultCurrency: 'AOA', callingCode: '+244' },\n { code: 'AQ', name: 'Antarctica', defaultCurrency: 'USD', callingCode: '+672' },\n { code: 'AR', name: 'Argentina', defaultCurrency: 'ARS', callingCode: '+54' },\n { code: 'AS', name: 'American Samoa', defaultCurrency: 'USD', callingCode: '+1684' },\n { code: 'AT', name: 'Austria', defaultCurrency: 'EUR', callingCode: '+43' },\n { code: 'AU', name: 'Australia', defaultCurrency: 'AUD', callingCode: '+61' },\n { code: 'AW', name: 'Aruba', defaultCurrency: 'AWG', callingCode: '+297' },\n { code: 'AX', name: 'Åland Islands', defaultCurrency: 'EUR', callingCode: '+358' },\n { code: 'AZ', name: 'Azerbaijan', defaultCurrency: 'AZN', callingCode: '+994' },\n { code: 'BA', name: 'Bosnia and Herzegovina', defaultCurrency: 'BAM', callingCode: '+387' },\n { code: 'BB', name: 'Barbados', defaultCurrency: 'BBD', callingCode: '+1246' },\n { code: 'BD', name: 'Bangladesh', defaultCurrency: 'BDT', callingCode: '+880' },\n { code: 'BE', name: 'Belgium', defaultCurrency: 'EUR', callingCode: '+32' },\n { code: 'BF', name: 'Burkina Faso', defaultCurrency: 'XOF', callingCode: '+226' },\n { code: 'BG', name: 'Bulgaria', defaultCurrency: 'BGN', callingCode: '+359' },\n { code: 'BH', name: 'Bahrain', defaultCurrency: 'BHD', callingCode: '+973' },\n { code: 'BI', name: 'Burundi', defaultCurrency: 'BIF', callingCode: '+257' },\n { code: 'BJ', name: 'Benin', defaultCurrency: 'XOF', callingCode: '+229' },\n { code: 'BL', name: 'Saint Barthélemy', defaultCurrency: 'EUR', callingCode: '+590' },\n { code: 'BM', name: 'Bermuda', defaultCurrency: 'BMD', callingCode: '+1441' },\n { code: 'BN', name: 'Brunei Darussalam', defaultCurrency: 'BND', callingCode: '+673' },\n { code: 'BO', name: 'Bolivia', defaultCurrency: 'BOB', callingCode: '+591' },\n { code: 'BQ', name: 'Bonaire, Sint Eustatius and Saba', defaultCurrency: 'USD', callingCode: '+599' },\n { code: 'BR', name: 'Brazil', defaultCurrency: 'BRL', callingCode: '+55' },\n { code: 'BS', name: 'Bahamas', defaultCurrency: 'BSD', callingCode: '+1242' },\n { code: 'BT', name: 'Bhutan', defaultCurrency: 'BTN', callingCode: '+975' },\n { code: 'BV', name: 'Bouvet Island', defaultCurrency: 'NOK', callingCode: '+47' },\n { code: 'BW', name: 'Botswana', defaultCurrency: 'BWP', callingCode: '+267' },\n { code: 'BY', name: 'Belarus', defaultCurrency: 'BYN', callingCode: '+375' },\n { code: 'BZ', name: 'Belize', defaultCurrency: 'BZD', callingCode: '+501' },\n { code: 'CA', name: 'Canada', defaultCurrency: 'CAD', callingCode: '+1' },\n { code: 'CC', name: 'Cocos (Keeling) Islands', defaultCurrency: 'AUD', callingCode: '+61' },\n { code: 'CD', name: 'Congo, Democratic Republic of the', defaultCurrency: 'CDF', callingCode: '+243' },\n { code: 'CF', name: 'Central African Republic', defaultCurrency: 'XAF', callingCode: '+236' },\n { code: 'CG', name: 'Congo', defaultCurrency: 'XAF', callingCode: '+242' },\n { code: 'CH', name: 'Switzerland', defaultCurrency: 'CHF', callingCode: '+41' },\n { code: 'CI', name: \"Côte d'Ivoire\", defaultCurrency: 'XOF', callingCode: '+225' },\n { code: 'CK', name: 'Cook Islands', defaultCurrency: 'NZD', callingCode: '+682' },\n { code: 'CL', name: 'Chile', defaultCurrency: 'CLP', callingCode: '+56' },\n { code: 'CM', name: 'Cameroon', defaultCurrency: 'XAF', callingCode: '+237' },\n { code: 'CN', name: 'China', defaultCurrency: 'CNY', callingCode: '+86' },\n { code: 'CO', name: 'Colombia', defaultCurrency: 'COP', callingCode: '+57' },\n { code: 'CR', name: 'Costa Rica', defaultCurrency: 'CRC', callingCode: '+506' },\n { code: 'CU', name: 'Cuba', defaultCurrency: 'CUP', callingCode: '+53' },\n { code: 'CV', name: 'Cabo Verde', defaultCurrency: 'CVE', callingCode: '+238' },\n { code: 'CW', name: 'Curaçao', defaultCurrency: 'ANG', callingCode: '+599' },\n { code: 'CX', name: 'Christmas Island', defaultCurrency: 'AUD', callingCode: '+61' },\n { code: 'CY', name: 'Cyprus', defaultCurrency: 'EUR', callingCode: '+357' },\n { code: 'CZ', name: 'Czechia', defaultCurrency: 'CZK', callingCode: '+420' },\n { code: 'DE', name: 'Germany', defaultCurrency: 'EUR', callingCode: '+49' },\n { code: 'DJ', name: 'Djibouti', defaultCurrency: 'DJF', callingCode: '+253' },\n { code: 'DK', name: 'Denmark', defaultCurrency: 'DKK', callingCode: '+45' },\n { code: 'DM', name: 'Dominica', defaultCurrency: 'XCD', callingCode: '+1767' },\n { code: 'DO', name: 'Dominican Republic', defaultCurrency: 'DOP', callingCode: '+1809' },\n { code: 'DZ', name: 'Algeria', defaultCurrency: 'DZD', callingCode: '+213' },\n { code: 'EC', name: 'Ecuador', defaultCurrency: 'USD', callingCode: '+593' },\n { code: 'EE', name: 'Estonia', defaultCurrency: 'EUR', callingCode: '+372' },\n { code: 'EG', name: 'Egypt', defaultCurrency: 'EGP', callingCode: '+20' },\n { code: 'EH', name: 'Western Sahara', defaultCurrency: 'MAD', callingCode: '+212' },\n { code: 'ER', name: 'Eritrea', defaultCurrency: 'ERN', callingCode: '+291' },\n { code: 'ES', name: 'Spain', defaultCurrency: 'EUR', callingCode: '+34' },\n { code: 'ET', name: 'Ethiopia', defaultCurrency: 'ETB', callingCode: '+251' },\n { code: 'FI', name: 'Finland', defaultCurrency: 'EUR', callingCode: '+358' },\n { code: 'FJ', name: 'Fiji', defaultCurrency: 'FJD', callingCode: '+679' },\n { code: 'FK', name: 'Falkland Islands (Malvinas)', defaultCurrency: 'FKP', callingCode: '+500' },\n { code: 'FM', name: 'Micronesia (Federated States of)', defaultCurrency: 'USD', callingCode: '+691' },\n { code: 'FO', name: 'Faroe Islands', defaultCurrency: 'DKK', callingCode: '+298' },\n { code: 'FR', name: 'France', defaultCurrency: 'EUR', callingCode: '+33' },\n { code: 'GA', name: 'Gabon', defaultCurrency: 'XAF', callingCode: '+241' },\n { code: 'GB', name: 'United Kingdom', defaultCurrency: 'GBP', callingCode: '+44' },\n { code: 'GD', name: 'Grenada', defaultCurrency: 'XCD', callingCode: '+1473' },\n { code: 'GE', name: 'Georgia', defaultCurrency: 'GEL', callingCode: '+995' },\n { code: 'GF', name: 'French Guiana', defaultCurrency: 'EUR', callingCode: '+594' },\n { code: 'GG', name: 'Guernsey', defaultCurrency: 'GBP', callingCode: '+44' },\n { code: 'GH', name: 'Ghana', defaultCurrency: 'GHS', callingCode: '+233' },\n { code: 'GI', name: 'Gibraltar', defaultCurrency: 'GIP', callingCode: '+350' },\n { code: 'GL', name: 'Greenland', defaultCurrency: 'DKK', callingCode: '+299' },\n { code: 'GM', name: 'Gambia', defaultCurrency: 'GMD', callingCode: '+220' },\n { code: 'GN', name: 'Guinea', defaultCurrency: 'GNF', callingCode: '+224' },\n { code: 'GP', name: 'Guadeloupe', defaultCurrency: 'EUR', callingCode: '+590' },\n { code: 'GQ', name: 'Equatorial Guinea', defaultCurrency: 'XAF', callingCode: '+240' },\n { code: 'GR', name: 'Greece', defaultCurrency: 'EUR', callingCode: '+30' },\n { code: 'GS', name: 'South Georgia and the South Sandwich Islands', defaultCurrency: 'GBP', callingCode: '+500' },\n { code: 'GT', name: 'Guatemala', defaultCurrency: 'GTQ', callingCode: '+502' },\n { code: 'GU', name: 'Guam', defaultCurrency: 'USD', callingCode: '+1671' },\n { code: 'GW', name: 'Guinea-Bissau', defaultCurrency: 'XOF', callingCode: '+245' },\n { code: 'GY', name: 'Guyana', defaultCurrency: 'GYD', callingCode: '+592' },\n { code: 'HK', name: 'Hong Kong', defaultCurrency: 'HKD', callingCode: '+852' },\n { code: 'HM', name: 'Heard Island and McDonald Islands', defaultCurrency: 'AUD', callingCode: '+672' },\n { code: 'HN', name: 'Honduras', defaultCurrency: 'HNL', callingCode: '+504' },\n { code: 'HR', name: 'Croatia', defaultCurrency: 'EUR', callingCode: '+385' },\n { code: 'HT', name: 'Haiti', defaultCurrency: 'HTG', callingCode: '+509' },\n { code: 'HU', name: 'Hungary', defaultCurrency: 'HUF', callingCode: '+36' },\n { code: 'ID', name: 'Indonesia', defaultCurrency: 'IDR', callingCode: '+62' },\n { code: 'IE', name: 'Ireland', defaultCurrency: 'EUR', callingCode: '+353' },\n { code: 'IL', name: 'Israel', defaultCurrency: 'ILS', callingCode: '+972' },\n { code: 'IM', name: 'Isle of Man', defaultCurrency: 'GBP', callingCode: '+44' },\n { code: 'IN', name: 'India', defaultCurrency: 'INR', callingCode: '+91' },\n { code: 'IO', name: 'British Indian Ocean Territory', defaultCurrency: 'USD', callingCode: '+246' },\n { code: 'IQ', name: 'Iraq', defaultCurrency: 'IQD', callingCode: '+964' },\n { code: 'IR', name: 'Iran', defaultCurrency: 'IRR', callingCode: '+98' },\n { code: 'IS', name: 'Iceland', defaultCurrency: 'ISK', callingCode: '+354' },\n { code: 'IT', name: 'Italy', defaultCurrency: 'EUR', callingCode: '+39' },\n { code: 'JE', name: 'Jersey', defaultCurrency: 'GBP', callingCode: '+44' },\n { code: 'JM', name: 'Jamaica', defaultCurrency: 'JMD', callingCode: '+1876' },\n { code: 'JO', name: 'Jordan', defaultCurrency: 'JOD', callingCode: '+962' },\n { code: 'JP', name: 'Japan', defaultCurrency: 'JPY', callingCode: '+81' },\n { code: 'KE', name: 'Kenya', defaultCurrency: 'KES', callingCode: '+254' },\n { code: 'KG', name: 'Kyrgyzstan', defaultCurrency: 'KGS', callingCode: '+996' },\n { code: 'KH', name: 'Cambodia', defaultCurrency: 'KHR', callingCode: '+855' },\n { code: 'KI', name: 'Kiribati', defaultCurrency: 'AUD', callingCode: '+686' },\n { code: 'KM', name: 'Comoros', defaultCurrency: 'KMF', callingCode: '+269' },\n { code: 'KN', name: 'Saint Kitts and Nevis', defaultCurrency: 'XCD', callingCode: '+1869' },\n { code: 'KP', name: \"Korea (Democratic People's Republic of)\", defaultCurrency: 'KPW', callingCode: '+850' },\n { code: 'KR', name: 'Korea (Republic of)', defaultCurrency: 'KRW', callingCode: '+82' },\n { code: 'KW', name: 'Kuwait', defaultCurrency: 'KWD', callingCode: '+965' },\n { code: 'KY', name: 'Cayman Islands', defaultCurrency: 'KYD', callingCode: '+1345' },\n { code: 'KZ', name: 'Kazakhstan', defaultCurrency: 'KZT', callingCode: '+7' },\n { code: 'LA', name: \"Lao People's Democratic Republic\", defaultCurrency: 'LAK', callingCode: '+856' },\n { code: 'LB', name: 'Lebanon', defaultCurrency: 'LBP', callingCode: '+961' },\n { code: 'LC', name: 'Saint Lucia', defaultCurrency: 'XCD', callingCode: '+1758' },\n { code: 'LI', name: 'Liechtenstein', defaultCurrency: 'CHF', callingCode: '+423' },\n { code: 'LK', name: 'Sri Lanka', defaultCurrency: 'LKR', callingCode: '+94' },\n { code: 'LR', name: 'Liberia', defaultCurrency: 'LRD', callingCode: '+231' },\n { code: 'LS', name: 'Lesotho', defaultCurrency: 'LSL', callingCode: '+266' },\n { code: 'LT', name: 'Lithuania', defaultCurrency: 'EUR', callingCode: '+370' },\n { code: 'LU', name: 'Luxembourg', defaultCurrency: 'EUR', callingCode: '+352' },\n { code: 'LV', name: 'Latvia', defaultCurrency: 'EUR', callingCode: '+371' },\n { code: 'LY', name: 'Libya', defaultCurrency: 'LYD', callingCode: '+218' },\n { code: 'MA', name: 'Morocco', defaultCurrency: 'MAD', callingCode: '+212' },\n { code: 'MC', name: 'Monaco', defaultCurrency: 'EUR', callingCode: '+377' },\n { code: 'MD', name: 'Moldova', defaultCurrency: 'MDL', callingCode: '+373' },\n { code: 'ME', name: 'Montenegro', defaultCurrency: 'EUR', callingCode: '+382' },\n { code: 'MF', name: 'Saint Martin (French part)', defaultCurrency: 'EUR', callingCode: '+590' },\n { code: 'MG', name: 'Madagascar', defaultCurrency: 'MGA', callingCode: '+261' },\n { code: 'MH', name: 'Marshall Islands', defaultCurrency: 'USD', callingCode: '+692' },\n { code: 'MK', name: 'North Macedonia', defaultCurrency: 'MKD', callingCode: '+389' },\n { code: 'ML', name: 'Mali', defaultCurrency: 'XOF', callingCode: '+223' },\n { code: 'MM', name: 'Myanmar', defaultCurrency: 'MMK', callingCode: '+95' },\n { code: 'MN', name: 'Mongolia', defaultCurrency: 'MNT', callingCode: '+976' },\n { code: 'MO', name: 'Macao', defaultCurrency: 'MOP', callingCode: '+853' },\n { code: 'MP', name: 'Northern Mariana Islands', defaultCurrency: 'USD', callingCode: '+1670' },\n { code: 'MQ', name: 'Martinique', defaultCurrency: 'EUR', callingCode: '+596' },\n { code: 'MR', name: 'Mauritania', defaultCurrency: 'MRU', callingCode: '+222' },\n { code: 'MS', name: 'Montserrat', defaultCurrency: 'XCD', callingCode: '+1664' },\n { code: 'MT', name: 'Malta', defaultCurrency: 'EUR', callingCode: '+356' },\n { code: 'MU', name: 'Mauritius', defaultCurrency: 'MUR', callingCode: '+230' },\n { code: 'MV', name: 'Maldives', defaultCurrency: 'MVR', callingCode: '+960' },\n { code: 'MW', name: 'Malawi', defaultCurrency: 'MWK', callingCode: '+265' },\n { code: 'MX', name: 'Mexico', defaultCurrency: 'MXN', callingCode: '+52' },\n { code: 'MY', name: 'Malaysia', defaultCurrency: 'MYR', callingCode: '+60' },\n { code: 'MZ', name: 'Mozambique', defaultCurrency: 'MZN', callingCode: '+258' },\n { code: 'NA', name: 'Namibia', defaultCurrency: 'NAD', callingCode: '+264' },\n { code: 'NC', name: 'New Caledonia', defaultCurrency: 'XPF', callingCode: '+687' },\n { code: 'NE', name: 'Niger', defaultCurrency: 'XOF', callingCode: '+227' },\n { code: 'NF', name: 'Norfolk Island', defaultCurrency: 'AUD', callingCode: '+672' },\n { code: 'NG', name: 'Nigeria', defaultCurrency: 'NGN', callingCode: '+234' },\n { code: 'NI', name: 'Nicaragua', defaultCurrency: 'NIO', callingCode: '+505' },\n { code: 'NL', name: 'Netherlands', defaultCurrency: 'EUR', callingCode: '+31' },\n { code: 'NO', name: 'Norway', defaultCurrency: 'NOK', callingCode: '+47' },\n { code: 'NP', name: 'Nepal', defaultCurrency: 'NPR', callingCode: '+977' },\n { code: 'NR', name: 'Nauru', defaultCurrency: 'AUD', callingCode: '+674' },\n { code: 'NU', name: 'Niue', defaultCurrency: 'NZD', callingCode: '+683' },\n { code: 'NZ', name: 'New Zealand', defaultCurrency: 'NZD', callingCode: '+64' },\n { code: 'OM', name: 'Oman', defaultCurrency: 'OMR', callingCode: '+968' },\n { code: 'PA', name: 'Panama', defaultCurrency: 'PAB', callingCode: '+507' },\n { code: 'PE', name: 'Peru', defaultCurrency: 'PEN', callingCode: '+51' },\n { code: 'PF', name: 'French Polynesia', defaultCurrency: 'XPF', callingCode: '+689' },\n { code: 'PG', name: 'Papua New Guinea', defaultCurrency: 'PGK', callingCode: '+675' },\n { code: 'PH', name: 'Philippines', defaultCurrency: 'PHP', callingCode: '+63' },\n { code: 'PK', name: 'Pakistan', defaultCurrency: 'PKR', callingCode: '+92' },\n { code: 'PL', name: 'Poland', defaultCurrency: 'PLN', callingCode: '+48' },\n { code: 'PM', name: 'Saint Pierre and Miquelon', defaultCurrency: 'EUR', callingCode: '+508' },\n { code: 'PN', name: 'Pitcairn', defaultCurrency: 'NZD', callingCode: '+64' },\n { code: 'PR', name: 'Puerto Rico', defaultCurrency: 'USD', callingCode: '+1787' },\n { code: 'PS', name: 'Palestine, State of', defaultCurrency: 'ILS', callingCode: '+970' },\n { code: 'PT', name: 'Portugal', defaultCurrency: 'EUR', callingCode: '+351' },\n { code: 'PW', name: 'Palau', defaultCurrency: 'USD', callingCode: '+680' },\n { code: 'PY', name: 'Paraguay', defaultCurrency: 'PYG', callingCode: '+595' },\n { code: 'QA', name: 'Qatar', defaultCurrency: 'QAR', callingCode: '+974' },\n { code: 'RE', name: 'Réunion', defaultCurrency: 'EUR', callingCode: '+262' },\n { code: 'RO', name: 'Romania', defaultCurrency: 'RON', callingCode: '+40' },\n { code: 'RS', name: 'Serbia', defaultCurrency: 'RSD', callingCode: '+381' },\n { code: 'RU', name: 'Russian Federation', defaultCurrency: 'RUB', callingCode: '+7' },\n { code: 'RW', name: 'Rwanda', defaultCurrency: 'RWF', callingCode: '+250' },\n { code: 'SA', name: 'Saudi Arabia', defaultCurrency: 'SAR', callingCode: '+966' },\n { code: 'SB', name: 'Solomon Islands', defaultCurrency: 'SBD', callingCode: '+677' },\n { code: 'SC', name: 'Seychelles', defaultCurrency: 'SCR', callingCode: '+248' },\n { code: 'SD', name: 'Sudan', defaultCurrency: 'SDG', callingCode: '+249' },\n { code: 'SE', name: 'Sweden', defaultCurrency: 'SEK', callingCode: '+46' },\n { code: 'SG', name: 'Singapore', defaultCurrency: 'SGD', callingCode: '+65' },\n { code: 'SH', name: 'Saint Helena, Ascension and Tristan da Cunha', defaultCurrency: 'SHP', callingCode: '+290' },\n { code: 'SI', name: 'Slovenia', defaultCurrency: 'EUR', callingCode: '+386' },\n { code: 'SJ', name: 'Svalbard and Jan Mayen', defaultCurrency: 'NOK', callingCode: '+47' },\n { code: 'SK', name: 'Slovakia', defaultCurrency: 'EUR', callingCode: '+421' },\n { code: 'SL', name: 'Sierra Leone', defaultCurrency: 'SLE', callingCode: '+232' },\n { code: 'SM', name: 'San Marino', defaultCurrency: 'EUR', callingCode: '+378' },\n { code: 'SN', name: 'Senegal', defaultCurrency: 'XOF', callingCode: '+221' },\n { code: 'SO', name: 'Somalia', defaultCurrency: 'SOS', callingCode: '+252' },\n { code: 'SR', name: 'Suriname', defaultCurrency: 'SRD', callingCode: '+597' },\n { code: 'SS', name: 'South Sudan', defaultCurrency: 'SSP', callingCode: '+211' },\n { code: 'ST', name: 'Sao Tome and Principe', defaultCurrency: 'STN', callingCode: '+239' },\n { code: 'SV', name: 'El Salvador', defaultCurrency: 'USD', callingCode: '+503' },\n { code: 'SX', name: 'Sint Maarten (Dutch part)', defaultCurrency: 'ANG', callingCode: '+1721' },\n { code: 'SY', name: 'Syrian Arab Republic', defaultCurrency: 'SYP', callingCode: '+963' },\n { code: 'SZ', name: 'Eswatini', defaultCurrency: 'SZL', callingCode: '+268' },\n { code: 'TC', name: 'Turks and Caicos Islands', defaultCurrency: 'USD', callingCode: '+1649' },\n { code: 'TD', name: 'Chad', defaultCurrency: 'XAF', callingCode: '+235' },\n { code: 'TF', name: 'French Southern Territories', defaultCurrency: 'EUR', callingCode: '+262' },\n { code: 'TG', name: 'Togo', defaultCurrency: 'XOF', callingCode: '+228' },\n { code: 'TH', name: 'Thailand', defaultCurrency: 'THB', callingCode: '+66' },\n { code: 'TJ', name: 'Tajikistan', defaultCurrency: 'TJS', callingCode: '+992' },\n { code: 'TK', name: 'Tokelau', defaultCurrency: 'NZD', callingCode: '+690' },\n { code: 'TL', name: 'Timor-Leste', defaultCurrency: 'USD', callingCode: '+670' },\n { code: 'TM', name: 'Turkmenistan', defaultCurrency: 'TMT', callingCode: '+993' },\n { code: 'TN', name: 'Tunisia', defaultCurrency: 'TND', callingCode: '+216' },\n { code: 'TO', name: 'Tonga', defaultCurrency: 'TOP', callingCode: '+676' },\n { code: 'TR', name: 'Türkiye', defaultCurrency: 'TRY', callingCode: '+90' },\n { code: 'TT', name: 'Trinidad and Tobago', defaultCurrency: 'TTD', callingCode: '+1868' },\n { code: 'TV', name: 'Tuvalu', defaultCurrency: 'AUD', callingCode: '+688' },\n { code: 'TW', name: 'Taiwan (Province of China)', defaultCurrency: 'TWD', callingCode: '+886' },\n { code: 'TZ', name: 'Tanzania, United Republic of', defaultCurrency: 'TZS', callingCode: '+255' },\n { code: 'UA', name: 'Ukraine', defaultCurrency: 'UAH', callingCode: '+380' },\n { code: 'UG', name: 'Uganda', defaultCurrency: 'UGX', callingCode: '+256' },\n { code: 'UM', name: 'United States Minor Outlying Islands', defaultCurrency: 'USD', callingCode: '+1' },\n { code: 'US', name: 'United States of America', defaultCurrency: 'USD', callingCode: '+1' },\n { code: 'UY', name: 'Uruguay', defaultCurrency: 'UYU', callingCode: '+598' },\n { code: 'UZ', name: 'Uzbekistan', defaultCurrency: 'UZS', callingCode: '+998' },\n { code: 'VA', name: 'Holy See', defaultCurrency: 'EUR', callingCode: '+379' },\n { code: 'VC', name: 'Saint Vincent and the Grenadines', defaultCurrency: 'XCD', callingCode: '+1784' },\n { code: 'VE', name: 'Venezuela (Bolivarian Republic of)', defaultCurrency: 'VES', callingCode: '+58' },\n { code: 'VG', name: 'Virgin Islands (British)', defaultCurrency: 'USD', callingCode: '+1284' },\n { code: 'VI', name: 'Virgin Islands (U.S.)', defaultCurrency: 'USD', callingCode: '+1340' },\n { code: 'VN', name: 'Viet Nam', defaultCurrency: 'VND', callingCode: '+84' },\n { code: 'VU', name: 'Vanuatu', defaultCurrency: 'VUV', callingCode: '+678' },\n { code: 'WF', name: 'Wallis and Futuna', defaultCurrency: 'XPF', callingCode: '+681' },\n { code: 'WS', name: 'Samoa', defaultCurrency: 'WST', callingCode: '+685' },\n { code: 'YE', name: 'Yemen', defaultCurrency: 'YER', callingCode: '+967' },\n { code: 'YT', name: 'Mayotte', defaultCurrency: 'EUR', callingCode: '+262' },\n { code: 'ZA', name: 'South Africa', defaultCurrency: 'ZAR', callingCode: '+27' },\n { code: 'ZM', name: 'Zambia', defaultCurrency: 'ZMW', callingCode: '+260' },\n { code: 'ZW', name: 'Zimbabwe', defaultCurrency: 'ZWG', callingCode: '+263' },\n];\n\nexport const ISO_COUNTRY_CODES: ReadonlySet<string> = new Set(ISO_COUNTRIES.map((country) => country.code));\n","// Canonical entity \"code\" format — the single source of truth for DTOs, DB checks, and frontend forms.\n// A code is a single lowercase word: starts with a letter, then lowercase letters, digits, or hyphens.\n// The dotted variant allows dot-separated segments (e.g. permission codes like \"add.salt\").\n\nconst SEGMENT = '[a-z][a-z0-9-]*';\n\nexport const CODE_PATTERN_SOURCE = `^${SEGMENT}$`;\nexport const DOTTED_CODE_PATTERN_SOURCE = `^${SEGMENT}(\\\\.${SEGMENT})*$`;\n\nexport const CODE_PATTERN = new RegExp(CODE_PATTERN_SOURCE);\nexport const DOTTED_CODE_PATTERN = new RegExp(DOTTED_CODE_PATTERN_SOURCE);\n\nexport interface CodeOptions {\n dotted?: boolean;\n}\n\n// Returns the regex for the requested code variant\nexport function codePattern(options?: CodeOptions): RegExp {\n return options?.dotted ? DOTTED_CODE_PATTERN : CODE_PATTERN;\n}\n\n// Returns the Postgres regex source string for the requested code variant (for CHECK constraints)\nexport function codePatternSource(options?: CodeOptions): string {\n return options?.dotted ? DOTTED_CODE_PATTERN_SOURCE : CODE_PATTERN_SOURCE;\n}\n\n// Human-readable validation message for the requested code variant\nexport function codeMessage(property: string, options?: CodeOptions): string {\n return options?.dotted\n ? `${property} must be lowercase words separated by dots.`\n : `${property} must be lowercase letters, numbers, and hyphens only.`;\n}\n","import { registerDecorator, type ValidationArguments, type ValidationOptions } from 'class-validator';\nimport { type CodeOptions, codeMessage, codePattern } from './code-pattern';\n\n// Validates a canonical lowercase-kebab code. Pass { dotted: true } for dot-separated codes (permissions).\nexport function IsCode(options?: CodeOptions, validationOptions?: ValidationOptions): PropertyDecorator {\n const pattern = codePattern(options);\n return (target: object, propertyName: string | symbol) => {\n registerDecorator({\n name: 'isCode',\n target: target.constructor,\n propertyName: String(propertyName),\n options: validationOptions,\n validator: {\n validate(value: unknown): boolean {\n return typeof value === 'string' && pattern.test(value);\n },\n defaultMessage(args: ValidationArguments): string {\n return codeMessage(args.property, options);\n },\n },\n });\n };\n}\n","import { registerDecorator, type ValidationArguments, type ValidationOptions } from 'class-validator';\n\nconst UTC_ISO_DATETIME_REGEX = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$/;\n\nexport function IsDateTime(validationOptions?: ValidationOptions): PropertyDecorator {\n return (target: object, propertyName: string | symbol) => {\n registerDecorator({\n name: 'isDateTime',\n target: target.constructor,\n propertyName: String(propertyName),\n options: validationOptions,\n validator: {\n validate(value: unknown): boolean {\n if (typeof value !== 'string') return false;\n if (!UTC_ISO_DATETIME_REGEX.test(value)) return false;\n return !Number.isNaN(Date.parse(value));\n },\n defaultMessage(args: ValidationArguments): string {\n return `${args.property} must be a UTC ISO date-time string ending with Z.`;\n },\n },\n });\n };\n}\n","import { Transform } from 'class-transformer';\n\nexport interface TrimOptions {\n nullify?: boolean;\n}\n\n// Trims a string field; by default converts a blank result ('') to null. Leaves non-strings\n// (undefined stays undefined → skip, null stays null → clear) untouched, preserving update semantics.\nexport function Trim(options?: TrimOptions): PropertyDecorator {\n const nullify = options?.nullify ?? true;\n return Transform(({ value }) => {\n if (typeof value !== 'string') return value;\n const trimmed = value.trim();\n return nullify ? trimmed || null : trimmed;\n });\n}\n","import type { MultipartFile } from '@fastify/multipart';\nimport { createParamDecorator, type ExecutionContext } from '@nestjs/common';\nimport type { FastifyRequest } from 'fastify';\nimport { BadRequestException } from '../exceptions';\n\nexport interface UploadedFileResult {\n buffer: Buffer;\n filename: string;\n mimetype: string;\n}\n\nasync function collectFiles(\n request: FastifyRequest,\n fieldName?: string,\n): Promise<{ files: MultipartFile[]; consumed: boolean }> {\n // Single-file shortcut when no fieldName filter is needed\n if (!fieldName) {\n const file = await request.file();\n return { files: file ? [file] : [], consumed: true };\n }\n\n const matched: MultipartFile[] = [];\n for await (const file of request.files()) {\n if (file.fieldname === fieldName) {\n matched.push(file);\n }\n }\n return { files: matched, consumed: true };\n}\n\nexport const UploadedFile = createParamDecorator(\n async (fieldName: string | undefined, ctx: ExecutionContext): Promise<UploadedFileResult> => {\n const request = ctx.switchToHttp().getRequest<FastifyRequest>();\n const { files } = await collectFiles(request, fieldName);\n const file = files[0];\n\n if (!file) {\n const field = fieldName ?? 'file';\n throw new BadRequestException({\n label: 'File Required',\n detail: `Please attach a file${fieldName ? ` under \"${fieldName}\"` : ''} to your request.`,\n errors: [{ field, message: 'File required' }],\n });\n }\n\n const buffer = await file.toBuffer();\n return { buffer, filename: file.filename, mimetype: file.mimetype };\n },\n);\n\nexport const UploadedFiles = createParamDecorator(\n async (fieldName: string | undefined, ctx: ExecutionContext): Promise<UploadedFileResult[]> => {\n const request = ctx.switchToHttp().getRequest<FastifyRequest>();\n const { files } = await collectFiles(request, fieldName);\n\n if (files.length === 0) {\n const field = fieldName ?? 'files';\n throw new BadRequestException({\n label: 'Files Required',\n detail: `Please attach at least one file${fieldName ? ` under \"${fieldName}\"` : ''} to your request.`,\n errors: [{ field, message: 'At least one file is required' }],\n });\n }\n\n const results: UploadedFileResult[] = [];\n for (const file of files) {\n const buffer = await file.toBuffer();\n results.push({ buffer, filename: file.filename, mimetype: file.mimetype });\n }\n return results;\n },\n);\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class BadGatewayException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Bad Gateway', HttpStatus.BAD_GATEWAY);\n }\n}\n","import { HttpException, HttpStatus } from '@nestjs/common';\nimport type { FieldError } from '../types/error-response.types';\n\n// Re-export FieldError for backwards compatibility\nexport type { FieldError } from '../types/error-response.types';\n\nexport interface ProblemOptions {\n type?: string;\n label?: string;\n detail?: string;\n errors?: FieldError[];\n}\n\nexport abstract class HttpProblemException extends HttpException {\n constructor(detailOrOptions: string | ProblemOptions, httpStatus: HttpStatus) {\n const options = typeof detailOrOptions === 'string' ? { detail: detailOrOptions } : detailOrOptions;\n\n super(\n {\n type: options.type ?? 'about:blank',\n label: options.label,\n detail: options.detail,\n errors: options.errors ?? [],\n },\n httpStatus,\n );\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class BadRequestException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Bad Request', HttpStatus.BAD_REQUEST);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class ConflictException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Conflict', HttpStatus.CONFLICT);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class ForbiddenException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Forbidden', HttpStatus.FORBIDDEN);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class GoneException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Gone', HttpStatus.GONE);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class InternalServerErrorException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Internal Server Error', HttpStatus.INTERNAL_SERVER_ERROR);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class MethodNotAllowedException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Method Not Allowed', HttpStatus.METHOD_NOT_ALLOWED);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class NotAcceptableException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Not Acceptable', HttpStatus.NOT_ACCEPTABLE);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class NotFoundException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Not Found', HttpStatus.NOT_FOUND);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class NotImplementedException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Not Implemented', HttpStatus.NOT_IMPLEMENTED);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class PayloadTooLargeException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Payload Too Large', HttpStatus.PAYLOAD_TOO_LARGE);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class RequestTimeoutException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Request Timeout', HttpStatus.REQUEST_TIMEOUT);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class ServiceUnavailableException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Service Unavailable', HttpStatus.SERVICE_UNAVAILABLE);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class TooManyRequestsException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Too Many Requests', HttpStatus.TOO_MANY_REQUESTS);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class UnauthorizedException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Unauthorized', HttpStatus.UNAUTHORIZED);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class UnprocessableEntityException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Unprocessable Entity', HttpStatus.UNPROCESSABLE_ENTITY);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class UnsupportedMediaTypeException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Unsupported Media Type', HttpStatus.UNSUPPORTED_MEDIA_TYPE);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class ValidationException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Validation Failed', HttpStatus.UNPROCESSABLE_ENTITY);\n }\n}\n"],"mappings":";;;;AAAA,SAASA,yBAA2E;;;ACO7E,IAAMC,gBAAuC;EAClD;IAAEC,MAAM;IAAMC,MAAM;IAAWC,iBAAiB;IAAOC,aAAa;EAAO;EAC3E;IAAEH,MAAM;IAAMC,MAAM;IAAwBC,iBAAiB;IAAOC,aAAa;EAAO;EACxF;IAAEH,MAAM;IAAMC,MAAM;IAAeC,iBAAiB;IAAOC,aAAa;EAAM;EAC9E;IAAEH,MAAM;IAAMC,MAAM;IAAuBC,iBAAiB;IAAOC,aAAa;EAAQ;EACxF;IAAEH,MAAM;IAAMC,MAAM;IAAYC,iBAAiB;IAAOC,aAAa;EAAQ;EAC7E;IAAEH,MAAM;IAAMC,MAAM;IAAWC,iBAAiB;IAAOC,aAAa;EAAO;EAC3E;IAAEH,MAAM;IAAMC,MAAM;IAAWC,iBAAiB;IAAOC,aAAa;EAAO;EAC3E;IAAEH,MAAM;IAAMC,MAAM;IAAUC,iBAAiB;IAAOC,aAAa;EAAO;EAC1E;IAAEH,MAAM;IAAMC,MAAM;IAAcC,iBAAiB;IAAOC,aAAa;EAAO;EAC9E;IAAEH,MAAM;IAAMC,MA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AAKkB,SAAQ;AAClCK,YAAQlB,KAAK;MAAEY;MAAQE,UAAUnB,KAAKmB;MAAUC,UAAUpB,KAAKoB;IAAS,CAAA;EAC1E;AACA,SAAOG;AACT,CAAA;","names":["registerDecorator","ISO_COUNTRIES","code","name","defaultCurrency","callingCode","ISO_COUNTRY_CODES","Set","map","country","IsCountry","validationOptions","target","propertyName","registerDecorator","name","String","options","validator","validate","value","ISO_COUNTRY_CODES","has","toUpperCase","defaultMessage","args","property","SEGMENT","CODE_PATTERN_SOURCE","DOTTED_CODE_PATTERN_SOURCE","CODE_PATTERN","RegExp","DOTTED_CODE_PATTERN","codePattern","options","dotted","codePatternSource","codeMessage","property","registerDecorator","IsCode","options","validationOptions","pattern","codePattern","target","propertyName","registerDecorator","name","String","validator","validate","value","test","defaultMessage","args","codeMessage","property","registerDecorator","UTC_ISO_DATETIME_REGEX","IsDateTime","validationOptions","target","propertyName","registerDecorator","name","String","options","validator","validate","value","test","Number","isNaN","Date","parse","defaultMessage","args","property","Transform","Trim","options","nullify","Transform","value","trimmed","trim","createParamDecorator","HttpStatus","HttpException","HttpProblemException","HttpException","detailOrOptions","httpStatus","options","detail","type","label","errors","HttpStatus","BadRequestException","HttpProblemException","detailOrOptions","HttpStatus","BAD_REQUEST","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","HttpStatus","collectFiles","request","fieldName","file","files","consumed","matched","fieldname","push","UploadedFile","createParamDecorator","ctx","switchToHttp","getRequest","field","BadRequestException","label","detail","errors","message","buffer","toBuffer","filename","mimetype","UploadedFiles","length","results"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface SignedDocument<T> {
|
|
2
|
+
payload: T;
|
|
3
|
+
signature: string;
|
|
4
|
+
}
|
|
5
|
+
declare function generateSigningKeyPair(): {
|
|
6
|
+
privateKey: string;
|
|
7
|
+
publicKey: string;
|
|
8
|
+
};
|
|
9
|
+
declare function signDocument<T>(payload: T, privateKeyBase64: string): SignedDocument<T>;
|
|
10
|
+
declare function verifyDocument<T>(doc: SignedDocument<T>, publicKeyBase64: string): boolean;
|
|
11
|
+
|
|
12
|
+
export { type SignedDocument as S, generateSigningKeyPair as g, signDocument as s, verifyDocument as v };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface SignedDocument<T> {
|
|
2
|
+
payload: T;
|
|
3
|
+
signature: string;
|
|
4
|
+
}
|
|
5
|
+
declare function generateSigningKeyPair(): {
|
|
6
|
+
privateKey: string;
|
|
7
|
+
publicKey: string;
|
|
8
|
+
};
|
|
9
|
+
declare function signDocument<T>(payload: T, privateKeyBase64: string): SignedDocument<T>;
|
|
10
|
+
declare function verifyDocument<T>(doc: SignedDocument<T>, publicKeyBase64: string): boolean;
|
|
11
|
+
|
|
12
|
+
export { type SignedDocument as S, generateSigningKeyPair as g, signDocument as s, verifyDocument as v };
|
package/dist/drizzle-pg-core.cjs
CHANGED
|
@@ -3,6 +3,11 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
6
11
|
var __copyProps = (to, from, except, desc) => {
|
|
7
12
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
13
|
for (let key of __getOwnPropNames(from))
|
|
@@ -16,10 +21,30 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
16
21
|
|
|
17
22
|
// src/drizzle-pg-core.ts
|
|
18
23
|
var drizzle_pg_core_exports = {};
|
|
24
|
+
__export(drizzle_pg_core_exports, {
|
|
25
|
+
codeCheck: () => codeCheck
|
|
26
|
+
});
|
|
19
27
|
module.exports = __toCommonJS(drizzle_pg_core_exports);
|
|
20
28
|
__reExport(drizzle_pg_core_exports, require("drizzle-orm/pg-core"), module.exports);
|
|
29
|
+
var import_drizzle_orm = require("drizzle-orm");
|
|
30
|
+
var import_pg_core = require("drizzle-orm/pg-core");
|
|
31
|
+
|
|
32
|
+
// src/decorators/code-pattern.ts
|
|
33
|
+
var SEGMENT = "[a-z][a-z0-9-]*";
|
|
34
|
+
var CODE_PATTERN_SOURCE = `^${SEGMENT}$`;
|
|
35
|
+
var DOTTED_CODE_PATTERN_SOURCE = `^${SEGMENT}(\\.${SEGMENT})*$`;
|
|
36
|
+
var CODE_PATTERN = new RegExp(CODE_PATTERN_SOURCE);
|
|
37
|
+
var DOTTED_CODE_PATTERN = new RegExp(DOTTED_CODE_PATTERN_SOURCE);
|
|
38
|
+
|
|
39
|
+
// src/drizzle-pg-core.ts
|
|
40
|
+
function codeCheck(name, column, options) {
|
|
41
|
+
const source = options?.dotted ? DOTTED_CODE_PATTERN_SOURCE : CODE_PATTERN_SOURCE;
|
|
42
|
+
return (0, import_pg_core.check)(name, import_drizzle_orm.sql`${column} ~ ${import_drizzle_orm.sql.raw(`'${source}'`)}`);
|
|
43
|
+
}
|
|
44
|
+
__name(codeCheck, "codeCheck");
|
|
21
45
|
// Annotate the CommonJS export names for ESM import in node:
|
|
22
46
|
0 && (module.exports = {
|
|
47
|
+
codeCheck,
|
|
23
48
|
...require("drizzle-orm/pg-core")
|
|
24
49
|
});
|
|
25
50
|
//# sourceMappingURL=drizzle-pg-core.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/drizzle-pg-core.ts"],"sourcesContent":["// Re-export all of drizzle-orm/pg-core\nexport * from 'drizzle-orm/pg-core';\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/drizzle-pg-core.ts","../src/decorators/code-pattern.ts"],"sourcesContent":["// Re-export all of drizzle-orm/pg-core\nexport * from 'drizzle-orm/pg-core';\n\nimport { sql } from 'drizzle-orm';\nimport { type AnyPgColumn, check } from 'drizzle-orm/pg-core';\nimport { CODE_PATTERN_SOURCE, type CodeOptions, DOTTED_CODE_PATTERN_SOURCE } from './decorators/code-pattern';\n\n// Builds a Postgres CHECK constraint enforcing the canonical code format on a column\nexport function codeCheck(name: string, column: AnyPgColumn, options?: CodeOptions) {\n const source = options?.dotted ? DOTTED_CODE_PATTERN_SOURCE : CODE_PATTERN_SOURCE;\n return check(name, sql`${column} ~ ${sql.raw(`'${source}'`)}`);\n}\n","// Canonical entity \"code\" format — the single source of truth for DTOs, DB checks, and frontend forms.\n// A code is a single lowercase word: starts with a letter, then lowercase letters, digits, or hyphens.\n// The dotted variant allows dot-separated segments (e.g. permission codes like \"add.salt\").\n\nconst SEGMENT = '[a-z][a-z0-9-]*';\n\nexport const CODE_PATTERN_SOURCE = `^${SEGMENT}$`;\nexport const DOTTED_CODE_PATTERN_SOURCE = `^${SEGMENT}(\\\\.${SEGMENT})*$`;\n\nexport const CODE_PATTERN = new RegExp(CODE_PATTERN_SOURCE);\nexport const DOTTED_CODE_PATTERN = new RegExp(DOTTED_CODE_PATTERN_SOURCE);\n\nexport interface CodeOptions {\n dotted?: boolean;\n}\n\n// Returns the regex for the requested code variant\nexport function codePattern(options?: CodeOptions): RegExp {\n return options?.dotted ? DOTTED_CODE_PATTERN : CODE_PATTERN;\n}\n\n// Returns the Postgres regex source string for the requested code variant (for CHECK constraints)\nexport function codePatternSource(options?: CodeOptions): string {\n return options?.dotted ? DOTTED_CODE_PATTERN_SOURCE : CODE_PATTERN_SOURCE;\n}\n\n// Human-readable validation message for the requested code variant\nexport function codeMessage(property: string, options?: CodeOptions): string {\n return options?.dotted\n ? `${property} must be lowercase words separated by dots.`\n : `${property} must be lowercase letters, numbers, and hyphens only.`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AACA,oCAAc,gCADd;AAGA,yBAAoB;AACpB,qBAAwC;;;ACAxC,IAAMA,UAAU;AAET,IAAMC,sBAAsB,IAAID,OAAAA;AAChC,IAAME,6BAA6B,IAAIF,OAAAA,OAAcA,OAAAA;AAErD,IAAMG,eAAe,IAAIC,OAAOH,mBAAAA;AAChC,IAAMI,sBAAsB,IAAID,OAAOF,0BAAAA;;;ADFvC,SAASI,UAAUC,MAAcC,QAAqBC,SAAqB;AAChF,QAAMC,SAASD,SAASE,SAASC,6BAA6BC;AAC9D,aAAOC,sBAAMP,MAAMQ,yBAAMP,MAAAA,MAAYO,uBAAIC,IAAI,IAAIN,MAAAA,GAAS,CAAA,EAAG;AAC/D;AAHgBJ;","names":["SEGMENT","CODE_PATTERN_SOURCE","DOTTED_CODE_PATTERN_SOURCE","CODE_PATTERN","RegExp","DOTTED_CODE_PATTERN","codeCheck","name","column","options","source","dotted","DOTTED_CODE_PATTERN_SOURCE","CODE_PATTERN_SOURCE","check","sql","raw"]}
|
|
@@ -1 +1,8 @@
|
|
|
1
|
+
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
2
|
+
import { AnyPgColumn } from 'drizzle-orm/pg-core';
|
|
1
3
|
export * from 'drizzle-orm/pg-core';
|
|
4
|
+
import { C as CodeOptions } from './code-pattern-BP4zkNtT.cjs';
|
|
5
|
+
|
|
6
|
+
declare function codeCheck(name: string, column: AnyPgColumn, options?: CodeOptions): drizzle_orm_pg_core.CheckBuilder;
|
|
7
|
+
|
|
8
|
+
export { codeCheck };
|
|
@@ -1 +1,8 @@
|
|
|
1
|
+
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
2
|
+
import { AnyPgColumn } from 'drizzle-orm/pg-core';
|
|
1
3
|
export * from 'drizzle-orm/pg-core';
|
|
4
|
+
import { C as CodeOptions } from './code-pattern-BP4zkNtT.js';
|
|
5
|
+
|
|
6
|
+
declare function codeCheck(name: string, column: AnyPgColumn, options?: CodeOptions): drizzle_orm_pg_core.CheckBuilder;
|
|
7
|
+
|
|
8
|
+
export { codeCheck };
|
package/dist/drizzle-pg-core.js
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
1
4
|
// src/drizzle-pg-core.ts
|
|
2
5
|
export * from "drizzle-orm/pg-core";
|
|
6
|
+
import { sql } from "drizzle-orm";
|
|
7
|
+
import { check } from "drizzle-orm/pg-core";
|
|
8
|
+
|
|
9
|
+
// src/decorators/code-pattern.ts
|
|
10
|
+
var SEGMENT = "[a-z][a-z0-9-]*";
|
|
11
|
+
var CODE_PATTERN_SOURCE = `^${SEGMENT}$`;
|
|
12
|
+
var DOTTED_CODE_PATTERN_SOURCE = `^${SEGMENT}(\\.${SEGMENT})*$`;
|
|
13
|
+
var CODE_PATTERN = new RegExp(CODE_PATTERN_SOURCE);
|
|
14
|
+
var DOTTED_CODE_PATTERN = new RegExp(DOTTED_CODE_PATTERN_SOURCE);
|
|
15
|
+
|
|
16
|
+
// src/drizzle-pg-core.ts
|
|
17
|
+
function codeCheck(name, column, options) {
|
|
18
|
+
const source = options?.dotted ? DOTTED_CODE_PATTERN_SOURCE : CODE_PATTERN_SOURCE;
|
|
19
|
+
return check(name, sql`${column} ~ ${sql.raw(`'${source}'`)}`);
|
|
20
|
+
}
|
|
21
|
+
__name(codeCheck, "codeCheck");
|
|
22
|
+
export {
|
|
23
|
+
codeCheck
|
|
24
|
+
};
|
|
3
25
|
//# sourceMappingURL=drizzle-pg-core.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/drizzle-pg-core.ts"],"sourcesContent":["// Re-export all of drizzle-orm/pg-core\nexport * from 'drizzle-orm/pg-core';\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/drizzle-pg-core.ts","../src/decorators/code-pattern.ts"],"sourcesContent":["// Re-export all of drizzle-orm/pg-core\nexport * from 'drizzle-orm/pg-core';\n\nimport { sql } from 'drizzle-orm';\nimport { type AnyPgColumn, check } from 'drizzle-orm/pg-core';\nimport { CODE_PATTERN_SOURCE, type CodeOptions, DOTTED_CODE_PATTERN_SOURCE } from './decorators/code-pattern';\n\n// Builds a Postgres CHECK constraint enforcing the canonical code format on a column\nexport function codeCheck(name: string, column: AnyPgColumn, options?: CodeOptions) {\n const source = options?.dotted ? DOTTED_CODE_PATTERN_SOURCE : CODE_PATTERN_SOURCE;\n return check(name, sql`${column} ~ ${sql.raw(`'${source}'`)}`);\n}\n","// Canonical entity \"code\" format — the single source of truth for DTOs, DB checks, and frontend forms.\n// A code is a single lowercase word: starts with a letter, then lowercase letters, digits, or hyphens.\n// The dotted variant allows dot-separated segments (e.g. permission codes like \"add.salt\").\n\nconst SEGMENT = '[a-z][a-z0-9-]*';\n\nexport const CODE_PATTERN_SOURCE = `^${SEGMENT}$`;\nexport const DOTTED_CODE_PATTERN_SOURCE = `^${SEGMENT}(\\\\.${SEGMENT})*$`;\n\nexport const CODE_PATTERN = new RegExp(CODE_PATTERN_SOURCE);\nexport const DOTTED_CODE_PATTERN = new RegExp(DOTTED_CODE_PATTERN_SOURCE);\n\nexport interface CodeOptions {\n dotted?: boolean;\n}\n\n// Returns the regex for the requested code variant\nexport function codePattern(options?: CodeOptions): RegExp {\n return options?.dotted ? DOTTED_CODE_PATTERN : CODE_PATTERN;\n}\n\n// Returns the Postgres regex source string for the requested code variant (for CHECK constraints)\nexport function codePatternSource(options?: CodeOptions): string {\n return options?.dotted ? DOTTED_CODE_PATTERN_SOURCE : CODE_PATTERN_SOURCE;\n}\n\n// Human-readable validation message for the requested code variant\nexport function codeMessage(property: string, options?: CodeOptions): string {\n return options?.dotted\n ? `${property} must be lowercase words separated by dots.`\n : `${property} must be lowercase letters, numbers, and hyphens only.`;\n}\n"],"mappings":";;;;AACA,cAAc;AAEd,SAASA,WAAW;AACpB,SAA2BC,aAAa;;;ACAxC,IAAMC,UAAU;AAET,IAAMC,sBAAsB,IAAID,OAAAA;AAChC,IAAME,6BAA6B,IAAIF,OAAAA,OAAcA,OAAAA;AAErD,IAAMG,eAAe,IAAIC,OAAOH,mBAAAA;AAChC,IAAMI,sBAAsB,IAAID,OAAOF,0BAAAA;;;ADFvC,SAASI,UAAUC,MAAcC,QAAqBC,SAAqB;AAChF,QAAMC,SAASD,SAASE,SAASC,6BAA6BC;AAC9D,SAAOC,MAAMP,MAAMQ,MAAMP,MAAAA,MAAYO,IAAIC,IAAI,IAAIN,MAAAA,GAAS,CAAA,EAAG;AAC/D;AAHgBJ;","names":["sql","check","SEGMENT","CODE_PATTERN_SOURCE","DOTTED_CODE_PATTERN_SOURCE","CODE_PATTERN","RegExp","DOTTED_CODE_PATTERN","codeCheck","name","column","options","source","dotted","DOTTED_CODE_PATTERN_SOURCE","CODE_PATTERN_SOURCE","check","sql","raw"]}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/exceptions/index.ts
|
|
22
|
+
var exceptions_exports = {};
|
|
23
|
+
__export(exceptions_exports, {
|
|
24
|
+
BadGatewayException: () => BadGatewayException,
|
|
25
|
+
BadRequestException: () => BadRequestException,
|
|
26
|
+
ConflictException: () => ConflictException,
|
|
27
|
+
ForbiddenException: () => ForbiddenException,
|
|
28
|
+
GoneException: () => GoneException,
|
|
29
|
+
HttpProblemException: () => HttpProblemException,
|
|
30
|
+
InternalServerErrorException: () => InternalServerErrorException,
|
|
31
|
+
InvalidCursorException: () => InvalidCursorException,
|
|
32
|
+
MethodNotAllowedException: () => MethodNotAllowedException,
|
|
33
|
+
NotAcceptableException: () => NotAcceptableException,
|
|
34
|
+
NotFoundException: () => NotFoundException,
|
|
35
|
+
NotImplementedException: () => NotImplementedException,
|
|
36
|
+
PayloadTooLargeException: () => PayloadTooLargeException,
|
|
37
|
+
RequestTimeoutException: () => RequestTimeoutException,
|
|
38
|
+
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
39
|
+
TooManyRequestsException: () => TooManyRequestsException,
|
|
40
|
+
UnauthorizedException: () => UnauthorizedException,
|
|
41
|
+
UnprocessableEntityException: () => UnprocessableEntityException,
|
|
42
|
+
UnsupportedMediaTypeException: () => UnsupportedMediaTypeException,
|
|
43
|
+
ValidationException: () => ValidationException
|
|
44
|
+
});
|
|
45
|
+
module.exports = __toCommonJS(exceptions_exports);
|
|
46
|
+
|
|
47
|
+
// src/exceptions/bad-gateway.exception.ts
|
|
48
|
+
var import_common2 = require("@nestjs/common");
|
|
49
|
+
|
|
50
|
+
// src/exceptions/base-field.exception.ts
|
|
51
|
+
var import_common = require("@nestjs/common");
|
|
52
|
+
var HttpProblemException = class extends import_common.HttpException {
|
|
53
|
+
static {
|
|
54
|
+
__name(this, "HttpProblemException");
|
|
55
|
+
}
|
|
56
|
+
constructor(detailOrOptions, httpStatus) {
|
|
57
|
+
const options = typeof detailOrOptions === "string" ? {
|
|
58
|
+
detail: detailOrOptions
|
|
59
|
+
} : detailOrOptions;
|
|
60
|
+
super({
|
|
61
|
+
type: options.type ?? "about:blank",
|
|
62
|
+
label: options.label,
|
|
63
|
+
detail: options.detail,
|
|
64
|
+
errors: options.errors ?? []
|
|
65
|
+
}, httpStatus);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// src/exceptions/bad-gateway.exception.ts
|
|
70
|
+
var BadGatewayException = class extends HttpProblemException {
|
|
71
|
+
static {
|
|
72
|
+
__name(this, "BadGatewayException");
|
|
73
|
+
}
|
|
74
|
+
constructor(detailOrOptions) {
|
|
75
|
+
super(detailOrOptions ?? "Bad Gateway", import_common2.HttpStatus.BAD_GATEWAY);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// src/exceptions/bad-request.exception.ts
|
|
80
|
+
var import_common3 = require("@nestjs/common");
|
|
81
|
+
var BadRequestException = class extends HttpProblemException {
|
|
82
|
+
static {
|
|
83
|
+
__name(this, "BadRequestException");
|
|
84
|
+
}
|
|
85
|
+
constructor(detailOrOptions) {
|
|
86
|
+
super(detailOrOptions ?? "Bad Request", import_common3.HttpStatus.BAD_REQUEST);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// src/exceptions/conflict.exception.ts
|
|
91
|
+
var import_common4 = require("@nestjs/common");
|
|
92
|
+
var ConflictException = class extends HttpProblemException {
|
|
93
|
+
static {
|
|
94
|
+
__name(this, "ConflictException");
|
|
95
|
+
}
|
|
96
|
+
constructor(detailOrOptions) {
|
|
97
|
+
super(detailOrOptions ?? "Conflict", import_common4.HttpStatus.CONFLICT);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// src/exceptions/forbidden.exception.ts
|
|
102
|
+
var import_common5 = require("@nestjs/common");
|
|
103
|
+
var ForbiddenException = class extends HttpProblemException {
|
|
104
|
+
static {
|
|
105
|
+
__name(this, "ForbiddenException");
|
|
106
|
+
}
|
|
107
|
+
constructor(detailOrOptions) {
|
|
108
|
+
super(detailOrOptions ?? "Forbidden", import_common5.HttpStatus.FORBIDDEN);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
// src/exceptions/gone.exception.ts
|
|
113
|
+
var import_common6 = require("@nestjs/common");
|
|
114
|
+
var GoneException = class extends HttpProblemException {
|
|
115
|
+
static {
|
|
116
|
+
__name(this, "GoneException");
|
|
117
|
+
}
|
|
118
|
+
constructor(detailOrOptions) {
|
|
119
|
+
super(detailOrOptions ?? "Gone", import_common6.HttpStatus.GONE);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
// src/exceptions/internal-server-error.exception.ts
|
|
124
|
+
var import_common7 = require("@nestjs/common");
|
|
125
|
+
var InternalServerErrorException = class extends HttpProblemException {
|
|
126
|
+
static {
|
|
127
|
+
__name(this, "InternalServerErrorException");
|
|
128
|
+
}
|
|
129
|
+
constructor(detailOrOptions) {
|
|
130
|
+
super(detailOrOptions ?? "Internal Server Error", import_common7.HttpStatus.INTERNAL_SERVER_ERROR);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
// src/exceptions/invalid-cursor.exception.ts
|
|
135
|
+
var InvalidCursorException = class extends BadRequestException {
|
|
136
|
+
static {
|
|
137
|
+
__name(this, "InvalidCursorException");
|
|
138
|
+
}
|
|
139
|
+
constructor(detail = "The pagination cursor is invalid.") {
|
|
140
|
+
super({
|
|
141
|
+
label: "Invalid cursor",
|
|
142
|
+
detail
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// src/exceptions/method-not-allowed.exception.ts
|
|
148
|
+
var import_common8 = require("@nestjs/common");
|
|
149
|
+
var MethodNotAllowedException = class extends HttpProblemException {
|
|
150
|
+
static {
|
|
151
|
+
__name(this, "MethodNotAllowedException");
|
|
152
|
+
}
|
|
153
|
+
constructor(detailOrOptions) {
|
|
154
|
+
super(detailOrOptions ?? "Method Not Allowed", import_common8.HttpStatus.METHOD_NOT_ALLOWED);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// src/exceptions/not-acceptable.exception.ts
|
|
159
|
+
var import_common9 = require("@nestjs/common");
|
|
160
|
+
var NotAcceptableException = class extends HttpProblemException {
|
|
161
|
+
static {
|
|
162
|
+
__name(this, "NotAcceptableException");
|
|
163
|
+
}
|
|
164
|
+
constructor(detailOrOptions) {
|
|
165
|
+
super(detailOrOptions ?? "Not Acceptable", import_common9.HttpStatus.NOT_ACCEPTABLE);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
// src/exceptions/not-found.exception.ts
|
|
170
|
+
var import_common10 = require("@nestjs/common");
|
|
171
|
+
var NotFoundException = class extends HttpProblemException {
|
|
172
|
+
static {
|
|
173
|
+
__name(this, "NotFoundException");
|
|
174
|
+
}
|
|
175
|
+
constructor(detailOrOptions) {
|
|
176
|
+
super(detailOrOptions ?? "Not Found", import_common10.HttpStatus.NOT_FOUND);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
// src/exceptions/not-implemented.exception.ts
|
|
181
|
+
var import_common11 = require("@nestjs/common");
|
|
182
|
+
var NotImplementedException = class extends HttpProblemException {
|
|
183
|
+
static {
|
|
184
|
+
__name(this, "NotImplementedException");
|
|
185
|
+
}
|
|
186
|
+
constructor(detailOrOptions) {
|
|
187
|
+
super(detailOrOptions ?? "Not Implemented", import_common11.HttpStatus.NOT_IMPLEMENTED);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
// src/exceptions/payload-too-large.exception.ts
|
|
192
|
+
var import_common12 = require("@nestjs/common");
|
|
193
|
+
var PayloadTooLargeException = class extends HttpProblemException {
|
|
194
|
+
static {
|
|
195
|
+
__name(this, "PayloadTooLargeException");
|
|
196
|
+
}
|
|
197
|
+
constructor(detailOrOptions) {
|
|
198
|
+
super(detailOrOptions ?? "Payload Too Large", import_common12.HttpStatus.PAYLOAD_TOO_LARGE);
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
// src/exceptions/request-timeout.exception.ts
|
|
203
|
+
var import_common13 = require("@nestjs/common");
|
|
204
|
+
var RequestTimeoutException = class extends HttpProblemException {
|
|
205
|
+
static {
|
|
206
|
+
__name(this, "RequestTimeoutException");
|
|
207
|
+
}
|
|
208
|
+
constructor(detailOrOptions) {
|
|
209
|
+
super(detailOrOptions ?? "Request Timeout", import_common13.HttpStatus.REQUEST_TIMEOUT);
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
// src/exceptions/service-unavailable.exception.ts
|
|
214
|
+
var import_common14 = require("@nestjs/common");
|
|
215
|
+
var ServiceUnavailableException = class extends HttpProblemException {
|
|
216
|
+
static {
|
|
217
|
+
__name(this, "ServiceUnavailableException");
|
|
218
|
+
}
|
|
219
|
+
constructor(detailOrOptions) {
|
|
220
|
+
super(detailOrOptions ?? "Service Unavailable", import_common14.HttpStatus.SERVICE_UNAVAILABLE);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
// src/exceptions/too-many-requests.exception.ts
|
|
225
|
+
var import_common15 = require("@nestjs/common");
|
|
226
|
+
var TooManyRequestsException = class extends HttpProblemException {
|
|
227
|
+
static {
|
|
228
|
+
__name(this, "TooManyRequestsException");
|
|
229
|
+
}
|
|
230
|
+
constructor(detailOrOptions) {
|
|
231
|
+
super(detailOrOptions ?? "Too Many Requests", import_common15.HttpStatus.TOO_MANY_REQUESTS);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
// src/exceptions/unauthorized.exception.ts
|
|
236
|
+
var import_common16 = require("@nestjs/common");
|
|
237
|
+
var UnauthorizedException = class extends HttpProblemException {
|
|
238
|
+
static {
|
|
239
|
+
__name(this, "UnauthorizedException");
|
|
240
|
+
}
|
|
241
|
+
constructor(detailOrOptions) {
|
|
242
|
+
super(detailOrOptions ?? "Unauthorized", import_common16.HttpStatus.UNAUTHORIZED);
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
// src/exceptions/unprocessable-entity.exception.ts
|
|
247
|
+
var import_common17 = require("@nestjs/common");
|
|
248
|
+
var UnprocessableEntityException = class extends HttpProblemException {
|
|
249
|
+
static {
|
|
250
|
+
__name(this, "UnprocessableEntityException");
|
|
251
|
+
}
|
|
252
|
+
constructor(detailOrOptions) {
|
|
253
|
+
super(detailOrOptions ?? "Unprocessable Entity", import_common17.HttpStatus.UNPROCESSABLE_ENTITY);
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
// src/exceptions/unsupported-media-type.exception.ts
|
|
258
|
+
var import_common18 = require("@nestjs/common");
|
|
259
|
+
var UnsupportedMediaTypeException = class extends HttpProblemException {
|
|
260
|
+
static {
|
|
261
|
+
__name(this, "UnsupportedMediaTypeException");
|
|
262
|
+
}
|
|
263
|
+
constructor(detailOrOptions) {
|
|
264
|
+
super(detailOrOptions ?? "Unsupported Media Type", import_common18.HttpStatus.UNSUPPORTED_MEDIA_TYPE);
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
// src/exceptions/validation.exception.ts
|
|
269
|
+
var import_common19 = require("@nestjs/common");
|
|
270
|
+
var ValidationException = class extends HttpProblemException {
|
|
271
|
+
static {
|
|
272
|
+
__name(this, "ValidationException");
|
|
273
|
+
}
|
|
274
|
+
constructor(detailOrOptions) {
|
|
275
|
+
super(detailOrOptions ?? "Validation Failed", import_common19.HttpStatus.UNPROCESSABLE_ENTITY);
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
279
|
+
0 && (module.exports = {
|
|
280
|
+
BadGatewayException,
|
|
281
|
+
BadRequestException,
|
|
282
|
+
ConflictException,
|
|
283
|
+
ForbiddenException,
|
|
284
|
+
GoneException,
|
|
285
|
+
HttpProblemException,
|
|
286
|
+
InternalServerErrorException,
|
|
287
|
+
InvalidCursorException,
|
|
288
|
+
MethodNotAllowedException,
|
|
289
|
+
NotAcceptableException,
|
|
290
|
+
NotFoundException,
|
|
291
|
+
NotImplementedException,
|
|
292
|
+
PayloadTooLargeException,
|
|
293
|
+
RequestTimeoutException,
|
|
294
|
+
ServiceUnavailableException,
|
|
295
|
+
TooManyRequestsException,
|
|
296
|
+
UnauthorizedException,
|
|
297
|
+
UnprocessableEntityException,
|
|
298
|
+
UnsupportedMediaTypeException,
|
|
299
|
+
ValidationException
|
|
300
|
+
});
|
|
301
|
+
//# sourceMappingURL=exceptions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/exceptions/index.ts","../src/exceptions/bad-gateway.exception.ts","../src/exceptions/base-field.exception.ts","../src/exceptions/bad-request.exception.ts","../src/exceptions/conflict.exception.ts","../src/exceptions/forbidden.exception.ts","../src/exceptions/gone.exception.ts","../src/exceptions/internal-server-error.exception.ts","../src/exceptions/invalid-cursor.exception.ts","../src/exceptions/method-not-allowed.exception.ts","../src/exceptions/not-acceptable.exception.ts","../src/exceptions/not-found.exception.ts","../src/exceptions/not-implemented.exception.ts","../src/exceptions/payload-too-large.exception.ts","../src/exceptions/request-timeout.exception.ts","../src/exceptions/service-unavailable.exception.ts","../src/exceptions/too-many-requests.exception.ts","../src/exceptions/unauthorized.exception.ts","../src/exceptions/unprocessable-entity.exception.ts","../src/exceptions/unsupported-media-type.exception.ts","../src/exceptions/validation.exception.ts"],"sourcesContent":["// Export the new base class and types\n\n// Export all concrete exception classes\nexport * from './bad-gateway.exception';\nexport * from './bad-request.exception';\nexport type { FieldError, ProblemOptions } from './base-field.exception';\nexport { HttpProblemException } from './base-field.exception';\nexport * from './conflict.exception';\nexport * from './forbidden.exception';\nexport * from './gone.exception';\nexport * from './internal-server-error.exception';\nexport * from './invalid-cursor.exception';\nexport * from './method-not-allowed.exception';\nexport * from './not-acceptable.exception';\nexport * from './not-found.exception';\nexport * from './not-implemented.exception';\nexport * from './payload-too-large.exception';\nexport * from './request-timeout.exception';\nexport * from './service-unavailable.exception';\nexport * from './too-many-requests.exception';\nexport * from './unauthorized.exception';\nexport * from './unprocessable-entity.exception';\nexport * from './unsupported-media-type.exception';\nexport * from './validation.exception';\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class BadGatewayException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Bad Gateway', HttpStatus.BAD_GATEWAY);\n }\n}\n","import { HttpException, HttpStatus } from '@nestjs/common';\nimport type { FieldError } from '../types/error-response.types';\n\n// Re-export FieldError for backwards compatibility\nexport type { FieldError } from '../types/error-response.types';\n\nexport interface ProblemOptions {\n type?: string;\n label?: string;\n detail?: string;\n errors?: FieldError[];\n}\n\nexport abstract class HttpProblemException extends HttpException {\n constructor(detailOrOptions: string | ProblemOptions, httpStatus: HttpStatus) {\n const options = typeof detailOrOptions === 'string' ? { detail: detailOrOptions } : detailOrOptions;\n\n super(\n {\n type: options.type ?? 'about:blank',\n label: options.label,\n detail: options.detail,\n errors: options.errors ?? [],\n },\n httpStatus,\n );\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class BadRequestException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Bad Request', HttpStatus.BAD_REQUEST);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class ConflictException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Conflict', HttpStatus.CONFLICT);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class ForbiddenException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Forbidden', HttpStatus.FORBIDDEN);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class GoneException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Gone', HttpStatus.GONE);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class InternalServerErrorException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Internal Server Error', HttpStatus.INTERNAL_SERVER_ERROR);\n }\n}\n","import type { ProblemOptions } from './base-field.exception';\nimport { BadRequestException } from './bad-request.exception';\n\nexport class InvalidCursorException extends BadRequestException {\n constructor(detail = 'The pagination cursor is invalid.') {\n super({ label: 'Invalid cursor', detail } satisfies ProblemOptions);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class MethodNotAllowedException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Method Not Allowed', HttpStatus.METHOD_NOT_ALLOWED);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class NotAcceptableException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Not Acceptable', HttpStatus.NOT_ACCEPTABLE);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class NotFoundException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Not Found', HttpStatus.NOT_FOUND);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class NotImplementedException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Not Implemented', HttpStatus.NOT_IMPLEMENTED);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class PayloadTooLargeException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Payload Too Large', HttpStatus.PAYLOAD_TOO_LARGE);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class RequestTimeoutException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Request Timeout', HttpStatus.REQUEST_TIMEOUT);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class ServiceUnavailableException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Service Unavailable', HttpStatus.SERVICE_UNAVAILABLE);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class TooManyRequestsException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Too Many Requests', HttpStatus.TOO_MANY_REQUESTS);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class UnauthorizedException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Unauthorized', HttpStatus.UNAUTHORIZED);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class UnprocessableEntityException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Unprocessable Entity', HttpStatus.UNPROCESSABLE_ENTITY);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class UnsupportedMediaTypeException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Unsupported Media Type', HttpStatus.UNSUPPORTED_MEDIA_TYPE);\n }\n}\n","import { HttpStatus } from '@nestjs/common';\nimport { HttpProblemException, type ProblemOptions } from './base-field.exception';\n\nexport class ValidationException extends HttpProblemException {\n constructor(detailOrOptions?: string | ProblemOptions) {\n super(detailOrOptions ?? 'Validation Failed', HttpStatus.UNPROCESSABLE_ENTITY);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA,IAAAA,iBAA2B;;;ACA3B,oBAA0C;AAanC,IAAeC,uBAAf,cAA4CC,4BAAAA;EAbnD,OAamDA;;;EACjD,YAAYC,iBAA0CC,YAAwB;AAC5E,UAAMC,UAAU,OAAOF,oBAAoB,WAAW;MAAEG,QAAQH;IAAgB,IAAIA;AAEpF,UACE;MACEI,MAAMF,QAAQE,QAAQ;MACtBC,OAAOH,QAAQG;MACfF,QAAQD,QAAQC;MAChBG,QAAQJ,QAAQI,UAAU,CAAA;IAC5B,GACAL,UAAAA;EAEJ;AACF;;;ADxBO,IAAMM,sBAAN,cAAkCC,qBAAAA;EAHzC,OAGyCA;;;EACvC,YAAYC,iBAA2C;AACrD,UAAMA,mBAAmB,eAAeC,0BAAWC,WAAW;EAChE;AACF;;;AEPA,IAAAC,iBAA2B;AAGpB,IAAMC,sBAAN,cAAkCC,qBAAAA;EAHzC,OAGyCA;;;EACvC,YAAYC,iBAA2C;AACrD,UAAMA,mBAAmB,eAAeC,0BAAWC,WAAW;EAChE;AACF;;;ACPA,IAAAC,iBAA2B;AAGpB,IAAMC,oBAAN,cAAgCC,qBAAAA;EAHvC,OAGuCA;;;EACrC,Y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;ACPA,IAAAC,kBAA2B;AAGpB,IAAMC,sBAAN,cAAkCC,qBAAAA;EAHzC,OAGyCA;;;EACvC,YAAYC,iBAA2C;AACrD,UAAMA,mBAAmB,qBAAqBC,2BAAWC,oBAAoB;EAC/E;AACF;","names":["import_common","HttpProblemException","HttpException","detailOrOptions","httpStatus","options","detail","type","label","errors","BadGatewayException","HttpProblemException","detailOrOptions","HttpStatus","BAD_GATEWAY","import_common","BadRequestException","HttpProblemException","detailOrOptions","HttpStatus","BAD_REQUEST","import_common","ConflictException","HttpProblemException","detailOrOptions","HttpStatus","CONFLICT","import_common","ForbiddenException","HttpProblemException","detailOrOptions","HttpStatus","FORBIDDEN","import_common","GoneException","HttpProblemException","detailOrOptions","HttpStatus","GONE","import_common","InternalServerErrorException","HttpProblemException","detailOrOptions","HttpStatus","INTERNAL_SERVER_ERROR","InvalidCursorException","BadRequestException","detail","label","import_common","MethodNotAllowedException","HttpProblemException","detailOrOptions","HttpStatus","METHOD_NOT_ALLOWED","import_common","NotAcceptableException","HttpProblemException","detailOrOptions","HttpStatus","NOT_ACCEPTABLE","import_common","NotFoundException","HttpProblemException","detailOrOptions","HttpStatus","NOT_FOUND","import_common","NotImplementedException","HttpProblemException","detailOrOptions","HttpStatus","NOT_IMPLEMENTED","import_common","PayloadTooLargeException","HttpProblemException","detailOrOptions","HttpStatus","PAYLOAD_TOO_LARGE","import_common","RequestTimeoutException","HttpProblemException","detailOrOptions","HttpStatus","REQUEST_TIMEOUT","import_common","ServiceUnavailableException","HttpProblemException","detailOrOptions","HttpStatus","SERVICE_UNAVAILABLE","import_common","TooManyRequestsException","HttpProblemException","detailOrOptions","HttpStatus","TOO_MANY_REQUESTS","import_common","UnauthorizedException","HttpProblemException","detailOrOptions","HttpStatus","UNAUTHORIZED","import_common","UnprocessableEntityException","HttpProblemException","detailOrOptions","HttpStatus","UNPROCESSABLE_ENTITY","import_common","UnsupportedMediaTypeException","HttpProblemException","detailOrOptions","HttpStatus","UNSUPPORTED_MEDIA_TYPE","import_common","ValidationException","HttpProblemException","detailOrOptions","HttpStatus","UNPROCESSABLE_ENTITY"]}
|