@schematichq/schematic-typescript-node 1.2.4 → 1.2.5

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.
Files changed (87) hide show
  1. package/dist/Client.d.ts +11 -57
  2. package/dist/api/resources/companies/client/Client.d.ts +35 -0
  3. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +28 -0
  4. package/dist/api/resources/companies/client/requests/index.d.ts +1 -0
  5. package/dist/api/resources/{features/types/CountAudienceCompaniesResponse.d.ts → companies/types/GetPlanChangeResponse.d.ts} +2 -2
  6. package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +17 -0
  7. package/dist/api/resources/{features/types/CountAudienceUsersResponse.d.ts → companies/types/ListPlanChangesResponse.d.ts} +3 -3
  8. package/dist/api/resources/companies/types/index.d.ts +3 -0
  9. package/dist/api/resources/credits/client/Client.d.ts +24 -24
  10. package/dist/api/resources/features/client/Client.d.ts +0 -112
  11. package/dist/api/resources/features/types/index.d.ts +0 -4
  12. package/dist/api/resources/index.d.ts +3 -3
  13. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +0 -1
  14. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +0 -1
  15. package/dist/api/resources/plans/client/Client.d.ts +0 -58
  16. package/dist/api/resources/plans/client/requests/index.d.ts +0 -1
  17. package/dist/api/resources/plans/types/index.d.ts +0 -3
  18. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  19. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  20. package/dist/api/types/CreateOrUpdateConditionGroupRequestBody.d.ts +0 -1
  21. package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -2
  22. package/dist/api/types/PlanChangeResponseData.d.ts +29 -0
  23. package/dist/api/types/PlanChangeResponseDataAction.d.ts +14 -0
  24. package/dist/api/types/PlanChangeResponseDataActorType.d.ts +10 -0
  25. package/dist/api/types/PlanChangeResponseDataBasePlanAction.d.ts +13 -0
  26. package/dist/api/types/PlanChangeResponseDataSubscriptionChangeAction.d.ts +15 -0
  27. package/dist/api/types/PlanSnapshotView.d.ts +10 -0
  28. package/dist/api/types/RuleConditionDetailResponseData.d.ts +0 -1
  29. package/dist/api/types/RuleConditionGroupDetailResponseData.d.ts +0 -1
  30. package/dist/api/types/RuleConditionGroupResponseData.d.ts +0 -1
  31. package/dist/api/types/RuleConditionResponseData.d.ts +0 -1
  32. package/dist/api/types/RuleDetailResponseData.d.ts +0 -1
  33. package/dist/api/types/RuleResponseData.d.ts +0 -1
  34. package/dist/api/types/SubscriptionTraitUpdate.d.ts +12 -0
  35. package/dist/api/types/index.d.ts +7 -4
  36. package/dist/index.js +3 -3
  37. package/dist/serialization/resources/companies/types/GetPlanChangeResponse.d.ts +14 -0
  38. package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +18 -0
  39. package/dist/serialization/resources/companies/types/ListPlanChangesResponse.d.ts +15 -0
  40. package/dist/serialization/resources/companies/types/index.d.ts +3 -0
  41. package/dist/serialization/resources/features/types/index.d.ts +0 -4
  42. package/dist/serialization/resources/index.d.ts +3 -3
  43. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +0 -1
  44. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +0 -1
  45. package/dist/serialization/resources/plans/client/requests/index.d.ts +0 -1
  46. package/dist/serialization/resources/plans/types/index.d.ts +0 -3
  47. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  48. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  49. package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.d.ts +0 -1
  50. package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
  51. package/dist/serialization/types/PlanChangeResponseData.d.ts +40 -0
  52. package/dist/serialization/types/PlanChangeResponseDataAction.d.ts +10 -0
  53. package/dist/serialization/types/PlanChangeResponseDataActorType.d.ts +10 -0
  54. package/dist/serialization/types/PlanChangeResponseDataBasePlanAction.d.ts +10 -0
  55. package/dist/serialization/types/PlanChangeResponseDataSubscriptionChangeAction.d.ts +10 -0
  56. package/dist/serialization/types/PlanSnapshotView.d.ts +16 -0
  57. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +0 -1
  58. package/dist/serialization/types/RuleConditionGroupDetailResponseData.d.ts +0 -1
  59. package/dist/serialization/types/RuleConditionGroupResponseData.d.ts +0 -1
  60. package/dist/serialization/types/RuleConditionResponseData.d.ts +0 -1
  61. package/dist/serialization/types/RuleDetailResponseData.d.ts +0 -1
  62. package/dist/serialization/types/RuleResponseData.d.ts +0 -1
  63. package/dist/serialization/types/SubscriptionTraitUpdate.d.ts +18 -0
  64. package/dist/serialization/types/index.d.ts +7 -4
  65. package/package.json +1 -1
  66. package/dist/api/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -9
  67. package/dist/api/resources/features/types/ListAudienceUsersResponse.d.ts +0 -9
  68. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +0 -25
  69. package/dist/api/resources/plans/types/DeleteAudienceResponse.d.ts +0 -9
  70. package/dist/api/resources/plans/types/GetAudienceResponse.d.ts +0 -9
  71. package/dist/api/resources/plans/types/UpdateAudienceResponse.d.ts +0 -9
  72. package/dist/api/types/AudienceRequestBody.d.ts +0 -13
  73. package/dist/api/types/PaginationFilter.d.ts +0 -9
  74. package/dist/api/types/PlanAudienceDetailResponseData.d.ts +0 -18
  75. package/dist/api/types/PlanAudienceResponseData.d.ts +0 -15
  76. package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.d.ts +0 -14
  77. package/dist/serialization/resources/features/types/CountAudienceUsersResponse.d.ts +0 -14
  78. package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -14
  79. package/dist/serialization/resources/features/types/ListAudienceUsersResponse.d.ts +0 -14
  80. package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +0 -15
  81. package/dist/serialization/resources/plans/types/DeleteAudienceResponse.d.ts +0 -14
  82. package/dist/serialization/resources/plans/types/GetAudienceResponse.d.ts +0 -14
  83. package/dist/serialization/resources/plans/types/UpdateAudienceResponse.d.ts +0 -14
  84. package/dist/serialization/types/AudienceRequestBody.d.ts +0 -18
  85. package/dist/serialization/types/PaginationFilter.d.ts +0 -13
  86. package/dist/serialization/types/PlanAudienceDetailResponseData.d.ts +0 -25
  87. package/dist/serialization/types/PlanAudienceResponseData.d.ts +0 -21
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { PlanChangeResponseData } from "../../../types/PlanChangeResponseData";
8
+ export declare const GetPlanChangeResponse: core.serialization.ObjectSchema<serializers.GetPlanChangeResponse.Raw, Schematic.GetPlanChangeResponse>;
9
+ export declare namespace GetPlanChangeResponse {
10
+ interface Raw {
11
+ data: PlanChangeResponseData.Raw;
12
+ params: Record<string, unknown>;
13
+ }
14
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ListPlanChangesParams: core.serialization.ObjectSchema<serializers.ListPlanChangesParams.Raw, Schematic.ListPlanChangesParams>;
8
+ export declare namespace ListPlanChangesParams {
9
+ interface Raw {
10
+ action?: string | null;
11
+ base_plan_action?: string | null;
12
+ company_id?: string | null;
13
+ company_ids?: string[] | null;
14
+ limit?: number | null;
15
+ offset?: number | null;
16
+ plan_ids?: string[] | null;
17
+ }
18
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { PlanChangeResponseData } from "../../../types/PlanChangeResponseData";
8
+ import { ListPlanChangesParams } from "./ListPlanChangesParams";
9
+ export declare const ListPlanChangesResponse: core.serialization.ObjectSchema<serializers.ListPlanChangesResponse.Raw, Schematic.ListPlanChangesResponse>;
10
+ export declare namespace ListPlanChangesResponse {
11
+ interface Raw {
12
+ data: PlanChangeResponseData.Raw[];
13
+ params: ListPlanChangesParams.Raw;
14
+ }
15
+ }
@@ -54,6 +54,9 @@ export * from "./CountEntityTraitDefinitionsParams";
54
54
  export * from "./CountEntityTraitDefinitionsResponse";
55
55
  export * from "./GetEntityTraitValuesParams";
56
56
  export * from "./GetEntityTraitValuesResponse";
57
+ export * from "./ListPlanChangesParams";
58
+ export * from "./ListPlanChangesResponse";
59
+ export * from "./GetPlanChangeResponse";
57
60
  export * from "./ListPlanTraitsParams";
58
61
  export * from "./ListPlanTraitsResponse";
59
62
  export * from "./CreatePlanTraitResponse";
@@ -1,7 +1,3 @@
1
- export * from "./CountAudienceCompaniesResponse";
2
- export * from "./CountAudienceUsersResponse";
3
- export * from "./ListAudienceCompaniesResponse";
4
- export * from "./ListAudienceUsersResponse";
5
1
  export * from "./ListFeaturesParams";
6
2
  export * from "./ListFeaturesResponse";
7
3
  export * from "./CreateFeatureRequestBodyFeatureType";
@@ -1,7 +1,5 @@
1
1
  export * as accounts from "./accounts";
2
2
  export * from "./accounts/types";
3
- export * as features from "./features";
4
- export * from "./features/types";
5
3
  export * as billing from "./billing";
6
4
  export * from "./billing/types";
7
5
  export * as credits from "./credits";
@@ -22,6 +20,8 @@ export * as dataexports from "./dataexports";
22
20
  export * from "./dataexports/types";
23
21
  export * as events from "./events";
24
22
  export * from "./events/types";
23
+ export * as features from "./features";
24
+ export * from "./features/types";
25
25
  export * as plangroups from "./plangroups";
26
26
  export * from "./plangroups/types";
27
27
  export * as accesstokens from "./accesstokens";
@@ -29,7 +29,6 @@ export * from "./accesstokens/types";
29
29
  export * as webhooks from "./webhooks";
30
30
  export * from "./webhooks/types";
31
31
  export * from "./accounts/client/requests";
32
- export * from "./features/client/requests";
33
32
  export * from "./billing/client/requests";
34
33
  export * from "./credits/client/requests";
35
34
  export * from "./checkout/client/requests";
@@ -40,6 +39,7 @@ export * from "./components/client/requests";
40
39
  export * from "./crm/client/requests";
41
40
  export * from "./dataexports/client/requests";
42
41
  export * from "./events/client/requests";
42
+ export * from "./features/client/requests";
43
43
  export * from "./plangroups/client/requests";
44
44
  export * from "./accesstokens/client/requests";
45
45
  export * from "./webhooks/client/requests";
@@ -18,7 +18,6 @@ export declare namespace CreatePlanGroupRequestBody {
18
18
  checkout_collect_phone: boolean;
19
19
  custom_plan_config?: CustomPlanConfig.Raw | null;
20
20
  custom_plan_id?: string | null;
21
- default_plan_id?: string | null;
22
21
  enable_tax_collection: boolean;
23
22
  fallback_plan_id?: string | null;
24
23
  initial_plan_id?: string | null;
@@ -18,7 +18,6 @@ export declare namespace UpdatePlanGroupRequestBody {
18
18
  checkout_collect_phone: boolean;
19
19
  custom_plan_config?: CustomPlanConfig.Raw | null;
20
20
  custom_plan_id?: string | null;
21
- default_plan_id?: string | null;
22
21
  enable_tax_collection: boolean;
23
22
  fallback_plan_id?: string | null;
24
23
  initial_plan_id?: string | null;
@@ -1,5 +1,4 @@
1
1
  export { UpdateCompanyPlansRequestBody } from "./UpdateCompanyPlansRequestBody";
2
- export { UpdateAudienceRequestBody } from "./UpdateAudienceRequestBody";
3
2
  export { CreatePlanRequestBody } from "./CreatePlanRequestBody";
4
3
  export { UpdatePlanRequestBody } from "./UpdatePlanRequestBody";
5
4
  export { UpsertBillingProductRequestBody } from "./UpsertBillingProductRequestBody";
@@ -1,7 +1,4 @@
1
1
  export * from "./UpdateCompanyPlansResponse";
2
- export * from "./GetAudienceResponse";
3
- export * from "./UpdateAudienceResponse";
4
- export * from "./DeleteAudienceResponse";
5
2
  export * from "./ListPlansRequestPlanType";
6
3
  export * from "./ListPlansResponseParamsPlanType";
7
4
  export * from "./ListPlansParams";
@@ -6,5 +6,5 @@ import * as Schematic from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const CreateWebhookRequestBodyRequestTypesItem: core.serialization.Schema<serializers.CreateWebhookRequestBodyRequestTypesItem.Raw, Schematic.CreateWebhookRequestBodyRequestTypesItem>;
8
8
  export declare namespace CreateWebhookRequestBodyRequestTypesItem {
9
- type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "entitlement.tier_limit.warning" | "entitlement.tier_limit.reached" | "credit.limit.warning" | "credit.limit.reached";
9
+ type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "entitlement.tier_limit.warning" | "entitlement.tier_limit.reached" | "credit.limit.warning" | "credit.limit.reached" | "company.plan_change";
10
10
  }
@@ -6,5 +6,5 @@ import * as Schematic from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const UpdateWebhookRequestBodyRequestTypesItem: core.serialization.Schema<serializers.UpdateWebhookRequestBodyRequestTypesItem.Raw, Schematic.UpdateWebhookRequestBodyRequestTypesItem>;
8
8
  export declare namespace UpdateWebhookRequestBodyRequestTypesItem {
9
- type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "entitlement.tier_limit.warning" | "entitlement.tier_limit.reached" | "credit.limit.warning" | "credit.limit.reached";
9
+ type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "entitlement.tier_limit.warning" | "entitlement.tier_limit.reached" | "credit.limit.warning" | "credit.limit.reached" | "company.plan_change";
10
10
  }
@@ -11,6 +11,5 @@ export declare namespace CreateOrUpdateConditionGroupRequestBody {
11
11
  conditions: CreateOrUpdateConditionRequestBody.Raw[];
12
12
  flag_id?: string | null;
13
13
  id?: string | null;
14
- plan_id?: string | null;
15
14
  }
16
15
  }
@@ -6,5 +6,5 @@ import * as Schematic from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CreateOrUpdateRuleRequestBodyRuleType: core.serialization.Schema<serializers.CreateOrUpdateRuleRequestBodyRuleType.Raw, Schematic.CreateOrUpdateRuleRequestBodyRuleType>;
8
8
  export declare namespace CreateOrUpdateRuleRequestBodyRuleType {
9
- type Raw = "global_override" | "company_override" | "plan_entitlement" | "standard" | "default" | "plan_audience";
9
+ type Raw = "global_override" | "company_override" | "plan_entitlement" | "standard" | "default";
10
10
  }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { PlanChangeResponseDataAction } from "./PlanChangeResponseDataAction";
8
+ import { PlanChangeResponseDataActorType } from "./PlanChangeResponseDataActorType";
9
+ import { PlanSnapshotView } from "./PlanSnapshotView";
10
+ import { ApiKeyResponseData } from "./ApiKeyResponseData";
11
+ import { ApiKeyRequestListResponseData } from "./ApiKeyRequestListResponseData";
12
+ import { PlanChangeResponseDataBasePlanAction } from "./PlanChangeResponseDataBasePlanAction";
13
+ import { CompanyResponseData } from "./CompanyResponseData";
14
+ import { PlanChangeResponseDataSubscriptionChangeAction } from "./PlanChangeResponseDataSubscriptionChangeAction";
15
+ import { SubscriptionTraitUpdate } from "./SubscriptionTraitUpdate";
16
+ export declare const PlanChangeResponseData: core.serialization.ObjectSchema<serializers.PlanChangeResponseData.Raw, Schematic.PlanChangeResponseData>;
17
+ export declare namespace PlanChangeResponseData {
18
+ interface Raw {
19
+ action: PlanChangeResponseDataAction.Raw;
20
+ actor_type: PlanChangeResponseDataActorType.Raw;
21
+ add_ons_added: PlanSnapshotView.Raw[];
22
+ add_ons_removed: PlanSnapshotView.Raw[];
23
+ api_key?: ApiKeyResponseData.Raw | null;
24
+ api_key_request?: ApiKeyRequestListResponseData.Raw | null;
25
+ base_plan?: PlanSnapshotView.Raw | null;
26
+ base_plan_action?: PlanChangeResponseDataBasePlanAction.Raw | null;
27
+ company?: CompanyResponseData.Raw | null;
28
+ company_id: string;
29
+ created_at: string;
30
+ environment_id: string;
31
+ id: string;
32
+ previous_base_plan?: PlanSnapshotView.Raw | null;
33
+ request_id?: string | null;
34
+ subscription_change_action?: PlanChangeResponseDataSubscriptionChangeAction.Raw | null;
35
+ traits_updated: SubscriptionTraitUpdate.Raw[];
36
+ updated_at: string;
37
+ user_id?: string | null;
38
+ user_name?: string | null;
39
+ }
40
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const PlanChangeResponseDataAction: core.serialization.Schema<serializers.PlanChangeResponseDataAction.Raw, Schematic.PlanChangeResponseDataAction>;
8
+ export declare namespace PlanChangeResponseDataAction {
9
+ type Raw = "checkout" | "company_upsert" | "fallback_plan" | "manage_plan" | "plan_billing_product_changed" | "plan_deleted" | "quickstart" | "subscription_change";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const PlanChangeResponseDataActorType: core.serialization.Schema<serializers.PlanChangeResponseDataActorType.Raw, Schematic.PlanChangeResponseDataActorType>;
8
+ export declare namespace PlanChangeResponseDataActorType {
9
+ type Raw = "app_user" | "api_key" | "system" | "temporary_access_token";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const PlanChangeResponseDataBasePlanAction: core.serialization.Schema<serializers.PlanChangeResponseDataBasePlanAction.Raw, Schematic.PlanChangeResponseDataBasePlanAction>;
8
+ export declare namespace PlanChangeResponseDataBasePlanAction {
9
+ type Raw = "fallback" | "initial" | "trait" | "trial_expiry";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const PlanChangeResponseDataSubscriptionChangeAction: core.serialization.Schema<serializers.PlanChangeResponseDataSubscriptionChangeAction.Raw, Schematic.PlanChangeResponseDataSubscriptionChangeAction>;
8
+ export declare namespace PlanChangeResponseDataSubscriptionChangeAction {
9
+ type Raw = "downgrade" | "invalid" | "subscribe" | "unsubscribe" | "upgrade" | "upgrade_trial";
10
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const PlanSnapshotView: core.serialization.ObjectSchema<serializers.PlanSnapshotView.Raw, Schematic.PlanSnapshotView>;
8
+ export declare namespace PlanSnapshotView {
9
+ interface Raw {
10
+ deleted: boolean;
11
+ description: string;
12
+ icon: string;
13
+ id: string;
14
+ name: string;
15
+ }
16
+ }
@@ -22,7 +22,6 @@ export declare namespace RuleConditionDetailResponseData {
22
22
  metric_period_month_reset?: string | null;
23
23
  metric_value?: number | null;
24
24
  operator: string;
25
- plan_id?: string | null;
26
25
  resource_ids: string[];
27
26
  resources: PreviewObjectResponseData.Raw[];
28
27
  rule_id: string;
@@ -13,7 +13,6 @@ export declare namespace RuleConditionGroupDetailResponseData {
13
13
  environment_id: string;
14
14
  flag_id?: string | null;
15
15
  id: string;
16
- plan_id?: string | null;
17
16
  rule_id: string;
18
17
  updated_at: string;
19
18
  }
@@ -11,7 +11,6 @@ export declare namespace RuleConditionGroupResponseData {
11
11
  environment_id: string;
12
12
  flag_id?: string | null;
13
13
  id: string;
14
- plan_id?: string | null;
15
14
  rule_id: string;
16
15
  updated_at: string;
17
16
  }
@@ -19,7 +19,6 @@ export declare namespace RuleConditionResponseData {
19
19
  metric_period_month_reset?: string | null;
20
20
  metric_value?: number | null;
21
21
  operator: string;
22
- plan_id?: string | null;
23
22
  resource_ids: string[];
24
23
  rule_id: string;
25
24
  trait_entity_type?: string | null;
@@ -16,7 +16,6 @@ export declare namespace RuleDetailResponseData {
16
16
  flag_id?: string | null;
17
17
  id: string;
18
18
  name: string;
19
- plan_id?: string | null;
20
19
  priority: number;
21
20
  rule_type: string;
22
21
  updated_at: string;
@@ -12,7 +12,6 @@ export declare namespace RuleResponseData {
12
12
  flag_id?: string | null;
13
13
  id: string;
14
14
  name: string;
15
- plan_id?: string | null;
16
15
  priority: number;
17
16
  rule_type: string;
18
17
  updated_at: string;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const SubscriptionTraitUpdate: core.serialization.ObjectSchema<serializers.SubscriptionTraitUpdate.Raw, Schematic.SubscriptionTraitUpdate>;
8
+ export declare namespace SubscriptionTraitUpdate {
9
+ interface Raw {
10
+ feature_id: string;
11
+ hierarchy: string[];
12
+ reason: string;
13
+ trait_id: string;
14
+ trait_name: string;
15
+ trait_type: string;
16
+ value: string;
17
+ }
18
+ }
@@ -3,7 +3,6 @@ export * from "./ApiKeyCreateResponseData";
3
3
  export * from "./ApiKeyRequestListResponseData";
4
4
  export * from "./ApiKeyRequestResponseData";
5
5
  export * from "./ApiKeyResponseData";
6
- export * from "./AudienceRequestBody";
7
6
  export * from "./BillingCouponResponseData";
8
7
  export * from "./BillingCreditBundleResponseData";
9
8
  export * from "./BillingCreditBundleView";
@@ -140,11 +139,13 @@ export * from "./ManagePlanRequest";
140
139
  export * from "./ManagePlanResponseResponseData";
141
140
  export * from "./MeterRequestBody";
142
141
  export * from "./OrderedPlansInGroup";
143
- export * from "./PaginationFilter";
144
142
  export * from "./PaymentMethodRequestBody";
145
143
  export * from "./PaymentMethodResponseData";
146
- export * from "./PlanAudienceDetailResponseData";
147
- export * from "./PlanAudienceResponseData";
144
+ export * from "./PlanChangeResponseDataAction";
145
+ export * from "./PlanChangeResponseDataActorType";
146
+ export * from "./PlanChangeResponseDataBasePlanAction";
147
+ export * from "./PlanChangeResponseDataSubscriptionChangeAction";
148
+ export * from "./PlanChangeResponseData";
148
149
  export * from "./PlanCreditGrantView";
149
150
  export * from "./PlanDetailResponseData";
150
151
  export * from "./PlanEntitlementResponseData";
@@ -157,6 +158,7 @@ export * from "./PlanGroupResponseData";
157
158
  export * from "./PlanIssueResponseData";
158
159
  export * from "./PlanResponseData";
159
160
  export * from "./PlanSelection";
161
+ export * from "./PlanSnapshotView";
160
162
  export * from "./PlanTraitResponseData";
161
163
  export * from "./PreviewObject";
162
164
  export * from "./PreviewObjectResponseData";
@@ -176,6 +178,7 @@ export * from "./RuleResponseData";
176
178
  export * from "./RulesDetailResponseData";
177
179
  export * from "./SegmentStatusResp";
178
180
  export * from "./StripeEmbedInfo";
181
+ export * from "./SubscriptionTraitUpdate";
179
182
  export * from "./TemporaryAccessTokenResponseData";
180
183
  export * from "./TraitDefinition";
181
184
  export * from "./UpdateAddOnRequestBody";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-typescript-node",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "private": false,
5
5
  "repository": "https://github.com/schematichq/schematic-node",
6
6
  "main": "./dist/index.js",
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../index";
5
- export interface ListAudienceCompaniesResponse {
6
- data: Schematic.CompanyDetailResponseData[];
7
- /** Input parameters */
8
- params: Record<string, unknown>;
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../index";
5
- export interface ListAudienceUsersResponse {
6
- data: Schematic.UserDetailResponseData[];
7
- /** Input parameters */
8
- params: Record<string, unknown>;
9
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * conditionGroups: [{
9
- * conditions: [{
10
- * conditionType: "company",
11
- * operator: "eq",
12
- * resourceIds: ["resource_ids"]
13
- * }]
14
- * }],
15
- * conditions: [{
16
- * conditionType: "company",
17
- * operator: "eq",
18
- * resourceIds: ["resource_ids"]
19
- * }]
20
- * }
21
- */
22
- export interface UpdateAudienceRequestBody {
23
- conditionGroups: Schematic.CreateOrUpdateConditionGroupRequestBody[];
24
- conditions: Schematic.CreateOrUpdateConditionRequestBody[];
25
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../index";
5
- export interface DeleteAudienceResponse {
6
- data: Schematic.DeleteResponse;
7
- /** Input parameters */
8
- params: Record<string, unknown>;
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../index";
5
- export interface GetAudienceResponse {
6
- data: Schematic.PlanAudienceDetailResponseData;
7
- /** Input parameters */
8
- params: Record<string, unknown>;
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../index";
5
- export interface UpdateAudienceResponse {
6
- data: Schematic.PlanAudienceDetailResponseData;
7
- /** Input parameters */
8
- params: Record<string, unknown>;
9
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../index";
5
- export interface AudienceRequestBody {
6
- conditionGroups: Schematic.CreateOrUpdateConditionGroupRequestBody[];
7
- conditions: Schematic.CreateOrUpdateConditionRequestBody[];
8
- /** Page limit (default 100) */
9
- limit?: number;
10
- /** Page offset (default 0) */
11
- offset?: number;
12
- q?: string;
13
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface PaginationFilter {
5
- /** Page limit (default 100) */
6
- limit?: number;
7
- /** Page offset (default 0) */
8
- offset?: number;
9
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../index";
5
- export interface PlanAudienceDetailResponseData {
6
- conditionGroups: Schematic.RuleConditionGroupDetailResponseData[];
7
- conditions: Schematic.RuleConditionDetailResponseData[];
8
- createdAt: Date;
9
- environmentId: string;
10
- flagId?: string;
11
- id: string;
12
- name: string;
13
- planId?: string;
14
- priority: number;
15
- ruleType: string;
16
- updatedAt: Date;
17
- value: boolean;
18
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface PlanAudienceResponseData {
5
- createdAt: Date;
6
- environmentId: string;
7
- flagId?: string;
8
- id: string;
9
- name: string;
10
- planId?: string;
11
- priority: number;
12
- ruleType: string;
13
- updatedAt: Date;
14
- value: boolean;
15
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as Schematic from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- import { CountResponse } from "../../../types/CountResponse";
8
- export declare const CountAudienceCompaniesResponse: core.serialization.ObjectSchema<serializers.CountAudienceCompaniesResponse.Raw, Schematic.CountAudienceCompaniesResponse>;
9
- export declare namespace CountAudienceCompaniesResponse {
10
- interface Raw {
11
- data: CountResponse.Raw;
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as Schematic from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- import { CountResponse } from "../../../types/CountResponse";
8
- export declare const CountAudienceUsersResponse: core.serialization.ObjectSchema<serializers.CountAudienceUsersResponse.Raw, Schematic.CountAudienceUsersResponse>;
9
- export declare namespace CountAudienceUsersResponse {
10
- interface Raw {
11
- data: CountResponse.Raw;
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as Schematic from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- import { CompanyDetailResponseData } from "../../../types/CompanyDetailResponseData";
8
- export declare const ListAudienceCompaniesResponse: core.serialization.ObjectSchema<serializers.ListAudienceCompaniesResponse.Raw, Schematic.ListAudienceCompaniesResponse>;
9
- export declare namespace ListAudienceCompaniesResponse {
10
- interface Raw {
11
- data: CompanyDetailResponseData.Raw[];
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as Schematic from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- import { UserDetailResponseData } from "../../../types/UserDetailResponseData";
8
- export declare const ListAudienceUsersResponse: core.serialization.ObjectSchema<serializers.ListAudienceUsersResponse.Raw, Schematic.ListAudienceUsersResponse>;
9
- export declare namespace ListAudienceUsersResponse {
10
- interface Raw {
11
- data: UserDetailResponseData.Raw[];
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../index";
5
- import * as Schematic from "../../../../../api/index";
6
- import * as core from "../../../../../core";
7
- import { CreateOrUpdateConditionGroupRequestBody } from "../../../../types/CreateOrUpdateConditionGroupRequestBody";
8
- import { CreateOrUpdateConditionRequestBody } from "../../../../types/CreateOrUpdateConditionRequestBody";
9
- export declare const UpdateAudienceRequestBody: core.serialization.Schema<serializers.UpdateAudienceRequestBody.Raw, Schematic.UpdateAudienceRequestBody>;
10
- export declare namespace UpdateAudienceRequestBody {
11
- interface Raw {
12
- condition_groups: CreateOrUpdateConditionGroupRequestBody.Raw[];
13
- conditions: CreateOrUpdateConditionRequestBody.Raw[];
14
- }
15
- }