@stigg/js-client-sdk 1.3.0 → 1.4.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.
- package/dist/api/generated/types.d.ts +75 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +5 -0
- package/package.json +1 -1
|
@@ -315,6 +315,7 @@ export declare type CreateEnvironment = {
|
|
|
315
315
|
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
316
316
|
description?: InputMaybe<Scalars['String']>;
|
|
317
317
|
displayName?: InputMaybe<Scalars['String']>;
|
|
318
|
+
hardenClientAccessEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
318
319
|
id?: InputMaybe<Scalars['String']>;
|
|
319
320
|
provisionStatus?: InputMaybe<EnvironmentProvisionStatus>;
|
|
320
321
|
slug?: InputMaybe<Scalars['String']>;
|
|
@@ -432,6 +433,7 @@ export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
|
432
433
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
433
434
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
434
435
|
id?: InputMaybe<StringFieldComparison>;
|
|
436
|
+
oldBillingId?: InputMaybe<StringFieldComparison>;
|
|
435
437
|
or?: InputMaybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
|
|
436
438
|
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
437
439
|
refId?: InputMaybe<StringFieldComparison>;
|
|
@@ -512,6 +514,7 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
512
514
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
513
515
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
514
516
|
id?: InputMaybe<StringFieldComparison>;
|
|
517
|
+
oldBillingId?: InputMaybe<StringFieldComparison>;
|
|
515
518
|
or?: InputMaybe<Array<CustomerSubscriptionFilter>>;
|
|
516
519
|
prices?: InputMaybe<CustomerSubscriptionFilterSubscriptionPriceFilter>;
|
|
517
520
|
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
@@ -569,6 +572,7 @@ export declare enum CustomerSubscriptionSortFields {
|
|
|
569
572
|
EndDate = "endDate",
|
|
570
573
|
EnvironmentId = "environmentId",
|
|
571
574
|
Id = "id",
|
|
575
|
+
OldBillingId = "oldBillingId",
|
|
572
576
|
PricingType = "pricingType",
|
|
573
577
|
RefId = "refId",
|
|
574
578
|
StartDate = "startDate",
|
|
@@ -708,6 +712,7 @@ export declare enum ErrorCode {
|
|
|
708
712
|
AddonHasToHavePriceError = "AddonHasToHavePriceError",
|
|
709
713
|
AddonNotFound = "AddonNotFound",
|
|
710
714
|
ArchivedCouponCantBeApplied = "ArchivedCouponCantBeApplied",
|
|
715
|
+
AuthCustomerMismatch = "AuthCustomerMismatch",
|
|
711
716
|
BadUserInput = "BadUserInput",
|
|
712
717
|
BillingPeriodMissingError = "BillingPeriodMissingError",
|
|
713
718
|
CannotDeleteCustomerError = "CannotDeleteCustomerError",
|
|
@@ -721,6 +726,7 @@ export declare enum ErrorCode {
|
|
|
721
726
|
CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod",
|
|
722
727
|
CustomerNoBillingId = "CustomerNoBillingId",
|
|
723
728
|
CustomerNotFound = "CustomerNotFound",
|
|
729
|
+
DowngradeBillingPeriodNotSupportedError = "DowngradeBillingPeriodNotSupportedError",
|
|
724
730
|
DraftPlanCantBeArchived = "DraftPlanCantBeArchived",
|
|
725
731
|
DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
|
|
726
732
|
EditAllowedOnDraftPackageOnlyError = "EditAllowedOnDraftPackageOnlyError",
|
|
@@ -730,6 +736,7 @@ export declare enum ErrorCode {
|
|
|
730
736
|
ExperimentAlreadyRunning = "ExperimentAlreadyRunning",
|
|
731
737
|
ExperimentNotFoundError = "ExperimentNotFoundError",
|
|
732
738
|
ExperimentStatusError = "ExperimentStatusError",
|
|
739
|
+
FailedToCreateCheckoutSessionError = "FailedToCreateCheckoutSessionError",
|
|
733
740
|
FailedToImportCustomer = "FailedToImportCustomer",
|
|
734
741
|
FeatureNotFound = "FeatureNotFound",
|
|
735
742
|
IdentityForbidden = "IdentityForbidden",
|
|
@@ -755,6 +762,7 @@ export declare enum ErrorCode {
|
|
|
755
762
|
PackageAlreadyPublished = "PackageAlreadyPublished",
|
|
756
763
|
PackagePricingTypeNotSet = "PackagePricingTypeNotSet",
|
|
757
764
|
PlanAlreadyExtended = "PlanAlreadyExtended",
|
|
765
|
+
PlanCannotBePublishWhenBasePlanIsDraft = "PlanCannotBePublishWhenBasePlanIsDraft",
|
|
758
766
|
PlanIsUsedAsDefaultStartPlan = "PlanIsUsedAsDefaultStartPlan",
|
|
759
767
|
PlanIsUsedAsDowngradePlan = "PlanIsUsedAsDowngradePlan",
|
|
760
768
|
PlanNotFound = "PlanNotFound",
|
|
@@ -1081,6 +1089,7 @@ export declare type HubspotCredentialsInput = {
|
|
|
1081
1089
|
refreshToken?: InputMaybe<Scalars['String']>;
|
|
1082
1090
|
};
|
|
1083
1091
|
export declare type ImportCustomerInput = {
|
|
1092
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1084
1093
|
billingId: Scalars['String'];
|
|
1085
1094
|
customerId?: InputMaybe<Scalars['String']>;
|
|
1086
1095
|
email?: InputMaybe<Scalars['String']>;
|
|
@@ -1334,9 +1343,12 @@ export declare type PackageEntitlementFilterPackageDtoFilter = {
|
|
|
1334
1343
|
};
|
|
1335
1344
|
export declare type PackageEntitlementInput = {
|
|
1336
1345
|
description?: InputMaybe<Scalars['String']>;
|
|
1346
|
+
displayNameOverride?: InputMaybe<Scalars['String']>;
|
|
1337
1347
|
environmentId: Scalars['String'];
|
|
1338
1348
|
featureId: Scalars['String'];
|
|
1339
1349
|
hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
|
|
1350
|
+
hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
|
|
1351
|
+
isCustom?: InputMaybe<Scalars['Boolean']>;
|
|
1340
1352
|
monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
|
|
1341
1353
|
order?: InputMaybe<Scalars['Float']>;
|
|
1342
1354
|
packageId: Scalars['String'];
|
|
@@ -1361,6 +1373,7 @@ export declare type PackageEntitlementUpdateInput = {
|
|
|
1361
1373
|
displayNameOverride?: InputMaybe<Scalars['String']>;
|
|
1362
1374
|
hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
|
|
1363
1375
|
hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
|
|
1376
|
+
isCustom?: InputMaybe<Scalars['Boolean']>;
|
|
1364
1377
|
monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
|
|
1365
1378
|
order?: InputMaybe<Scalars['Float']>;
|
|
1366
1379
|
resetPeriod?: InputMaybe<EntitlementResetPeriod>;
|
|
@@ -1603,6 +1616,7 @@ export declare type ProductFilter = {
|
|
|
1603
1616
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
1604
1617
|
};
|
|
1605
1618
|
export declare type ProductSettingsInput = {
|
|
1619
|
+
downgradeAtEndOfBillingPeriod?: InputMaybe<Scalars['String']>;
|
|
1606
1620
|
downgradePlanId?: InputMaybe<Scalars['String']>;
|
|
1607
1621
|
subscriptionCancellationTime: SubscriptionCancellationTime;
|
|
1608
1622
|
subscriptionEndSetup: SubscriptionEndSetup;
|
|
@@ -1955,6 +1969,7 @@ export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
|
1955
1969
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
1956
1970
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1957
1971
|
id?: InputMaybe<StringFieldComparison>;
|
|
1972
|
+
oldBillingId?: InputMaybe<StringFieldComparison>;
|
|
1958
1973
|
or?: InputMaybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
|
|
1959
1974
|
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
1960
1975
|
refId?: InputMaybe<StringFieldComparison>;
|
|
@@ -2106,6 +2121,7 @@ export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
|
2106
2121
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
2107
2122
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
2108
2123
|
id?: InputMaybe<StringFieldComparison>;
|
|
2124
|
+
oldBillingId?: InputMaybe<StringFieldComparison>;
|
|
2109
2125
|
or?: InputMaybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
|
|
2110
2126
|
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
2111
2127
|
refId?: InputMaybe<StringFieldComparison>;
|
|
@@ -2133,6 +2149,56 @@ export declare enum SubscriptionPriceSortFields {
|
|
|
2133
2149
|
UpdatedAt = "updatedAt",
|
|
2134
2150
|
UsageLimit = "usageLimit"
|
|
2135
2151
|
}
|
|
2152
|
+
/** Subscription scheduled schedule status */
|
|
2153
|
+
export declare enum SubscriptionScheduleStatus {
|
|
2154
|
+
Canceled = "Canceled",
|
|
2155
|
+
Done = "Done",
|
|
2156
|
+
Failed = "Failed",
|
|
2157
|
+
Scheduled = "Scheduled"
|
|
2158
|
+
}
|
|
2159
|
+
/** Subscription scheduled schedule type */
|
|
2160
|
+
export declare enum SubscriptionScheduleType {
|
|
2161
|
+
BillingPeriod = "BillingPeriod",
|
|
2162
|
+
Downgrade = "Downgrade",
|
|
2163
|
+
UnitAmount = "UnitAmount"
|
|
2164
|
+
}
|
|
2165
|
+
export declare type SubscriptionScheduledUpdateFilter = {
|
|
2166
|
+
and?: InputMaybe<Array<SubscriptionScheduledUpdateFilter>>;
|
|
2167
|
+
createdAt?: InputMaybe<DateFieldComparison>;
|
|
2168
|
+
or?: InputMaybe<Array<SubscriptionScheduledUpdateFilter>>;
|
|
2169
|
+
scheduledExecutionTime?: InputMaybe<DateFieldComparison>;
|
|
2170
|
+
subscription?: InputMaybe<SubscriptionScheduledUpdateFilterCustomerSubscriptionFilter>;
|
|
2171
|
+
};
|
|
2172
|
+
export declare type SubscriptionScheduledUpdateFilterCustomerSubscriptionFilter = {
|
|
2173
|
+
and?: InputMaybe<Array<SubscriptionScheduledUpdateFilterCustomerSubscriptionFilter>>;
|
|
2174
|
+
billingId?: InputMaybe<StringFieldComparison>;
|
|
2175
|
+
cancelReason?: InputMaybe<SubscriptionCancelReasonFilterComparison>;
|
|
2176
|
+
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
2177
|
+
createdAt?: InputMaybe<DateFieldComparison>;
|
|
2178
|
+
crmId?: InputMaybe<StringFieldComparison>;
|
|
2179
|
+
crmLinkUrl?: InputMaybe<StringFieldComparison>;
|
|
2180
|
+
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
2181
|
+
endDate?: InputMaybe<DateFieldComparison>;
|
|
2182
|
+
environmentId?: InputMaybe<StringFieldComparison>;
|
|
2183
|
+
id?: InputMaybe<StringFieldComparison>;
|
|
2184
|
+
oldBillingId?: InputMaybe<StringFieldComparison>;
|
|
2185
|
+
or?: InputMaybe<Array<SubscriptionScheduledUpdateFilterCustomerSubscriptionFilter>>;
|
|
2186
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
2187
|
+
refId?: InputMaybe<StringFieldComparison>;
|
|
2188
|
+
startDate?: InputMaybe<DateFieldComparison>;
|
|
2189
|
+
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
2190
|
+
subscriptionId?: InputMaybe<StringFieldComparison>;
|
|
2191
|
+
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
2192
|
+
};
|
|
2193
|
+
export declare type SubscriptionScheduledUpdateSort = {
|
|
2194
|
+
direction: SortDirection;
|
|
2195
|
+
field: SubscriptionScheduledUpdateSortFields;
|
|
2196
|
+
nulls?: InputMaybe<SortNulls>;
|
|
2197
|
+
};
|
|
2198
|
+
export declare enum SubscriptionScheduledUpdateSortFields {
|
|
2199
|
+
CreatedAt = "createdAt",
|
|
2200
|
+
ScheduledExecutionTime = "scheduledExecutionTime"
|
|
2201
|
+
}
|
|
2136
2202
|
export declare enum SubscriptionStartSetup {
|
|
2137
2203
|
FreePlan = "FREE_PLAN",
|
|
2138
2204
|
PlanSelection = "PLAN_SELECTION",
|
|
@@ -2266,8 +2332,10 @@ export declare type UpdateEnvironment = {
|
|
|
2266
2332
|
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
2267
2333
|
description?: InputMaybe<Scalars['String']>;
|
|
2268
2334
|
displayName?: InputMaybe<Scalars['String']>;
|
|
2335
|
+
hardenClientAccessEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
2269
2336
|
id?: InputMaybe<Scalars['String']>;
|
|
2270
2337
|
provisionStatus?: InputMaybe<EnvironmentProvisionStatus>;
|
|
2338
|
+
signingToken?: InputMaybe<Scalars['String']>;
|
|
2271
2339
|
slug?: InputMaybe<Scalars['String']>;
|
|
2272
2340
|
};
|
|
2273
2341
|
export declare type UpdateExperimentInput = {
|
|
@@ -2372,6 +2440,7 @@ export declare type UpdatePackageEntitlementOrderItemInput = {
|
|
|
2372
2440
|
export declare type UpdateSubscriptionInput = {
|
|
2373
2441
|
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
2374
2442
|
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
2443
|
+
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
2375
2444
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
2376
2445
|
promotionCode?: InputMaybe<Scalars['String']>;
|
|
2377
2446
|
refId?: InputMaybe<Scalars['String']>;
|
|
@@ -3165,6 +3234,12 @@ export declare type CustomerFragment = {
|
|
|
3165
3234
|
planRefId?: string | null | undefined;
|
|
3166
3235
|
planId?: string | null | undefined;
|
|
3167
3236
|
}> | null | undefined;
|
|
3237
|
+
eligibleForTrial?: Array<{
|
|
3238
|
+
__typename?: 'EligibleForTrial';
|
|
3239
|
+
productId?: string | null | undefined;
|
|
3240
|
+
productRefId?: string | null | undefined;
|
|
3241
|
+
eligible: boolean;
|
|
3242
|
+
}> | null | undefined;
|
|
3168
3243
|
promotionalEntitlements: Array<{
|
|
3169
3244
|
__typename?: 'PromotionalEntitlement';
|
|
3170
3245
|
} & PromotionalEntitlementFragment>;
|