rehive 4.1.2 → 4.1.4
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 +106 -43
- package/dist/admin.d.ts +106 -43
- 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-442DXMRO.mjs → chunk-4WSHB6U6.mjs} +1 -1
- package/dist/chunk-AVPKHYGS.js +7 -0
- package/dist/chunk-KUT5NSX7.mjs +7 -0
- package/dist/chunk-KZWBOQHZ.mjs +7 -0
- package/dist/{chunk-VTR4XNHH.js → chunk-PE6PG7ZE.js} +1 -1
- package/dist/chunk-UYYU5OJ4.js +7 -0
- package/dist/{chunk-BGMUBB76.js → chunk-X6YDNXYV.js} +1 -1
- package/dist/{chunk-FC42NTFK.mjs → chunk-Z7BUNKND.mjs} +1 -1
- package/dist/{create-api-client-2vNCP2LN.d.mts → create-api-client-C-LEZku2.d.mts} +1 -1
- package/dist/{create-api-client-D-Z8R83N.d.ts → create-api-client-ebyTfhcm.d.ts} +1 -1
- package/dist/{create-auth-CHzmb_8_.d.mts → create-auth-DsnHpEf0.d.mts} +47 -8
- package/dist/{create-auth-CHzmb_8_.d.ts → create-auth-DsnHpEf0.d.ts} +47 -8
- 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 +190 -16
- package/dist/extensions/bridge.d.ts +190 -16
- 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 +82 -47
- package/dist/extensions/business.d.ts +82 -47
- 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 +7 -3
- package/dist/extensions/payment-requests.d.ts +7 -3
- 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 +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/user.d.mts +16 -6
- package/dist/user.d.ts +16 -6
- package/dist/user.js +1 -1
- package/dist/user.mjs +1 -1
- package/package.json +1 -1
- package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/app/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/app/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/billing/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/billing/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/bridge/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +6 -8
- 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 +43 -1
- package/src/extensions/bridge/openapi-ts/types.gen.ts +201 -11
- package/src/extensions/builder/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/builder/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/business/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/business/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/business/openapi-ts/types.gen.ts +79 -44
- package/src/extensions/conversion/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/conversion/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/notifications/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/notifications/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/payment-requests/openapi-ts/types.gen.ts +4 -0
- package/src/extensions/products/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/products/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/rain/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/rain/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/rewards/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/rewards/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/stellar/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/stellar/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +5 -3
- package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/admin/openapi-ts/client/client.gen.ts +5 -3
- package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +6 -8
- package/src/platform/admin/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/admin/openapi-ts/sdk.gen.ts +61 -0
- package/src/platform/admin/openapi-ts/types.gen.ts +103 -40
- package/src/platform/user/openapi-ts/client/client.gen.ts +5 -3
- package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +6 -8
- 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 +43 -1
- package/src/platform/user/openapi-ts/types.gen.ts +54 -7
- package/dist/chunk-6WLL3XNH.js +0 -7
- package/dist/chunk-LTRLQIIM.js +0 -7
- package/dist/chunk-WTKM56EI.mjs +0 -7
- package/dist/chunk-WVAFSUTF.mjs +0 -7
|
@@ -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-ebyTfhcm.js';
|
|
2
|
+
import '../create-auth-DsnHpEf0.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: unknown) => unknown;
|
|
34
34
|
type QuerySerializerOptionsObject = {
|
|
35
35
|
allowReserved?: boolean;
|
|
36
36
|
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
@@ -604,11 +604,14 @@ 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
|
-
* * `
|
|
607
|
+
* * `obsolete` - obsolete
|
|
608
|
+
* * `declined` - declined
|
|
609
|
+
* * `pending` - pending
|
|
610
|
+
* * `paused` - paused
|
|
611
|
+
* * `incomplete` - incomplete
|
|
612
|
+
* * `verified` - verified
|
|
610
613
|
*/
|
|
611
|
-
status: 'declined' | 'pending' | 'verified';
|
|
614
|
+
status: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
612
615
|
metadata?: {
|
|
613
616
|
[key: string]: unknown;
|
|
614
617
|
} | null;
|
|
@@ -674,10 +677,11 @@ type AdminBusinessDocument = {
|
|
|
674
677
|
* * `obsolete` - obsolete
|
|
675
678
|
* * `declined` - declined
|
|
676
679
|
* * `pending` - pending
|
|
680
|
+
* * `paused` - paused
|
|
677
681
|
* * `incomplete` - incomplete
|
|
678
682
|
* * `verified` - verified
|
|
679
683
|
*/
|
|
680
|
-
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
684
|
+
status: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
681
685
|
metadata?: {
|
|
682
686
|
[key: string]: unknown;
|
|
683
687
|
} | null;
|
|
@@ -845,10 +849,11 @@ type AdminCreateBusinessDocument = {
|
|
|
845
849
|
* * `obsolete` - obsolete
|
|
846
850
|
* * `declined` - declined
|
|
847
851
|
* * `pending` - pending
|
|
852
|
+
* * `paused` - paused
|
|
848
853
|
* * `incomplete` - incomplete
|
|
849
854
|
* * `verified` - verified
|
|
850
855
|
*/
|
|
851
|
-
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
856
|
+
status: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
852
857
|
metadata?: {
|
|
853
858
|
[key: string]: unknown;
|
|
854
859
|
} | null;
|
|
@@ -1198,11 +1203,14 @@ type AdminUpdateBusiness = {
|
|
|
1198
1203
|
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;
|
|
1199
1204
|
address_postal_code?: string | null;
|
|
1200
1205
|
/**
|
|
1201
|
-
* * `
|
|
1202
|
-
* * `
|
|
1203
|
-
* * `
|
|
1206
|
+
* * `obsolete` - obsolete
|
|
1207
|
+
* * `declined` - declined
|
|
1208
|
+
* * `pending` - pending
|
|
1209
|
+
* * `paused` - paused
|
|
1210
|
+
* * `incomplete` - incomplete
|
|
1211
|
+
* * `verified` - verified
|
|
1204
1212
|
*/
|
|
1205
|
-
status?: 'declined' | 'pending' | 'verified';
|
|
1213
|
+
status?: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
1206
1214
|
metadata?: {
|
|
1207
1215
|
[key: string]: unknown;
|
|
1208
1216
|
} | null;
|
|
@@ -1924,11 +1932,14 @@ type ManagerBusiness = {
|
|
|
1924
1932
|
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;
|
|
1925
1933
|
address_postal_code?: string | null;
|
|
1926
1934
|
/**
|
|
1927
|
-
* * `
|
|
1928
|
-
* * `
|
|
1929
|
-
* * `
|
|
1935
|
+
* * `obsolete` - obsolete
|
|
1936
|
+
* * `declined` - declined
|
|
1937
|
+
* * `pending` - pending
|
|
1938
|
+
* * `paused` - paused
|
|
1939
|
+
* * `incomplete` - incomplete
|
|
1940
|
+
* * `verified` - verified
|
|
1930
1941
|
*/
|
|
1931
|
-
status: 'declined' | 'pending' | 'verified';
|
|
1942
|
+
status: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
1932
1943
|
metadata?: {
|
|
1933
1944
|
[key: string]: unknown;
|
|
1934
1945
|
} | null;
|
|
@@ -1975,10 +1986,11 @@ type ManagerBusinessDocument = {
|
|
|
1975
1986
|
* * `obsolete` - obsolete
|
|
1976
1987
|
* * `declined` - declined
|
|
1977
1988
|
* * `pending` - pending
|
|
1989
|
+
* * `paused` - paused
|
|
1978
1990
|
* * `incomplete` - incomplete
|
|
1979
1991
|
* * `verified` - verified
|
|
1980
1992
|
*/
|
|
1981
|
-
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
1993
|
+
status: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
1982
1994
|
metadata?: {
|
|
1983
1995
|
[key: string]: unknown;
|
|
1984
1996
|
} | null;
|
|
@@ -2508,11 +2520,14 @@ type ManagerCreateBusiness = {
|
|
|
2508
2520
|
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;
|
|
2509
2521
|
address_postal_code?: string | null;
|
|
2510
2522
|
/**
|
|
2511
|
-
* * `
|
|
2512
|
-
* * `
|
|
2513
|
-
* * `
|
|
2523
|
+
* * `obsolete` - obsolete
|
|
2524
|
+
* * `declined` - declined
|
|
2525
|
+
* * `pending` - pending
|
|
2526
|
+
* * `paused` - paused
|
|
2527
|
+
* * `incomplete` - incomplete
|
|
2528
|
+
* * `verified` - verified
|
|
2514
2529
|
*/
|
|
2515
|
-
status: 'declined' | 'pending' | 'verified';
|
|
2530
|
+
status: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
2516
2531
|
metadata?: {
|
|
2517
2532
|
[key: string]: unknown;
|
|
2518
2533
|
} | null;
|
|
@@ -2540,10 +2555,11 @@ type ManagerCreateBusinessDocument = {
|
|
|
2540
2555
|
* * `obsolete` - obsolete
|
|
2541
2556
|
* * `declined` - declined
|
|
2542
2557
|
* * `pending` - pending
|
|
2558
|
+
* * `paused` - paused
|
|
2543
2559
|
* * `incomplete` - incomplete
|
|
2544
2560
|
* * `verified` - verified
|
|
2545
2561
|
*/
|
|
2546
|
-
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
2562
|
+
status: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
2547
2563
|
metadata?: {
|
|
2548
2564
|
[key: string]: unknown;
|
|
2549
2565
|
} | null;
|
|
@@ -2966,11 +2982,14 @@ type ManagerUpdateBusiness = {
|
|
|
2966
2982
|
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;
|
|
2967
2983
|
address_postal_code?: string | null;
|
|
2968
2984
|
/**
|
|
2969
|
-
* * `
|
|
2970
|
-
* * `
|
|
2971
|
-
* * `
|
|
2985
|
+
* * `obsolete` - obsolete
|
|
2986
|
+
* * `declined` - declined
|
|
2987
|
+
* * `pending` - pending
|
|
2988
|
+
* * `paused` - paused
|
|
2989
|
+
* * `incomplete` - incomplete
|
|
2990
|
+
* * `verified` - verified
|
|
2972
2991
|
*/
|
|
2973
|
-
status: 'declined' | 'pending' | 'verified';
|
|
2992
|
+
status: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
2974
2993
|
metadata?: {
|
|
2975
2994
|
[key: string]: unknown;
|
|
2976
2995
|
} | null;
|
|
@@ -3279,10 +3298,11 @@ type PatchedAdminBusinessDocument = {
|
|
|
3279
3298
|
* * `obsolete` - obsolete
|
|
3280
3299
|
* * `declined` - declined
|
|
3281
3300
|
* * `pending` - pending
|
|
3301
|
+
* * `paused` - paused
|
|
3282
3302
|
* * `incomplete` - incomplete
|
|
3283
3303
|
* * `verified` - verified
|
|
3284
3304
|
*/
|
|
3285
|
-
status?: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
3305
|
+
status?: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
3286
3306
|
metadata?: {
|
|
3287
3307
|
[key: string]: unknown;
|
|
3288
3308
|
} | null;
|
|
@@ -3573,11 +3593,14 @@ type PatchedAdminUpdateBusiness = {
|
|
|
3573
3593
|
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;
|
|
3574
3594
|
address_postal_code?: string | null;
|
|
3575
3595
|
/**
|
|
3576
|
-
* * `
|
|
3577
|
-
* * `
|
|
3578
|
-
* * `
|
|
3596
|
+
* * `obsolete` - obsolete
|
|
3597
|
+
* * `declined` - declined
|
|
3598
|
+
* * `pending` - pending
|
|
3599
|
+
* * `paused` - paused
|
|
3600
|
+
* * `incomplete` - incomplete
|
|
3601
|
+
* * `verified` - verified
|
|
3579
3602
|
*/
|
|
3580
|
-
status?: 'declined' | 'pending' | 'verified';
|
|
3603
|
+
status?: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
3581
3604
|
metadata?: {
|
|
3582
3605
|
[key: string]: unknown;
|
|
3583
3606
|
} | null;
|
|
@@ -3890,11 +3913,14 @@ type PatchedManagerUpdateBusiness = {
|
|
|
3890
3913
|
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;
|
|
3891
3914
|
address_postal_code?: string | null;
|
|
3892
3915
|
/**
|
|
3893
|
-
* * `
|
|
3894
|
-
* * `
|
|
3895
|
-
* * `
|
|
3916
|
+
* * `obsolete` - obsolete
|
|
3917
|
+
* * `declined` - declined
|
|
3918
|
+
* * `pending` - pending
|
|
3919
|
+
* * `paused` - paused
|
|
3920
|
+
* * `incomplete` - incomplete
|
|
3921
|
+
* * `verified` - verified
|
|
3896
3922
|
*/
|
|
3897
|
-
status?: 'declined' | 'pending' | 'verified';
|
|
3923
|
+
status?: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
3898
3924
|
metadata?: {
|
|
3899
3925
|
[key: string]: unknown;
|
|
3900
3926
|
} | null;
|
|
@@ -4601,10 +4627,11 @@ type AdminBusinessDocumentWritable = {
|
|
|
4601
4627
|
* * `obsolete` - obsolete
|
|
4602
4628
|
* * `declined` - declined
|
|
4603
4629
|
* * `pending` - pending
|
|
4630
|
+
* * `paused` - paused
|
|
4604
4631
|
* * `incomplete` - incomplete
|
|
4605
4632
|
* * `verified` - verified
|
|
4606
4633
|
*/
|
|
4607
|
-
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
4634
|
+
status: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
4608
4635
|
metadata?: {
|
|
4609
4636
|
[key: string]: unknown;
|
|
4610
4637
|
} | null;
|
|
@@ -4699,10 +4726,11 @@ type AdminCreateBusinessDocumentWritable = {
|
|
|
4699
4726
|
* * `obsolete` - obsolete
|
|
4700
4727
|
* * `declined` - declined
|
|
4701
4728
|
* * `pending` - pending
|
|
4729
|
+
* * `paused` - paused
|
|
4702
4730
|
* * `incomplete` - incomplete
|
|
4703
4731
|
* * `verified` - verified
|
|
4704
4732
|
*/
|
|
4705
|
-
status: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
4733
|
+
status: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
4706
4734
|
metadata?: {
|
|
4707
4735
|
[key: string]: unknown;
|
|
4708
4736
|
} | null;
|
|
@@ -5013,11 +5041,14 @@ type AdminUpdateBusinessWritable = {
|
|
|
5013
5041
|
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;
|
|
5014
5042
|
address_postal_code?: string | null;
|
|
5015
5043
|
/**
|
|
5016
|
-
* * `
|
|
5017
|
-
* * `
|
|
5018
|
-
* * `
|
|
5044
|
+
* * `obsolete` - obsolete
|
|
5045
|
+
* * `declined` - declined
|
|
5046
|
+
* * `pending` - pending
|
|
5047
|
+
* * `paused` - paused
|
|
5048
|
+
* * `incomplete` - incomplete
|
|
5049
|
+
* * `verified` - verified
|
|
5019
5050
|
*/
|
|
5020
|
-
status?: 'declined' | 'pending' | 'verified';
|
|
5051
|
+
status?: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
5021
5052
|
metadata?: {
|
|
5022
5053
|
[key: string]: unknown;
|
|
5023
5054
|
} | null;
|
|
@@ -6654,10 +6685,11 @@ type PatchedAdminBusinessDocumentWritable = {
|
|
|
6654
6685
|
* * `obsolete` - obsolete
|
|
6655
6686
|
* * `declined` - declined
|
|
6656
6687
|
* * `pending` - pending
|
|
6688
|
+
* * `paused` - paused
|
|
6657
6689
|
* * `incomplete` - incomplete
|
|
6658
6690
|
* * `verified` - verified
|
|
6659
6691
|
*/
|
|
6660
|
-
status?: 'obsolete' | 'declined' | 'pending' | 'incomplete' | 'verified';
|
|
6692
|
+
status?: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
6661
6693
|
metadata?: {
|
|
6662
6694
|
[key: string]: unknown;
|
|
6663
6695
|
} | null;
|
|
@@ -6939,11 +6971,14 @@ type PatchedAdminUpdateBusinessWritable = {
|
|
|
6939
6971
|
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;
|
|
6940
6972
|
address_postal_code?: string | null;
|
|
6941
6973
|
/**
|
|
6942
|
-
* * `
|
|
6943
|
-
* * `
|
|
6944
|
-
* * `
|
|
6974
|
+
* * `obsolete` - obsolete
|
|
6975
|
+
* * `declined` - declined
|
|
6976
|
+
* * `pending` - pending
|
|
6977
|
+
* * `paused` - paused
|
|
6978
|
+
* * `incomplete` - incomplete
|
|
6979
|
+
* * `verified` - verified
|
|
6945
6980
|
*/
|
|
6946
|
-
status?: 'declined' | 'pending' | 'verified';
|
|
6981
|
+
status?: 'obsolete' | 'declined' | 'pending' | 'paused' | 'incomplete' | 'verified';
|
|
6947
6982
|
metadata?: {
|
|
6948
6983
|
[key: string]: unknown;
|
|
6949
6984
|
} | 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:l
|
|
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:g,...l})=>{let t,O=_nullishCoalesce(p, () => ((b=>new Promise(d=>setTimeout(d,b)))));return{stream:async function*(){let b=_nullishCoalesce(c, () => (3e3)),d=0,f=_nullishCoalesce(l.signal, () => (new AbortController().signal));for(;!f.aborted;){d++;let x=l.headers instanceof Headers?l.headers:new Headers(l.headers);t!==void 0&&x.set("Last-Event-ID",t);try{let B={redirect:"follow",...l,body:l.serializedBody,headers:x,signal:f},T=new Request(g,B);e&&(T=await e(g,B));let y=await(_nullishCoalesce(l.fetch, () => (globalThis.fetch)))(T);if(!y.ok)throw new Error(`SSE failed: ${y.status} ${y.statusText}`);if(!y.body)throw new Error("No body in SSE response");let h=y.body.pipeThrough(new TextDecoderStream).getReader(),m="",_=()=>{try{h.cancel()}catch (e2){}};f.addEventListener("abort",_);try{for(;;){let{done:se,value:re}=await h.read();if(se)break;m+=re,m=m.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
|
-
`);let $=
|
|
3
|
+
`);let $=m.split(`
|
|
4
4
|
|
|
5
|
-
`);
|
|
6
|
-
`),U=[],N;for(let
|
|
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;
|
|
5
|
+
`);m=_nullishCoalesce($.pop(), () => (""));for(let ne of $){let te=ne.split(`
|
|
6
|
+
`),U=[],N;for(let R of te)if(R.startsWith("data:"))U.push(R.replace(/^data:\s*/,""));else if(R.startsWith("event:"))N=R.replace(/^event:\s*/,"");else if(R.startsWith("id:"))t=R.replace(/^id:\s*/,"");else if(R.startsWith("retry:")){let H=Number.parseInt(R.replace(/^retry:\s*/,""),10);Number.isNaN(H)||(b=H)}let C,W=!1;if(U.length){let R=U.join(`
|
|
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;
|