rehive 4.1.4 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin.d.mts +43 -106
- package/dist/admin.d.ts +43 -106
- package/dist/admin.js +1 -1
- package/dist/admin.mjs +1 -1
- package/dist/auth.d.mts +2 -2
- package/dist/auth.d.ts +2 -2
- package/dist/auth.js +1 -1
- package/dist/auth.mjs +1 -1
- package/dist/{chunk-AVPKHYGS.js → chunk-7USVOK77.js} +5 -5
- package/dist/{chunk-X6YDNXYV.js → chunk-ERD2XKSM.js} +1 -1
- package/dist/chunk-G3M5QMRX.js +1 -0
- package/dist/chunk-HSPTEN45.mjs +1 -0
- package/dist/chunk-HWXE5WBF.js +7 -0
- package/dist/chunk-MUN3POSM.mjs +7 -0
- package/dist/{chunk-4WSHB6U6.mjs → chunk-PCR54D6A.mjs} +1 -1
- package/dist/chunk-ZUZHOLAX.mjs +7 -0
- package/dist/{create-api-client-ebyTfhcm.d.ts → create-api-client-ADSlg8HX.d.ts} +1 -1
- package/dist/{create-api-client-C-LEZku2.d.mts → create-api-client-B4Q01gHp.d.mts} +1 -1
- package/dist/{create-auth-DsnHpEf0.d.mts → create-auth-CT_IFt3T.d.mts} +53 -47
- package/dist/{create-auth-DsnHpEf0.d.ts → create-auth-CT_IFt3T.d.ts} +53 -47
- package/dist/extensions/alchemy.d.mts +3 -3
- package/dist/extensions/alchemy.d.ts +3 -3
- package/dist/extensions/alchemy.js +5 -5
- package/dist/extensions/alchemy.mjs +5 -5
- package/dist/extensions/app.d.mts +3 -3
- package/dist/extensions/app.d.ts +3 -3
- package/dist/extensions/app.js +5 -5
- package/dist/extensions/app.mjs +5 -5
- package/dist/extensions/billing.d.mts +3 -3
- package/dist/extensions/billing.d.ts +3 -3
- package/dist/extensions/billing.js +5 -5
- package/dist/extensions/billing.mjs +5 -5
- package/dist/extensions/bridge.d.mts +16 -190
- package/dist/extensions/bridge.d.ts +16 -190
- package/dist/extensions/bridge.js +5 -5
- package/dist/extensions/bridge.mjs +5 -5
- package/dist/extensions/builder.d.mts +3 -3
- package/dist/extensions/builder.d.ts +3 -3
- package/dist/extensions/builder.js +5 -5
- package/dist/extensions/builder.mjs +5 -5
- package/dist/extensions/business.d.mts +47 -82
- package/dist/extensions/business.d.ts +47 -82
- package/dist/extensions/business.js +5 -5
- package/dist/extensions/business.mjs +5 -5
- package/dist/extensions/conversion.d.mts +3 -3
- package/dist/extensions/conversion.d.ts +3 -3
- package/dist/extensions/conversion.js +5 -5
- package/dist/extensions/conversion.mjs +5 -5
- package/dist/extensions/mass-send.d.mts +3 -3
- package/dist/extensions/mass-send.d.ts +3 -3
- package/dist/extensions/mass-send.js +5 -5
- package/dist/extensions/mass-send.mjs +5 -5
- package/dist/extensions/notifications.d.mts +3 -3
- package/dist/extensions/notifications.d.ts +3 -3
- package/dist/extensions/notifications.js +5 -5
- package/dist/extensions/notifications.mjs +5 -5
- package/dist/extensions/payment-requests.d.mts +3 -7
- package/dist/extensions/payment-requests.d.ts +3 -7
- package/dist/extensions/payment-requests.js +5 -5
- package/dist/extensions/payment-requests.mjs +5 -5
- package/dist/extensions/products.d.mts +3 -3
- package/dist/extensions/products.d.ts +3 -3
- package/dist/extensions/products.js +5 -5
- package/dist/extensions/products.mjs +5 -5
- package/dist/extensions/rain.d.mts +3 -3
- package/dist/extensions/rain.d.ts +3 -3
- package/dist/extensions/rain.js +5 -5
- package/dist/extensions/rain.mjs +5 -5
- package/dist/extensions/rewards.d.mts +3 -3
- package/dist/extensions/rewards.d.ts +3 -3
- package/dist/extensions/rewards.js +5 -5
- package/dist/extensions/rewards.mjs +5 -5
- package/dist/extensions/stellar-testnet.d.mts +3 -3
- package/dist/extensions/stellar-testnet.d.ts +3 -3
- package/dist/extensions/stellar-testnet.js +5 -5
- package/dist/extensions/stellar-testnet.mjs +5 -5
- package/dist/extensions/stellar.d.mts +3 -3
- package/dist/extensions/stellar.d.ts +3 -3
- package/dist/extensions/stellar.js +5 -5
- package/dist/extensions/stellar.mjs +5 -5
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +11 -3
- package/dist/react.d.ts +11 -3
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/user.d.mts +6 -16
- package/dist/user.d.ts +6 -16
- package/dist/user.js +1 -1
- package/dist/user.mjs +1 -1
- package/package.json +1 -1
- package/src/auth/create-auth.ts +773 -169
- package/src/auth/index.ts +25 -2
- package/src/auth/types/index.ts +48 -0
- package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/app/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/app/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/billing/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/billing/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/bridge/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/bridge/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/bridge/openapi-ts/index.ts +2 -2
- package/src/extensions/bridge/openapi-ts/sdk.gen.ts +1 -43
- package/src/extensions/bridge/openapi-ts/types.gen.ts +11 -201
- package/src/extensions/builder/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/builder/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/business/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/business/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/business/openapi-ts/types.gen.ts +44 -79
- package/src/extensions/conversion/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/conversion/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/notifications/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/notifications/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/payment-requests/openapi-ts/types.gen.ts +0 -4
- package/src/extensions/products/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/products/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/rain/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/rain/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/rewards/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/rewards/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/stellar/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/stellar/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/admin/openapi-ts/client/client.gen.ts +3 -5
- package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/platform/admin/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/admin/openapi-ts/sdk.gen.ts +10 -10
- package/src/platform/admin/openapi-ts/types.gen.ts +40 -103
- package/src/platform/user/openapi-ts/client/client.gen.ts +3 -5
- package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/platform/user/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/user/openapi-ts/index.ts +2 -2
- package/src/platform/user/openapi-ts/sdk.gen.ts +3 -29
- package/src/platform/user/openapi-ts/types.gen.ts +7 -54
- package/dist/chunk-KUT5NSX7.mjs +0 -7
- package/dist/chunk-KZWBOQHZ.mjs +0 -7
- package/dist/chunk-PE6PG7ZE.js +0 -1
- package/dist/chunk-UYYU5OJ4.js +0 -7
- package/dist/chunk-Z7BUNKND.mjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-
|
|
2
|
-
import '../create-auth-
|
|
1
|
+
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-ADSlg8HX.js';
|
|
2
|
+
import '../create-auth-CT_IFt3T.js';
|
|
3
3
|
|
|
4
4
|
type AuthToken = string | undefined;
|
|
5
5
|
interface Auth {
|
|
@@ -30,7 +30,7 @@ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
|
30
30
|
type ObjectStyle = 'form' | 'deepObject';
|
|
31
31
|
|
|
32
32
|
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
33
|
-
type BodySerializer = (body:
|
|
33
|
+
type BodySerializer = (body: any) => any;
|
|
34
34
|
type QuerySerializerOptionsObject = {
|
|
35
35
|
allowReserved?: boolean;
|
|
36
36
|
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
@@ -604,14 +604,11 @@ type AdminBusiness = {
|
|
|
604
604
|
address_country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
|
|
605
605
|
address_postal_code?: string | null;
|
|
606
606
|
/**
|
|
607
|
-
* * `
|
|
608
|
-
* * `
|
|
609
|
-
* * `
|
|
610
|
-
* * `paused` - paused
|
|
611
|
-
* * `incomplete` - incomplete
|
|
612
|
-
* * `verified` - verified
|
|
607
|
+
* * `declined` - Declined
|
|
608
|
+
* * `pending` - Pending
|
|
609
|
+
* * `verified` - Verified
|
|
613
610
|
*/
|
|
614
|
-
status: '
|
|
611
|
+
status: 'declined' | 'pending' | 'verified';
|
|
615
612
|
metadata?: {
|
|
616
613
|
[key: string]: unknown;
|
|
617
614
|
} | null;
|
|
@@ -677,11 +674,10 @@ type AdminBusinessDocument = {
|
|
|
677
674
|
* * `obsolete` - obsolete
|
|
678
675
|
* * `declined` - declined
|
|
679
676
|
* * `pending` - pending
|
|
680
|
-
* * `paused` - paused
|
|
681
677
|
* * `incomplete` - incomplete
|
|
682
678
|
* * `verified` - verified
|
|
683
679
|
*/
|
|
684
|
-
status: 'obsolete' | 'declined' | 'pending' | '
|
|
680
|
+
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
685
681
|
metadata?: {
|
|
686
682
|
[key: string]: unknown;
|
|
687
683
|
} | null;
|
|
@@ -849,11 +845,10 @@ type AdminCreateBusinessDocument = {
|
|
|
849
845
|
* * `obsolete` - obsolete
|
|
850
846
|
* * `declined` - declined
|
|
851
847
|
* * `pending` - pending
|
|
852
|
-
* * `paused` - paused
|
|
853
848
|
* * `incomplete` - incomplete
|
|
854
849
|
* * `verified` - verified
|
|
855
850
|
*/
|
|
856
|
-
status: 'obsolete' | 'declined' | 'pending' | '
|
|
851
|
+
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
857
852
|
metadata?: {
|
|
858
853
|
[key: string]: unknown;
|
|
859
854
|
} | null;
|
|
@@ -1203,14 +1198,11 @@ type AdminUpdateBusiness = {
|
|
|
1203
1198
|
address_country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
|
|
1204
1199
|
address_postal_code?: string | null;
|
|
1205
1200
|
/**
|
|
1206
|
-
* * `
|
|
1207
|
-
* * `
|
|
1208
|
-
* * `
|
|
1209
|
-
* * `paused` - paused
|
|
1210
|
-
* * `incomplete` - incomplete
|
|
1211
|
-
* * `verified` - verified
|
|
1201
|
+
* * `declined` - Declined
|
|
1202
|
+
* * `pending` - Pending
|
|
1203
|
+
* * `verified` - Verified
|
|
1212
1204
|
*/
|
|
1213
|
-
status?: '
|
|
1205
|
+
status?: 'declined' | 'pending' | 'verified';
|
|
1214
1206
|
metadata?: {
|
|
1215
1207
|
[key: string]: unknown;
|
|
1216
1208
|
} | null;
|
|
@@ -1932,14 +1924,11 @@ type ManagerBusiness = {
|
|
|
1932
1924
|
address_country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
|
|
1933
1925
|
address_postal_code?: string | null;
|
|
1934
1926
|
/**
|
|
1935
|
-
* * `
|
|
1936
|
-
* * `
|
|
1937
|
-
* * `
|
|
1938
|
-
* * `paused` - paused
|
|
1939
|
-
* * `incomplete` - incomplete
|
|
1940
|
-
* * `verified` - verified
|
|
1927
|
+
* * `declined` - Declined
|
|
1928
|
+
* * `pending` - Pending
|
|
1929
|
+
* * `verified` - Verified
|
|
1941
1930
|
*/
|
|
1942
|
-
status: '
|
|
1931
|
+
status: 'declined' | 'pending' | 'verified';
|
|
1943
1932
|
metadata?: {
|
|
1944
1933
|
[key: string]: unknown;
|
|
1945
1934
|
} | null;
|
|
@@ -1986,11 +1975,10 @@ type ManagerBusinessDocument = {
|
|
|
1986
1975
|
* * `obsolete` - obsolete
|
|
1987
1976
|
* * `declined` - declined
|
|
1988
1977
|
* * `pending` - pending
|
|
1989
|
-
* * `paused` - paused
|
|
1990
1978
|
* * `incomplete` - incomplete
|
|
1991
1979
|
* * `verified` - verified
|
|
1992
1980
|
*/
|
|
1993
|
-
status: 'obsolete' | 'declined' | 'pending' | '
|
|
1981
|
+
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
1994
1982
|
metadata?: {
|
|
1995
1983
|
[key: string]: unknown;
|
|
1996
1984
|
} | null;
|
|
@@ -2520,14 +2508,11 @@ type ManagerCreateBusiness = {
|
|
|
2520
2508
|
address_country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
|
|
2521
2509
|
address_postal_code?: string | null;
|
|
2522
2510
|
/**
|
|
2523
|
-
* * `
|
|
2524
|
-
* * `
|
|
2525
|
-
* * `
|
|
2526
|
-
* * `paused` - paused
|
|
2527
|
-
* * `incomplete` - incomplete
|
|
2528
|
-
* * `verified` - verified
|
|
2511
|
+
* * `declined` - Declined
|
|
2512
|
+
* * `pending` - Pending
|
|
2513
|
+
* * `verified` - Verified
|
|
2529
2514
|
*/
|
|
2530
|
-
status: '
|
|
2515
|
+
status: 'declined' | 'pending' | 'verified';
|
|
2531
2516
|
metadata?: {
|
|
2532
2517
|
[key: string]: unknown;
|
|
2533
2518
|
} | null;
|
|
@@ -2555,11 +2540,10 @@ type ManagerCreateBusinessDocument = {
|
|
|
2555
2540
|
* * `obsolete` - obsolete
|
|
2556
2541
|
* * `declined` - declined
|
|
2557
2542
|
* * `pending` - pending
|
|
2558
|
-
* * `paused` - paused
|
|
2559
2543
|
* * `incomplete` - incomplete
|
|
2560
2544
|
* * `verified` - verified
|
|
2561
2545
|
*/
|
|
2562
|
-
status: 'obsolete' | 'declined' | 'pending' | '
|
|
2546
|
+
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
2563
2547
|
metadata?: {
|
|
2564
2548
|
[key: string]: unknown;
|
|
2565
2549
|
} | null;
|
|
@@ -2982,14 +2966,11 @@ type ManagerUpdateBusiness = {
|
|
|
2982
2966
|
address_country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
|
|
2983
2967
|
address_postal_code?: string | null;
|
|
2984
2968
|
/**
|
|
2985
|
-
* * `
|
|
2986
|
-
* * `
|
|
2987
|
-
* * `
|
|
2988
|
-
* * `paused` - paused
|
|
2989
|
-
* * `incomplete` - incomplete
|
|
2990
|
-
* * `verified` - verified
|
|
2969
|
+
* * `declined` - Declined
|
|
2970
|
+
* * `pending` - Pending
|
|
2971
|
+
* * `verified` - Verified
|
|
2991
2972
|
*/
|
|
2992
|
-
status: '
|
|
2973
|
+
status: 'declined' | 'pending' | 'verified';
|
|
2993
2974
|
metadata?: {
|
|
2994
2975
|
[key: string]: unknown;
|
|
2995
2976
|
} | null;
|
|
@@ -3298,11 +3279,10 @@ type PatchedAdminBusinessDocument = {
|
|
|
3298
3279
|
* * `obsolete` - obsolete
|
|
3299
3280
|
* * `declined` - declined
|
|
3300
3281
|
* * `pending` - pending
|
|
3301
|
-
* * `paused` - paused
|
|
3302
3282
|
* * `incomplete` - incomplete
|
|
3303
3283
|
* * `verified` - verified
|
|
3304
3284
|
*/
|
|
3305
|
-
status?: 'obsolete' | 'declined' | 'pending' | '
|
|
3285
|
+
status?: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
3306
3286
|
metadata?: {
|
|
3307
3287
|
[key: string]: unknown;
|
|
3308
3288
|
} | null;
|
|
@@ -3593,14 +3573,11 @@ type PatchedAdminUpdateBusiness = {
|
|
|
3593
3573
|
address_country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
|
|
3594
3574
|
address_postal_code?: string | null;
|
|
3595
3575
|
/**
|
|
3596
|
-
* * `
|
|
3597
|
-
* * `
|
|
3598
|
-
* * `
|
|
3599
|
-
* * `paused` - paused
|
|
3600
|
-
* * `incomplete` - incomplete
|
|
3601
|
-
* * `verified` - verified
|
|
3576
|
+
* * `declined` - Declined
|
|
3577
|
+
* * `pending` - Pending
|
|
3578
|
+
* * `verified` - Verified
|
|
3602
3579
|
*/
|
|
3603
|
-
status?: '
|
|
3580
|
+
status?: 'declined' | 'pending' | 'verified';
|
|
3604
3581
|
metadata?: {
|
|
3605
3582
|
[key: string]: unknown;
|
|
3606
3583
|
} | null;
|
|
@@ -3913,14 +3890,11 @@ type PatchedManagerUpdateBusiness = {
|
|
|
3913
3890
|
address_country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
|
|
3914
3891
|
address_postal_code?: string | null;
|
|
3915
3892
|
/**
|
|
3916
|
-
* * `
|
|
3917
|
-
* * `
|
|
3918
|
-
* * `
|
|
3919
|
-
* * `paused` - paused
|
|
3920
|
-
* * `incomplete` - incomplete
|
|
3921
|
-
* * `verified` - verified
|
|
3893
|
+
* * `declined` - Declined
|
|
3894
|
+
* * `pending` - Pending
|
|
3895
|
+
* * `verified` - Verified
|
|
3922
3896
|
*/
|
|
3923
|
-
status?: '
|
|
3897
|
+
status?: 'declined' | 'pending' | 'verified';
|
|
3924
3898
|
metadata?: {
|
|
3925
3899
|
[key: string]: unknown;
|
|
3926
3900
|
} | null;
|
|
@@ -4627,11 +4601,10 @@ type AdminBusinessDocumentWritable = {
|
|
|
4627
4601
|
* * `obsolete` - obsolete
|
|
4628
4602
|
* * `declined` - declined
|
|
4629
4603
|
* * `pending` - pending
|
|
4630
|
-
* * `paused` - paused
|
|
4631
4604
|
* * `incomplete` - incomplete
|
|
4632
4605
|
* * `verified` - verified
|
|
4633
4606
|
*/
|
|
4634
|
-
status: 'obsolete' | 'declined' | 'pending' | '
|
|
4607
|
+
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
4635
4608
|
metadata?: {
|
|
4636
4609
|
[key: string]: unknown;
|
|
4637
4610
|
} | null;
|
|
@@ -4726,11 +4699,10 @@ type AdminCreateBusinessDocumentWritable = {
|
|
|
4726
4699
|
* * `obsolete` - obsolete
|
|
4727
4700
|
* * `declined` - declined
|
|
4728
4701
|
* * `pending` - pending
|
|
4729
|
-
* * `paused` - paused
|
|
4730
4702
|
* * `incomplete` - incomplete
|
|
4731
4703
|
* * `verified` - verified
|
|
4732
4704
|
*/
|
|
4733
|
-
status: 'obsolete' | 'declined' | 'pending' | '
|
|
4705
|
+
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
4734
4706
|
metadata?: {
|
|
4735
4707
|
[key: string]: unknown;
|
|
4736
4708
|
} | null;
|
|
@@ -5041,14 +5013,11 @@ type AdminUpdateBusinessWritable = {
|
|
|
5041
5013
|
address_country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
|
|
5042
5014
|
address_postal_code?: string | null;
|
|
5043
5015
|
/**
|
|
5044
|
-
* * `
|
|
5045
|
-
* * `
|
|
5046
|
-
* * `
|
|
5047
|
-
* * `paused` - paused
|
|
5048
|
-
* * `incomplete` - incomplete
|
|
5049
|
-
* * `verified` - verified
|
|
5016
|
+
* * `declined` - Declined
|
|
5017
|
+
* * `pending` - Pending
|
|
5018
|
+
* * `verified` - Verified
|
|
5050
5019
|
*/
|
|
5051
|
-
status?: '
|
|
5020
|
+
status?: 'declined' | 'pending' | 'verified';
|
|
5052
5021
|
metadata?: {
|
|
5053
5022
|
[key: string]: unknown;
|
|
5054
5023
|
} | null;
|
|
@@ -6685,11 +6654,10 @@ type PatchedAdminBusinessDocumentWritable = {
|
|
|
6685
6654
|
* * `obsolete` - obsolete
|
|
6686
6655
|
* * `declined` - declined
|
|
6687
6656
|
* * `pending` - pending
|
|
6688
|
-
* * `paused` - paused
|
|
6689
6657
|
* * `incomplete` - incomplete
|
|
6690
6658
|
* * `verified` - verified
|
|
6691
6659
|
*/
|
|
6692
|
-
status?: 'obsolete' | 'declined' | 'pending' | '
|
|
6660
|
+
status?: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
6693
6661
|
metadata?: {
|
|
6694
6662
|
[key: string]: unknown;
|
|
6695
6663
|
} | null;
|
|
@@ -6971,14 +6939,11 @@ type PatchedAdminUpdateBusinessWritable = {
|
|
|
6971
6939
|
address_country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'KP' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
|
|
6972
6940
|
address_postal_code?: string | null;
|
|
6973
6941
|
/**
|
|
6974
|
-
* * `
|
|
6975
|
-
* * `
|
|
6976
|
-
* * `
|
|
6977
|
-
* * `paused` - paused
|
|
6978
|
-
* * `incomplete` - incomplete
|
|
6979
|
-
* * `verified` - verified
|
|
6942
|
+
* * `declined` - Declined
|
|
6943
|
+
* * `pending` - Pending
|
|
6944
|
+
* * `verified` - Verified
|
|
6980
6945
|
*/
|
|
6981
|
-
status?: '
|
|
6946
|
+
status?: 'declined' | 'pending' | 'verified';
|
|
6982
6947
|
metadata?: {
|
|
6983
6948
|
[key: string]: unknown;
|
|
6984
6949
|
} | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkGR5TETAUjs = require('../chunk-GR5TETAU.js');var _chunkOEIQFP6Tjs = require('../chunk-OEIQFP6T.js');var K={};_chunkOEIQFP6Tjs.a.call(void 0, K,{activateCreate:()=>ge,adminBusinessCategoriesCreate:()=>Oe,adminBusinessCategoriesDestroy:()=>we,adminBusinessCategoriesList:()=>fe,adminBusinessCategoriesPartialUpdate:()=>be,adminBusinessCategoriesRetrieve:()=>Re,adminBusinessCategoriesUpdate:()=>Be,adminBusinessUsersCreate:()=>Ce,adminBusinessUsersList:()=>Te,adminBusinessUsersPartialUpdate:()=>Ae,adminBusinessUsersRetrieve:()=>Ee,adminBusinessUsersUpdate:()=>xe,adminBusinessesCategoriesCreate:()=>He,adminBusinessesCategoriesDestroy:()=>Ue,adminBusinessesCategoriesList:()=>We,adminBusinessesCategoriesRetrieve:()=>Se,adminBusinessesDocumentsCreate:()=>Pe,adminBusinessesDocumentsDestroy:()=>Le,adminBusinessesDocumentsList:()=>ze,adminBusinessesDocumentsPartialUpdate:()=>Ie,adminBusinessesDocumentsRetrieve:()=>je,adminBusinessesDocumentsUpdate:()=>qe,adminBusinessesList:()=>De,adminBusinessesPartialUpdate:()=>ke,adminBusinessesPayoutsCreate:()=>_e,adminBusinessesPayoutsList:()=>Ke,adminBusinessesPayoutsRetrieve:()=>$e,adminBusinessesPayoutsTransactionsList:()=>Ne,adminBusinessesRetrieve:()=>ve,adminBusinessesUpdate:()=>Me,adminCompanyPartialUpdate:()=>Fe,adminCompanyRetrieve:()=>Ve,adminCompanyUpdate:()=>Je,adminCurrenciesList:()=>Qe,adminCurrenciesRetrieve:()=>Ge,adminWebhookCreate:()=>Xe,customerBusinessesList:()=>Ye,customerBusinessesRetrieve:()=>Ze,customerEnrollCreate:()=>es,deactivateCreate:()=>ss,managerBusinessCategoriesList:()=>rs,managerBusinessCategoriesRetrieve:()=>ns,managerBusinessesCategoriesCreate:()=>Is,managerBusinessesCategoriesDestroy:()=>ps,managerBusinessesCategoriesList:()=>js,managerBusinessesCategoriesRetrieve:()=>cs,managerBusinessesCreate:()=>as,managerBusinessesDocumentsCreate:()=>ls,managerBusinessesDocumentsList:()=>ds,managerBusinessesDocumentsRetrieve:()=>ys,managerBusinessesInvoicesCreate:()=>hs,managerBusinessesInvoicesList:()=>ms,managerBusinessesInvoicesLogsList:()=>ws,managerBusinessesInvoicesPartialUpdate:()=>fs,managerBusinessesInvoicesRefundsCreate:()=>bs,managerBusinessesInvoicesRefundsList:()=>Rs,managerBusinessesInvoicesRetrieve:()=>gs,managerBusinessesInvoicesTransactionsList:()=>Bs,managerBusinessesInvoicesUpdate:()=>Os,managerBusinessesList:()=>ts,managerBusinessesMetricsList:()=>Ts,managerBusinessesMetricsPointsList:()=>Es,managerBusinessesMetricsRetrieve:()=>Cs,managerBusinessesPartialUpdate:()=>os,managerBusinessesPayoutsCreate:()=>xs,managerBusinessesPayoutsList:()=>As,managerBusinessesPayoutsRetrieve:()=>Ds,managerBusinessesPayoutsTransactionsList:()=>vs,managerBusinessesRetrieve:()=>is,managerBusinessesTransactionsList:()=>ks,managerBusinessesTransactionsRetrieve:()=>Ms,managerBusinessesUpdate:()=>us,managerBusinessesUsersCreate:()=>Ss,managerBusinessesUsersList:()=>Us,managerBusinessesUsersPartialUpdate:()=>Ps,managerBusinessesUsersRetrieve:()=>zs,managerBusinessesUsersUpdate:()=>Ls,managerCompanyRetrieve:()=>qs,userBusinessCategoriesList:()=>Ks,userBusinessCategoriesRetrieve:()=>_s,userBusinessesList:()=>$s,userBusinessesRetrieve:()=>Ns,userCompanyRetrieve:()=>Ws,webhookCreate:()=>Hs});var L={bodySerializer:e=>JSON.stringify(e,(r,n)=>typeof n=="bigint"?n.toString():n)};var ie={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Js=Object.entries(ie);var J=({onRequest:e,onSseError:r,onSseEvent:n,responseTransformer:i,responseValidator:a,sseDefaultRetryDelay:c,sseMaxRetryAttempts:u,sseMaxRetryDelay:o,sseSleepFn:p,url:
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkGR5TETAUjs = require('../chunk-GR5TETAU.js');var _chunkOEIQFP6Tjs = require('../chunk-OEIQFP6T.js');var K={};_chunkOEIQFP6Tjs.a.call(void 0, K,{activateCreate:()=>ge,adminBusinessCategoriesCreate:()=>Oe,adminBusinessCategoriesDestroy:()=>we,adminBusinessCategoriesList:()=>fe,adminBusinessCategoriesPartialUpdate:()=>be,adminBusinessCategoriesRetrieve:()=>Re,adminBusinessCategoriesUpdate:()=>Be,adminBusinessUsersCreate:()=>Ce,adminBusinessUsersList:()=>Te,adminBusinessUsersPartialUpdate:()=>Ae,adminBusinessUsersRetrieve:()=>Ee,adminBusinessUsersUpdate:()=>xe,adminBusinessesCategoriesCreate:()=>He,adminBusinessesCategoriesDestroy:()=>Ue,adminBusinessesCategoriesList:()=>We,adminBusinessesCategoriesRetrieve:()=>Se,adminBusinessesDocumentsCreate:()=>Pe,adminBusinessesDocumentsDestroy:()=>Le,adminBusinessesDocumentsList:()=>ze,adminBusinessesDocumentsPartialUpdate:()=>Ie,adminBusinessesDocumentsRetrieve:()=>je,adminBusinessesDocumentsUpdate:()=>qe,adminBusinessesList:()=>De,adminBusinessesPartialUpdate:()=>ke,adminBusinessesPayoutsCreate:()=>_e,adminBusinessesPayoutsList:()=>Ke,adminBusinessesPayoutsRetrieve:()=>$e,adminBusinessesPayoutsTransactionsList:()=>Ne,adminBusinessesRetrieve:()=>ve,adminBusinessesUpdate:()=>Me,adminCompanyPartialUpdate:()=>Fe,adminCompanyRetrieve:()=>Ve,adminCompanyUpdate:()=>Je,adminCurrenciesList:()=>Qe,adminCurrenciesRetrieve:()=>Ge,adminWebhookCreate:()=>Xe,customerBusinessesList:()=>Ye,customerBusinessesRetrieve:()=>Ze,customerEnrollCreate:()=>es,deactivateCreate:()=>ss,managerBusinessCategoriesList:()=>rs,managerBusinessCategoriesRetrieve:()=>ns,managerBusinessesCategoriesCreate:()=>Is,managerBusinessesCategoriesDestroy:()=>ps,managerBusinessesCategoriesList:()=>js,managerBusinessesCategoriesRetrieve:()=>cs,managerBusinessesCreate:()=>as,managerBusinessesDocumentsCreate:()=>ls,managerBusinessesDocumentsList:()=>ds,managerBusinessesDocumentsRetrieve:()=>ys,managerBusinessesInvoicesCreate:()=>hs,managerBusinessesInvoicesList:()=>ms,managerBusinessesInvoicesLogsList:()=>ws,managerBusinessesInvoicesPartialUpdate:()=>fs,managerBusinessesInvoicesRefundsCreate:()=>bs,managerBusinessesInvoicesRefundsList:()=>Rs,managerBusinessesInvoicesRetrieve:()=>gs,managerBusinessesInvoicesTransactionsList:()=>Bs,managerBusinessesInvoicesUpdate:()=>Os,managerBusinessesList:()=>ts,managerBusinessesMetricsList:()=>Ts,managerBusinessesMetricsPointsList:()=>Es,managerBusinessesMetricsRetrieve:()=>Cs,managerBusinessesPartialUpdate:()=>os,managerBusinessesPayoutsCreate:()=>xs,managerBusinessesPayoutsList:()=>As,managerBusinessesPayoutsRetrieve:()=>Ds,managerBusinessesPayoutsTransactionsList:()=>vs,managerBusinessesRetrieve:()=>is,managerBusinessesTransactionsList:()=>ks,managerBusinessesTransactionsRetrieve:()=>Ms,managerBusinessesUpdate:()=>us,managerBusinessesUsersCreate:()=>Ss,managerBusinessesUsersList:()=>Us,managerBusinessesUsersPartialUpdate:()=>Ps,managerBusinessesUsersRetrieve:()=>zs,managerBusinessesUsersUpdate:()=>Ls,managerCompanyRetrieve:()=>qs,userBusinessCategoriesList:()=>Ks,userBusinessCategoriesRetrieve:()=>_s,userBusinessesList:()=>$s,userBusinessesRetrieve:()=>Ns,userCompanyRetrieve:()=>Ws,webhookCreate:()=>Hs});var L={bodySerializer:e=>JSON.stringify(e,(r,n)=>typeof n=="bigint"?n.toString():n)};var ie={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Js=Object.entries(ie);var J=({onRequest:e,onSseError:r,onSseEvent:n,responseTransformer:i,responseValidator:a,sseDefaultRetryDelay:c,sseMaxRetryAttempts:u,sseMaxRetryDelay:o,sseSleepFn:p,url:l,...t})=>{let h,E=_nullishCoalesce(p, () => ((d=>new Promise(f=>setTimeout(f,d)))));return{stream:async function*(){let d=_nullishCoalesce(c, () => (3e3)),f=0,b=_nullishCoalesce(t.signal, () => (new AbortController().signal));for(;!b.aborted;){f++;let A=t.headers instanceof Headers?t.headers:new Headers(t.headers);h!==void 0&&A.set("Last-Event-ID",h);try{let B={redirect:"follow",...t,body:t.serializedBody,headers:A,signal:b},R=new Request(l,B);e&&(R=await e(l,B));let y=await(_nullishCoalesce(t.fetch, () => (globalThis.fetch)))(R);if(!y.ok)throw new Error(`SSE failed: ${y.status} ${y.statusText}`);if(!y.body)throw new Error("No body in SSE response");let g=y.body.pipeThrough(new TextDecoderStream).getReader(),x="",_=()=>{try{g.cancel()}catch (e2){}};b.addEventListener("abort",_);try{for(;;){let{done:se,value:re}=await g.read();if(se)break;x+=re,x=x.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
|
-
`);let $=
|
|
3
|
+
`);let $=x.split(`
|
|
4
4
|
|
|
5
|
-
`);
|
|
6
|
-
`),U=[],N;for(let
|
|
7
|
-
`);try{C=JSON.parse(R),W=!0}catch (e3){C=R}}W&&(a&&await a(C),i&&(C=await i(C))),_optionalChain([n, 'optionalCall', _2 => _2({data:C,event:N,id:t,retry:b})]),U.length&&(yield C)}}}finally{f.removeEventListener("abort",_),h.releaseLock()}break}catch(B){if(_optionalChain([r, 'optionalCall', _3 => _3(B)]),u!==void 0&&d>=u)break;let T=Math.min(b*2**(d-1),_nullishCoalesce(o, () => (3e4)));await O(T)}}}()}};var oe=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ue=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},pe=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},S=({allowReserved:e,explode:r,name:n,style:i,value:a})=>{if(!r){let o=(e?a:a.map(p=>encodeURIComponent(p))).join(ue(i));switch(i){case"label":return`.${o}`;case"matrix":return`;${n}=${o}`;case"simple":return o;default:return`${n}=${o}`}}let c=oe(i),u=a.map(o=>i==="label"||i==="simple"?e?o:encodeURIComponent(o):A({allowReserved:e,name:n,value:o})).join(c);return i==="label"||i==="matrix"?c+u:u},A=({allowReserved:e,name:r,value:n})=>{if(n==null)return"";if(typeof n=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?n:encodeURIComponent(n)}`},z=({allowReserved:e,explode:r,name:n,style:i,value:a,valueOnly:c})=>{if(a instanceof Date)return c?a.toISOString():`${n}=${a.toISOString()}`;if(i!=="deepObject"&&!r){let p=[];Object.entries(a).forEach(([l,t])=>{p=[...p,l,e?t:encodeURIComponent(t)]});let g=p.join(",");switch(i){case"form":return`${n}=${g}`;case"label":return`.${g}`;case"matrix":return`;${n}=${g}`;default:return g}}let u=pe(i),o=Object.entries(a).map(([p,g])=>A({allowReserved:e,name:i==="deepObject"?`${n}[${p}]`:p,value:g})).join(u);return i==="label"||i==="matrix"?u+o:o};var ce=/\{[^{}]+\}/g,de=({path:e,url:r})=>{let n=r,i=r.match(ce);if(i)for(let a of i){let c=!1,u=a.substring(1,a.length-1),o="simple";u.endsWith("*")&&(c=!0,u=u.substring(0,u.length-1)),u.startsWith(".")?(u=u.substring(1),o="label"):u.startsWith(";")&&(u=u.substring(1),o="matrix");let p=e[u];if(p==null)continue;if(Array.isArray(p)){n=n.replace(a,S({explode:c,name:u,style:o,value:p}));continue}if(typeof p=="object"){n=n.replace(a,z({explode:c,name:u,style:o,value:p,valueOnly:!0}));continue}if(o==="matrix"){n=n.replace(a,`;${A({name:u,value:p})}`);continue}let g=encodeURIComponent(o==="label"?`.${p}`:p);n=n.replace(a,g)}return n},Q=({baseUrl:e,path:r,query:n,querySerializer:i,url:a})=>{let c=a.startsWith("/")?a:`/${a}`,u=(_nullishCoalesce(e, () => ("")))+c;r&&(u=de({path:r,url:u}));let o=n?i(n):"";return o.startsWith("?")&&(o=o.substring(1)),o&&(u+=`?${o}`),u};function j(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var G=async(e,r)=>{let n=typeof r=="function"?await r(e):r;if(n)return e.scheme==="bearer"?`Bearer ${n}`:e.scheme==="basic"?`Basic ${btoa(n)}`:n};var X=({parameters:e={},...r}={})=>i=>{let a=[];if(i&&typeof i=="object")for(let c in i){let u=i[c];if(u==null)continue;let o=e[c]||r;if(Array.isArray(u)){let p=S({allowReserved:o.allowReserved,explode:!0,name:c,style:"form",value:u,...o.array});p&&a.push(p)}else if(typeof u=="object"){let p=z({allowReserved:o.allowReserved,explode:!0,name:c,style:"deepObject",value:u,...o.object});p&&a.push(p)}else{let p=A({allowReserved:o.allowReserved,name:c,value:u});p&&a.push(p)}}return a.join("&")},Y=e=>{if(!e)return"stream";let r=_optionalChain([e, 'access', _4 => _4.split, 'call', _5 => _5(";"), 'access', _6 => _6[0], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(n=>r.startsWith(n)))return"blob";if(r.startsWith("text/"))return"text"}},le=(e,r)=>r?!!(e.headers.has(r)||_optionalChain([e, 'access', _9 => _9.query, 'optionalAccess', _10 => _10[r]])||_optionalChain([e, 'access', _11 => _11.headers, 'access', _12 => _12.get, 'call', _13 => _13("Cookie"), 'optionalAccess', _14 => _14.includes, 'call', _15 => _15(`${r}=`)])):!1,Z=async({security:e,...r})=>{for(let n of e){if(le(r,n.name))continue;let i=await G(n,r.auth);if(!i)continue;let a=_nullishCoalesce(n.name, () => ("Authorization"));switch(n.in){case"query":r.query||(r.query={}),r.query[a]=i;break;case"cookie":r.headers.append("Cookie",`${a}=${i}`);break;case"header":default:r.headers.set(a,i);break}}},I=e=>Q({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),q=(e,r)=>{let n={...e,...r};return _optionalChain([n, 'access', _16 => _16.baseUrl, 'optionalAccess', _17 => _17.endsWith, 'call', _18 => _18("/")])&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=P(e.headers,r.headers),n},ye=e=>{let r=[];return e.forEach((n,i)=>{r.push([i,n])}),r},P=(...e)=>{let r=new Headers;for(let n of e){if(!n)continue;let i=n instanceof Headers?ye(n):Object.entries(n);for(let[a,c]of i)if(c===null)r.delete(a);else if(Array.isArray(c))for(let u of c)r.append(a,u);else c!==void 0&&r.set(a,typeof c=="object"?JSON.stringify(c):c)}return r},D=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let n=this.getInterceptorIndex(r);this.fns[n]&&(this.fns[n]=null)}exists(r){let n=this.getInterceptorIndex(r);return!!this.fns[n]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,n){let i=this.getInterceptorIndex(r);return this.fns[i]?(this.fns[i]=n,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new D,request:new D,response:new D}),me=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},v=(e={})=>({...L,headers:he,parseAs:"auto",querySerializer:me,...e});var k=(e={})=>{let r=q(v(),e),n=()=>({...r}),i=l=>(r=q(r,l),n()),a=ee(),c=async l=>{let t={...r,...l,fetch:_nullishCoalesce(_nullishCoalesce(l.fetch, () => (r.fetch)), () => (globalThis.fetch)),headers:P(r.headers,l.headers),serializedBody:void 0};t.security&&await Z({...t,security:t.security}),t.requestValidator&&await t.requestValidator(t),t.body!==void 0&&t.bodySerializer&&(t.serializedBody=t.bodySerializer(t.body)),(t.body===void 0||t.serializedBody==="")&&t.headers.delete("Content-Type");let O=I(t);return{opts:t,url:O}},u=async l=>{let{opts:t,url:O}=await c(l),M={redirect:"follow",...t,body:j(t)},w=new Request(O,M);for(let y of a.request.fns)y&&(w=await y(w,t));let b=t.fetch,d;try{d=await b(w)}catch(y){let h=y;for(let m of a.error.fns)m&&(h=await m(y,void 0,w,t));if(h=h||{},t.throwOnError)throw h;return t.responseStyle==="data"?void 0:{error:h,request:w,response:void 0}}for(let y of a.response.fns)y&&(d=await y(d,w,t));let f={request:w,response:d};if(d.ok){let y=_nullishCoalesce((t.parseAs==="auto"?Y(d.headers.get("Content-Type")):t.parseAs), () => ("json"));if(d.status===204||d.headers.get("Content-Length")==="0"){let m;switch(y){case"arrayBuffer":case"blob":case"text":m=await d[y]();break;case"formData":m=new FormData;break;case"stream":m=d.body;break;case"json":default:m={};break}return t.responseStyle==="data"?m:{data:m,...f}}let h;switch(y){case"arrayBuffer":case"blob":case"formData":case"text":h=await d[y]();break;case"json":{let m=await d.text();h=m?JSON.parse(m):{};break}case"stream":return t.responseStyle==="data"?d.body:{data:d.body,...f}}return y==="json"&&(t.responseValidator&&await t.responseValidator(h),t.responseTransformer&&(h=await t.responseTransformer(h))),t.responseStyle==="data"?h:{data:h,...f}}let x=await d.text(),B;try{B=JSON.parse(x)}catch (e4){}let T=_nullishCoalesce(B, () => (x)),E=T;for(let y of a.error.fns)y&&(E=await y(T,d,w,t));if(E=E||{},t.throwOnError)throw E;return t.responseStyle==="data"?void 0:{error:E,...f}},o=l=>t=>u({...t,method:l}),p=l=>async t=>{let{opts:O,url:M}=await c(t);return J({...O,body:O.body,headers:O.headers,method:l,onRequest:async(w,b)=>{let d=new Request(w,b);for(let f of a.request.fns)f&&(d=await f(d,O));return d},serializedBody:j(O),url:M})};return{buildUrl:l=>I({...r,...l}),connect:o("CONNECT"),delete:o("DELETE"),get:o("GET"),getConfig:n,head:o("HEAD"),interceptors:a,options:o("OPTIONS"),patch:o("PATCH"),post:o("POST"),put:o("PUT"),request:u,setConfig:i,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:o("TRACE")}};var s=k(v({baseUrl:"https://business.services.rehive.com/api/"}));var ge=e=>(_nullishCoalesce(e.client, () => (s))).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _19 => _19.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/",...e}),Oe=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(_nullishCoalesce(e.client, () => (s))).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/{identifier}/",...e}),Re=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/{identifier}/",...e}),be=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _20 => _20.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-users/",...e}),Ce=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-users/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-users/{user_id}/",...e}),Ae=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-users/{user_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-users/{user_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _21 => _21.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/",...e}),ve=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/",...e}),ke=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(_nullishCoalesce(e.client, () => (s))).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/categories/{category_id}/",...e}),Se=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/categories/{category_id}/",...e}),ze=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/",...e}),Pe=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(_nullishCoalesce(e.client, () => (s))).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/{document_id}/",...e}),je=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/{document_id}/",...e}),Ie=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/{document_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/{document_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/payouts/",...e}),_e=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/payouts/",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/payouts/{payout_id}/",...e}),Ne=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/payouts/{payout_id}/transactions/",...e}),We=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{identifier}/categories/",...e}),He=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{identifier}/categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _22 => _22.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e}),Fe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _23 => _23.client]), () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _24 => _24.headers])}}),Je=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _25 => _25.client]), () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _26 => _26.headers])}}),Qe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _27 => _27.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/",...e}),Ge=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/{code}/",...e}),Xe=e=>(_nullishCoalesce(e.client, () => (s))).post({url:"/admin/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _28 => _28.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/customer/businesses/",...e}),Ze=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/customer/businesses/{business_id}/",...e}),es=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/customer/enroll/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ss=e=>(_nullishCoalesce(e.client, () => (s))).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),rs=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _29 => _29.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/business-categories/",...e}),ns=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/business-categories/{identifier}/",...e}),ts=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _30 => _30.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/",...e}),as=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/",...e,headers:{"Content-Type":"application/json",...e.headers}}),is=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/",...e}),os=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),us=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ps=e=>(_nullishCoalesce(e.client, () => (s))).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/categories/{category_id}/",...e}),cs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/categories/{category_id}/",...e}),ds=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/documents/",...e}),ls=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/documents/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ys=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/documents/{document_id}/",...e}),ms=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/",...e}),hs=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/",...e,headers:{"Content-Type":"application/json",...e.headers}}),gs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/",...e}),fs=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Os=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ws=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/logs/",...e}),Rs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/refunds/",...e}),bs=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/refunds/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Bs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/transactions/",...e}),Ts=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/metrics/",...e}),Cs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/metrics/{metric_id}/",...e}),Es=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/metrics/{metric_id}/points/",...e}),As=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/payouts/",...e}),xs=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/payouts/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ds=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/payouts/{payout_id}/",...e}),vs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/payouts/{payout_id}/transactions/",...e}),ks=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/transactions/",...e}),Ms=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/transactions/{transaction_id}/",...e}),Us=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/users/",...e}),Ss=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/users/",...e,headers:{"Content-Type":"application/json",...e.headers}}),zs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/users/{user_id}/",...e}),Ps=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/users/{user_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ls=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/users/{user_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),js=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{identifier}/categories/",...e}),Is=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{identifier}/categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qs=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _31 => _31.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/company/",...e}),Ks=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _32 => _32.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/business-categories/",...e}),_s=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/business-categories/{identifier}/",...e}),$s=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _33 => _33.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/businesses/",...e}),Ns=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/businesses/{identifier}/",...e}),Ws=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _34 => _34.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/company/",...e}),Hs=e=>(_nullishCoalesce(e.client, () => (s))).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function Vs(e){let r=k(_chunkGR5TETAUjs.c.call(void 0, e,"https://business.services.rehive.com/api/"));return _chunkGR5TETAUjs.a.call(void 0, K,r)}exports.createBusinessApi = Vs;
|
|
5
|
+
`);x=_nullishCoalesce($.pop(), () => (""));for(let ne of $){let te=ne.split(`
|
|
6
|
+
`),U=[],N;for(let w of te)if(w.startsWith("data:"))U.push(w.replace(/^data:\s*/,""));else if(w.startsWith("event:"))N=w.replace(/^event:\s*/,"");else if(w.startsWith("id:"))h=w.replace(/^id:\s*/,"");else if(w.startsWith("retry:")){let H=Number.parseInt(w.replace(/^retry:\s*/,""),10);Number.isNaN(H)||(d=H)}let T,W=!1;if(U.length){let w=U.join(`
|
|
7
|
+
`);try{T=JSON.parse(w),W=!0}catch (e3){T=w}}W&&(a&&await a(T),i&&(T=await i(T))),_optionalChain([n, 'optionalCall', _2 => _2({data:T,event:N,id:h,retry:d})]),U.length&&(yield T)}}}finally{b.removeEventListener("abort",_),g.releaseLock()}break}catch(B){if(_optionalChain([r, 'optionalCall', _3 => _3(B)]),u!==void 0&&f>=u)break;let R=Math.min(d*2**(f-1),_nullishCoalesce(o, () => (3e4)));await E(R)}}}()}};var oe=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ue=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},pe=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},S=({allowReserved:e,explode:r,name:n,style:i,value:a})=>{if(!r){let o=(e?a:a.map(p=>encodeURIComponent(p))).join(ue(i));switch(i){case"label":return`.${o}`;case"matrix":return`;${n}=${o}`;case"simple":return o;default:return`${n}=${o}`}}let c=oe(i),u=a.map(o=>i==="label"||i==="simple"?e?o:encodeURIComponent(o):C({allowReserved:e,name:n,value:o})).join(c);return i==="label"||i==="matrix"?c+u:u},C=({allowReserved:e,name:r,value:n})=>{if(n==null)return"";if(typeof n=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?n:encodeURIComponent(n)}`},z=({allowReserved:e,explode:r,name:n,style:i,value:a,valueOnly:c})=>{if(a instanceof Date)return c?a.toISOString():`${n}=${a.toISOString()}`;if(i!=="deepObject"&&!r){let p=[];Object.entries(a).forEach(([t,h])=>{p=[...p,t,e?h:encodeURIComponent(h)]});let l=p.join(",");switch(i){case"form":return`${n}=${l}`;case"label":return`.${l}`;case"matrix":return`;${n}=${l}`;default:return l}}let u=pe(i),o=Object.entries(a).map(([p,l])=>C({allowReserved:e,name:i==="deepObject"?`${n}[${p}]`:p,value:l})).join(u);return i==="label"||i==="matrix"?u+o:o};var ce=/\{[^{}]+\}/g,de=({path:e,url:r})=>{let n=r,i=r.match(ce);if(i)for(let a of i){let c=!1,u=a.substring(1,a.length-1),o="simple";u.endsWith("*")&&(c=!0,u=u.substring(0,u.length-1)),u.startsWith(".")?(u=u.substring(1),o="label"):u.startsWith(";")&&(u=u.substring(1),o="matrix");let p=e[u];if(p==null)continue;if(Array.isArray(p)){n=n.replace(a,S({explode:c,name:u,style:o,value:p}));continue}if(typeof p=="object"){n=n.replace(a,z({explode:c,name:u,style:o,value:p,valueOnly:!0}));continue}if(o==="matrix"){n=n.replace(a,`;${C({name:u,value:p})}`);continue}let l=encodeURIComponent(o==="label"?`.${p}`:p);n=n.replace(a,l)}return n},Q=({baseUrl:e,path:r,query:n,querySerializer:i,url:a})=>{let c=a.startsWith("/")?a:`/${a}`,u=(_nullishCoalesce(e, () => ("")))+c;r&&(u=de({path:r,url:u}));let o=n?i(n):"";return o.startsWith("?")&&(o=o.substring(1)),o&&(u+=`?${o}`),u};function j(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var G=async(e,r)=>{let n=typeof r=="function"?await r(e):r;if(n)return e.scheme==="bearer"?`Bearer ${n}`:e.scheme==="basic"?`Basic ${btoa(n)}`:n};var X=({parameters:e={},...r}={})=>i=>{let a=[];if(i&&typeof i=="object")for(let c in i){let u=i[c];if(u==null)continue;let o=e[c]||r;if(Array.isArray(u)){let p=S({allowReserved:o.allowReserved,explode:!0,name:c,style:"form",value:u,...o.array});p&&a.push(p)}else if(typeof u=="object"){let p=z({allowReserved:o.allowReserved,explode:!0,name:c,style:"deepObject",value:u,...o.object});p&&a.push(p)}else{let p=C({allowReserved:o.allowReserved,name:c,value:u});p&&a.push(p)}}return a.join("&")},Y=e=>{if(!e)return"stream";let r=_optionalChain([e, 'access', _4 => _4.split, 'call', _5 => _5(";"), 'access', _6 => _6[0], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(n=>r.startsWith(n)))return"blob";if(r.startsWith("text/"))return"text"}},le=(e,r)=>r?!!(e.headers.has(r)||_optionalChain([e, 'access', _9 => _9.query, 'optionalAccess', _10 => _10[r]])||_optionalChain([e, 'access', _11 => _11.headers, 'access', _12 => _12.get, 'call', _13 => _13("Cookie"), 'optionalAccess', _14 => _14.includes, 'call', _15 => _15(`${r}=`)])):!1,Z=async({security:e,...r})=>{for(let n of e){if(le(r,n.name))continue;let i=await G(n,r.auth);if(!i)continue;let a=_nullishCoalesce(n.name, () => ("Authorization"));switch(n.in){case"query":r.query||(r.query={}),r.query[a]=i;break;case"cookie":r.headers.append("Cookie",`${a}=${i}`);break;case"header":default:r.headers.set(a,i);break}}},I=e=>Q({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),q=(e,r)=>{let n={...e,...r};return _optionalChain([n, 'access', _16 => _16.baseUrl, 'optionalAccess', _17 => _17.endsWith, 'call', _18 => _18("/")])&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=P(e.headers,r.headers),n},ye=e=>{let r=[];return e.forEach((n,i)=>{r.push([i,n])}),r},P=(...e)=>{let r=new Headers;for(let n of e){if(!n)continue;let i=n instanceof Headers?ye(n):Object.entries(n);for(let[a,c]of i)if(c===null)r.delete(a);else if(Array.isArray(c))for(let u of c)r.append(a,u);else c!==void 0&&r.set(a,typeof c=="object"?JSON.stringify(c):c)}return r},D=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let n=this.getInterceptorIndex(r);this.fns[n]&&(this.fns[n]=null)}exists(r){let n=this.getInterceptorIndex(r);return!!this.fns[n]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,n){let i=this.getInterceptorIndex(r);return this.fns[i]?(this.fns[i]=n,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new D,request:new D,response:new D}),me=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},v=(e={})=>({...L,headers:he,parseAs:"auto",querySerializer:me,...e});var k=(e={})=>{let r=q(v(),e),n=()=>({...r}),i=l=>(r=q(r,l),n()),a=ee(),c=async l=>{let t={...r,...l,fetch:_nullishCoalesce(_nullishCoalesce(l.fetch, () => (r.fetch)), () => (globalThis.fetch)),headers:P(r.headers,l.headers),serializedBody:void 0};t.security&&await Z({...t,security:t.security}),t.requestValidator&&await t.requestValidator(t),t.body!==void 0&&t.bodySerializer&&(t.serializedBody=t.bodySerializer(t.body)),(t.body===void 0||t.serializedBody==="")&&t.headers.delete("Content-Type");let h=I(t);return{opts:t,url:h}},u=async l=>{let{opts:t,url:h}=await c(l),E={redirect:"follow",...t,body:j(t)},O=new Request(h,E);for(let m of a.request.fns)m&&(O=await m(O,t));let M=t.fetch,d;try{d=await M(O)}catch(m){let y=m;for(let g of a.error.fns)g&&(y=await g(m,void 0,O,t));if(y=y||{},t.throwOnError)throw y;return t.responseStyle==="data"?void 0:{error:y,request:O,response:void 0}}for(let m of a.response.fns)m&&(d=await m(d,O,t));let f={request:O,response:d};if(d.ok){let m=_nullishCoalesce((t.parseAs==="auto"?Y(d.headers.get("Content-Type")):t.parseAs), () => ("json"));if(d.status===204||d.headers.get("Content-Length")==="0"){let g;switch(m){case"arrayBuffer":case"blob":case"text":g=await d[m]();break;case"formData":g=new FormData;break;case"stream":g=d.body;break;case"json":default:g={};break}return t.responseStyle==="data"?g:{data:g,...f}}let y;switch(m){case"arrayBuffer":case"blob":case"formData":case"text":y=await d[m]();break;case"json":{let g=await d.text();y=g?JSON.parse(g):{};break}case"stream":return t.responseStyle==="data"?d.body:{data:d.body,...f}}return m==="json"&&(t.responseValidator&&await t.responseValidator(y),t.responseTransformer&&(y=await t.responseTransformer(y))),t.responseStyle==="data"?y:{data:y,...f}}let b=await d.text(),A;try{A=JSON.parse(b)}catch (e4){}let B=_nullishCoalesce(A, () => (b)),R=B;for(let m of a.error.fns)m&&(R=await m(B,d,O,t));if(R=R||{},t.throwOnError)throw R;return t.responseStyle==="data"?void 0:{error:R,...f}},o=l=>t=>u({...t,method:l}),p=l=>async t=>{let{opts:h,url:E}=await c(t);return J({...h,body:h.body,headers:h.headers,method:l,onRequest:async(O,M)=>{let d=new Request(O,M);for(let f of a.request.fns)f&&(d=await f(d,h));return d},serializedBody:j(h),url:E})};return{buildUrl:I,connect:o("CONNECT"),delete:o("DELETE"),get:o("GET"),getConfig:n,head:o("HEAD"),interceptors:a,options:o("OPTIONS"),patch:o("PATCH"),post:o("POST"),put:o("PUT"),request:u,setConfig:i,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:o("TRACE")}};var s=k(v({baseUrl:"https://business.services.rehive.com/api/"}));var ge=e=>(_nullishCoalesce(e.client, () => (s))).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _19 => _19.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/",...e}),Oe=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(_nullishCoalesce(e.client, () => (s))).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/{identifier}/",...e}),Re=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/{identifier}/",...e}),be=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-categories/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _20 => _20.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-users/",...e}),Ce=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-users/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-users/{user_id}/",...e}),Ae=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-users/{user_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/business-users/{user_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _21 => _21.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/",...e}),ve=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/",...e}),ke=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(_nullishCoalesce(e.client, () => (s))).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/categories/{category_id}/",...e}),Se=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/categories/{category_id}/",...e}),ze=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/",...e}),Pe=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(_nullishCoalesce(e.client, () => (s))).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/{document_id}/",...e}),je=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/{document_id}/",...e}),Ie=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/{document_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/documents/{document_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/payouts/",...e}),_e=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/payouts/",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/payouts/{payout_id}/",...e}),Ne=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{business_id}/payouts/{payout_id}/transactions/",...e}),We=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{identifier}/categories/",...e}),He=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/businesses/{identifier}/categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _22 => _22.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e}),Fe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _23 => _23.client]), () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _24 => _24.headers])}}),Je=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _25 => _25.client]), () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _26 => _26.headers])}}),Qe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _27 => _27.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/",...e}),Ge=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/{code}/",...e}),Xe=e=>(_nullishCoalesce(e.client, () => (s))).post({url:"/admin/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _28 => _28.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/customer/businesses/",...e}),Ze=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/customer/businesses/{business_id}/",...e}),es=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/customer/enroll/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ss=e=>(_nullishCoalesce(e.client, () => (s))).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),rs=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _29 => _29.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/business-categories/",...e}),ns=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/business-categories/{identifier}/",...e}),ts=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _30 => _30.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/",...e}),as=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/",...e,headers:{"Content-Type":"application/json",...e.headers}}),is=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/",...e}),os=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),us=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ps=e=>(_nullishCoalesce(e.client, () => (s))).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/categories/{category_id}/",...e}),cs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/categories/{category_id}/",...e}),ds=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/documents/",...e}),ls=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/documents/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ys=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/documents/{document_id}/",...e}),ms=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/",...e}),hs=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/",...e,headers:{"Content-Type":"application/json",...e.headers}}),gs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/",...e}),fs=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Os=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ws=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/logs/",...e}),Rs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/refunds/",...e}),bs=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/refunds/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Bs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/invoices/{invoice_id}/transactions/",...e}),Ts=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/metrics/",...e}),Cs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/metrics/{metric_id}/",...e}),Es=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/metrics/{metric_id}/points/",...e}),As=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/payouts/",...e}),xs=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/payouts/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ds=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/payouts/{payout_id}/",...e}),vs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/payouts/{payout_id}/transactions/",...e}),ks=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/transactions/",...e}),Ms=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/transactions/{transaction_id}/",...e}),Us=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/users/",...e}),Ss=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/users/",...e,headers:{"Content-Type":"application/json",...e.headers}}),zs=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/users/{user_id}/",...e}),Ps=e=>(_nullishCoalesce(e.client, () => (s))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/users/{user_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ls=e=>(_nullishCoalesce(e.client, () => (s))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{business_id}/users/{user_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),js=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{identifier}/categories/",...e}),Is=e=>(_nullishCoalesce(e.client, () => (s))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/businesses/{identifier}/categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qs=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _31 => _31.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/company/",...e}),Ks=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _32 => _32.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/business-categories/",...e}),_s=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/business-categories/{identifier}/",...e}),$s=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _33 => _33.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/businesses/",...e}),Ns=e=>(_nullishCoalesce(e.client, () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/businesses/{identifier}/",...e}),Ws=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _34 => _34.client]), () => (s))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/company/",...e}),Hs=e=>(_nullishCoalesce(e.client, () => (s))).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function Vs(e){let r=k(_chunkGR5TETAUjs.c.call(void 0, e,"https://business.services.rehive.com/api/"));return _chunkGR5TETAUjs.a.call(void 0, K,r)}exports.createBusinessApi = Vs;
|