@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
|
@@ -344,6 +344,21 @@ export declare class CompaniesClient {
|
|
|
344
344
|
*/
|
|
345
345
|
listEntityKeyDefinitions(request?: Schematic.ListEntityKeyDefinitionsRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.ListEntityKeyDefinitionsResponse>;
|
|
346
346
|
private __listEntityKeyDefinitions;
|
|
347
|
+
/**
|
|
348
|
+
* @param {string} entity_key_definition_id - entity_key_definition_id
|
|
349
|
+
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
350
|
+
*
|
|
351
|
+
* @throws {@link Schematic.BadRequestError}
|
|
352
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
353
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
354
|
+
* @throws {@link Schematic.NotFoundError}
|
|
355
|
+
* @throws {@link Schematic.InternalServerError}
|
|
356
|
+
*
|
|
357
|
+
* @example
|
|
358
|
+
* await client.companies.deleteEntityKeyDefinition("entity_key_definition_id")
|
|
359
|
+
*/
|
|
360
|
+
deleteEntityKeyDefinition(entity_key_definition_id: string, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.DeleteEntityKeyDefinitionResponse>;
|
|
361
|
+
private __deleteEntityKeyDefinition;
|
|
347
362
|
/**
|
|
348
363
|
* @param {Schematic.CountEntityKeyDefinitionsRequest} request
|
|
349
364
|
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -365,6 +380,26 @@ export declare class CompaniesClient {
|
|
|
365
380
|
*/
|
|
366
381
|
countEntityKeyDefinitions(request?: Schematic.CountEntityKeyDefinitionsRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.CountEntityKeyDefinitionsResponse>;
|
|
367
382
|
private __countEntityKeyDefinitions;
|
|
383
|
+
/**
|
|
384
|
+
* @param {Schematic.CountEntityKeysRequest} request
|
|
385
|
+
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
386
|
+
*
|
|
387
|
+
* @throws {@link Schematic.BadRequestError}
|
|
388
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
389
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
390
|
+
* @throws {@link Schematic.NotFoundError}
|
|
391
|
+
* @throws {@link Schematic.InternalServerError}
|
|
392
|
+
*
|
|
393
|
+
* @example
|
|
394
|
+
* await client.companies.countEntityKeys({
|
|
395
|
+
* definitionId: "definition_id",
|
|
396
|
+
* entityType: "company",
|
|
397
|
+
* limit: 1000000,
|
|
398
|
+
* offset: 1000000
|
|
399
|
+
* })
|
|
400
|
+
*/
|
|
401
|
+
countEntityKeys(request?: Schematic.CountEntityKeysRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.CountEntityKeysResponse>;
|
|
402
|
+
private __countEntityKeys;
|
|
368
403
|
/**
|
|
369
404
|
* @param {Schematic.ListEntityTraitDefinitionsRequest} request
|
|
370
405
|
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* definitionId: "definition_id",
|
|
6
|
+
* entityType: "company",
|
|
7
|
+
* limit: 1000000,
|
|
8
|
+
* offset: 1000000
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface CountEntityKeysRequest {
|
|
12
|
+
definitionId?: string;
|
|
13
|
+
entityType?: Schematic.EntityType;
|
|
14
|
+
/** Page limit (default 100) */
|
|
15
|
+
limit?: number;
|
|
16
|
+
/** Page offset (default 0) */
|
|
17
|
+
offset?: number;
|
|
18
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { CountCompaniesRequest } from "./CountCompaniesRequest";
|
|
2
2
|
export type { CountEntityKeyDefinitionsRequest } from "./CountEntityKeyDefinitionsRequest";
|
|
3
|
+
export type { CountEntityKeysRequest } from "./CountEntityKeysRequest";
|
|
3
4
|
export type { CountEntityTraitDefinitionsRequest } from "./CountEntityTraitDefinitionsRequest";
|
|
4
5
|
export type { CountPlanTraitsRequest } from "./CountPlanTraitsRequest";
|
|
5
6
|
export type { CountUsersRequest } from "./CountUsersRequest";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Input parameters
|
|
4
|
+
*/
|
|
5
|
+
export interface CountEntityKeysParams {
|
|
6
|
+
definitionId?: string;
|
|
7
|
+
entityType?: Schematic.EntityType;
|
|
8
|
+
/** Page limit (default 100) */
|
|
9
|
+
limit?: number;
|
|
10
|
+
/** Page offset (default 0) */
|
|
11
|
+
offset?: number;
|
|
12
|
+
}
|
|
@@ -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";
|
|
@@ -18,7 +18,7 @@ export interface BillingCreditView {
|
|
|
18
18
|
price?: Schematic.BillingPriceView;
|
|
19
19
|
pricePerUnit?: number;
|
|
20
20
|
pricePerUnitDecimal?: string;
|
|
21
|
-
product?: Schematic.
|
|
21
|
+
product?: Schematic.BillingProductRecordResponseData;
|
|
22
22
|
singularName?: string;
|
|
23
23
|
updatedAt: Date;
|
|
24
24
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface BillingProductRecordResponseData {
|
|
3
|
+
accountId: string;
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
environmentId: string;
|
|
6
|
+
externalId: string;
|
|
7
|
+
id: string;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
providerType: Schematic.BillingProviderType;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
1
2
|
export interface CompanyFeatureUsageExportMetadata {
|
|
2
3
|
/** Restrict the export to these Schematic company IDs (starting with 'comp_') */
|
|
3
4
|
companyIds?: string[];
|
|
4
5
|
/** Restrict the export to companies with these billing credit type IDs */
|
|
5
6
|
creditTypeIds?: string[];
|
|
6
|
-
/** Schematic feature IDs (starting with 'feat_') to include as usage columns;
|
|
7
|
-
featureIds
|
|
7
|
+
/** Schematic feature IDs (starting with 'feat_') to include as usage columns; empty means no usage columns */
|
|
8
|
+
featureIds?: string[];
|
|
8
9
|
/** Restrict the export to companies that do (or do not) have a scheduled downgrade */
|
|
9
10
|
hasScheduledDowngrade?: boolean;
|
|
10
11
|
/** Restrict the export to companies with (or without) a monetized subscription */
|
|
@@ -19,10 +20,16 @@ export interface CompanyFeatureUsageExportMetadata {
|
|
|
19
20
|
planVersionId?: string;
|
|
20
21
|
/** Free-text search over company name and keys */
|
|
21
22
|
q?: string;
|
|
23
|
+
/** Column to sort the exported rows by (e.g. name, created_at, plan); defaults to name */
|
|
24
|
+
sortOrderColumn?: string;
|
|
25
|
+
/** Direction to sort the exported rows by; defaults to asc */
|
|
26
|
+
sortOrderDirection?: Schematic.CompanyFeatureUsageExportMetadataSortOrderDirection;
|
|
22
27
|
/** Restrict the export to companies whose subscription has one of these statuses */
|
|
23
28
|
subscriptionStatuses?: string[];
|
|
24
29
|
/** Restrict the export to companies whose subscription has one of these types */
|
|
25
30
|
subscriptionTypes?: string[];
|
|
31
|
+
/** Company columns to include, mirroring the companies list; omit to include the plan column only */
|
|
32
|
+
visibleColumns?: Schematic.CompanyFeatureUsageExportMetadataVisibleColumnsItem[];
|
|
26
33
|
/** Restrict the export to companies that have an entitlement for this feature ID */
|
|
27
34
|
withEntitlementFor?: string;
|
|
28
35
|
/** Restrict the export to companies with a subscription */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Direction to sort the exported rows by; defaults to asc */
|
|
2
|
+
export declare const CompanyFeatureUsageExportMetadataSortOrderDirection: {
|
|
3
|
+
readonly Asc: "asc";
|
|
4
|
+
readonly Desc: "desc";
|
|
5
|
+
};
|
|
6
|
+
export type CompanyFeatureUsageExportMetadataSortOrderDirection = (typeof CompanyFeatureUsageExportMetadataSortOrderDirection)[keyof typeof CompanyFeatureUsageExportMetadataSortOrderDirection];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const CompanyFeatureUsageExportMetadataVisibleColumnsItem: {
|
|
2
|
+
readonly Plan: "plan";
|
|
3
|
+
readonly Subscription: "subscription";
|
|
4
|
+
readonly Users: "users";
|
|
5
|
+
readonly LastSeenAt: "last_seen_at";
|
|
6
|
+
};
|
|
7
|
+
export type CompanyFeatureUsageExportMetadataVisibleColumnsItem = (typeof CompanyFeatureUsageExportMetadataVisibleColumnsItem)[keyof typeof CompanyFeatureUsageExportMetadataVisibleColumnsItem];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
|
-
export type DataExportMetadata = Schematic.DataExportMetadata.AuditLog | Schematic.DataExportMetadata.CompanyFeatureUsage;
|
|
2
|
+
export type DataExportMetadata = Schematic.DataExportMetadata.AuditLog | Schematic.DataExportMetadata.CompanyFeatureUsage | Schematic.DataExportMetadata.Event;
|
|
3
3
|
export declare namespace DataExportMetadata {
|
|
4
4
|
interface AuditLog extends Schematic.AuditLogExportMetadata {
|
|
5
5
|
exportType: "audit-log";
|
|
@@ -7,4 +7,7 @@ export declare namespace DataExportMetadata {
|
|
|
7
7
|
interface CompanyFeatureUsage extends Schematic.CompanyFeatureUsageExportMetadata {
|
|
8
8
|
exportType: "company-feature-usage";
|
|
9
9
|
}
|
|
10
|
+
interface Event extends Schematic.EventExportMetadata {
|
|
11
|
+
exportType: "event";
|
|
12
|
+
}
|
|
10
13
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface EventExportMetadata {
|
|
3
|
+
/** Restrict the export to events for this company ID (starting with 'comp_') */
|
|
4
|
+
companyId?: string;
|
|
5
|
+
/** Restrict the export to events captured at or before this time */
|
|
6
|
+
endTime?: Date;
|
|
7
|
+
/** Restrict the export to track events with this subtype */
|
|
8
|
+
eventSubtype?: string;
|
|
9
|
+
/** Restrict the export to these event types (e.g. "track", "identify"); defaults to track, identify and inference events. Flag check events are only exported when requested here explicitly, and require a flag_id. */
|
|
10
|
+
eventTypes?: Schematic.EventExportMetadataEventTypesItem[];
|
|
11
|
+
/** Restrict the export to flag-check events for this flag ID (starting with 'flag_') */
|
|
12
|
+
flagId?: string;
|
|
13
|
+
/** Account member emails to notify when the export completes; empty means the artifact is only retrievable via the API */
|
|
14
|
+
notificationEmailRecipientEmailAddresses?: string[];
|
|
15
|
+
/** Restrict the export to events captured at or after this time */
|
|
16
|
+
startTime?: Date;
|
|
17
|
+
/** Restrict the export to events for this user ID (starting with 'user_') */
|
|
18
|
+
userId?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const EventExportMetadataEventTypesItem: {
|
|
2
|
+
readonly FlagCheck: "flag_check";
|
|
3
|
+
readonly Identify: "identify";
|
|
4
|
+
readonly Inference: "inference";
|
|
5
|
+
readonly Track: "track";
|
|
6
|
+
};
|
|
7
|
+
export type EventExportMetadataEventTypesItem = (typeof EventExportMetadataEventTypesItem)[keyof typeof EventExportMetadataEventTypesItem];
|
|
@@ -2,7 +2,7 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface FeatureView {
|
|
3
3
|
accountId: string;
|
|
4
4
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
5
|
-
billingProduct?: Schematic.
|
|
5
|
+
billingProduct?: Schematic.BillingProductRecordResponseData;
|
|
6
6
|
createdAt: Date;
|
|
7
7
|
description: string;
|
|
8
8
|
eventSubtype?: string;
|
|
@@ -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";
|