@stigg/js-client-sdk 0.35.0 → 0.36.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 +105 -2
- 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
|
@@ -41,6 +41,7 @@ export declare type AddCompatibleAddonsToPlanInput = {
|
|
|
41
41
|
relationIds: Array<Scalars['String']>;
|
|
42
42
|
};
|
|
43
43
|
export declare type AddonCreateInput = {
|
|
44
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
44
45
|
billingId?: InputMaybe<Scalars['String']>;
|
|
45
46
|
description?: InputMaybe<Scalars['String']>;
|
|
46
47
|
displayName: Scalars['String'];
|
|
@@ -124,6 +125,12 @@ export declare type ArchivePlanInput = {
|
|
|
124
125
|
environmentId: Scalars['String'];
|
|
125
126
|
id: Scalars['String'];
|
|
126
127
|
};
|
|
128
|
+
export declare type AttachCustomerPaymentMethodInput = {
|
|
129
|
+
environmentId?: InputMaybe<Scalars['String']>;
|
|
130
|
+
paymentMethodId: Scalars['String'];
|
|
131
|
+
refId: Scalars['String'];
|
|
132
|
+
vendorIdentifier: VendorIdentifier;
|
|
133
|
+
};
|
|
127
134
|
/** Billing model. */
|
|
128
135
|
export declare enum BillingModel {
|
|
129
136
|
FlatFee = "FLAT_FEE",
|
|
@@ -498,6 +505,10 @@ export declare enum EntitlementResetPeriod {
|
|
|
498
505
|
Month = "MONTH",
|
|
499
506
|
Week = "WEEK"
|
|
500
507
|
}
|
|
508
|
+
export declare enum EntitySelectionMode {
|
|
509
|
+
BlackList = "BLACK_LIST",
|
|
510
|
+
WhiteList = "WHITE_LIST"
|
|
511
|
+
}
|
|
501
512
|
export declare type EnvironmentFilter = {
|
|
502
513
|
and?: InputMaybe<Array<EnvironmentFilter>>;
|
|
503
514
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
@@ -524,6 +535,7 @@ export declare enum ErrorCode {
|
|
|
524
535
|
BillingPeriodMissingError = "BillingPeriodMissingError",
|
|
525
536
|
CheckoutIsNotSupported = "CheckoutIsNotSupported",
|
|
526
537
|
CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod",
|
|
538
|
+
CustomerNoBillingId = "CustomerNoBillingId",
|
|
527
539
|
CustomerNotFound = "CustomerNotFound",
|
|
528
540
|
DraftPlanCantBeArchived = "DraftPlanCantBeArchived",
|
|
529
541
|
DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
|
|
@@ -532,6 +544,8 @@ export declare enum ErrorCode {
|
|
|
532
544
|
FailedToImportCustomer = "FailedToImportCustomer",
|
|
533
545
|
FeatureNotFound = "FeatureNotFound",
|
|
534
546
|
IdentityForbidden = "IdentityForbidden",
|
|
547
|
+
ImportAlreadyInProgress = "ImportAlreadyInProgress",
|
|
548
|
+
InitStripePaymentMethodError = "InitStripePaymentMethodError",
|
|
535
549
|
IntegrationNotFound = "IntegrationNotFound",
|
|
536
550
|
IntegrityViolation = "IntegrityViolation",
|
|
537
551
|
InvalidAddressError = "InvalidAddressError",
|
|
@@ -555,6 +569,7 @@ export declare enum ErrorCode {
|
|
|
555
569
|
PriceNotFound = "PriceNotFound",
|
|
556
570
|
RateLimitExceeded = "RateLimitExceeded",
|
|
557
571
|
ResyncAlreadyInProgress = "ResyncAlreadyInProgress",
|
|
572
|
+
StripeCustomerIsDeleted = "StripeCustomerIsDeleted",
|
|
558
573
|
SubscriptionAlreadyCanceledOrExpired = "SubscriptionAlreadyCanceledOrExpired",
|
|
559
574
|
SubscriptionMustHaveSinglePlanError = "SubscriptionMustHaveSinglePlanError",
|
|
560
575
|
SubscriptionNotFound = "SubscriptionNotFound",
|
|
@@ -583,6 +598,8 @@ export declare enum EventLogType {
|
|
|
583
598
|
FeatureCreated = "FEATURE_CREATED",
|
|
584
599
|
FeatureDeleted = "FEATURE_DELETED",
|
|
585
600
|
FeatureUpdated = "FEATURE_UPDATED",
|
|
601
|
+
ImportIntegrationCatalogTriggered = "IMPORT_INTEGRATION_CATALOG_TRIGGERED",
|
|
602
|
+
ImportIntegrationCustomersTriggered = "IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",
|
|
586
603
|
MeasurementReported = "MEASUREMENT_REPORTED",
|
|
587
604
|
PackagePublished = "PACKAGE_PUBLISHED",
|
|
588
605
|
PlanCreated = "PLAN_CREATED",
|
|
@@ -600,7 +617,8 @@ export declare enum EventLogType {
|
|
|
600
617
|
SubscriptionTrialEndsSoon = "SUBSCRIPTION_TRIAL_ENDS_SOON",
|
|
601
618
|
SubscriptionTrialExpired = "SUBSCRIPTION_TRIAL_EXPIRED",
|
|
602
619
|
SubscriptionTrialStarted = "SUBSCRIPTION_TRIAL_STARTED",
|
|
603
|
-
SubscriptionUpdated = "SUBSCRIPTION_UPDATED"
|
|
620
|
+
SubscriptionUpdated = "SUBSCRIPTION_UPDATED",
|
|
621
|
+
SubscriptionUsageUpdated = "SUBSCRIPTION_USAGE_UPDATED"
|
|
604
622
|
}
|
|
605
623
|
export declare type FeatureFilter = {
|
|
606
624
|
and?: InputMaybe<Array<FeatureFilter>>;
|
|
@@ -755,6 +773,48 @@ export declare type ImportCustomerInput = {
|
|
|
755
773
|
name?: InputMaybe<Scalars['String']>;
|
|
756
774
|
refId: Scalars['String'];
|
|
757
775
|
};
|
|
776
|
+
export declare type ImportIntegrationCatalogInput = {
|
|
777
|
+
entitySelectionMode: EntitySelectionMode;
|
|
778
|
+
environmentId: Scalars['String'];
|
|
779
|
+
plansSelectionBlacklist?: InputMaybe<Array<Scalars['String']>>;
|
|
780
|
+
plansSelectionWhitelist?: InputMaybe<Array<Scalars['String']>>;
|
|
781
|
+
productId: Scalars['String'];
|
|
782
|
+
selectedAddonBillingIds: Array<Scalars['String']>;
|
|
783
|
+
vendorIdentifier: VendorIdentifier;
|
|
784
|
+
};
|
|
785
|
+
export declare type ImportIntegrationCustomersInput = {
|
|
786
|
+
customersSelectionBlacklist?: InputMaybe<Array<Scalars['String']>>;
|
|
787
|
+
customersSelectionWhitelist?: InputMaybe<Array<Scalars['String']>>;
|
|
788
|
+
entitySelectionMode: EntitySelectionMode;
|
|
789
|
+
environmentId: Scalars['String'];
|
|
790
|
+
productId: Scalars['String'];
|
|
791
|
+
vendorIdentifier: VendorIdentifier;
|
|
792
|
+
};
|
|
793
|
+
export declare type ImportIntegrationTaskFilter = {
|
|
794
|
+
and?: InputMaybe<Array<ImportIntegrationTaskFilter>>;
|
|
795
|
+
createdAt?: InputMaybe<DateFieldComparison>;
|
|
796
|
+
environmentId?: InputMaybe<StringFieldComparison>;
|
|
797
|
+
id?: InputMaybe<StringFieldComparison>;
|
|
798
|
+
or?: InputMaybe<Array<ImportIntegrationTaskFilter>>;
|
|
799
|
+
status?: InputMaybe<TaskStatusFilterComparison>;
|
|
800
|
+
taskType?: InputMaybe<TaskTypeFilterComparison>;
|
|
801
|
+
};
|
|
802
|
+
export declare type ImportIntegrationTaskSort = {
|
|
803
|
+
direction: SortDirection;
|
|
804
|
+
field: ImportIntegrationTaskSortFields;
|
|
805
|
+
nulls?: InputMaybe<SortNulls>;
|
|
806
|
+
};
|
|
807
|
+
export declare enum ImportIntegrationTaskSortFields {
|
|
808
|
+
CreatedAt = "createdAt",
|
|
809
|
+
EnvironmentId = "environmentId",
|
|
810
|
+
Id = "id",
|
|
811
|
+
Status = "status",
|
|
812
|
+
TaskType = "taskType"
|
|
813
|
+
}
|
|
814
|
+
export declare type InitAddStripeCustomerPaymentMethodInput = {
|
|
815
|
+
customerRefId: Scalars['String'];
|
|
816
|
+
environmentId?: InputMaybe<Scalars['String']>;
|
|
817
|
+
};
|
|
758
818
|
export declare type InitiateCheckoutInput = {
|
|
759
819
|
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
760
820
|
billingPeriod: BillingPeriod;
|
|
@@ -1015,7 +1075,13 @@ export declare type PackageStatusFilterComparison = {
|
|
|
1015
1075
|
notIn?: InputMaybe<Array<PackageStatus>>;
|
|
1016
1076
|
notLike?: InputMaybe<PackageStatus>;
|
|
1017
1077
|
};
|
|
1078
|
+
/** Type of a payment method */
|
|
1079
|
+
export declare enum PaymentMethodType {
|
|
1080
|
+
Bank = "BANK",
|
|
1081
|
+
Card = "CARD"
|
|
1082
|
+
}
|
|
1018
1083
|
export declare type PlanCreateInput = {
|
|
1084
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1019
1085
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1020
1086
|
description?: InputMaybe<Scalars['String']>;
|
|
1021
1087
|
displayName: Scalars['String'];
|
|
@@ -1172,6 +1238,7 @@ export declare type PricingTypeFilterComparison = {
|
|
|
1172
1238
|
notLike?: InputMaybe<PricingType>;
|
|
1173
1239
|
};
|
|
1174
1240
|
export declare type ProductCreateInput = {
|
|
1241
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1175
1242
|
description?: InputMaybe<Scalars['String']>;
|
|
1176
1243
|
displayName?: InputMaybe<Scalars['String']>;
|
|
1177
1244
|
environmentId: Scalars['String'];
|
|
@@ -1356,6 +1423,20 @@ export declare type StripeCredentialsInput = {
|
|
|
1356
1423
|
authorizationCode: Scalars['String'];
|
|
1357
1424
|
isTestMode: Scalars['Boolean'];
|
|
1358
1425
|
};
|
|
1426
|
+
export declare type StripeCustomerSearchInput = {
|
|
1427
|
+
customerName?: InputMaybe<Scalars['String']>;
|
|
1428
|
+
environmentId: Scalars['String'];
|
|
1429
|
+
nextPage?: InputMaybe<Scalars['String']>;
|
|
1430
|
+
};
|
|
1431
|
+
export declare type StripeProductSearchInput = {
|
|
1432
|
+
environmentId: Scalars['String'];
|
|
1433
|
+
nextPage?: InputMaybe<Scalars['String']>;
|
|
1434
|
+
productName?: InputMaybe<Scalars['String']>;
|
|
1435
|
+
};
|
|
1436
|
+
export declare type StripeSubscriptionSearchInput = {
|
|
1437
|
+
environmentId: Scalars['String'];
|
|
1438
|
+
nextPage?: InputMaybe<Scalars['String']>;
|
|
1439
|
+
};
|
|
1359
1440
|
export declare type SubscriptionAddonFilter = {
|
|
1360
1441
|
addon?: InputMaybe<SubscriptionAddonFilterAddonFilter>;
|
|
1361
1442
|
and?: InputMaybe<Array<SubscriptionAddonFilter>>;
|
|
@@ -1478,6 +1559,7 @@ export declare enum SubscriptionEndSetup {
|
|
|
1478
1559
|
export declare type SubscriptionInput = {
|
|
1479
1560
|
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1480
1561
|
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
1562
|
+
awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
|
|
1481
1563
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1482
1564
|
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
1483
1565
|
crmId?: InputMaybe<Scalars['String']>;
|
|
@@ -1590,11 +1672,18 @@ export declare type SubscriptionStatusFilterComparison = {
|
|
|
1590
1672
|
notIn?: InputMaybe<Array<SubscriptionStatus>>;
|
|
1591
1673
|
notLike?: InputMaybe<SubscriptionStatus>;
|
|
1592
1674
|
};
|
|
1675
|
+
/** Status of the integration sync */
|
|
1676
|
+
export declare enum SyncStatus {
|
|
1677
|
+
Error = "ERROR",
|
|
1678
|
+
NoSyncRequired = "NO_SYNC_REQUIRED",
|
|
1679
|
+
Pending = "PENDING",
|
|
1680
|
+
Success = "SUCCESS"
|
|
1681
|
+
}
|
|
1593
1682
|
export declare enum TaskStatus {
|
|
1594
1683
|
Completed = "COMPLETED",
|
|
1595
1684
|
Failed = "FAILED",
|
|
1596
1685
|
InProgress = "IN_PROGRESS",
|
|
1597
|
-
|
|
1686
|
+
PartiallyFailed = "PARTIALLY_FAILED",
|
|
1598
1687
|
Pending = "PENDING"
|
|
1599
1688
|
}
|
|
1600
1689
|
export declare type TaskStatusFilterComparison = {
|
|
@@ -1614,6 +1703,8 @@ export declare type TaskStatusFilterComparison = {
|
|
|
1614
1703
|
notLike?: InputMaybe<TaskStatus>;
|
|
1615
1704
|
};
|
|
1616
1705
|
export declare enum TaskType {
|
|
1706
|
+
ImportIntegrationCatalog = "IMPORT_INTEGRATION_CATALOG",
|
|
1707
|
+
ImportIntegrationCustomers = "IMPORT_INTEGRATION_CUSTOMERS",
|
|
1617
1708
|
ResyncIntegration = "RESYNC_INTEGRATION",
|
|
1618
1709
|
SubscriptionMigration = "SUBSCRIPTION_MIGRATION"
|
|
1619
1710
|
}
|
|
@@ -1646,6 +1737,11 @@ export declare enum TrialPeriodUnits {
|
|
|
1646
1737
|
Day = "DAY",
|
|
1647
1738
|
Month = "MONTH"
|
|
1648
1739
|
}
|
|
1740
|
+
export declare type UpdateAccountInput = {
|
|
1741
|
+
displayName: Scalars['String'];
|
|
1742
|
+
id: Scalars['String'];
|
|
1743
|
+
timezone?: InputMaybe<Scalars['String']>;
|
|
1744
|
+
};
|
|
1649
1745
|
export declare type UpdateCustomerInput = {
|
|
1650
1746
|
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1651
1747
|
billingId?: InputMaybe<Scalars['String']>;
|
|
@@ -1976,6 +2072,13 @@ export declare type CustomerFragment = {
|
|
|
1976
2072
|
hasPaymentMethod: boolean;
|
|
1977
2073
|
refId: string;
|
|
1978
2074
|
additionalMetaData?: any | null | undefined;
|
|
2075
|
+
trialedPlans?: Array<{
|
|
2076
|
+
__typename?: 'TrialedPlan';
|
|
2077
|
+
productId?: string | null | undefined;
|
|
2078
|
+
productRefId?: string | null | undefined;
|
|
2079
|
+
planRefId?: string | null | undefined;
|
|
2080
|
+
planId?: string | null | undefined;
|
|
2081
|
+
}> | null | undefined;
|
|
1979
2082
|
promotionalEntitlements: Array<{
|
|
1980
2083
|
__typename?: 'PromotionalEntitlement';
|
|
1981
2084
|
} & PromotionalEntitlementFragment>;
|