mailmeteor 0.0.6 → 0.0.7
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/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +32 -32
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/generated-sdk/client.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/sdk.gen.d.ts +37 -37
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2407,24 +2407,24 @@ declare class HeyApiRegistry3<T> {
|
|
|
2407
2407
|
set(value: T, key?: string): void;
|
|
2408
2408
|
}
|
|
2409
2409
|
declare class Users extends HeyApiClient {
|
|
2410
|
-
getCurrentOrganization<ThrowOnError extends boolean =
|
|
2411
|
-
setCurrentOrganization<ThrowOnError extends boolean =
|
|
2410
|
+
getCurrentOrganization<ThrowOnError extends boolean = true>(userId: string, options?: Options<never, ThrowOnError>): RequestResult<UsersGetCurrentOrganizationResponses, UsersGetCurrentOrganizationErrors, ThrowOnError, "data">;
|
|
2411
|
+
setCurrentOrganization<ThrowOnError extends boolean = true>(user_id: string, parameters?: {
|
|
2412
2412
|
organization_id?: string | null;
|
|
2413
2413
|
}, options?: Options<never, ThrowOnError>): RequestResult<UsersSetCurrentOrganizationResponses, UsersSetCurrentOrganizationErrors, ThrowOnError, "data">;
|
|
2414
|
-
watchMailbox<ThrowOnError extends boolean =
|
|
2414
|
+
watchMailbox<ThrowOnError extends boolean = true>(user_id: string, parameters?: {
|
|
2415
2415
|
provider?: 'gmail' | 'outlook';
|
|
2416
2416
|
force?: boolean;
|
|
2417
2417
|
}, options?: Options<never, ThrowOnError>): RequestResult<UsersWatchMailboxResponses, UsersWatchMailboxErrors, ThrowOnError, "data">;
|
|
2418
|
-
deleteAction<ThrowOnError extends boolean =
|
|
2418
|
+
deleteAction<ThrowOnError extends boolean = true>(user_id: string, action_id: string, options?: Options<never, ThrowOnError>): RequestResult<UsersDeleteActionResponses, UsersDeleteActionErrors, ThrowOnError, "data">;
|
|
2419
2419
|
}
|
|
2420
2420
|
declare class Organization extends HeyApiClient {
|
|
2421
|
-
list<ThrowOnError extends boolean =
|
|
2422
|
-
create<ThrowOnError extends boolean =
|
|
2421
|
+
list<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<OrganizationListResponses, OrganizationListErrors, ThrowOnError, "data">;
|
|
2422
|
+
create<ThrowOnError extends boolean = true>(parameters?: {
|
|
2423
2423
|
name?: string;
|
|
2424
2424
|
}, options?: Options<never, ThrowOnError>): RequestResult<OrganizationCreateResponses, OrganizationCreateErrors, ThrowOnError, "data">;
|
|
2425
|
-
delete<ThrowOnError extends boolean =
|
|
2426
|
-
retrieve<ThrowOnError extends boolean =
|
|
2427
|
-
update<ThrowOnError extends boolean =
|
|
2425
|
+
delete<ThrowOnError extends boolean = true>(organization_id: string, options?: Options<never, ThrowOnError>): RequestResult<OrganizationDeleteResponses, OrganizationDeleteErrors, ThrowOnError, "data">;
|
|
2426
|
+
retrieve<ThrowOnError extends boolean = true>(organization_id: string, options?: Options<never, ThrowOnError>): RequestResult<OrganizationRetrieveResponses, OrganizationRetrieveErrors, ThrowOnError, "data">;
|
|
2427
|
+
update<ThrowOnError extends boolean = true>(organization_id: string, parameters?: {
|
|
2428
2428
|
name?: string;
|
|
2429
2429
|
}, options?: Options<never, ThrowOnError>): RequestResult<OrganizationUpdateResponses, OrganizationUpdateErrors, ThrowOnError, "data">;
|
|
2430
2430
|
}
|
|
@@ -2438,18 +2438,18 @@ declare class Organizations extends HeyApiClient {
|
|
|
2438
2438
|
get organization(): Organization;
|
|
2439
2439
|
}
|
|
2440
2440
|
declare class ContactLists extends HeyApiClient {
|
|
2441
|
-
create<ThrowOnError extends boolean =
|
|
2441
|
+
create<ThrowOnError extends boolean = true>(parameters?: {
|
|
2442
2442
|
owner?: string;
|
|
2443
2443
|
name?: string;
|
|
2444
2444
|
metadata?: {
|
|
2445
2445
|
[key: string]: string;
|
|
2446
2446
|
};
|
|
2447
2447
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactListsCreateResponses, ContactListsCreateErrors, ThrowOnError, "data">;
|
|
2448
|
-
remove<ThrowOnError extends boolean =
|
|
2448
|
+
remove<ThrowOnError extends boolean = true>(contact_list_id: string, parameters?: {
|
|
2449
2449
|
remove_contacts?: boolean;
|
|
2450
2450
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactListsRemoveResponses, ContactListsRemoveErrors, ThrowOnError, "data">;
|
|
2451
|
-
retrieve<ThrowOnError extends boolean =
|
|
2452
|
-
update<ThrowOnError extends boolean =
|
|
2451
|
+
retrieve<ThrowOnError extends boolean = true>(contact_list_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactListsRetrieveResponses, ContactListsRetrieveErrors, ThrowOnError, "data">;
|
|
2452
|
+
update<ThrowOnError extends boolean = true>(contact_list_id: string, parameters?: {
|
|
2453
2453
|
name?: string;
|
|
2454
2454
|
metadata?: {
|
|
2455
2455
|
[key: string]: string;
|
|
@@ -2457,18 +2457,18 @@ declare class ContactLists extends HeyApiClient {
|
|
|
2457
2457
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactListsUpdateResponses, ContactListsUpdateErrors, ThrowOnError, "data">;
|
|
2458
2458
|
}
|
|
2459
2459
|
declare class Contacts extends HeyApiClient {
|
|
2460
|
-
delAll<ThrowOnError extends boolean =
|
|
2460
|
+
delAll<ThrowOnError extends boolean = true>(parameters?: {
|
|
2461
2461
|
owner?: string;
|
|
2462
2462
|
contact_list?: string;
|
|
2463
2463
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsDelAllResponses, ContactsDelAllErrors, ThrowOnError, "data">;
|
|
2464
|
-
list<ThrowOnError extends boolean =
|
|
2464
|
+
list<ThrowOnError extends boolean = true>(parameters: {
|
|
2465
2465
|
owner: string;
|
|
2466
2466
|
limit?: number;
|
|
2467
2467
|
email?: string;
|
|
2468
2468
|
unsubscribed?: boolean | null;
|
|
2469
2469
|
contact_list?: string;
|
|
2470
2470
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsListResponses, ContactsListErrors, ThrowOnError, "data">;
|
|
2471
|
-
create<ThrowOnError extends boolean =
|
|
2471
|
+
create<ThrowOnError extends boolean = true>(parameters?: {
|
|
2472
2472
|
owner?: string;
|
|
2473
2473
|
email?: string;
|
|
2474
2474
|
blocked?: boolean;
|
|
@@ -2482,7 +2482,7 @@ declare class Contacts extends HeyApiClient {
|
|
|
2482
2482
|
[key: string]: string;
|
|
2483
2483
|
};
|
|
2484
2484
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsCreateResponses, ContactsCreateErrors, ThrowOnError, "data">;
|
|
2485
|
-
batchCreate<ThrowOnError extends boolean =
|
|
2485
|
+
batchCreate<ThrowOnError extends boolean = true>(parameters?: {
|
|
2486
2486
|
contacts?: Array<{
|
|
2487
2487
|
owner: string;
|
|
2488
2488
|
email: string;
|
|
@@ -2498,12 +2498,12 @@ declare class Contacts extends HeyApiClient {
|
|
|
2498
2498
|
};
|
|
2499
2499
|
}>;
|
|
2500
2500
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsBatchCreateResponses, ContactsBatchCreateErrors, ThrowOnError, "data">;
|
|
2501
|
-
batchCreate2<ThrowOnError extends boolean =
|
|
2501
|
+
batchCreate2<ThrowOnError extends boolean = true>(parameters?: {
|
|
2502
2502
|
body?: unknown;
|
|
2503
2503
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsBatchCreate2Responses, ContactsBatchCreate2Errors, ThrowOnError, "data">;
|
|
2504
|
-
del<ThrowOnError extends boolean =
|
|
2505
|
-
retrieve<ThrowOnError extends boolean =
|
|
2506
|
-
update<ThrowOnError extends boolean =
|
|
2504
|
+
del<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsDelResponses, ContactsDelErrors, ThrowOnError, "data">;
|
|
2505
|
+
retrieve<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsRetrieveResponses, ContactsRetrieveErrors, ThrowOnError, "data">;
|
|
2506
|
+
update<ThrowOnError extends boolean = true>(contact_id: string, parameters?: {
|
|
2507
2507
|
blocked?: boolean;
|
|
2508
2508
|
unsubscribed?: boolean;
|
|
2509
2509
|
contact_lists?: Array<string>;
|
|
@@ -2515,33 +2515,33 @@ declare class Contacts extends HeyApiClient {
|
|
|
2515
2515
|
[key: string]: string;
|
|
2516
2516
|
};
|
|
2517
2517
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsUpdateResponses, ContactsUpdateErrors, ThrowOnError, "data">;
|
|
2518
|
-
block<ThrowOnError extends boolean =
|
|
2519
|
-
unblock<ThrowOnError extends boolean =
|
|
2520
|
-
resubscribe<ThrowOnError extends boolean =
|
|
2518
|
+
block<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsBlockResponses, ContactsBlockErrors, ThrowOnError, "data">;
|
|
2519
|
+
unblock<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsUnblockResponses, ContactsUnblockErrors, ThrowOnError, "data">;
|
|
2520
|
+
resubscribe<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsResubscribeResponses, ContactsResubscribeErrors, ThrowOnError, "data">;
|
|
2521
2521
|
}
|
|
2522
2522
|
declare class BillingAddons extends HeyApiClient {
|
|
2523
|
-
getAddons<ThrowOnError extends boolean =
|
|
2524
|
-
previewUpdate<ThrowOnError extends boolean =
|
|
2523
|
+
getAddons<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonsResponses, BillingAddonsGetAddonsErrors, ThrowOnError, "data">;
|
|
2524
|
+
previewUpdate<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters?: {
|
|
2525
2525
|
quantity?: number;
|
|
2526
2526
|
}, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsPreviewUpdateResponses, BillingAddonsPreviewUpdateErrors, ThrowOnError, "data">;
|
|
2527
|
-
getAddonUsages<ThrowOnError extends boolean =
|
|
2528
|
-
update<ThrowOnError extends boolean =
|
|
2527
|
+
getAddonUsages<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonUsagesResponses, BillingAddonsGetAddonUsagesErrors, ThrowOnError, "data">;
|
|
2528
|
+
update<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters?: {
|
|
2529
2529
|
quantity?: number;
|
|
2530
2530
|
}, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsUpdateResponses, BillingAddonsUpdateErrors, ThrowOnError, "data">;
|
|
2531
2531
|
}
|
|
2532
2532
|
declare class BillingSubscription extends HeyApiClient {
|
|
2533
|
-
get<ThrowOnError extends boolean =
|
|
2534
|
-
update<ThrowOnError extends boolean =
|
|
2533
|
+
get<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionGetResponses, BillingSubscriptionGetErrors, ThrowOnError, "data">;
|
|
2534
|
+
update<ThrowOnError extends boolean = true>(parameters?: {
|
|
2535
2535
|
plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
2536
2536
|
billing_period?: 'month' | 'year';
|
|
2537
2537
|
}, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionUpdateResponses, BillingSubscriptionUpdateErrors, ThrowOnError, "data">;
|
|
2538
|
-
previewUpdate<ThrowOnError extends boolean =
|
|
2538
|
+
previewUpdate<ThrowOnError extends boolean = true>(parameters?: {
|
|
2539
2539
|
plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
2540
2540
|
billing_period?: 'month' | 'year';
|
|
2541
2541
|
}, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionPreviewUpdateResponses, BillingSubscriptionPreviewUpdateErrors, ThrowOnError, "data">;
|
|
2542
2542
|
}
|
|
2543
2543
|
declare class Billing extends HeyApiClient {
|
|
2544
|
-
getPrices<ThrowOnError extends boolean =
|
|
2544
|
+
getPrices<ThrowOnError extends boolean = true>(parameters: {
|
|
2545
2545
|
currency: string;
|
|
2546
2546
|
}, options?: Options<never, ThrowOnError>): RequestResult<BillingGetPricesResponses, BillingGetPricesErrors, ThrowOnError, "data">;
|
|
2547
2547
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -872,7 +872,7 @@ const createClient = (config = {}) => {
|
|
|
872
872
|
};
|
|
873
873
|
};
|
|
874
874
|
|
|
875
|
-
const client = createClient(createConfig({ baseUrl: '/v1' }));
|
|
875
|
+
const client = createClient(createConfig({ baseUrl: '/v1', throwOnError: true }));
|
|
876
876
|
|
|
877
877
|
class HeyApiClient {
|
|
878
878
|
constructor(args) {
|
|
@@ -1585,6 +1585,7 @@ class Mailmeteor {
|
|
|
1585
1585
|
const baseUrl = config?.baseUrl || "https://mailmeteor-emailservice-dev.appspot.com/v1";
|
|
1586
1586
|
this.client = createClient(createConfig({
|
|
1587
1587
|
baseUrl,
|
|
1588
|
+
throwOnError: true,
|
|
1588
1589
|
headers: {
|
|
1589
1590
|
'Authorization': `Bearer ${key}`,
|
|
1590
1591
|
},
|