@schematichq/schematic-typescript-node 1.5.7 → 1.5.8
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/resources/companies/client/Client.d.ts +35 -0
- package/dist/api/resources/companies/client/requests/CountEntityKeysRequest.d.ts +18 -0
- package/dist/api/resources/companies/client/requests/index.d.ts +1 -0
- package/dist/api/resources/companies/types/CountEntityKeysParams.d.ts +12 -0
- package/dist/api/resources/companies/types/CountEntityKeysResponse.d.ts +6 -0
- package/dist/api/resources/companies/types/DeleteEntityKeyDefinitionResponse.d.ts +6 -0
- package/dist/api/resources/companies/types/index.d.ts +3 -0
- package/dist/api/types/BillingCreditView.d.ts +1 -1
- package/dist/api/types/BillingProductRecordResponseData.d.ts +12 -0
- package/dist/api/types/CompanyFeatureUsageExportMetadata.d.ts +9 -2
- package/dist/api/types/CompanyFeatureUsageExportMetadataSortOrderDirection.d.ts +6 -0
- package/dist/api/types/CompanyFeatureUsageExportMetadataVisibleColumnsItem.d.ts +7 -0
- package/dist/api/types/DataExportMetadata.d.ts +4 -1
- package/dist/api/types/DataExportType.d.ts +1 -0
- package/dist/api/types/EventExportMetadata.d.ts +19 -0
- package/dist/api/types/EventExportMetadataEventTypesItem.d.ts +7 -0
- package/dist/api/types/FeatureView.d.ts +1 -1
- package/dist/api/types/TestWebhookResponseData.d.ts +1 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/index.js +9 -9
- package/dist/serialization/resources/companies/types/CountEntityKeysParams.d.ts +13 -0
- package/dist/serialization/resources/companies/types/CountEntityKeysResponse.d.ts +12 -0
- package/dist/serialization/resources/companies/types/DeleteEntityKeyDefinitionResponse.d.ts +11 -0
- package/dist/serialization/resources/companies/types/index.d.ts +3 -0
- package/dist/serialization/types/BillingCreditView.d.ts +2 -2
- package/dist/serialization/types/BillingProductRecordResponseData.d.ts +18 -0
- package/dist/serialization/types/CompanyFeatureUsageExportMetadata.d.ts +6 -1
- package/dist/serialization/types/CompanyFeatureUsageExportMetadataSortOrderDirection.d.ts +7 -0
- package/dist/serialization/types/CompanyFeatureUsageExportMetadataVisibleColumnsItem.d.ts +7 -0
- package/dist/serialization/types/DataExportMetadata.d.ts +5 -1
- package/dist/serialization/types/DataExportType.d.ts +1 -1
- package/dist/serialization/types/EventExportMetadata.d.ts +17 -0
- package/dist/serialization/types/EventExportMetadataEventTypesItem.d.ts +7 -0
- package/dist/serialization/types/FeatureView.d.ts +2 -2
- package/dist/serialization/types/TestWebhookResponseData.d.ts +1 -0
- package/dist/serialization/types/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { EntityType } from "../../../types/EntityType";
|
|
5
|
+
export declare const CountEntityKeysParams: core.serialization.ObjectSchema<serializers.CountEntityKeysParams.Raw, Schematic.CountEntityKeysParams>;
|
|
6
|
+
export declare namespace CountEntityKeysParams {
|
|
7
|
+
interface Raw {
|
|
8
|
+
definition_id?: string | null;
|
|
9
|
+
entity_type?: EntityType.Raw | null;
|
|
10
|
+
limit?: number | null;
|
|
11
|
+
offset?: number | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { CountResponse } from "../../../types/CountResponse";
|
|
5
|
+
import { CountEntityKeysParams } from "./CountEntityKeysParams";
|
|
6
|
+
export declare const CountEntityKeysResponse: core.serialization.ObjectSchema<serializers.CountEntityKeysResponse.Raw, Schematic.CountEntityKeysResponse>;
|
|
7
|
+
export declare namespace CountEntityKeysResponse {
|
|
8
|
+
interface Raw {
|
|
9
|
+
data: CountResponse.Raw;
|
|
10
|
+
params: CountEntityKeysParams.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { DeleteResponse } from "../../../types/DeleteResponse";
|
|
5
|
+
export declare const DeleteEntityKeyDefinitionResponse: core.serialization.ObjectSchema<serializers.DeleteEntityKeyDefinitionResponse.Raw, Schematic.DeleteEntityKeyDefinitionResponse>;
|
|
6
|
+
export declare namespace DeleteEntityKeyDefinitionResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: DeleteResponse.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -2,6 +2,8 @@ export * from "./CountCompaniesParams";
|
|
|
2
2
|
export * from "./CountCompaniesResponse";
|
|
3
3
|
export * from "./CountEntityKeyDefinitionsParams";
|
|
4
4
|
export * from "./CountEntityKeyDefinitionsResponse";
|
|
5
|
+
export * from "./CountEntityKeysParams";
|
|
6
|
+
export * from "./CountEntityKeysResponse";
|
|
5
7
|
export * from "./CountEntityTraitDefinitionsParams";
|
|
6
8
|
export * from "./CountEntityTraitDefinitionsResponse";
|
|
7
9
|
export * from "./CountPlanTraitsParams";
|
|
@@ -14,6 +16,7 @@ export * from "./DeleteCompanyByKeysResponse";
|
|
|
14
16
|
export * from "./DeleteCompanyMembershipResponse";
|
|
15
17
|
export * from "./DeleteCompanyParams";
|
|
16
18
|
export * from "./DeleteCompanyResponse";
|
|
19
|
+
export * from "./DeleteEntityKeyDefinitionResponse";
|
|
17
20
|
export * from "./DeleteUserByKeysResponse";
|
|
18
21
|
export * from "./DeleteUserResponse";
|
|
19
22
|
export * from "./GetActiveCompanySubscriptionParams";
|
|
@@ -6,7 +6,7 @@ import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
|
6
6
|
import { BillingCreditLedgerAuthority } from "./BillingCreditLedgerAuthority";
|
|
7
7
|
import { BillingCreditRolloverPolicy } from "./BillingCreditRolloverPolicy";
|
|
8
8
|
import { BillingPriceView } from "./BillingPriceView";
|
|
9
|
-
import {
|
|
9
|
+
import { BillingProductRecordResponseData } from "./BillingProductRecordResponseData";
|
|
10
10
|
import { CreditCurrencyPrice } from "./CreditCurrencyPrice";
|
|
11
11
|
export declare const BillingCreditView: core.serialization.ObjectSchema<serializers.BillingCreditView.Raw, Schematic.BillingCreditView>;
|
|
12
12
|
export declare namespace BillingCreditView {
|
|
@@ -29,7 +29,7 @@ export declare namespace BillingCreditView {
|
|
|
29
29
|
price?: BillingPriceView.Raw | null;
|
|
30
30
|
price_per_unit?: number | null;
|
|
31
31
|
price_per_unit_decimal?: string | null;
|
|
32
|
-
product?:
|
|
32
|
+
product?: BillingProductRecordResponseData.Raw | null;
|
|
33
33
|
singular_name?: string | null;
|
|
34
34
|
updated_at: string;
|
|
35
35
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { BillingProviderType } from "./BillingProviderType";
|
|
5
|
+
export declare const BillingProductRecordResponseData: core.serialization.ObjectSchema<serializers.BillingProductRecordResponseData.Raw, Schematic.BillingProductRecordResponseData>;
|
|
6
|
+
export declare namespace BillingProductRecordResponseData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
account_id: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
environment_id: string;
|
|
11
|
+
external_id: string;
|
|
12
|
+
id: string;
|
|
13
|
+
is_active: boolean;
|
|
14
|
+
name: string;
|
|
15
|
+
provider_type: BillingProviderType.Raw;
|
|
16
|
+
updated_at: string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { CompanyFeatureUsageExportMetadataSortOrderDirection } from "./CompanyFeatureUsageExportMetadataSortOrderDirection";
|
|
5
|
+
import { CompanyFeatureUsageExportMetadataVisibleColumnsItem } from "./CompanyFeatureUsageExportMetadataVisibleColumnsItem";
|
|
4
6
|
export declare const CompanyFeatureUsageExportMetadata: core.serialization.ObjectSchema<serializers.CompanyFeatureUsageExportMetadata.Raw, Schematic.CompanyFeatureUsageExportMetadata>;
|
|
5
7
|
export declare namespace CompanyFeatureUsageExportMetadata {
|
|
6
8
|
interface Raw {
|
|
7
9
|
company_ids?: string[] | null;
|
|
8
10
|
credit_type_ids?: string[] | null;
|
|
9
|
-
feature_ids
|
|
11
|
+
feature_ids?: string[] | null;
|
|
10
12
|
has_scheduled_downgrade?: boolean | null;
|
|
11
13
|
monetized_subscriptions?: boolean | null;
|
|
12
14
|
notification_email_recipient_email_addresses?: string[] | null;
|
|
@@ -14,8 +16,11 @@ export declare namespace CompanyFeatureUsageExportMetadata {
|
|
|
14
16
|
plan_ids?: string[] | null;
|
|
15
17
|
plan_version_id?: string | null;
|
|
16
18
|
q?: string | null;
|
|
19
|
+
sort_order_column?: string | null;
|
|
20
|
+
sort_order_direction?: CompanyFeatureUsageExportMetadataSortOrderDirection.Raw | null;
|
|
17
21
|
subscription_statuses?: string[] | null;
|
|
18
22
|
subscription_types?: string[] | null;
|
|
23
|
+
visible_columns?: CompanyFeatureUsageExportMetadataVisibleColumnsItem.Raw[] | null;
|
|
19
24
|
with_entitlement_for?: string | null;
|
|
20
25
|
with_subscription?: boolean | null;
|
|
21
26
|
without_feature_override_for?: string | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const CompanyFeatureUsageExportMetadataSortOrderDirection: core.serialization.Schema<serializers.CompanyFeatureUsageExportMetadataSortOrderDirection.Raw, Schematic.CompanyFeatureUsageExportMetadataSortOrderDirection>;
|
|
5
|
+
export declare namespace CompanyFeatureUsageExportMetadataSortOrderDirection {
|
|
6
|
+
type Raw = "asc" | "desc";
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const CompanyFeatureUsageExportMetadataVisibleColumnsItem: core.serialization.Schema<serializers.CompanyFeatureUsageExportMetadataVisibleColumnsItem.Raw, Schematic.CompanyFeatureUsageExportMetadataVisibleColumnsItem>;
|
|
5
|
+
export declare namespace CompanyFeatureUsageExportMetadataVisibleColumnsItem {
|
|
6
|
+
type Raw = "plan" | "subscription" | "users" | "last_seen_at";
|
|
7
|
+
}
|
|
@@ -3,13 +3,17 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { AuditLogExportMetadata } from "./AuditLogExportMetadata";
|
|
5
5
|
import { CompanyFeatureUsageExportMetadata } from "./CompanyFeatureUsageExportMetadata";
|
|
6
|
+
import { EventExportMetadata } from "./EventExportMetadata";
|
|
6
7
|
export declare const DataExportMetadata: core.serialization.Schema<serializers.DataExportMetadata.Raw, Schematic.DataExportMetadata>;
|
|
7
8
|
export declare namespace DataExportMetadata {
|
|
8
|
-
type Raw = DataExportMetadata.AuditLog | DataExportMetadata.CompanyFeatureUsage;
|
|
9
|
+
type Raw = DataExportMetadata.AuditLog | DataExportMetadata.CompanyFeatureUsage | DataExportMetadata.Event;
|
|
9
10
|
interface AuditLog extends AuditLogExportMetadata.Raw {
|
|
10
11
|
export_type: "audit-log";
|
|
11
12
|
}
|
|
12
13
|
interface CompanyFeatureUsage extends CompanyFeatureUsageExportMetadata.Raw {
|
|
13
14
|
export_type: "company-feature-usage";
|
|
14
15
|
}
|
|
16
|
+
interface Event extends EventExportMetadata.Raw {
|
|
17
|
+
export_type: "event";
|
|
18
|
+
}
|
|
15
19
|
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const DataExportType: core.serialization.Schema<serializers.DataExportType.Raw, Schematic.DataExportType>;
|
|
5
5
|
export declare namespace DataExportType {
|
|
6
|
-
type Raw = "audit-log" | "company-feature-usage";
|
|
6
|
+
type Raw = "audit-log" | "company-feature-usage" | "event";
|
|
7
7
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { EventExportMetadataEventTypesItem } from "./EventExportMetadataEventTypesItem";
|
|
5
|
+
export declare const EventExportMetadata: core.serialization.ObjectSchema<serializers.EventExportMetadata.Raw, Schematic.EventExportMetadata>;
|
|
6
|
+
export declare namespace EventExportMetadata {
|
|
7
|
+
interface Raw {
|
|
8
|
+
company_id?: string | null;
|
|
9
|
+
end_time?: string | null;
|
|
10
|
+
event_subtype?: string | null;
|
|
11
|
+
event_types?: EventExportMetadataEventTypesItem.Raw[] | null;
|
|
12
|
+
flag_id?: string | null;
|
|
13
|
+
notification_email_recipient_email_addresses?: string[] | null;
|
|
14
|
+
start_time?: string | null;
|
|
15
|
+
user_id?: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const EventExportMetadataEventTypesItem: core.serialization.Schema<serializers.EventExportMetadataEventTypesItem.Raw, Schematic.EventExportMetadataEventTypesItem>;
|
|
5
|
+
export declare namespace EventExportMetadataEventTypesItem {
|
|
6
|
+
type Raw = "flag_check" | "identify" | "inference" | "track";
|
|
7
|
+
}
|
|
@@ -2,7 +2,7 @@ import type * as Schematic from "../../api/index";
|
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
|
|
5
|
-
import {
|
|
5
|
+
import { BillingProductRecordResponseData } from "./BillingProductRecordResponseData";
|
|
6
6
|
import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
|
|
7
7
|
import { EventSummaryResponseData } from "./EventSummaryResponseData";
|
|
8
8
|
import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
|
|
@@ -14,7 +14,7 @@ export declare namespace FeatureView {
|
|
|
14
14
|
interface Raw {
|
|
15
15
|
account_id: string;
|
|
16
16
|
billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
|
|
17
|
-
billing_product?:
|
|
17
|
+
billing_product?: BillingProductRecordResponseData.Raw | null;
|
|
18
18
|
created_at: string;
|
|
19
19
|
description: string;
|
|
20
20
|
event_subtype?: string | null;
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../index";
|
|
|
4
4
|
export declare const TestWebhookResponseData: core.serialization.ObjectSchema<serializers.TestWebhookResponseData.Raw, Schematic.TestWebhookResponseData>;
|
|
5
5
|
export declare namespace TestWebhookResponseData {
|
|
6
6
|
interface Raw {
|
|
7
|
+
failure_reason?: string | null;
|
|
7
8
|
response_code: number;
|
|
8
9
|
success: boolean;
|
|
9
10
|
}
|
|
@@ -49,6 +49,7 @@ export * from "./BillingProductPriceInterval";
|
|
|
49
49
|
export * from "./BillingProductPriceResponseData";
|
|
50
50
|
export * from "./BillingProductPriceTierResponseData";
|
|
51
51
|
export * from "./BillingProductPricing";
|
|
52
|
+
export * from "./BillingProductRecordResponseData";
|
|
52
53
|
export * from "./BillingProductResponseData";
|
|
53
54
|
export * from "./BillingProviderType";
|
|
54
55
|
export * from "./BillingStrategy";
|
|
@@ -98,6 +99,8 @@ export * from "./CompanyCreditBalanceResponseData";
|
|
|
98
99
|
export * from "./CompanyDetailResponseData";
|
|
99
100
|
export * from "./CompanyEventPeriodMetricsResponseData";
|
|
100
101
|
export * from "./CompanyFeatureUsageExportMetadata";
|
|
102
|
+
export * from "./CompanyFeatureUsageExportMetadataSortOrderDirection";
|
|
103
|
+
export * from "./CompanyFeatureUsageExportMetadataVisibleColumnsItem";
|
|
101
104
|
export * from "./CompanyLedgerResponseData";
|
|
102
105
|
export * from "./CompanyMatchingCriteria";
|
|
103
106
|
export * from "./CompanyMembershipDetailResponseData";
|
|
@@ -218,6 +221,8 @@ export * from "./EventBodyIdentifyCompany";
|
|
|
218
221
|
export * from "./EventBodyInference";
|
|
219
222
|
export * from "./EventBodyTrack";
|
|
220
223
|
export * from "./EventDetailResponseData";
|
|
224
|
+
export * from "./EventExportMetadata";
|
|
225
|
+
export * from "./EventExportMetadataEventTypesItem";
|
|
221
226
|
export * from "./EventResponseData";
|
|
222
227
|
export * from "./EventStatus";
|
|
223
228
|
export * from "./EventSummaryResponseData";
|