@nangohq/types 0.63.1 → 0.64.1
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/api.endpoints.d.ts +2 -2
- package/dist/billing/types.d.ts +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/integration/api.d.ts +0 -17
- package/dist/proxy/api.d.ts +1 -1
- package/dist/usage/db.d.ts +9 -0
- package/dist/usage/dto.d.ts +11 -0
- package/package.json +1 -1
package/dist/api.endpoints.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type { DeleteEnvironment, PatchEnvironment, PostEnvironment } from './env
|
|
|
11
11
|
import type { PatchWebhook } from './environment/api/webhook.js';
|
|
12
12
|
import type { PostEnvironmentVariables } from './environment/variable/api.js';
|
|
13
13
|
import type { PatchFlowDisable, PatchFlowEnable, PatchFlowFrequency, PostPreBuiltDeploy, PutUpgradePreBuiltFlow } from './flow/http.api.js';
|
|
14
|
-
import type { DeleteIntegration, DeletePublicIntegration, GetIntegration, GetIntegrationFlows, GetPublicIntegration, GetPublicListIntegrations,
|
|
14
|
+
import type { DeleteIntegration, DeletePublicIntegration, GetIntegration, GetIntegrationFlows, GetPublicIntegration, GetPublicListIntegrations, PatchIntegration, PatchPublicIntegration, PostIntegration, PostPublicIntegration } from './integration/api.js';
|
|
15
15
|
import type { DeleteInvite, GetInvite, PostInvite } from './invitations/api.js';
|
|
16
16
|
import type { GetOperation, PostInsights, SearchFilters, SearchMessages, SearchOperations } from './logs/api.js';
|
|
17
17
|
import type { GetMeta } from './meta/api.js';
|
|
@@ -24,7 +24,7 @@ import type { PostPublicTrigger, PutPublicSyncConnectionFrequency } from './sync
|
|
|
24
24
|
import type { DeleteTeamUser, GetTeam, PutTeam } from './team/api.js';
|
|
25
25
|
import type { GetUser, PatchUser } from './user/api.js';
|
|
26
26
|
import type { PostPublicWebhook } from './webhooks/http.api.js';
|
|
27
|
-
export type PublicApiEndpoints = SetMetadata | UpdateMetadata | PostDeploy | PostDeployConfirmation | PostPublicTrigger | PostPublicTbaAuthorization | PostPublicJwtAuthorization | PostPublicUnauthenticatedAuthorization | PostPublicApiKeyAuthorization | PostPublicBasicAuthorization | PostPublicAppStoreAuthorization | GetPublicProviders | GetPublicProvider |
|
|
27
|
+
export type PublicApiEndpoints = SetMetadata | UpdateMetadata | PostDeploy | PostDeployConfirmation | PostPublicTrigger | PostPublicTbaAuthorization | PostPublicJwtAuthorization | PostPublicUnauthenticatedAuthorization | PostPublicApiKeyAuthorization | PostPublicBasicAuthorization | PostPublicAppStoreAuthorization | GetPublicProviders | GetPublicProvider | GetPublicListIntegrations | GetPublicIntegration | DeletePublicIntegration | PostConnectSessions | PostPublicConnectSessionsReconnect | GetPublicConnections | GetPublicConnection | GetConnectSession | DeleteConnectSession | PostDeployInternal | PostPublicBillAuthorization | DeletePublicConnection | PostPublicSignatureAuthorization | PostPublicTwoStepAuthorization | PostPublicWebhook | GetPublicRecords | GetPublicScriptsConfig | PostPublicConnectTelemetry | PutPublicSyncConnectionFrequency | PostPublicIntegration | PatchPublicIntegration | GetAsyncActionResult | PostPublicOauthOutboundAuthorization;
|
|
28
28
|
export type PrivateApiEndpoints = PostSignup | PostSignin | PostLogout | GetTeam | PutTeam | PostPlanExtendTrial | GetUser | PatchUser | PostInvite | DeleteInvite | DeleteTeamUser | PostInsights | PostForgotPassword | PutResetPassword | SearchOperations | GetOperation | SearchMessages | SearchFilters | PatchOnboarding | PostInternalConnectSessions | GetIntegrationFlows | DeleteIntegration | PatchIntegration | GetIntegration | PostIntegration | GetConnections | GetConnectionsCount | GetConnection | GetInvite | GetMeta | GetEmailByExpiredToken | GetEmailByUuid | GetManagedCallback | PatchFlowDisable | PatchFlowEnable | PatchFlowFrequency | PutUpgradePreBuiltFlow | PostConnectionRefresh | PostManagedSignup | PostPreBuiltDeploy | PostEnvironment | PatchEnvironment | DeleteEnvironment | PatchWebhook | PostEnvironmentVariables | PostImpersonate;
|
|
29
29
|
export type APIEndpoints = PrivateApiEndpoints | PublicApiEndpoints;
|
|
30
30
|
/**
|
package/dist/billing/types.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface BillingClient {
|
|
|
14
14
|
planExternalId: string;
|
|
15
15
|
}) => Promise<Result<{
|
|
16
16
|
pendingChangeId: string;
|
|
17
|
-
|
|
17
|
+
amountInCents: number | null;
|
|
18
18
|
}>>;
|
|
19
19
|
downgrade: (opts: {
|
|
20
20
|
subscriptionId: string;
|
|
@@ -26,7 +26,7 @@ export interface BillingClient {
|
|
|
26
26
|
* format: dollar.cent = 0.00
|
|
27
27
|
*/
|
|
28
28
|
amount: string;
|
|
29
|
-
}) => Promise<Result<
|
|
29
|
+
}) => Promise<Result<BillingSubscription>>;
|
|
30
30
|
cancelPendingChanges: (opts: {
|
|
31
31
|
pendingChangeId: string;
|
|
32
32
|
}) => Promise<Result<void>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export type * from './team/api.js';
|
|
|
23
23
|
export type * from './team/db.js';
|
|
24
24
|
export type * from './billing/types.js';
|
|
25
25
|
export type * from './billing/http.api.js';
|
|
26
|
+
export type * from './usage/dto.js';
|
|
27
|
+
export type * from './usage/db.js';
|
|
26
28
|
export type * from './providers/api.js';
|
|
27
29
|
export type * from './proxy/api.js';
|
|
28
30
|
export type * from './result.js';
|
|
@@ -21,13 +21,6 @@ export interface ApiPublicIntegrationInclude {
|
|
|
21
21
|
app_link: string | null;
|
|
22
22
|
} | null;
|
|
23
23
|
}
|
|
24
|
-
export type GetPublicListIntegrationsLegacy = Endpoint<{
|
|
25
|
-
Method: 'GET';
|
|
26
|
-
Path: '/config';
|
|
27
|
-
Success: {
|
|
28
|
-
configs: ApiPublicIntegration[];
|
|
29
|
-
};
|
|
30
|
-
}>;
|
|
31
24
|
export type GetPublicListIntegrations = Endpoint<{
|
|
32
25
|
Method: 'GET';
|
|
33
26
|
Path: '/integrations';
|
|
@@ -91,16 +84,6 @@ export type DeletePublicIntegration = Endpoint<{
|
|
|
91
84
|
success: true;
|
|
92
85
|
};
|
|
93
86
|
}>;
|
|
94
|
-
export type DeletePublicIntegrationDeprecated = Endpoint<{
|
|
95
|
-
Method: 'DELETE';
|
|
96
|
-
Path: '/config/:providerConfigKey';
|
|
97
|
-
Params: {
|
|
98
|
-
providerConfigKey: string;
|
|
99
|
-
};
|
|
100
|
-
Success: {
|
|
101
|
-
success: true;
|
|
102
|
-
};
|
|
103
|
-
}>;
|
|
104
87
|
export type ApiIntegration = Omit<Merge<IntegrationConfig, ApiTimestamps>, 'oauth_client_secret_iv' | 'oauth_client_secret_tag'>;
|
|
105
88
|
export type ApiIntegrationList = ApiIntegration & {
|
|
106
89
|
meta: {
|
package/dist/proxy/api.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DBAccountUsage } from './db.js';
|
|
2
|
+
export interface CreateAccountUsageDto {
|
|
3
|
+
accountId: DBAccountUsage['account_id'];
|
|
4
|
+
month: DBAccountUsage['month'];
|
|
5
|
+
actions?: DBAccountUsage['actions'];
|
|
6
|
+
activeRecords?: DBAccountUsage['active_records'];
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateAccountUsageDto {
|
|
9
|
+
actions?: DBAccountUsage['actions'];
|
|
10
|
+
activeRecords?: DBAccountUsage['active_records'];
|
|
11
|
+
}
|