@schematichq/schematic-components 2.0.2 → 2.1.0

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.
@@ -3259,7 +3259,7 @@ declare interface Condition {
3259
3259
  * @type {string}
3260
3260
  * @memberof Condition
3261
3261
  */
3262
- conditionType: string;
3262
+ conditionType: ConditionConditionTypeEnum;
3263
3263
  /**
3264
3264
  *
3265
3265
  * @type {number}
@@ -3295,13 +3295,13 @@ declare interface Condition {
3295
3295
  * @type {string}
3296
3296
  * @memberof Condition
3297
3297
  */
3298
- metricPeriod?: string | null;
3298
+ metricPeriod?: ConditionMetricPeriodEnum | null;
3299
3299
  /**
3300
3300
  *
3301
3301
  * @type {string}
3302
3302
  * @memberof Condition
3303
3303
  */
3304
- metricPeriodMonthReset?: string | null;
3304
+ metricPeriodMonthReset?: ConditionMetricPeriodMonthResetEnum | null;
3305
3305
  /**
3306
3306
  *
3307
3307
  * @type {number}
@@ -3313,7 +3313,7 @@ declare interface Condition {
3313
3313
  * @type {string}
3314
3314
  * @memberof Condition
3315
3315
  */
3316
- operator: string;
3316
+ operator: ConditionOperatorEnum;
3317
3317
  /**
3318
3318
  *
3319
3319
  * @type {Array<string>}
@@ -3334,6 +3334,23 @@ declare interface Condition {
3334
3334
  traitValue: string;
3335
3335
  }
3336
3336
 
3337
+ /**
3338
+ * @export
3339
+ */
3340
+ declare const ConditionConditionTypeEnum: {
3341
+ readonly BasePlan: "base_plan";
3342
+ readonly BillingProduct: "billing_product";
3343
+ readonly Company: "company";
3344
+ readonly Credit: "credit";
3345
+ readonly CrmProduct: "crm_product";
3346
+ readonly Metric: "metric";
3347
+ readonly Plan: "plan";
3348
+ readonly Trait: "trait";
3349
+ readonly User: "user";
3350
+ };
3351
+
3352
+ declare type ConditionConditionTypeEnum = (typeof ConditionConditionTypeEnum)[keyof typeof ConditionConditionTypeEnum];
3353
+
3337
3354
  /**
3338
3355
  *
3339
3356
  * @export
@@ -3348,6 +3365,44 @@ declare interface ConditionGroup {
3348
3365
  conditions: Array<Condition>;
3349
3366
  }
3350
3367
 
3368
+ /**
3369
+ * @export
3370
+ */
3371
+ declare const ConditionMetricPeriodEnum: {
3372
+ readonly AllTime: "all_time";
3373
+ readonly CurrentDay: "current_day";
3374
+ readonly CurrentMonth: "current_month";
3375
+ readonly CurrentWeek: "current_week";
3376
+ };
3377
+
3378
+ declare type ConditionMetricPeriodEnum = (typeof ConditionMetricPeriodEnum)[keyof typeof ConditionMetricPeriodEnum];
3379
+
3380
+ /**
3381
+ * @export
3382
+ */
3383
+ declare const ConditionMetricPeriodMonthResetEnum: {
3384
+ readonly FirstOfMonth: "first_of_month";
3385
+ readonly BillingCycle: "billing_cycle";
3386
+ };
3387
+
3388
+ declare type ConditionMetricPeriodMonthResetEnum = (typeof ConditionMetricPeriodMonthResetEnum)[keyof typeof ConditionMetricPeriodMonthResetEnum];
3389
+
3390
+ /**
3391
+ * @export
3392
+ */
3393
+ declare const ConditionOperatorEnum: {
3394
+ readonly Eq: "eq";
3395
+ readonly Ne: "ne";
3396
+ readonly Gt: "gt";
3397
+ readonly Lt: "lt";
3398
+ readonly Gte: "gte";
3399
+ readonly Lte: "lte";
3400
+ readonly IsEmpty: "is_empty";
3401
+ readonly NotEmpty: "not_empty";
3402
+ };
3403
+
3404
+ declare type ConditionOperatorEnum = (typeof ConditionOperatorEnum)[keyof typeof ConditionOperatorEnum];
3405
+
3351
3406
  declare interface ConfigurationParameters {
3352
3407
  basePath?: string;
3353
3408
  fetchApi?: FetchAPI;
@@ -5682,10 +5737,13 @@ declare interface Middleware {
5682
5737
  onError?(context: ErrorContext): Promise<Response | void>;
5683
5738
  }
5684
5739
 
5685
- export declare const Modal: {
5686
- ({ children, contentRef, size, top, onClose, ...rest }: ModalProps): JSX.Element;
5687
- displayName: string;
5688
- };
5740
+ export declare const Modal: ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDivElement | null>>;
5741
+
5742
+ export declare const ModalContent: ForwardRefExoticComponent<ModalContentProps & RefAttributes<HTMLDivElement | null>>;
5743
+
5744
+ declare interface ModalContentProps {
5745
+ children?: React.ReactNode;
5746
+ }
5689
5747
 
5690
5748
  export declare const ModalHeader: ({ children, bordered, onClose, }: ModalHeaderProps) => JSX.Element;
5691
5749
 
@@ -5697,7 +5755,6 @@ declare interface ModalHeaderProps {
5697
5755
 
5698
5756
  declare interface ModalProps extends React.HTMLAttributes<HTMLElement> {
5699
5757
  children: React.ReactNode;
5700
- contentRef?: React.RefObject<HTMLDivElement | null>;
5701
5758
  size?: ModalSize;
5702
5759
  top?: number;
5703
5760
  onClose?: () => void;
@@ -7440,7 +7497,7 @@ declare interface Rule {
7440
7497
  * @type {string}
7441
7498
  * @memberof Rule
7442
7499
  */
7443
- ruleType: string;
7500
+ ruleType: RuleRuleTypeEnum;
7444
7501
  /**
7445
7502
  *
7446
7503
  * @type {boolean}
@@ -7965,6 +8022,21 @@ declare interface RuleDetailResponseData_2 {
7965
8022
  value: boolean;
7966
8023
  }
7967
8024
 
8025
+ /**
8026
+ * @export
8027
+ */
8028
+ declare const RuleRuleTypeEnum: {
8029
+ readonly Default: "default";
8030
+ readonly GlobalOverride: "global_override";
8031
+ readonly CompanyOverride: "company_override";
8032
+ readonly CompanyOverrideUsageExceeded: "company_override_usage_exceeded";
8033
+ readonly PlanEntitlement: "plan_entitlement";
8034
+ readonly PlanEntitlementUsageExceeded: "plan_entitlement_usage_exceeded";
8035
+ readonly Standard: "standard";
8036
+ };
8037
+
8038
+ declare type RuleRuleTypeEnum = (typeof RuleRuleTypeEnum)[keyof typeof RuleRuleTypeEnum];
8039
+
7968
8040
  export declare const SchematicEmbed: ({ id, accessToken }: EmbedProps) => JSX.Element;
7969
8041
 
7970
8042
  declare type SelectedPlan = Plan & {
@@ -8148,13 +8220,13 @@ declare interface TraitDefinition {
8148
8220
  * @type {string}
8149
8221
  * @memberof TraitDefinition
8150
8222
  */
8151
- comparableType: string;
8223
+ comparableType: TraitDefinitionComparableTypeEnum;
8152
8224
  /**
8153
8225
  *
8154
8226
  * @type {string}
8155
8227
  * @memberof TraitDefinition
8156
8228
  */
8157
- entityType: string;
8229
+ entityType: TraitDefinitionEntityTypeEnum;
8158
8230
  /**
8159
8231
  *
8160
8232
  * @type {string}
@@ -8163,6 +8235,28 @@ declare interface TraitDefinition {
8163
8235
  id: string;
8164
8236
  }
8165
8237
 
8238
+ /**
8239
+ * @export
8240
+ */
8241
+ declare const TraitDefinitionComparableTypeEnum: {
8242
+ readonly Bool: "bool";
8243
+ readonly Date: "date";
8244
+ readonly Int: "int";
8245
+ readonly String: "string";
8246
+ };
8247
+
8248
+ declare type TraitDefinitionComparableTypeEnum = (typeof TraitDefinitionComparableTypeEnum)[keyof typeof TraitDefinitionComparableTypeEnum];
8249
+
8250
+ /**
8251
+ * @export
8252
+ */
8253
+ declare const TraitDefinitionEntityTypeEnum: {
8254
+ readonly User: "user";
8255
+ readonly Company: "company";
8256
+ };
8257
+
8258
+ declare type TraitDefinitionEntityTypeEnum = (typeof TraitDefinitionEntityTypeEnum)[keyof typeof TraitDefinitionEntityTypeEnum];
8259
+
8166
8260
  declare type TransientCSSProperties = {
8167
8261
  [Property in keyof React.CSSProperties as `$${string & Property}`]: React.CSSProperties[Property];
8168
8262
  };