@manifoldco/web-components
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -143,2 +143,3 @@ import { Component, Event, Host, State, Prop, h, } from '@stencil/core'; | ||
this.plans.map((p) => { | ||
var _a, _b; | ||
const eventDetails = { | ||
@@ -148,11 +149,13 @@ planSlug: p.slug, | ||
}; | ||
if (this.baseUrl) { | ||
const ctaText = this.ctaText || ((_a = p.cta) === null || _a === void 0 ? void 0 : _a.text) || 'Get Started'; | ||
const uri = this.baseUrl || ((_b = p.cta) === null || _b === void 0 ? void 0 : _b.uri); | ||
if (uri) { | ||
const params = new URLSearchParams(); | ||
Object.entries(eventDetails).forEach(([key, val]) => params.set(key, val)); | ||
const url = `${this.baseUrl}?${params}`; | ||
const url = `${uri}?${params}`; | ||
return (h("td", null, | ||
h("a", { class: "button", href: url }, this.ctaText || 'Get Started'))); | ||
h("a", { class: "button", href: url }, ctaText))); | ||
} | ||
return (h("td", null, | ||
h("button", { onClick: () => this.ctaClick.emit(eventDetails) }, this.ctaText || 'Get Started'))); | ||
h("button", { onClick: () => this.ctaClick.emit(eventDetails) }, ctaText))); | ||
})))))); | ||
@@ -242,3 +245,3 @@ } | ||
"original": "GetProductQuery['product']", | ||
"resolved": "null | undefined | { __typename?: \"Product\" | undefined; } & Pick<Product, \"slug\" | \"name\"> & { featureSlugs?: ({ __typename?: \"FeatureSlugPage\" | undefined; } & { featureSlugs: ({ __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\" | \"name\">)[]; }) | null | undefined; plans?: ({ __typename?: \"PlanPage\" | undefined; } & { plans: ({ __typename?: \"Plan\" | undefined; } & Pick<Plan, \"slug\" | \"name\" | \"cost\"> & { features?: ({ __typename?: \"FeaturePage\" | undefined; } & { features: (({ __typename: \"ExcludedFeature\"; } & Pick<ExcludedFeature, \"class\"> & { featureSlug: { __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\">; }) | ({ __typename: \"StringFeature\"; } & Pick<StringFeature, \"class\"> & { stringValues: ({ __typename?: \"StringFeatureValue\" | undefined; } & Pick<StringFeatureValue, \"cost\" | \"display\" | \"value\">)[]; featureSlug: { __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\">; }) | ({ __typename: \"IntRangeFeature\"; } & Pick<IntRangeFeature, \"class\"> & { intRangeValues: ({ __typename?: \"IntRangeFeatureValue\" | undefined; } & Pick<IntRangeFeatureValue, \"cost\" | \"min\" | \"max\" | \"increments\">)[]; units?: ({ __typename?: \"Units\" | undefined; } & Pick<Units, \"single\" | \"plural\">) | null | undefined; featureSlug: { __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\">; }) | ({ __typename: \"IntFeature\"; } & Pick<IntFeature, \"class\"> & { featureSlug: { __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\">; }) | ({ __typename: \"BooleanFeature\"; } & Pick<BooleanFeature, \"class\"> & { booleanValues: ({ __typename?: \"BooleanFeatureValue\" | undefined; } & Pick<BooleanFeatureValue, \"cost\" | \"display\" | \"value\">)[]; featureSlug: { __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\">; }))[]; }) | null | undefined; })[]; }) | null | undefined; }", | ||
"resolved": "null | undefined | { __typename?: \"Product\" | undefined; } & Pick<Product, \"slug\" | \"name\"> & { featureSlugs?: ({ __typename?: \"FeatureSlugPage\" | undefined; } & { featureSlugs: ({ __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\" | \"name\">)[]; }) | null | undefined; plans?: ({ __typename?: \"PlanPage\" | undefined; } & { plans: ({ __typename?: \"Plan\" | undefined; } & Pick<Plan, \"slug\" | \"name\" | \"cost\"> & { features?: ({ __typename?: \"FeaturePage\" | undefined; } & { features: (({ __typename: \"IntRangeFeature\"; } & Pick<IntRangeFeature, \"class\"> & { intRangeValues: ({ __typename?: \"IntRangeFeatureValue\" | undefined; } & Pick<IntRangeFeatureValue, \"cost\" | \"min\" | \"max\" | \"increments\">)[]; units?: ({ __typename?: \"Units\" | undefined; } & Pick<Units, \"single\" | \"plural\">) | null | undefined; featureSlug: { __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\">; }) | ({ __typename: \"ExcludedFeature\"; } & Pick<ExcludedFeature, \"class\"> & { featureSlug: { __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\">; }) | ({ __typename: \"StringFeature\"; } & Pick<StringFeature, \"class\"> & { stringValues: ({ __typename?: \"StringFeatureValue\" | undefined; } & Pick<StringFeatureValue, \"cost\" | \"display\" | \"value\">)[]; featureSlug: { __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\">; }) | ({ __typename: \"BooleanFeature\"; } & Pick<BooleanFeature, \"class\"> & { booleanValues: ({ __typename?: \"BooleanFeatureValue\" | undefined; } & Pick<BooleanFeatureValue, \"cost\" | \"display\" | \"value\">)[]; featureSlug: { __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\">; }) | ({ __typename: \"IntFeature\"; } & Pick<IntFeature, \"class\"> & { featureSlug: { __typename?: \"FeatureSlug\" | undefined; } & Pick<FeatureSlug, \"slug\">; }))[]; }) | null | undefined; cta?: ({ __typename?: \"Cta\" | undefined; } & Pick<Cta, \"text\" | \"uri\">) | null | undefined; })[]; }) | null | undefined; }", | ||
"references": { | ||
@@ -245,0 +248,0 @@ "GetProductQuery": { |
@@ -0,1 +1,16 @@ | ||
/** PlanOrderByField is the field by which the plan list will be ordered. */ | ||
export var PlanOrderByField; | ||
(function (PlanOrderByField) { | ||
PlanOrderByField["Slug"] = "SLUG"; | ||
PlanOrderByField["Name"] = "NAME"; | ||
PlanOrderByField["Cost"] = "COST"; | ||
PlanOrderByField["Position"] = "POSITION"; | ||
})(PlanOrderByField || (PlanOrderByField = {})); | ||
/** FeatureSlugOrderByField is the field by which the feature slug list will be ordered. */ | ||
export var FeatureSlugOrderByField; | ||
(function (FeatureSlugOrderByField) { | ||
FeatureSlugOrderByField["Slug"] = "SLUG"; | ||
FeatureSlugOrderByField["Name"] = "NAME"; | ||
FeatureSlugOrderByField["Position"] = "POSITION"; | ||
})(FeatureSlugOrderByField || (FeatureSlugOrderByField = {})); | ||
/** FeatureOrderByField is the field by which the feature list will be ordered. */ | ||
@@ -7,9 +22,18 @@ export var FeatureOrderByField; | ||
})(FeatureOrderByField || (FeatureOrderByField = {})); | ||
/** | ||
* OrderByDirection is used in all paginated queries to order by a specific | ||
* field's direction. | ||
*/ | ||
export var OrderByDirection; | ||
(function (OrderByDirection) { | ||
OrderByDirection["Asc"] = "ASC"; | ||
OrderByDirection["Desc"] = "DESC"; | ||
})(OrderByDirection || (OrderByDirection = {})); | ||
export var CostType; | ||
(function (CostType) { | ||
/** A cost is per unit. All units are priced at the cost within this range. */ | ||
/** A cost is per unit. All units are priced at the cost within this range. */ | ||
CostType["PerUnit"] = "PER_UNIT"; | ||
/** A cost is fixed for any number of units within the IntRangeFeatureValue. */ | ||
/** A cost is fixed for any number of units within the IntRangeFeatureValue. */ | ||
CostType["PerValue"] = "PER_VALUE"; | ||
/** A cost is per unit within the range. Lower ranges are priced seperately. */ | ||
/** A cost is per unit within the range. Lower ranges are priced seperately. */ | ||
CostType["PerUnitDistinct"] = "PER_UNIT_DISTINCT"; | ||
@@ -22,2 +46,8 @@ /** | ||
})(CostType || (CostType = {})); | ||
export var FeatureClass; | ||
(function (FeatureClass) { | ||
FeatureClass["Fixed"] = "FIXED"; | ||
FeatureClass["Configured"] = "CONFIGURED"; | ||
FeatureClass["Metered"] = "METERED"; | ||
})(FeatureClass || (FeatureClass = {})); | ||
export var FeatureType; | ||
@@ -31,29 +61,1 @@ (function (FeatureType) { | ||
})(FeatureType || (FeatureType = {})); | ||
/** FeatureSlugOrderByField is the field by which the feature slug list will be ordered. */ | ||
export var FeatureSlugOrderByField; | ||
(function (FeatureSlugOrderByField) { | ||
FeatureSlugOrderByField["Slug"] = "SLUG"; | ||
FeatureSlugOrderByField["Name"] = "NAME"; | ||
})(FeatureSlugOrderByField || (FeatureSlugOrderByField = {})); | ||
export var FeatureClass; | ||
(function (FeatureClass) { | ||
FeatureClass["Fixed"] = "FIXED"; | ||
FeatureClass["Configured"] = "CONFIGURED"; | ||
FeatureClass["Metered"] = "METERED"; | ||
})(FeatureClass || (FeatureClass = {})); | ||
/** PlanOrderByField is the field by which the plan list will be ordered. */ | ||
export var PlanOrderByField; | ||
(function (PlanOrderByField) { | ||
PlanOrderByField["Slug"] = "SLUG"; | ||
PlanOrderByField["Name"] = "NAME"; | ||
PlanOrderByField["Cost"] = "COST"; | ||
})(PlanOrderByField || (PlanOrderByField = {})); | ||
/** | ||
* OrderByDirection is used in all paginated queries to order by a specific | ||
* field's direction. | ||
*/ | ||
export var OrderByDirection; | ||
(function (OrderByDirection) { | ||
OrderByDirection["Asc"] = "ASC"; | ||
OrderByDirection["Desc"] = "DESC"; | ||
})(OrderByDirection || (OrderByDirection = {})); |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as t}from"./p-0a20e695.js";e().then(e=>t([["p-89e7ff2f",[[1,"manifold-plan-table",{slug:[1],clientKey:[1,"client-key"],ctaText:[1,"cta-text"],baseUrl:[1,"base-url"],productData:[16],env:[1],product:[32],client:[32]}]]]],e)); | ||
import{p as t,b as a}from"./p-0a20e695.js";t().then(t=>a([["p-91883bd7",[[1,"manifold-plan-table",{slug:[1],clientKey:[1,"client-key"],ctaText:[1,"cta-text"],baseUrl:[1,"base-url"],productData:[16],env:[1],product:[32],client:[32]}]]]],t)); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-6fb7ee04.system.js"],(function(){"use strict";var e,t;return{setters:[function(n){e=n.p;t=n.b}],execute:function(){e().then((function(e){return t([["p-e55d29f0.system",[[1,"manifold-plan-table",{slug:[1],clientKey:[1,"client-key"],ctaText:[1,"cta-text"],baseUrl:[1,"base-url"],productData:[16],env:[1],product:[32],client:[32]}]]]],e)}))}}})); | ||
System.register(["./p-6fb7ee04.system.js"],(function(){"use strict";var e,t;return{setters:[function(n){e=n.p;t=n.b}],execute:function(){e().then((function(e){return t([["p-ad0e1222.system",[[1,"manifold-plan-table",{slug:[1],clientKey:[1,"client-key"],ctaText:[1,"cta-text"],baseUrl:[1,"base-url"],productData:[16],env:[1],product:[32],client:[32]}]]]],e)}))}}})); |
@@ -27,2 +27,14 @@ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime'; | ||
features: (({ | ||
__typename: "IntRangeFeature"; | ||
} & Pick<import("../../types/graphql").IntRangeFeature, "class"> & { | ||
intRangeValues: ({ | ||
__typename?: "IntRangeFeatureValue" | undefined; | ||
} & Pick<import("../../types/graphql").IntRangeFeatureValue, "cost" | "min" | "max" | "increments">)[]; | ||
units?: ({ | ||
__typename?: "Units" | undefined; | ||
} & Pick<import("../../types/graphql").Units, "single" | "plural">) | null | undefined; | ||
featureSlug: { | ||
__typename?: "FeatureSlug" | undefined; | ||
} & Pick<import("../../types/graphql").FeatureSlug, "slug">; | ||
}) | ({ | ||
__typename: "ExcludedFeature"; | ||
@@ -43,10 +55,7 @@ } & Pick<import("../../types/graphql").ExcludedFeature, "class"> & { | ||
}) | ({ | ||
__typename: "IntRangeFeature"; | ||
} & Pick<import("../../types/graphql").IntRangeFeature, "class"> & { | ||
intRangeValues: ({ | ||
__typename?: "IntRangeFeatureValue" | undefined; | ||
} & Pick<import("../../types/graphql").IntRangeFeatureValue, "cost" | "min" | "max" | "increments">)[]; | ||
units?: ({ | ||
__typename?: "Units" | undefined; | ||
} & Pick<import("../../types/graphql").Units, "single" | "plural">) | null | undefined; | ||
__typename: "BooleanFeature"; | ||
} & Pick<import("../../types/graphql").BooleanFeature, "class"> & { | ||
booleanValues: ({ | ||
__typename?: "BooleanFeatureValue" | undefined; | ||
} & Pick<import("../../types/graphql").BooleanFeatureValue, "cost" | "value" | "display">)[]; | ||
featureSlug: { | ||
@@ -61,13 +70,7 @@ __typename?: "FeatureSlug" | undefined; | ||
} & Pick<import("../../types/graphql").FeatureSlug, "slug">; | ||
}) | ({ | ||
__typename: "BooleanFeature"; | ||
} & Pick<import("../../types/graphql").BooleanFeature, "class"> & { | ||
booleanValues: ({ | ||
__typename?: "BooleanFeatureValue" | undefined; | ||
} & Pick<import("../../types/graphql").BooleanFeatureValue, "cost" | "value" | "display">)[]; | ||
featureSlug: { | ||
__typename?: "FeatureSlug" | undefined; | ||
} & Pick<import("../../types/graphql").FeatureSlug, "slug">; | ||
}))[]; | ||
}) | null | undefined; | ||
cta?: ({ | ||
__typename?: "Cta" | undefined; | ||
} & Pick<import("../../types/graphql").Cta, "text" | "uri">) | null | undefined; | ||
})[]; | ||
@@ -74,0 +77,0 @@ get featureSlugs(): ({ |
@@ -15,34 +15,56 @@ export declare type Maybe<T> = T | null; | ||
}; | ||
/** | ||
* ExcludedFeature is a special class of feature to explicitly exclude it from a | ||
* plan, so that it may be displayed differently than implicit omission. | ||
*/ | ||
export declare type ExcludedFeature = Feature & { | ||
__typename?: 'ExcludedFeature'; | ||
featureSlug: FeatureSlug; | ||
/** ExcludedFeatures always have class FIXED. */ | ||
class: FeatureClass; | ||
/** A FeatureSlugPage is a page of queried feature slugs. */ | ||
export declare type FeatureSlugPage = { | ||
__typename?: 'FeatureSlugPage'; | ||
totalCount: Scalars['Int']; | ||
featureSlugs: Array<FeatureSlug>; | ||
}; | ||
export declare type StringFeature = Feature & { | ||
__typename?: 'StringFeature'; | ||
featureSlug: FeatureSlug; | ||
/** METERED is not a valid class for String features. */ | ||
class: FeatureClass; | ||
/** | ||
* value is a convenience field. | ||
* | ||
* It is only populated when the feature's class is FIXED. | ||
*/ | ||
value?: Maybe<StringFeatureValue>; | ||
/** | ||
* values is the list of FeatureValues for this feature. CONFIGURED and METERED | ||
* classes can have at most 25 feature values. FIXED types can have at most 1 | ||
* feature value. | ||
* | ||
* TODO: add a note about when publishing you must have exactly one value for FIXED, | ||
* at least 2 for CONFIGURED BOOL and STRING, and at least 1 for CONFIGURED and | ||
* METERED INT. | ||
*/ | ||
values: Array<StringFeatureValue>; | ||
export declare type IntFeatureValue = { | ||
__typename?: 'IntFeatureValue'; | ||
/** Unset means infinity. Negative infinity is not supported. */ | ||
value?: Maybe<Scalars['Int']>; | ||
display?: Maybe<Scalars['String']>; | ||
cost: Scalars['Int']; | ||
default: Scalars['Boolean']; | ||
}; | ||
/** PlanOrderBy defines how a list of queried plans are to be ordered. */ | ||
export declare type PlanOrderBy = { | ||
field: PlanOrderByField; | ||
direction: OrderByDirection; | ||
}; | ||
/** PlanOrderByField is the field by which the plan list will be ordered. */ | ||
export declare enum PlanOrderByField { | ||
Slug = "SLUG", | ||
Name = "NAME", | ||
Cost = "COST", | ||
Position = "POSITION" | ||
} | ||
/** Product represents a product for sale. */ | ||
export declare type Product = { | ||
__typename?: 'Product'; | ||
slug: Scalars['String']; | ||
name: Scalars['String']; | ||
/** List Plans associated with the Product */ | ||
plans?: Maybe<PlanPage>; | ||
/** List FeatureSlugs associated with the Product */ | ||
featureSlugs?: Maybe<FeatureSlugPage>; | ||
}; | ||
/** Product represents a product for sale. */ | ||
export declare type ProductPlansArgs = { | ||
limit: Scalars['Int']; | ||
offset: Scalars['Int']; | ||
orderBy?: Maybe<Array<PlanOrderBy>>; | ||
}; | ||
/** Product represents a product for sale. */ | ||
export declare type ProductFeatureSlugsArgs = { | ||
limit: Scalars['Int']; | ||
offset: Scalars['Int']; | ||
orderBy?: Maybe<Array<FeatureSlugOrderBy>>; | ||
}; | ||
/** FeatureSlugOrderByField is the field by which the feature slug list will be ordered. */ | ||
export declare enum FeatureSlugOrderByField { | ||
Slug = "SLUG", | ||
Name = "NAME", | ||
Position = "POSITION" | ||
} | ||
export declare type IntRangeFeature = Feature & { | ||
@@ -70,53 +92,17 @@ __typename?: 'IntRangeFeature'; | ||
}; | ||
export declare type IntFeature = Feature & { | ||
__typename?: 'IntFeature'; | ||
featureSlug: FeatureSlug; | ||
/** METERED is not a valid class for Int features. */ | ||
class: FeatureClass; | ||
units?: Maybe<Units>; | ||
/** | ||
* value is a convenience field. | ||
* | ||
* It is only populated when the feature's class is FIXED. | ||
*/ | ||
value?: Maybe<IntFeatureValue>; | ||
/** | ||
* values is the list of FeatureValues for this feature. CONFIGURED and METERED | ||
* classes can have at most 25 feature values. FIXED types can have at most 1 | ||
* feature value. | ||
* | ||
* TODO: add a note about when publishing you must have exactly one value for FIXED, | ||
* at least 2 for CONFIGURED Boolean and String, and at least 1 for CONFIGURED and | ||
* METERED Int | ||
*/ | ||
values: Array<IntFeatureValue>; | ||
}; | ||
/** A PlanPage is a page of queried plans. */ | ||
export declare type PlanPage = { | ||
__typename?: 'PlanPage'; | ||
totalCount: Scalars['Int']; | ||
plans: Array<Plan>; | ||
}; | ||
/** Product represents a product for sale. */ | ||
export declare type Product = { | ||
__typename?: 'Product'; | ||
/** | ||
* FeatureSelection. for cost estimation, and eventual subscription. | ||
* | ||
* Exactly one of booleanSelection, intSelection, or stringSelection must be | ||
* present. | ||
*/ | ||
export declare type FeatureSelection = { | ||
slug: Scalars['String']; | ||
name: Scalars['String']; | ||
/** List Plans associated with the Product */ | ||
plans?: Maybe<PlanPage>; | ||
/** List FeatureSlugs associated with the Product */ | ||
featureSlugs?: Maybe<FeatureSlugPage>; | ||
/** For a BOOLEAN feature */ | ||
booleanSelection?: Maybe<Scalars['Boolean']>; | ||
/** For an INT or INT_RANGE feature */ | ||
intSelection?: Maybe<Scalars['Int']>; | ||
/** For a STRING feature. */ | ||
stringSelection?: Maybe<Scalars['String']>; | ||
}; | ||
/** Product represents a product for sale. */ | ||
export declare type ProductPlansArgs = { | ||
limit: Scalars['Int']; | ||
offset: Scalars['Int']; | ||
orderBy?: Maybe<Array<PlanOrderBy>>; | ||
}; | ||
/** Product represents a product for sale. */ | ||
export declare type ProductFeatureSlugsArgs = { | ||
limit: Scalars['Int']; | ||
offset: Scalars['Int']; | ||
orderBy?: Maybe<Array<FeatureSlugOrderBy>>; | ||
}; | ||
export declare type FeatureSlug = { | ||
@@ -129,13 +115,2 @@ __typename?: 'FeatureSlug'; | ||
}; | ||
/** Units defines an optional unit suffix for Int or IntRange features. */ | ||
export declare type Units = { | ||
__typename?: 'Units'; | ||
single: Scalars['String']; | ||
plural: Scalars['String']; | ||
}; | ||
/** PlanOrderBy defines how a list of queried plans are to be ordered. */ | ||
export declare type PlanOrderBy = { | ||
field: PlanOrderByField; | ||
direction: OrderByDirection; | ||
}; | ||
/** FeatureSlugOrderBy defines how a list of queried feature slugs are to be ordered. */ | ||
@@ -151,8 +126,38 @@ export declare type FeatureSlugOrderBy = { | ||
} | ||
export declare type Query = { | ||
__typename?: 'Query'; | ||
hello: Greeting; | ||
/** Look up a Product by its `slug`. */ | ||
product?: Maybe<Product>; | ||
/** Look up a Product variant by it's embed id. */ | ||
productByEmbed?: Maybe<Product>; | ||
}; | ||
export declare type QueryHelloArgs = { | ||
name: Scalars['String']; | ||
}; | ||
export declare type QueryProductArgs = { | ||
slug: Scalars['String']; | ||
}; | ||
export declare type QueryProductByEmbedArgs = { | ||
embedId: Scalars['ID']; | ||
}; | ||
/** | ||
* OrderByDirection is used in all paginated queries to order by a specific | ||
* field's direction. | ||
*/ | ||
export declare enum OrderByDirection { | ||
Asc = "ASC", | ||
Desc = "DESC" | ||
} | ||
/** FeaturerderBy defines how a list of queried features are to be ordered. */ | ||
export declare type FeatureOrderBy = { | ||
field: FeatureOrderByField; | ||
direction: OrderByDirection; | ||
}; | ||
export declare enum CostType { | ||
/** A cost is per unit. All units are priced at the cost within this range. */ | ||
/** A cost is per unit. All units are priced at the cost within this range. */ | ||
PerUnit = "PER_UNIT", | ||
/** A cost is fixed for any number of units within the IntRangeFeatureValue. */ | ||
/** A cost is fixed for any number of units within the IntRangeFeatureValue. */ | ||
PerValue = "PER_VALUE", | ||
/** A cost is per unit within the range. Lower ranges are priced seperately. */ | ||
/** A cost is per unit within the range. Lower ranges are priced seperately. */ | ||
PerUnitDistinct = "PER_UNIT_DISTINCT", | ||
@@ -165,18 +170,55 @@ /** | ||
} | ||
export declare enum FeatureType { | ||
Excluded = "EXCLUDED", | ||
Boolean = "BOOLEAN", | ||
String = "STRING", | ||
Int = "INT", | ||
IntRange = "INT_RANGE" | ||
} | ||
/** FeatureSlugOrderByField is the field by which the feature slug list will be ordered. */ | ||
export declare enum FeatureSlugOrderByField { | ||
Slug = "SLUG", | ||
Name = "NAME" | ||
} | ||
export declare type IntFeatureValue = { | ||
__typename?: 'IntFeatureValue'; | ||
/** Unset means infinity. Negative infinity is not supported. */ | ||
value?: Maybe<Scalars['Int']>; | ||
/** Cta is the plan's call-to-action */ | ||
export declare type Cta = { | ||
__typename?: 'Cta'; | ||
text: Scalars['String']; | ||
uri?: Maybe<Scalars['String']>; | ||
}; | ||
/** A PlanPage is a page of queried plans. */ | ||
export declare type PlanPage = { | ||
__typename?: 'PlanPage'; | ||
totalCount: Scalars['Int']; | ||
plans: Array<Plan>; | ||
}; | ||
/** | ||
* ExcludedFeature is a special class of feature to explicitly exclude it from a | ||
* plan, so that it may be displayed differently than implicit omission. | ||
*/ | ||
export declare type ExcludedFeature = Feature & { | ||
__typename?: 'ExcludedFeature'; | ||
featureSlug: FeatureSlug; | ||
/** ExcludedFeatures always have class FIXED. */ | ||
class: FeatureClass; | ||
}; | ||
export declare type StringFeature = Feature & { | ||
__typename?: 'StringFeature'; | ||
featureSlug: FeatureSlug; | ||
/** METERED is not a valid class for String features. */ | ||
class: FeatureClass; | ||
/** | ||
* value is a convenience field. | ||
* | ||
* It is only populated when the feature's class is FIXED. | ||
*/ | ||
value?: Maybe<StringFeatureValue>; | ||
/** | ||
* values is the list of FeatureValues for this feature. CONFIGURED and METERED | ||
* classes can have at most 25 feature values. FIXED types can have at most 1 | ||
* feature value. | ||
* | ||
* TODO: add a note about when publishing you must have exactly one value for FIXED, | ||
* at least 2 for CONFIGURED BOOL and STRING, and at least 1 for CONFIGURED and | ||
* METERED INT. | ||
*/ | ||
values: Array<StringFeatureValue>; | ||
}; | ||
/** A FeaturePage is a page of queried feature pages. */ | ||
export declare type FeaturePage = { | ||
__typename?: 'FeaturePage'; | ||
totalCount: Scalars['Int']; | ||
features: Array<Feature>; | ||
}; | ||
export declare type StringFeatureValue = { | ||
__typename?: 'StringFeatureValue'; | ||
value: Scalars['String']; | ||
display?: Maybe<Scalars['String']>; | ||
@@ -200,5 +242,5 @@ cost: Scalars['Int']; | ||
__typename?: 'IntRangeFeatureValue'; | ||
/** Negative infinity not supported. */ | ||
/** Negative infinity not supported. */ | ||
min: Scalars['Int']; | ||
/** Unset means no maximum (eg infinity). */ | ||
/** Unset means no maximum (eg infinity). */ | ||
max?: Maybe<Scalars['Int']>; | ||
@@ -225,14 +267,41 @@ cost: Scalars['Int']; | ||
}; | ||
/** PlanOrderByField is the field by which the plan list will be ordered. */ | ||
export declare enum PlanOrderByField { | ||
Slug = "SLUG", | ||
Name = "NAME", | ||
Cost = "COST" | ||
export declare enum FeatureType { | ||
Excluded = "EXCLUDED", | ||
Boolean = "BOOLEAN", | ||
String = "STRING", | ||
Int = "INT", | ||
IntRange = "INT_RANGE" | ||
} | ||
/** A FeatureSlugPage is a page of queried feature slugs. */ | ||
export declare type FeatureSlugPage = { | ||
__typename?: 'FeatureSlugPage'; | ||
totalCount: Scalars['Int']; | ||
featureSlugs: Array<FeatureSlug>; | ||
/** Plan is the product plan. */ | ||
export declare type Plan = { | ||
__typename?: 'Plan'; | ||
/** A URL-friendly slug for this Plan. */ | ||
slug: Scalars['String']; | ||
/** A human-readable display name for this plan. */ | ||
name: Scalars['String']; | ||
/** | ||
* The plan's base cost without the addition of any feature costs, expressed in | ||
* the smallest unit of the currency. | ||
*/ | ||
baseCost: Scalars['Int']; | ||
/** | ||
* The plan's estimated cost, including costs from fixed features, and the | ||
* provided values for configured and metered features. | ||
*/ | ||
cost: Scalars['Int']; | ||
/** List Features asscociated with the Plan. */ | ||
features?: Maybe<FeaturePage>; | ||
/** The plan's call-to-action is only populated when an embed variant is specified. */ | ||
cta?: Maybe<Cta>; | ||
}; | ||
/** Plan is the product plan. */ | ||
export declare type PlanCostArgs = { | ||
features?: Maybe<Array<FeatureSelection>>; | ||
}; | ||
/** Plan is the product plan. */ | ||
export declare type PlanFeaturesArgs = { | ||
limit: Scalars['Int']; | ||
offset: Scalars['Int']; | ||
orderBy?: Maybe<Array<FeatureOrderBy>>; | ||
}; | ||
export declare type Feature = { | ||
@@ -242,37 +311,6 @@ featureSlug: FeatureSlug; | ||
}; | ||
/** | ||
* FeatureSelection. for cost estimation, and eventual subscription. | ||
* | ||
* Exactly one of booleanSelection, intSelection, or stringSelection must be | ||
* present. | ||
*/ | ||
export declare type FeatureSelection = { | ||
slug: Scalars['String']; | ||
/** For a BOOLEAN feature */ | ||
booleanSelection?: Maybe<Scalars['Boolean']>; | ||
/** For an INT or INT_RANGE feature */ | ||
intSelection?: Maybe<Scalars['Int']>; | ||
/** For a STRING feature. */ | ||
stringSelection?: Maybe<Scalars['String']>; | ||
}; | ||
export declare type Query = { | ||
__typename?: 'Query'; | ||
hello: Greeting; | ||
/** Look up a Product by its `slug`. */ | ||
product?: Maybe<Product>; | ||
}; | ||
export declare type QueryHelloArgs = { | ||
name: Scalars['String']; | ||
}; | ||
export declare type QueryProductArgs = { | ||
slug: Scalars['String']; | ||
}; | ||
export declare type Greeting = { | ||
__typename?: 'Greeting'; | ||
output: Scalars['String']; | ||
}; | ||
export declare type BooleanFeature = Feature & { | ||
__typename?: 'BooleanFeature'; | ||
featureSlug: FeatureSlug; | ||
/** METERED is not a valid class for Boolean features. */ | ||
/** METERED is not a valid class for Boolean features. */ | ||
class: FeatureClass; | ||
@@ -296,58 +334,35 @@ /** | ||
}; | ||
/** FeaturerderBy defines how a list of queried features are to be ordered. */ | ||
export declare type FeatureOrderBy = { | ||
field: FeatureOrderByField; | ||
direction: OrderByDirection; | ||
}; | ||
/** A FeaturePage is a page of queried feature pages. */ | ||
export declare type FeaturePage = { | ||
__typename?: 'FeaturePage'; | ||
totalCount: Scalars['Int']; | ||
features: Array<Feature>; | ||
}; | ||
export declare type StringFeatureValue = { | ||
__typename?: 'StringFeatureValue'; | ||
value: Scalars['String']; | ||
display?: Maybe<Scalars['String']>; | ||
cost: Scalars['Int']; | ||
default: Scalars['Boolean']; | ||
}; | ||
/** Plan is the product plan. */ | ||
export declare type Plan = { | ||
__typename?: 'Plan'; | ||
/** A URL-friendly slug for this Plan. */ | ||
slug: Scalars['String']; | ||
/** A human-readable display name for this plan. */ | ||
name: Scalars['String']; | ||
export declare type IntFeature = Feature & { | ||
__typename?: 'IntFeature'; | ||
featureSlug: FeatureSlug; | ||
/** METERED is not a valid class for Int features. */ | ||
class: FeatureClass; | ||
units?: Maybe<Units>; | ||
/** | ||
* The plan's base cost without the addition of any feature costs, expressed in | ||
* the smallest unit of the currency. | ||
* value is a convenience field. | ||
* | ||
* It is only populated when the feature's class is FIXED. | ||
*/ | ||
baseCost: Scalars['Int']; | ||
value?: Maybe<IntFeatureValue>; | ||
/** | ||
* The plan's estimated cost, including costs from fixed features, and the | ||
* provided values for configured and metered features. | ||
* values is the list of FeatureValues for this feature. CONFIGURED and METERED | ||
* classes can have at most 25 feature values. FIXED types can have at most 1 | ||
* feature value. | ||
* | ||
* TODO: add a note about when publishing you must have exactly one value for FIXED, | ||
* at least 2 for CONFIGURED Boolean and String, and at least 1 for CONFIGURED and | ||
* METERED Int | ||
*/ | ||
cost: Scalars['Int']; | ||
/** List Features asscociated with the Plan. */ | ||
features?: Maybe<FeaturePage>; | ||
values: Array<IntFeatureValue>; | ||
}; | ||
/** Plan is the product plan. */ | ||
export declare type PlanCostArgs = { | ||
features?: Maybe<Array<FeatureSelection>>; | ||
/** Units defines an optional unit suffix for Int or IntRange features. */ | ||
export declare type Units = { | ||
__typename?: 'Units'; | ||
single: Scalars['String']; | ||
plural: Scalars['String']; | ||
}; | ||
/** Plan is the product plan. */ | ||
export declare type PlanFeaturesArgs = { | ||
limit: Scalars['Int']; | ||
offset: Scalars['Int']; | ||
orderBy?: Maybe<Array<FeatureOrderBy>>; | ||
export declare type Greeting = { | ||
__typename?: 'Greeting'; | ||
output: Scalars['String']; | ||
}; | ||
/** | ||
* OrderByDirection is used in all paginated queries to order by a specific | ||
* field's direction. | ||
*/ | ||
export declare enum OrderByDirection { | ||
Asc = "ASC", | ||
Desc = "DESC" | ||
} | ||
export declare type GetProductQueryVariables = Exact<{ | ||
@@ -379,2 +394,14 @@ slug: Scalars['String']; | ||
features: Array<({ | ||
__typename: 'IntRangeFeature'; | ||
} & Pick<IntRangeFeature, 'class'> & { | ||
intRangeValues: Array<({ | ||
__typename?: 'IntRangeFeatureValue'; | ||
} & Pick<IntRangeFeatureValue, 'min' | 'max' | 'increments' | 'cost'>)>; | ||
units?: Maybe<({ | ||
__typename?: 'Units'; | ||
} & Pick<Units, 'single' | 'plural'>)>; | ||
featureSlug: ({ | ||
__typename?: 'FeatureSlug'; | ||
} & Pick<FeatureSlug, 'slug'>); | ||
}) | ({ | ||
__typename: 'ExcludedFeature'; | ||
@@ -395,10 +422,7 @@ } & Pick<ExcludedFeature, 'class'> & { | ||
}) | ({ | ||
__typename: 'IntRangeFeature'; | ||
} & Pick<IntRangeFeature, 'class'> & { | ||
intRangeValues: Array<({ | ||
__typename?: 'IntRangeFeatureValue'; | ||
} & Pick<IntRangeFeatureValue, 'min' | 'max' | 'increments' | 'cost'>)>; | ||
units?: Maybe<({ | ||
__typename?: 'Units'; | ||
} & Pick<Units, 'single' | 'plural'>)>; | ||
__typename: 'BooleanFeature'; | ||
} & Pick<BooleanFeature, 'class'> & { | ||
booleanValues: Array<({ | ||
__typename?: 'BooleanFeatureValue'; | ||
} & Pick<BooleanFeatureValue, 'display' | 'value' | 'cost'>)>; | ||
featureSlug: ({ | ||
@@ -413,13 +437,7 @@ __typename?: 'FeatureSlug'; | ||
} & Pick<FeatureSlug, 'slug'>); | ||
}) | ({ | ||
__typename: 'BooleanFeature'; | ||
} & Pick<BooleanFeature, 'class'> & { | ||
booleanValues: Array<({ | ||
__typename?: 'BooleanFeatureValue'; | ||
} & Pick<BooleanFeatureValue, 'display' | 'value' | 'cost'>)>; | ||
featureSlug: ({ | ||
__typename?: 'FeatureSlug'; | ||
} & Pick<FeatureSlug, 'slug'>); | ||
})>; | ||
})>; | ||
cta?: Maybe<({ | ||
__typename?: 'Cta'; | ||
} & Pick<Cta, 'text' | 'uri'>)>; | ||
})>; | ||
@@ -426,0 +444,0 @@ })>; |
{ | ||
"name": "@manifoldco/web-components", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Manifold's Web Components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1480421
24329