@stigg/js-client-sdk 0.27.0 → 0.29.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.
@@ -194,6 +194,7 @@ export declare type CreateHook = {
194
194
  };
195
195
  export declare type CreateIntegrationInput = {
196
196
  environmentId: Scalars['String'];
197
+ hubspotCredentials?: InputMaybe<HubspotCredentialsInput>;
197
198
  stripeCredentials?: InputMaybe<StripeCredentialsInput>;
198
199
  vendorIdentifier: VendorIdentifier;
199
200
  zuoraCredentials?: InputMaybe<ZuoraCredentialsInput>;
@@ -517,6 +518,7 @@ export declare enum ErrorCode {
517
518
  PlansCircularDependencyError = "PlansCircularDependencyError",
518
519
  PriceNotFound = "PriceNotFound",
519
520
  RateLimitExceeded = "RateLimitExceeded",
521
+ SubscriptionAlreadyCanceledOrExpired = "SubscriptionAlreadyCanceledOrExpired",
520
522
  SubscriptionNotFound = "SubscriptionNotFound",
521
523
  TrialsNotAllowedInProduct = "TrialsNotAllowedInProduct",
522
524
  UnPublishedPackage = "UnPublishedPackage",
@@ -534,6 +536,7 @@ export declare enum EventLogType {
534
536
  CustomerCreated = "CUSTOMER_CREATED",
535
537
  CustomerDeleted = "CUSTOMER_DELETED",
536
538
  CustomerUpdated = "CUSTOMER_UPDATED",
539
+ EntitlementsUpdated = "ENTITLEMENTS_UPDATED",
537
540
  EntitlementDenied = "ENTITLEMENT_DENIED",
538
541
  EntitlementGranted = "ENTITLEMENT_GRANTED",
539
542
  EntitlementRequested = "ENTITLEMENT_REQUESTED",
@@ -700,6 +703,10 @@ export declare type HookStatusFilterComparison = {
700
703
  notIn?: InputMaybe<Array<HookStatus>>;
701
704
  notLike?: InputMaybe<HookStatus>;
702
705
  };
706
+ export declare type HubspotCredentialsInput = {
707
+ authorizationCode: Scalars['String'];
708
+ refreshToken?: InputMaybe<Scalars['String']>;
709
+ };
703
710
  export declare type InitiateCheckoutInput = {
704
711
  addons?: InputMaybe<Array<CheckoutAddonInput>>;
705
712
  billingPeriod: BillingPeriod;
@@ -964,6 +971,7 @@ export declare type PlanCreateInput = {
964
971
  export declare type PlanFilter = {
965
972
  and?: InputMaybe<Array<PlanFilter>>;
966
973
  billingId?: InputMaybe<StringFieldComparison>;
974
+ compatibleAddons?: InputMaybe<PlanFilterAddonFilter>;
967
975
  createdAt?: InputMaybe<DateFieldComparison>;
968
976
  description?: InputMaybe<StringFieldComparison>;
969
977
  displayName?: InputMaybe<StringFieldComparison>;
@@ -978,6 +986,22 @@ export declare type PlanFilter = {
978
986
  updatedAt?: InputMaybe<DateFieldComparison>;
979
987
  versionNumber?: InputMaybe<IntFieldComparison>;
980
988
  };
989
+ export declare type PlanFilterAddonFilter = {
990
+ and?: InputMaybe<Array<PlanFilterAddonFilter>>;
991
+ billingId?: InputMaybe<StringFieldComparison>;
992
+ createdAt?: InputMaybe<DateFieldComparison>;
993
+ description?: InputMaybe<StringFieldComparison>;
994
+ displayName?: InputMaybe<StringFieldComparison>;
995
+ environmentId?: InputMaybe<StringFieldComparison>;
996
+ id?: InputMaybe<StringFieldComparison>;
997
+ isLatest?: InputMaybe<BooleanFieldComparison>;
998
+ or?: InputMaybe<Array<PlanFilterAddonFilter>>;
999
+ productId?: InputMaybe<StringFieldComparison>;
1000
+ refId?: InputMaybe<StringFieldComparison>;
1001
+ status?: InputMaybe<PackageStatusFilterComparison>;
1002
+ updatedAt?: InputMaybe<DateFieldComparison>;
1003
+ versionNumber?: InputMaybe<IntFieldComparison>;
1004
+ };
981
1005
  export declare type PlanFilterProductFilter = {
982
1006
  and?: InputMaybe<Array<PlanFilterProductFilter>>;
983
1007
  createdAt?: InputMaybe<DateFieldComparison>;
@@ -1334,6 +1358,7 @@ export declare type SubscriptionInput = {
1334
1358
  billingId?: InputMaybe<Scalars['String']>;
1335
1359
  billingPeriod?: InputMaybe<BillingPeriod>;
1336
1360
  crmId?: InputMaybe<Scalars['String']>;
1361
+ currentBillingPeriodEnd?: InputMaybe<Scalars['DateTime']>;
1337
1362
  customerId: Scalars['String'];
1338
1363
  endDate?: InputMaybe<Scalars['DateTime']>;
1339
1364
  environmentId: Scalars['String'];
@@ -1638,6 +1663,7 @@ export declare enum UsageMeasurementSortFields {
1638
1663
  Id = "id"
1639
1664
  }
1640
1665
  export declare enum VendorIdentifier {
1666
+ Hubspot = "HUBSPOT",
1641
1667
  Stripe = "STRIPE",
1642
1668
  Zuora = "ZUORA"
1643
1669
  }
@@ -1683,6 +1709,7 @@ export declare type SubscriptionFragment = {
1683
1709
  endDate?: any | null | undefined;
1684
1710
  status: SubscriptionStatus;
1685
1711
  refId: string;
1712
+ currentBillingPeriodEnd?: any | null | undefined;
1686
1713
  prices?: Array<{
1687
1714
  __typename?: 'SubscriptionPrice';
1688
1715
  usageLimit?: number | null | undefined;
@@ -1907,6 +1934,9 @@ export declare type AddonFragment = {
1907
1934
  entitlements?: Array<{
1908
1935
  __typename?: 'PackageEntitlement';
1909
1936
  } & PackageEntitlementFragment> | null | undefined;
1937
+ prices?: Array<{
1938
+ __typename?: 'Price';
1939
+ } & PriceFragment> | null | undefined;
1910
1940
  };
1911
1941
  export declare type PlanFragment = {
1912
1942
  __typename?: 'Plan';
@@ -1918,6 +1948,7 @@ export declare type PlanFragment = {
1918
1948
  __typename?: 'Product';
1919
1949
  refId: string;
1920
1950
  displayName?: string | null | undefined;
1951
+ description?: string | null | undefined;
1921
1952
  };
1922
1953
  basePlan?: {
1923
1954
  __typename?: 'Plan';
@@ -1931,9 +1962,6 @@ export declare type PlanFragment = {
1931
1962
  inheritedEntitlements?: Array<{
1932
1963
  __typename?: 'PackageEntitlement';
1933
1964
  } & PackageEntitlementFragment> | null | undefined;
1934
- compatibleAddons?: Array<{
1935
- __typename?: 'Addon';
1936
- } & AddonFragment> | null | undefined;
1937
1965
  prices?: Array<{
1938
1966
  __typename?: 'Price';
1939
1967
  } & PriceFragment> | null | undefined;
@@ -1946,6 +1974,7 @@ export declare type PlanFragment = {
1946
1974
  export declare type GetPlansQueryVariables = Exact<{
1947
1975
  paging?: Maybe<CursorPaging>;
1948
1976
  filter?: Maybe<PlanFilter>;
1977
+ addonFilter?: Maybe<AddonFilter>;
1949
1978
  sorting?: Maybe<Array<PlanSort> | PlanSort>;
1950
1979
  }>;
1951
1980
  export declare type GetPlansQuery = {
@@ -1956,6 +1985,9 @@ export declare type GetPlansQuery = {
1956
1985
  __typename?: 'PlanEdge';
1957
1986
  node: {
1958
1987
  __typename?: 'Plan';
1988
+ compatibleAddons?: Array<{
1989
+ __typename?: 'Addon';
1990
+ } & AddonFragment> | null | undefined;
1959
1991
  } & PlanFragment;
1960
1992
  }>;
1961
1993
  };