@stigg/js-client-sdk 0.34.2 → 0.35.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.
@@ -22,6 +22,8 @@ export declare type Scalars = {
22
22
  ConnectionCursor: any;
23
23
  /** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */
24
24
  DateTime: any;
25
+ /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
26
+ JSON: any;
25
27
  };
26
28
  /** DenyReason of get access policy */
27
29
  export declare enum AccessDeniedReason {
@@ -85,6 +87,7 @@ export declare enum AddonSortFields {
85
87
  VersionNumber = "versionNumber"
86
88
  }
87
89
  export declare type AddonUpdateInput = {
90
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
88
91
  billingId?: InputMaybe<Scalars['String']>;
89
92
  description?: InputMaybe<Scalars['String']>;
90
93
  displayName: Scalars['String'];
@@ -173,10 +176,6 @@ export declare enum ChangeType {
173
176
  Deleted = "DELETED",
174
177
  Modified = "MODIFIED"
175
178
  }
176
- export declare type CheckoutAddonInput = {
177
- addonId: Scalars['String'];
178
- quantity?: InputMaybe<Scalars['Int']>;
179
- };
180
179
  export declare type CreateEnvironment = {
181
180
  createdAt?: InputMaybe<Scalars['DateTime']>;
182
181
  description?: InputMaybe<Scalars['String']>;
@@ -297,6 +296,7 @@ export declare type CustomerFilterPromotionalEntitlementFilter = {
297
296
  updatedAt?: InputMaybe<DateFieldComparison>;
298
297
  };
299
298
  export declare type CustomerInput = {
299
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
300
300
  billingId?: InputMaybe<Scalars['String']>;
301
301
  billingInformation?: InputMaybe<CustomerBillingInfo>;
302
302
  crmId?: InputMaybe<Scalars['String']>;
@@ -532,12 +532,14 @@ export declare enum ErrorCode {
532
532
  FailedToImportCustomer = "FailedToImportCustomer",
533
533
  FeatureNotFound = "FeatureNotFound",
534
534
  IdentityForbidden = "IdentityForbidden",
535
+ IntegrationNotFound = "IntegrationNotFound",
535
536
  IntegrityViolation = "IntegrityViolation",
536
537
  InvalidAddressError = "InvalidAddressError",
537
538
  InvalidArgumentError = "InvalidArgumentError",
538
539
  InvalidCancellationDate = "InvalidCancellationDate",
539
540
  InvalidEntitlementResetPeriod = "InvalidEntitlementResetPeriod",
540
541
  InvalidMemberDelete = "InvalidMemberDelete",
542
+ InvalidQuantity = "InvalidQuantity",
541
543
  InvalidSubscriptionStatus = "InvalidSubscriptionStatus",
542
544
  InvalidUsageValueForIncrementalFeatureError = "InvalidUsageValueForIncrementalFeatureError",
543
545
  MemberInvitationError = "MemberInvitationError",
@@ -552,7 +554,9 @@ export declare enum ErrorCode {
552
554
  PlansCircularDependencyError = "PlansCircularDependencyError",
553
555
  PriceNotFound = "PriceNotFound",
554
556
  RateLimitExceeded = "RateLimitExceeded",
557
+ ResyncAlreadyInProgress = "ResyncAlreadyInProgress",
555
558
  SubscriptionAlreadyCanceledOrExpired = "SubscriptionAlreadyCanceledOrExpired",
559
+ SubscriptionMustHaveSinglePlanError = "SubscriptionMustHaveSinglePlanError",
556
560
  SubscriptionNotFound = "SubscriptionNotFound",
557
561
  TrialMinDateError = "TrialMinDateError",
558
562
  TrialMustBeCancelledImmediately = "TrialMustBeCancelledImmediately",
@@ -588,6 +592,7 @@ export declare enum EventLogType {
588
592
  PromotionalEntitlementGranted = "PROMOTIONAL_ENTITLEMENT_GRANTED",
589
593
  PromotionalEntitlementRevoked = "PROMOTIONAL_ENTITLEMENT_REVOKED",
590
594
  PromotionalEntitlementUpdated = "PROMOTIONAL_ENTITLEMENT_UPDATED",
595
+ ResyncIntegrationTriggered = "RESYNC_INTEGRATION_TRIGGERED",
591
596
  SubscriptionCanceled = "SUBSCRIPTION_CANCELED",
592
597
  SubscriptionCreated = "SUBSCRIPTION_CREATED",
593
598
  SubscriptionExpired = "SUBSCRIPTION_EXPIRED",
@@ -751,7 +756,7 @@ export declare type ImportCustomerInput = {
751
756
  refId: Scalars['String'];
752
757
  };
753
758
  export declare type InitiateCheckoutInput = {
754
- addons?: InputMaybe<Array<CheckoutAddonInput>>;
759
+ addons?: InputMaybe<Array<SubscriptionAddonInput>>;
755
760
  billingPeriod: BillingPeriod;
756
761
  cancelUrl: Scalars['String'];
757
762
  customerId: Scalars['String'];
@@ -1089,6 +1094,7 @@ export declare enum PlanSortFields {
1089
1094
  VersionNumber = "versionNumber"
1090
1095
  }
1091
1096
  export declare type PlanUpdateInput = {
1097
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
1092
1098
  billingId?: InputMaybe<Scalars['String']>;
1093
1099
  defaultTrialConfig?: InputMaybe<DefaultTrialConfigInputDto>;
1094
1100
  description?: InputMaybe<Scalars['String']>;
@@ -1204,6 +1210,7 @@ export declare enum ProductSortFields {
1204
1210
  UpdatedAt = "updatedAt"
1205
1211
  }
1206
1212
  export declare type ProductUpdateInput = {
1213
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
1207
1214
  description?: InputMaybe<Scalars['String']>;
1208
1215
  displayName?: InputMaybe<Scalars['String']>;
1209
1216
  productSettings?: InputMaybe<ProductSettingsInput>;
@@ -1302,6 +1309,10 @@ export declare type RemoveCompatibleAddonsFromPlanInput = {
1302
1309
  /** The ids of the relations. */
1303
1310
  relationIds: Array<Scalars['String']>;
1304
1311
  };
1312
+ export declare type ResyncIntegrationInput = {
1313
+ environmentId: Scalars['String'];
1314
+ vendorIdentifier: VendorIdentifier;
1315
+ };
1305
1316
  export declare type SetBasePlanOnPlanInput = {
1306
1317
  /** The id of the record. */
1307
1318
  id: Scalars['String'];
@@ -1465,6 +1476,7 @@ export declare enum SubscriptionEndSetup {
1465
1476
  DowngradeToFree = "DOWNGRADE_TO_FREE"
1466
1477
  }
1467
1478
  export declare type SubscriptionInput = {
1479
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
1468
1480
  addons?: InputMaybe<Array<SubscriptionAddonInput>>;
1469
1481
  billingId?: InputMaybe<Scalars['String']>;
1470
1482
  billingPeriod?: InputMaybe<BillingPeriod>;
@@ -1602,6 +1614,7 @@ export declare type TaskStatusFilterComparison = {
1602
1614
  notLike?: InputMaybe<TaskStatus>;
1603
1615
  };
1604
1616
  export declare enum TaskType {
1617
+ ResyncIntegration = "RESYNC_INTEGRATION",
1605
1618
  SubscriptionMigration = "SUBSCRIPTION_MIGRATION"
1606
1619
  }
1607
1620
  export declare type TaskTypeFilterComparison = {
@@ -1634,6 +1647,7 @@ export declare enum TrialPeriodUnits {
1634
1647
  Month = "MONTH"
1635
1648
  }
1636
1649
  export declare type UpdateCustomerInput = {
1650
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
1637
1651
  billingId?: InputMaybe<Scalars['String']>;
1638
1652
  billingInformation?: InputMaybe<CustomerBillingInfo>;
1639
1653
  crmId?: InputMaybe<Scalars['String']>;
@@ -1720,6 +1734,11 @@ export declare type UpdateOnePromotionalEntitlementInput = {
1720
1734
  /** The update to apply. */
1721
1735
  update: PromotionalEntitlementUpdateInput;
1722
1736
  };
1737
+ export declare type UpdateSubscriptionInput = {
1738
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
1739
+ environmentId?: InputMaybe<Scalars['String']>;
1740
+ refId: Scalars['String'];
1741
+ };
1723
1742
  export declare type UsageHistoryInput = {
1724
1743
  customerRefId: Scalars['String'];
1725
1744
  endDate?: InputMaybe<Scalars['DateTime']>;
@@ -1836,6 +1855,7 @@ export declare type SubscriptionFragment = {
1836
1855
  status: SubscriptionStatus;
1837
1856
  refId: string;
1838
1857
  currentBillingPeriodEnd?: any | null | undefined;
1858
+ additionalMetaData?: any | null | undefined;
1839
1859
  pricingType: PricingType;
1840
1860
  prices?: Array<{
1841
1861
  __typename?: 'SubscriptionPrice';
@@ -1850,6 +1870,7 @@ export declare type SubscriptionFragment = {
1850
1870
  refId: string;
1851
1871
  displayName: string;
1852
1872
  description?: string | null | undefined;
1873
+ additionalMetaData?: any | null | undefined;
1853
1874
  product: {
1854
1875
  __typename?: 'Product';
1855
1876
  refId: string;
@@ -1905,6 +1926,7 @@ export declare type SubscriptionFragment = {
1905
1926
  refId: string;
1906
1927
  displayName: string;
1907
1928
  description?: string | null | undefined;
1929
+ additionalMetaData?: any | null | undefined;
1908
1930
  entitlements?: Array<{
1909
1931
  __typename?: 'PackageEntitlement';
1910
1932
  usageLimit?: number | null | undefined;
@@ -1953,6 +1975,7 @@ export declare type CustomerFragment = {
1953
1975
  updatedAt: any;
1954
1976
  hasPaymentMethod: boolean;
1955
1977
  refId: string;
1978
+ additionalMetaData?: any | null | undefined;
1956
1979
  promotionalEntitlements: Array<{
1957
1980
  __typename?: 'PromotionalEntitlement';
1958
1981
  } & PromotionalEntitlementFragment>;
@@ -2058,6 +2081,7 @@ export declare type AddonFragment = {
2058
2081
  refId: string;
2059
2082
  displayName: string;
2060
2083
  description?: string | null | undefined;
2084
+ additionalMetaData?: any | null | undefined;
2061
2085
  pricingType?: PricingType | null | undefined;
2062
2086
  entitlements?: Array<{
2063
2087
  __typename?: 'PackageEntitlement';
@@ -2072,12 +2096,14 @@ export declare type PlanFragment = {
2072
2096
  refId: string;
2073
2097
  description?: string | null | undefined;
2074
2098
  displayName: string;
2099
+ additionalMetaData?: any | null | undefined;
2075
2100
  pricingType?: PricingType | null | undefined;
2076
2101
  product: {
2077
2102
  __typename?: 'Product';
2078
2103
  refId: string;
2079
2104
  displayName?: string | null | undefined;
2080
2105
  description?: string | null | undefined;
2106
+ additionalMetaData?: any | null | undefined;
2081
2107
  };
2082
2108
  basePlan?: {
2083
2109
  __typename?: 'Plan';